:root {
  color-scheme: dark;
  --paper: #0e141e;
  --surface: #151e2d;
  --ink: #edf2f9;
  --muted: #acbbcf;
  --blue: #a8c8ff;
  --rule: #34435a;
  --panel: #1a2740;
  --field-border: #788aa6;
  --foil: #e2bc64;
  --body: "Segoe UI", system-ui, sans-serif;
  --display: "Aptos Display", "Segoe UI", system-ui, sans-serif;
  font: 1rem/1.55 var(--body);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
main { padding-block: clamp(2rem, 6vw, 4.25rem); min-height: 65vh; }
main.home { padding-block-start: clamp(1.25rem, 4vw, 3rem); }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.035em; }
h1 { max-width: 24ch; font-size: clamp(2.25rem, 5vw, 4.2rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
p { max-width: 68ch; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 2; inset: .75rem auto auto .75rem; background: var(--surface); padding: .75rem; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1.75rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; min-height: 4rem; color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.nav-links, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(.8rem, 3vw, 2.25rem); }
.nav-links a { display: inline-flex; align-items: center; min-height: 4rem; padding-inline: .1rem; color: var(--muted); font-size: .94rem; font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--foil); }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1rem; }
.site-footer a { padding-block: .5rem; font-size: .92rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: .9rem;
}
.hero-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.hero h1 { max-width: 12ch; font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: .98; }
.intro { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.hero-copy .intro { margin: 1.15rem 0 1.6rem; }
.hero-art { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 76% center; }

label { display: block; font-size: .91rem; font-weight: 700; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; margin-top: .45rem; }
input, select, button { min-height: 3rem; font: inherit; border: 1px solid var(--field-border); border-radius: .4rem; padding: .57rem .75rem; }
input, select { min-width: 0; width: 100%; color: var(--ink); background: var(--surface); }
input::placeholder { color: var(--muted); }
button { background: var(--blue); border-color: var(--blue); color: var(--paper); cursor: pointer; font-weight: 700; }
button:hover { background: #c5dbff; border-color: #c5dbff; }
button.secondary { color: var(--blue); background: var(--surface); border-color: var(--field-border); }
button.secondary:hover { background: var(--panel); }
.search-hint { margin: .6rem 0 0; font-size: .89rem; color: var(--muted); }

.home-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.25rem); margin-block: 1.25rem 2.5rem; }
.home-paths a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem .75rem;
  align-items: center;
  align-content: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  text-decoration: none;
}
.home-paths a:hover { border-color: var(--blue); }
.home-paths strong { color: var(--ink); font-size: 1.12rem; }
.home-paths span { grid-column: 1; color: var(--muted); font-size: .94rem; }
.home-paths a::after { content: ""; grid-area: 1 / 2 / 3; display: block; width: .55rem; height: .55rem; border: solid var(--blue); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.evidence-guide { border-top: 1px solid var(--rule); }
.evidence-guide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 2rem; margin: 0; }
.evidence-guide dd { margin: .45rem 0 0; color: var(--muted); font-size: .94rem; }

.lookup { max-width: 46rem; }
.lookup .intro { margin-block: 0 1.5rem; }
.sighting-filters { margin-block: 0 1.25rem; }
.sighting-filters fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-inline-size: 0; }
.sighting-filters legend { padding: 0; margin-bottom: .45rem; font-size: .91rem; font-weight: 700; }
.sport-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.sport-options label { position: relative; cursor: pointer; }
.sport-options input { position: absolute; width: 1px; min-height: 0; height: 1px; padding: 0; clip-path: inset(50%); }
.sport-options span { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem .8rem; border: 1px solid var(--field-border); border-radius: .4rem; }
.sport-options input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.sport-options input:focus-visible + span { outline: 3px solid var(--foil); outline-offset: 2px; }
.sighting-filters select { display: block; max-width: 30rem; margin-top: .45rem; }
.search-output { max-width: 55rem; margin-top: 1.75rem; }
#search-status, .filter-status { color: var(--muted); font-variant-numeric: tabular-nums; }
#search-status:empty { margin: 0; }
#search-results:empty { display: none; }
#search-results, .release-list { padding: 0; list-style: none; }
#search-results li, .release-list li { background: var(--surface); border-bottom: 1px solid var(--rule); padding: .9rem 1.05rem; overflow-wrap: anywhere; }
#search-results li:first-child, .release-list { border-top: 1px solid var(--rule); }
.result-title { display: inline-block; font-weight: 700; }
#search-results small, .record-summary > p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-top: .4rem; color: var(--muted); }
.next-step, .record-summary { max-width: 46rem; padding: 1.15rem 1.35rem; border-inline-start: 3px solid var(--foil); background: var(--surface); }
.next-step h2, .record-summary > p:first-child { margin-top: 0; }
.next-step p { margin: .65rem 0; }
.next-step a, .record-links a { font-weight: 650; }
.record-summary > p:last-child { margin-bottom: 0; }
.record-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

.card-status { display: inline-block; padding: .18em .63em; border: 1px solid #51617a; background: #243149; border-radius: .3rem; color: #d4deee; font-size: .84rem; font-weight: 700; }
.card-status.sighted { border-color: #477a67; background: #17352d; color: #a9e9c9; }
li > .card-status { margin-inline-start: .4rem; }

.filter-bar { max-width: 33rem; margin-block: 1.4rem 1rem; }
.filter-bar input { margin-top: .4rem; }
.filter-status { margin: .5rem 0 0; font-size: .9rem; }
.release-list { max-width: 64rem; }
.release-list li { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .22rem 1rem; }
.release-list a { font-weight: 650; }
.release-data { display: flex; flex-wrap: wrap; gap: .15rem 1rem; color: var(--muted); font-size: .87rem; }
.release-data > span:first-child:not(:last-child) { text-transform: capitalize; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--rule); border-radius: .4rem; margin-bottom: 2rem; }
table { border-collapse: collapse; width: 100%; text-align: left; background: var(--surface); font-size: .92rem; }
thead { background: var(--panel); }
td, th { padding: .65rem .85rem; border-bottom: 1px solid var(--rule); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
td:nth-child(2) { font-variant-numeric: tabular-nums; }
.table-wrap table { min-width: 36rem; }
article { max-width: 72ch; }
article img { max-width: 100%; height: auto; }

@media (max-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .hero-art { height: auto; aspect-ratio: 3 / 1; object-position: 76% 53%; }
}
@media (max-width: 36rem) {
  .shell { width: calc(100% - 1.5rem); }
  .site-header nav { flex-wrap: wrap; }
  .wordmark { min-height: 3.25rem; }
  .nav-links { width: 100%; gap: .05rem 1rem; }
  .nav-links a { min-height: 2.8rem; }
  .hero-art { aspect-ratio: 2.5 / 1; }
  .search { grid-template-columns: minmax(0, 1fr); }
  .home-paths, .evidence-guide dl { grid-template-columns: minmax(0, 1fr); }
}
