:root {
  color-scheme: light;
  --paper: #fff9ec;
  --paper-2: #f4f8f4;
  --ink: #182025;
  --muted: #5e6970;
  --line: #162027;
  --blue: #7bd4ff;
  --blue-deep: #2d7fa4;
  --red: #ff725c;
  --gold: #ffc857;
  --green: #91d87b;
  --mint: #c7f2df;
  --lavender: #d8ccff;
  --shadow: 8px 8px 0 #182025;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 32, 37, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(24, 32, 37, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf7 0%, #eefaff 42%, #fff6db 100%);
  background-size: 28px 28px, 28px 28px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.hero {
  min-height: 82vh;
  display: grid;
  padding: 24px clamp(18px, 4vw, 64px) 42px;
  border-bottom: 3px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 200, 87, 0.55), transparent 16rem),
    linear-gradient(135deg, #fdf9ea 0%, #e8fbff 48%, #fff5d2 100%);
}

.topbar {
  justify-self: end;
  display: flex;
  gap: 10px;
  height: max-content;
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  padding: 9px 13px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 3px 3px 0 var(--line);
  font-weight: 900;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(520px, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: min(1440px, 100%);
  margin: auto;
}

.hero-copy {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  padding: 7px 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 9vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: #30414a;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.5;
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.hero-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 249, 236, 0.34), transparent 24%),
    linear-gradient(180deg, transparent 72%, rgba(255, 249, 236, 0.34));
  mix-blend-mode: screen;
}

.lottie {
  pointer-events: none;
}

.tracks-lottie {
  position: absolute;
  left: 6%;
  right: 10%;
  bottom: 2%;
  height: 28%;
  opacity: 0.48;
  z-index: 2;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 14px;
  padding: 16px 0;
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(16px);
}

.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  padding: 0 14px;
  outline: none;
  box-shadow: 4px 4px 0 var(--line);
}

.filters,
.region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: end;
}

.filter,
.region-chip {
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
  font-weight: 900;
}

.filter:nth-child(3n),
.region-chip:nth-child(3n) {
  background: var(--mint);
}

.filter:nth-child(3n + 1),
.region-chip:nth-child(3n + 1) {
  background: #fff;
}

.filter:nth-child(3n + 2),
.region-chip:nth-child(3n + 2) {
  background: #ffe7a1;
}

.filter.active,
.region-chip.active {
  color: #fff;
  background: var(--red);
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 34px;
}

.overview .note {
  position: relative;
  min-height: 112px;
  padding: 22px 24px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 6px 6px 0 var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.overview .note::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.note-count {
  background:
    radial-gradient(circle at 88% 22%, rgba(123, 212, 255, 0.75) 0 20%, transparent 21%),
    #fff;
}

.overview .note-shot {
  background: var(--mint);
}

.overview .note-vital {
  background: #ffe7a1;
}

.overview strong,
.overview span {
  display: block;
}

.overview strong {
  font-size: 1.28rem;
}

.overview span {
  color: var(--muted);
  margin-top: 4px;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 26px;
  align-items: stretch;
  margin: 30px 0;
}

.map-copy,
.map-card,
.sources {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 6px 6px 0 var(--line);
}

.map-copy {
  padding: clamp(22px, 4vw, 38px);
}

.map-copy h2,
.sources h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.map-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.map-card {
  min-height: 460px;
  padding: 18px;
  background: #f9fcff;
  position: relative;
  overflow: hidden;
}

.compass-lottie {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 138px;
  height: 138px;
  opacity: 0.9;
  z-index: 2;
}

.map-board {
  position: relative;
  height: 100%;
  min-height: 424px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff9ec;
}

.map-board svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 424px;
}

.state {
  stroke: var(--line);
  stroke-width: 5;
  stroke-linejoin: round;
}

