/* A timber lodge and a canvas gear catalog. */
:root {
  --line-x: 62%;
  --home-line-x: 45%;
  --lakebed-water: #142c2b;
  --tent: #253429; --lake: #414b32; --deep: #2b392b; --blackwater: #1f2d24;
  --foam: #fff4d7; --muted: #ded7b9; --lamp: #e6b56b;
  --paper: #ede2c5; --ink: #303b2a; --rule: #70755c;
}
.mast { background: #243329; }
.brand { font: bold .98rem Georgia, serif; letter-spacing: .04em; }
.episode-art .artwork { filter: sepia(.48) saturate(.82); }
.episode-art { border: 2px solid #b39b6c; border-radius: 16px 3px; }
.lake .field-notes, .lake .merch { background: transparent; }
.field-notes > .wrap {
  padding: clamp(18px, 4vw, 42px);
  border: 1px solid #c3ac74;
  border-radius: 7px;
  background: #ede2c5 repeating-linear-gradient(0deg,#6448140a 0 1px,transparent 1px 7px);
}

.lake {
  position: relative;
  isolation: isolate;
  overflow: clip;
  --lake-water-background:
    radial-gradient(ellipse 95% 720px at 62% 0%, #c5cb9168, transparent 82%),
    radial-gradient(ellipse 83% 990px at 15% 40%, #72946a38, transparent 85%),
    linear-gradient(168deg, #355d54, #25463d 34%, #1a3734 70%, #142c2b);
  background: var(--lake-water-background);
}
.lake [data-dive] { position: relative; }
.lake::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: clamp(100px, 18svh, 180px);
  background: linear-gradient(transparent, var(--lakebed-water));
  pointer-events: none;
}
.dive { min-height: clamp(245px, 42svh, 450px); }
.dive-expanse { min-height: clamp(400px, 62svh, 640px); }
.dive-water { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dive-ceiling { position: absolute; inset: -6px 0 auto; width: 100%; height: 25%; opacity: .56; }
.dive-actors { position: absolute; inset: 0; }
.dive-actor {
  position: absolute;
  translate: -50% -50%;
  width: clamp(32px, var(--size), 440px);
}
.dive-actor svg { display: block; width: 100%; height: auto; }
.dive-actor[data-water-edge] { max-width: 128px; }
.dive-actor[data-water-edge="start"] { top: var(--water-start); }
.dive-actor[data-water-edge="end"] { bottom: var(--water-end); translate: -50% 50%; }
.dive-facing-right { transform: scaleX(-1); }
.dive-actor[data-layer="far"] { z-index: 1; opacity: .35; }
.dive-actor[data-layer="middle"] { z-index: 2; opacity: .77; }
.dive-actor[data-layer="near"] { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  body:not([data-reduced]) .dive-actor {
    transform: translate(calc(var(--depth, 0) * var(--swim-x)), calc(var(--depth, 0) * var(--swim-y)));
  }
  body:not([data-reduced]) .dive-ceiling { transform: translateY(calc(var(--depth, 0) * 12px)); }
}

/* The line reappears below the ice and runs behind the page content. */
.fishing-route > section { position: relative; isolation: isolate; }
.surface::before, .angler-banner::before, .lake::before, .lakebed-feature::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 var(--home-line-x);
  width: 1px;
  background: #e9d6a388;
  pointer-events: none;
}
.surface::before { top: calc(var(--scene-height) * .694); }
.angler-banner::before { inset-block: -1px; }
.fishing-route > section > .wrap, .lake .wrap, .angler-banner-inner { position: relative; z-index: 1; }
body:not(.fishing) .dive-ceiling { visibility: hidden; }
.dive[data-dive="weeds"] {
  --water-start: clamp(35px, 5vw, 52px);
  --water-end: clamp(17px, 3vw, 34px);
  display: grid;
  align-content: center;
  min-height: clamp(385px, 52svh, 560px);
  padding-block: clamp(70px, 7vw, 86px) clamp(34px, 6vw, 68px);
}
/* Keep these swimmers in the open water even as cards change height. */
.lake > :is(.library, .field-notes, .merch), .lakebed-feature {
  --water-space-start: clamp(58px, 7vw, 85px);
  --water-space-end: clamp(58px, 9vw, 100px);
  --water-start: calc(var(--water-space-start) / 2);
  --water-end: calc(var(--water-space-end) / 2);
  padding-block: var(--water-space-start) var(--water-space-end);
}
.library-water {
  --water-start: 50%;
  height: clamp(62px, 8vw, 84px);
}

/* Shoreline growth and stones appear only when the dive reaches the footer. */
.footer.lakebed {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 0 0 25px;
  background:
    linear-gradient(var(--lakebed-water), transparent clamp(100px, 18svh, 180px)),
    radial-gradient(ellipse at 51% 32%, #6e805038, transparent 72%),
    linear-gradient(var(--lakebed-water), #223e32 56%, #172b24);
}
.lakebed-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lakebed-art > svg { position: absolute; width: 100%; left: 0; }
.lakebed-ridge { top: 2%; height: 65%; opacity: .73; }
.lakebed-art .dive-actors { z-index: 1; }
.lakebed-ground { bottom: 0; height: 70%; z-index: 2; }
.lakebed-growth { bottom: 0; height: 75%; z-index: 3; }
.lakebed-feature { position: relative; --water-space-end: clamp(21px, 4vw, 50px); }
.lakebed-feature::before { top: calc(-1 * var(--footer-inset)); background: linear-gradient(#e9d6a388, #d9cea1); }
.lakebed-videos { position: relative; width: min(830px, 100% - var(--space) * 2); }
.lakebed-videos h2 {
  width: fit-content;
  margin-bottom: clamp(19px, 4vw, 40px);
  color: #fff1cb;
  font-size: clamp(31px, 5vw, 53px);
  text-shadow: 0 2px 10px #10241c;
}
.lakebed-videos .featured-grid { gap: clamp(15px, 5vw, 65px); }
.lakebed-videos .episode-trigger {
  height: auto;
  padding: 5px 5px 9px;
  background: #1a2e25;
  border: 1px solid #899572;
  border-bottom: 6px solid #0d211a;
  border-radius: 15px 4px 6px;
  box-shadow: 4px 13px 12px #0c1d16ab;
}
.lakebed-videos .episode:first-child .episode-trigger { rotate: -1.8deg; }
.lakebed-videos .episode:nth-child(2) .episode-trigger { rotate: 1.8deg; }
.lakebed-videos .episode-meta, .lakebed-videos .episode-name { padding-inline: 5px; }
.footer-lure { display: block; position: relative; padding: 173px var(--space) 29px; text-align: center; text-decoration: none; }
.lure-rig { position: absolute; top: 0; left: var(--home-line-x); translate: -50% 0; }
.footer-hot-dog {
  position: absolute;
  top: 118px; left: var(--home-line-x);
  translate: -50% 0;
  rotate: -12deg;
  display: grid; place-items: center;
  width: 104px; height: 44px;
  border-radius: 12px;
}
.footer-hot-dog:is(:hover, :focus-visible) img {
  filter: drop-shadow(0 0 5px var(--lamp));
}
.lure-fish {
  position: absolute; top: 86px; right: calc(100% - var(--home-line-x) + 16px);
  width: clamp(144px, 31vw, 290px); height: auto;
  translate: 0 -50%;
  filter: drop-shadow(0 5px 4px #0c201947);
}
@media (prefers-reduced-motion: no-preference) {
  body:not([data-reduced]) .lakebed-ridge { transform: translateY(calc(var(--depth, 0) * 32px)); }
  body:not([data-reduced]) .lakebed-growth { transform: translateY(calc(var(--depth, 0) * -24px)); }
  body:not([data-reduced]) .lure-fish {
    transform: translateX(calc((var(--approach, 0) - 1) * clamp(125px, 29vw, 290px)));
  }
}
.footer-lure-copy { display: inline-grid; gap: 4px; }
.footer-lure-copy .section-mark { justify-content: center; color: var(--lamp); }
.footer-lure-copy strong { font: 500 clamp(24px, 5vw, 39px)/1.12 Georgia, serif; color: var(--foam); }
.footer-lure-copy .lure-story { color: var(--muted); font-size: .88rem; }
.footer-lure-copy > span:last-child { text-decoration: underline; text-underline-offset: .22em; }
.footer-lure:hover .footer-lure-copy > span:last-child { color: var(--lamp); }

@media (max-width: 560px) {
  .dive[data-dive="weeds"] { padding-block-start: 115px; }
  .lakebed-videos .episode-name, .library .episode-name { font-size: .92rem; }
  .lakebed-growth { height: 62%; }
}

.brand {
  padding: 0;
  min-height: 44px;
  text-align: left;
  border: 0;
  background: transparent;
}
.brand-mode {
  display: block;
  margin-top: 3px;
  font: 650 .69rem/1.2 system-ui, sans-serif;
  letter-spacing: .025em;
  color: var(--lamp);
}
.brand[aria-pressed="true"] img { outline: 2px solid var(--lamp); outline-offset: 2px; }
.fish-mode-hint { text-align: right; font-size: .76rem; line-height: 1.22; }
.fish-mode-hint span { display: block; color: var(--muted); }
.fish-mode-hint a { display: inline-flex; min-height: 44px; align-items: center; color: var(--lamp); }
body[data-fish-mode] [data-fish-overlay] { visibility: hidden; }
body[data-fish-mode] :is(.lake, .lakebed) { pointer-events: none; }

.footer-rig { position: relative; }
.lure-fish svg { display: block; width: 100%; height: auto; }
.fish-target { padding: 0; border: 0; background: transparent; pointer-events: none; }
body[data-fish-mode] .fish-target:enabled { pointer-events: auto; }
body[data-fish-mode] .lure-fish:enabled { z-index: 1; }
body[data-fish-mode] .fish-target:enabled::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: max(100%, 44px); height: max(100%, 44px);
  translate: -50% -50%;
}
body[data-fish-mode] .fish-target:enabled:is(:hover, :focus-visible) svg {
  filter: drop-shadow(0 0 5px #edd28abf);
}
body[data-fish-mode] .fish-target:enabled:focus-visible { border-radius: 6px; }

#fish-card {
  width: min(92%, 410px);
  max-height: min(88dvh, 680px);
  padding: 8px;
  border: 1px solid #c8aa6e;
  border-radius: 17px 8px 17px 8px;
  background: #20362c;
  box-shadow: 0 18px 85px #071f1bc4;
  color: #25352a;
  color-scheme: light;
  overscroll-behavior: contain;
}
#fish-card::backdrop { background: #0b251eaa; }
.fish-card-frame {
  overflow: hidden;
  border: 1px solid #b6a06d;
  border-radius: 10px 4px 10px 4px;
  background: #f1e6c8;
}
.fish-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 13px 12px 16px;
}
.fish-card-series {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  color: #506349;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fish-card-series span { white-space: nowrap; }
#fish-card h2 {
  margin: 6px 0 4px;
  color: #23392b;
  font-size: clamp(27px, 6vw, 36px);
  line-height: .98;
}
.fish-card-family { color: #4a5c47; font-size: .8rem; }
#fish-card .close {
  border-color: #74836a;
  border-radius: 6px;
  color: #304936;
}
#fish-card .close:hover { background: #deceb0; }
#fish-card :focus-visible { outline-color: #654916; outline-offset: 2px; }
.fish-card-picture {
  display: grid;
  place-items: center;
  height: clamp(105px, 23dvh, 164px);
  margin-inline: 12px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #b49e69;
  border-radius: 4px;
  background: radial-gradient(ellipse at 58% 21%, #6d8964, #2e5248 65%, #18362f);
}
.fish-card-art { display: block; width: 100%; height: 100%; max-height: 119px; }
.fish-card-details { padding: 11px 16px 6px; font-size: .87rem; line-height: 1.45; }
.fish-card-details dl { margin: 0; }
.fish-card-details dl > div { padding: 7px 0 9px; border-bottom: 1px solid #b8a67888; }
.fish-card-details dt { font-weight: 800; color: #334936; }
.fish-card-details dd { margin: 2px 0 0; }
.fish-card-note { margin-top: 8px; color: #4c5b46; font-size: .79rem; }
.fish-card-details a { display: inline-flex; align-items: center; min-height: 44px; color: #354f3a; font-weight: 700; }
@media (max-height: 620px) {
  .fish-card-picture { height: clamp(78px, 18dvh, 108px); padding: 9px; }
  .fish-card-head { padding-block: 9px; }
  .fish-card-details { padding-top: 6px; }
}

@media (max-width: 360px) {
  .brand { font-size: .82rem; letter-spacing: .01em; }
}

.angler-banner {
  position: relative;
  z-index: 1;
  background: #243329;
  color: var(--foam);
  border-block: 1px solid #d5ae6659;
}
.angler-banner-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 30px);
  max-width: 700px;
  padding-block: 12px;
}
.angler-banner-avatar {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(54px, 11vw, 96px);
  aspect-ratio: 1;
}
.angler-banner-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lamp);
  clip-path: polygon(50% 0, 60% 19%, 79% 8%, 80% 29%, 100% 29%, 89% 48%, 100% 64%, 79% 68%, 80% 89%, 60% 81%, 50% 100%, 40% 81%, 20% 89%, 21% 68%, 0 64%, 11% 48%, 0 29%, 20% 29%, 21% 8%, 40% 19%);
}
.angler-banner-avatar img {
  display: block;
  width: 72%;
  height: auto;
}
.angler-stat {
  display: grid;
  gap: 4px;
  line-height: 1.25;
  font-size: clamp(.79rem, 2vw, 1rem);
}
.angler-stat strong {
  color: var(--lamp);
  font: bold clamp(1.3rem, 4.5vw, 2.5rem)/1 Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.angler-stat-hotdog {
  border-inline-start: 1px solid #d5ae6659;
  padding-inline-start: clamp(10px, 3vw, 30px);
}