.state-ambarino { fill: #bfeaff; }
.state-west { fill: #aee58e; }
.state-newhanover { fill: #ffd866; }
.state-lemoyne { fill: #c9f2dd; }
.state-newaustin { fill: #ffb36d; }

.river {
  fill: none;
  stroke: #58bde5;
  stroke-width: 18;
  stroke-linecap: round;
  opacity: 0.8;
}

.river-small {
  stroke-width: 12;
}

.trail {
  fill: none;
  stroke: #182025;
  stroke-width: 5;
  stroke-dasharray: 16 16;
  stroke-linecap: round;
  opacity: 0.68;
}

.trail-two {
  stroke: #ff725c;
}

.pin {
  fill: #ff725c;
  stroke: var(--line);
  stroke-width: 4;
}

.pin:nth-of-type(even) {
  fill: var(--gold);
}

.map-board text {
  fill: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff9ec;
  stroke-width: 8px;
  stroke-linejoin: round;
}

.map-board .map-caption {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 1000;
  text-anchor: end;
}

.map-legend {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 900;
}

.map-legend i {
  display: inline-block;
  width: 24px;
  height: 8px;
  border-radius: 99px;
}

.legend-river { background: #58bde5; }
.legend-trail { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.legend-pin {
  width: 12px !important;
  height: 12px !important;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--red);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
  margin: 32px 0 52px;
}

.animal-card {
  display: grid;
  grid-template-rows: 138px 1fr;
  min-height: 448px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.animal-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
}

.art {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 249, 236, 0.82)),
    url("/assets/category-sprite.jpg") var(--crop-x, 50%) center / 700% auto,
    linear-gradient(135deg, #b9eaff 0 42%, #fff3ad 42% 64%, #b7e79b 64%);
}

.large-game { --crop-x: 0%; }
.medium-game { --crop-x: 16.66%; }
.varmint { --crop-x: 33.33%; }
.birds { --crop-x: 50%; }
.small-birds { --crop-x: 66.66%; }
.tiny-game { --crop-x: 83.33%; }
.fish { --crop-x: 100%; }
.legendary-animals { --crop-x: 0%; }
.legendary-fish { --crop-x: 100%; }
.no-perfect-pelt { --crop-x: 16.66%; }

.art span {
  position: relative;
  z-index: 1;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.art b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 3px 3px 0 var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.9) 0 7%, transparent 7.5%),
    repeating-linear-gradient(135deg, rgba(24, 32, 37, 0.18) 0 1px, transparent 1px 12px);
  mix-blend-mode: soft-light;
}

.large-game .art,
.medium-game .art,
.varmint .art,
.birds .art,
.small-birds .art,
.tiny-game .art,
.fish .art,
.legendary-animals .art,
.legendary-fish .art,
.no-perfect-pelt .art {
  background-size: 700% auto, auto;
}

.fish .art span { background: var(--blue); }
.large-game .art span { background: #ffb36d; }
.legendary-animals .art span,
.legendary-fish .art span {
  color: #fff;
  background: #182025;
}
.no-perfect-pelt .art span {
  background: #fff;
}
.birds .art span,
.small-birds .art span { background: var(--lavender); }
.tiny-game .art span { background: var(--mint); }
}

.animal-card__body {
  padding: 18px;
}

.animal-card__title {
  min-height: 82px;
}

.animal-card h3 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.05;
}

.animal-card__title span {
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 1000;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  padding-top: 11px;
  border-top: 1px solid rgba(24, 32, 37, 0.15);
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  line-height: 1.45;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 5px 5px 0 var(--line);
}

.sources {
  margin: 0 0 42px;
  padding: clamp(22px, 4vw, 38px);
}

.sources p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .topbar {
    justify-self: start;
    margin-bottom: 28px;
  }

  .hero__inner,
  .toolbar,
  .map-section,
  .overview {
    grid-template-columns: 1fr;
  }

  .toolbar {
    position: static;
  }

  .hero-poster {
    min-height: 320px;
  }

  .animal-card {
    min-height: auto;
  }
}
