/* The Cabin: lake photography up top, title-card type from the videos, quiet birch pages below.
   Layout: one reading column for guides, wider grids for the home page. */
:root {
  --birch: #eef0ea;
  --card: #fafbf7;
  --ink: #1d2620;
  --ink-soft: #56625a;
  --line: #d5dad0;
  --barn: #93311f;
  --barn-deep: #6f2416;
  --peach: #f6c98f;
  --ember: #b8582a;
  --lake: #24485a;
  --on-photo: #fbf3e6;
  --c-arrive: #2f5240;
  --c-water: #2a5566;
  --c-power: #9a720f;
  --c-propane: #93311f;
  --c-heat: #c0561f;
  --c-around: #6f5f45;
  --tip-bg: #e6eee8;
  --warn-bg: #f6e4dc;
  --focus: #2a5566;

  --f-display: "Caprasimo", "Cooper Black", Georgia, serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.3125rem; --t-xl: 1.875rem; --t-2xl: clamp(2rem, 5vw, 3rem);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --birch: #121714; --card: #1a211d; --ink: #e9ebe4; --ink-soft: #a3ada6; --line: #2d3731;
    --barn: #e58368; --barn-deep: #5c1e13; --peach: #f6c98f; --ember: #9c4320; --lake: #86b6c8;
    --c-arrive: #8cc1a0; --c-water: #86b6c8; --c-power: #e2b54f; --c-propane: #e58368; --c-heat: #f08a55; --c-around: #c9b690;
    --tip-bg: #1d2a23; --warn-bg: #2e1d18; --focus: #86b6c8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --birch: #121714; --card: #1a211d; --ink: #e9ebe4; --ink-soft: #a3ada6; --line: #2d3731;
  --barn: #e58368; --barn-deep: #5c1e13; --peach: #f6c98f; --ember: #9c4320; --lake: #86b6c8;
  --c-arrive: #8cc1a0; --c-water: #86b6c8; --c-power: #e2b54f; --c-propane: #e58368; --c-heat: #f08a55; --c-around: #c9b690;
  --tip-bg: #1d2a23; --warn-bg: #2e1d18; --focus: #86b6c8; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--birch); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: var(--barn); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: max(16px, 4vw); }
.narrow { max-width: 46rem; margin: 0 auto; padding-inline: max(16px, 4vw); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .005em; }
.titlecard { color: var(--peach); text-shadow: 2px 3px 0 var(--ember), 0 0 28px rgba(0,0,0,.35); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; background: var(--dot, var(--ink-soft)); display: inline-block; }
.draft {
  display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-power); border: 1px dashed currentColor; border-radius: 4px; padding: .1em .45em; vertical-align: middle; white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none; font-weight: 700; font-family: var(--f-body);
  font-size: var(--t-sm); padding: .7em 1.15em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn-peach { background: var(--peach); color: #431509; }
.btn-peach:hover { background: #fbd9ad; }
.btn-ghost { border-color: rgba(251, 243, 230, .7); color: var(--on-photo); background: rgba(10, 16, 20, .18); }
.btn-ghost:hover { border-color: var(--on-photo); }
.btn-solid { background: var(--barn); color: var(--card); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--ink-soft); }
.btn-sm { padding: .5em .9em; font-size: var(--t-xs); }

/* Top bar (topic pages) */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--birch); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); }
.brand { font-family: var(--f-display); font-size: 1.35rem; color: var(--barn); text-decoration: none; line-height: 1; white-space: nowrap; flex: none; }
.topbar nav { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { flex: none; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: var(--t-sm); padding: .4em .75em; border-radius: 999px; }
.topbar nav a:hover { color: var(--ink); background: var(--card); }

/* ---------- Home hero: the lake at your month and time of day ---------- */
.hero {
  position: relative; color: var(--on-photo); background: #16222a; overflow: hidden;
  display: flex; flex-direction: column; min-height: clamp(36rem, 88vh, 52rem);
}
.hero-media { position: absolute; inset: 0; }
.hero-photo, .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 55%;
}
.hero-canvas { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.hero-canvas.is-live { opacity: 1; transition: none; }
.hero-next { opacity: 0; transition: opacity 2.5s ease; }
.hero-next.is-in { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,14,18,.64) 0%, rgba(8,14,18,.4) 34%, rgba(8,14,18,0) 64%),
    linear-gradient(180deg, rgba(8,14,18,.28) 0%, rgba(8,14,18,0) 24%, rgba(8,14,18,.18) 52%, rgba(8,14,18,.78) 100%);
}
.hero-inner {
  position: relative; z-index: 1; flex: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s-8) var(--s-6);
}
.hero .eyebrow { color: var(--on-photo); opacity: .95; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero h1 { font-size: clamp(3.4rem, 11vw, 7.5rem); line-height: .92; margin-block: var(--s-3) var(--s-4); }
.hero .lede { font-size: 1.1875rem; max-width: 36ch; text-shadow: 0 1px 14px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.35); }
.hero .stats { margin-top: var(--s-3); font-size: var(--t-sm); opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* Timelapse + sound bar along the bottom of the hero */
.tl {
  position: relative; z-index: 2; width: 100%;
  border-top: 1px solid rgba(251, 243, 230, .16);
  background: rgba(9, 14, 18, .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
}
.tl-row {
  display: grid; align-items: center; gap: var(--s-2) var(--s-4);
  grid-template-columns: auto 12.5rem minmax(0, 1fr) auto auto;
  padding-block: var(--s-3) var(--s-3);
}
.tl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid rgba(251, 243, 230, .42); background: rgba(251, 243, 230, .06); color: var(--on-photo);
  font: inherit; font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; cursor: pointer; white-space: nowrap;
}
.tl-btn:hover { border-color: var(--on-photo); background: rgba(251, 243, 230, .14); }
.tl-btn:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.tl-btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.tl-play { width: 2.5rem; padding: 0; background: var(--peach); border-color: var(--peach); color: #431509; }
.tl-play:hover { background: #fbd9ad; border-color: #fbd9ad; }
.tl-play .i-pause, .tl.is-playing .tl-play .i-play { display: none; }
.tl.is-playing .tl-play .i-pause { display: block; }
.tl-sound .i-off, .tl-sound.is-off .i-on { display: none; }
.tl-sound.is-off .i-off { display: block; }
.tl-sound.is-off { color: rgba(251, 243, 230, .75); }
.tl-back[hidden] { display: none; }
.tl-label {
  display: flex; align-items: center; gap: .5rem; min-width: 0;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.tl-name { overflow: hidden; text-overflow: ellipsis; }
.tl-nowtag {
  font-size: .66rem; letter-spacing: .1em; padding: .1em .45em; border-radius: 4px;
  background: var(--peach); color: #431509; font-weight: 600;
}
.tl-nowtag[hidden] { display: none; }
.tl-track { position: relative; padding-bottom: 1.05rem; min-width: 0; }
.tl-months {
  position: absolute; left: 8px; right: 8px; bottom: 0; display: grid; grid-template-columns: repeat(12, 1fr);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; color: rgba(251, 243, 230, .72); text-align: center; line-height: 1;
  pointer-events: none;
}
.tl-range {
  --loaded: 0; --track: rgba(251, 243, 230, .26);
  -webkit-appearance: none; appearance: none; width: 100%; height: 1.6rem; margin: 0; background: transparent; cursor: pointer; display: block;
}
.tl-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(9,14,18,.55) calc(100% / 12 - 1px) calc(100% / 12)),
    linear-gradient(90deg, rgba(251,243,230,.5) calc(var(--loaded) * 100%), var(--track) calc(var(--loaded) * 100%));
}
.tl-range::-moz-range-track {
  height: 4px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(9,14,18,.55) calc(100% / 12 - 1px) calc(100% / 12)),
    linear-gradient(90deg, rgba(251,243,230,.5) calc(var(--loaded) * 100%), var(--track) calc(var(--loaded) * 100%));
}
.tl-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: var(--peach); border: 2px solid #431509; box-shadow: 0 0 0 3px rgba(246, 201, 143, .25);
}
.tl-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--peach); border: 2px solid #431509; box-shadow: 0 0 0 3px rgba(246, 201, 143, .25);
}
.tl-range:focus-visible { outline: none; }
.tl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--peach); }
.tl-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--peach); }
.no-timelapse .tl-play, .no-timelapse .tl-label, .no-timelapse .tl-track, .no-timelapse .tl-back { display: none; }
.no-timelapse .tl-row { grid-template-columns: minmax(0, 1fr) auto; }
.no-timelapse .tl-sound { grid-column: 2; }

@media (max-width: 640px) {
  .tl-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "play label back sound" "track track track track";
    gap: var(--s-2) var(--s-3); padding-block: var(--s-3);
  }
  .tl-play { grid-area: play; } .tl-label { grid-area: label; } .tl-track { grid-area: track; }
  .tl-back { grid-area: back; } .tl-sound { grid-area: sound; }
  .tl-sound-text { display: none; }
  .tl-sound { width: 2.5rem; padding: 0; }
}

/* Section nav (home) */
.secnav { position: sticky; top: 0; z-index: 5; background: var(--birch); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.secnav .wrap { display: flex; align-items: center; gap: var(--s-1); overflow-x: auto; padding-block: var(--s-2); scrollbar-width: none; }
.secnav .wrap::-webkit-scrollbar { display: none; }
.secnav .brand { margin-right: var(--s-3); font-size: 1.15rem; flex: none; }
.secnav a:not(.brand) { flex: none; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: var(--t-sm); padding: .45em .8em; border-radius: 999px; }
.secnav a:not(.brand):hover { color: var(--ink); background: var(--card); }

section.block { padding-block: var(--s-8) 0; }
.sec-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); max-width: 46rem; }
.sec-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 1.15; }
.sec-head p:not(.eyebrow) { color: var(--ink-soft); }

/* Checklists */
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); min-width: 0; }
.list-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-2); }
.list h3 { font-size: 1.25rem; }
.list .when { font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: var(--s-4); }
.progress { font-size: var(--t-xs); color: var(--ink-soft); white-space: nowrap; }
.list ol { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { border-top: 1px solid var(--line); }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-3); cursor: pointer; }
.check input { appearance: none; width: 1.35rem; height: 1.35rem; margin: .12rem 0 0; border: 2px solid var(--ink-soft); border-radius: 5px; display: grid; place-items: center; cursor: pointer; background: transparent; }
.check input:checked { background: var(--c-arrive); border-color: var(--c-arrive); }
.check input:checked::after { content: ""; width: .38rem; height: .7rem; border: solid var(--card); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check .label { font-weight: 600; display: block; }
.check input:checked + .txt .label { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-soft); }
.check .txt { min-width: 0; }
.check .ref { display: inline-block; margin-top: .1rem; font-size: var(--t-sm); }
.check .sub { display: block; font-size: var(--t-sm); color: var(--ink-soft); margin-top: .1rem; }
.list-foot { margin-top: var(--s-3); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-soft); font: inherit; font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* Topic library */
.tools { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: .5em; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .45em .85em; font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.chip .n { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-soft); font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--birch); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--birch); opacity: .75; }
.search { flex: 1 1 14rem; max-width: 22rem; margin-left: auto; position: relative; }
.search input { width: 100%; font: inherit; font-size: var(--t-sm); padding: .6em .9em .6em 2.2em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.search svg { position: absolute; left: .8em; top: 50%; transform: translateY(-50%); width: 1em; height: 1em; color: var(--ink-soft); }
.cat-block + .cat-block { margin-top: var(--s-7); }
.cat-title { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.cat-title h3 { font-size: 1.25rem; }
.cat-title .mono { color: var(--ink-soft); font-size: var(--t-xs); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s-5); }
.card { display: grid; grid-template-rows: auto 1fr; min-width: 0; text-decoration: none; color: inherit; }
.thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #0d0b0a; aspect-ratio: 16 / 9; max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.dur { position: absolute; right: .5rem; bottom: .5rem; background: rgba(12,10,9,.82); color: #f4ead9; font-size: .78rem; padding: .1em .45em; border-radius: 4px; }
.card-body { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-3); min-width: 0; }
.card-body h4 { font-size: var(--t-md); line-height: 1.3; font-weight: 700; }
.card:hover h4 { color: var(--barn); }
.meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--t-xs); color: var(--ink-soft); }
.tag { border: 1px solid var(--line); border-radius: 4px; padding: 0 .4em; font-family: var(--f-mono); }
.empty { padding: var(--s-6); text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Photo band */
.band { margin-top: var(--s-8); position: relative; color: var(--on-photo); background: #1c2a30; }
.band img { width: 100%; height: clamp(16rem, 42vw, 30rem); object-fit: cover; object-position: 50% 55%; }
.band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6) max(16px, 4vw) var(--s-5); background: linear-gradient(180deg, transparent, rgba(8,14,18,.7)); }
.band figcaption p { max-width: 72rem; margin: 0 auto; font-size: var(--t-lg); font-family: var(--f-display); }

/* Guides (safety) */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.guide { min-width: 0; padding-top: var(--s-4); border-top: 3px solid var(--g, var(--barn)); }
.guide h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.guide .sub { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.guide ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-2); }
.guide .see { margin-top: var(--s-3); font-size: var(--t-sm); }
.info { margin-top: var(--s-7); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.info-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.info dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-4) var(--s-6); }
.info dt { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.info dd { margin: .2rem 0 0; }
.todo { color: var(--ink-soft); font-style: italic; }

/* Offline */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.way { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.way .eyebrow { color: var(--c-water); }
.way ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.offline-status { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--ink-soft); display: flex; align-items: center; gap: var(--s-2); }
.offline-status .dot { --dot: var(--ink-soft); }
.offline-status[data-state="ready"] .dot { --dot: var(--c-arrive); }

/* Lake photo strip */
.strip { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, .8fr); gap: var(--s-3); }
.strip figure { margin: 0; border-radius: 8px; overflow: hidden; height: clamp(12rem, 24vw, 19rem); background: #1c2a30; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip figure { height: 9.5rem; }
  .strip .tall { display: none; }
}

footer.site { margin-top: var(--s-8); border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; padding-block: var(--s-6); font-size: var(--t-sm); color: var(--ink-soft); }

/* ---------- Topic page ---------- */
.topic-head { padding-block: var(--s-7) var(--s-5); display: grid; gap: var(--s-3); }
.topic-head .eyebrow { display: flex; align-items: center; gap: var(--s-2); }
.topic-head h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-2xl); line-height: 1.08; }
.topic-head .summary { font-size: 1.1875rem; color: var(--ink); max-width: 40rem; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #0d0b0a; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player .pending { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s-5); color: #f4ead9; font-weight: 600; }
.player .pending span { background: rgba(10,10,10,.6); padding: .5em 1em; border-radius: 999px; font-size: var(--t-sm); }
.topic-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-4); }
.topic-actions .note { font-size: var(--t-xs); color: var(--ink-soft); flex-basis: 100%; }
.prep { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s-4); }
.prep > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); min-width: 0; }
.prep h2 { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; margin-bottom: var(--s-2); }
.prep ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.steps-head { margin-top: var(--s-7); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.steps-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); }
.steps { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; counter-increment: step; }
.step.no-photo { grid-template-columns: minmax(0, 1fr); }
.step figure { margin: 0; border-radius: 8px; overflow: hidden; background: #0d0b0a; aspect-ratio: 16 / 9; max-width: 100%; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step-body { min-width: 0; display: grid; gap: var(--s-2); align-content: start; }
.step-body h3 { font-size: var(--t-lg); line-height: 1.25; display: flex; gap: var(--s-3); align-items: baseline; }
.step-body h3::before { content: counter(step); font-family: var(--f-display); font-weight: 400; color: var(--barn); font-size: 1.6rem; line-height: 1; min-width: 1.4rem; }
.step-body p { color: var(--ink); }
.jump { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-sm); color: var(--barn); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: .35em; align-items: center; }
.jump .mono { font-size: var(--t-xs); }
.jump svg { width: .85em; height: .85em; flex: none; }
.jump { white-space: nowrap; }
.callouts { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
.callout { border-radius: var(--radius); padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-2); }
.callout h2 { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.callout ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-2); }
.callout.tip { background: var(--tip-bg); }
.callout.tip h2 { color: var(--c-arrive); }
.callout.warn { background: var(--warn-bg); }
.callout.warn h2 { color: var(--barn); }
.callout.season { background: var(--card); border: 1px solid var(--line); }
.callout.season h2 { color: var(--c-water); }
.callout.note { background: var(--card); border: 1px dashed var(--line); }
.callout.note h2 { color: var(--ink-soft); }
.callout .season-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); gap: var(--s-4); align-items: start; }
.callout .season-grid figure { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.callout .season-grid img { width: 100%; height: 100%; object-fit: cover; }
.related { margin-top: var(--s-7); }
.related h2 { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; margin-bottom: var(--s-3); }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--s-4); }
.pager { margin-top: var(--s-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.pager a { display: grid; gap: .1rem; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); min-width: 0; }
.pager a:hover { border-color: var(--ink-soft); }
.pager .next { text-align: right; }
.pager .eyebrow { font-size: .72rem; }
.pager strong { font-size: var(--t-sm); }

@media (max-width: 960px) {
  .lists, .guides, .ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .callout .season-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero::after { background: linear-gradient(180deg, rgba(8,14,18,.5) 0%, rgba(8,14,18,.46) 30%, rgba(8,14,18,.62) 60%, rgba(8,14,18,.88) 100%); }
  section.block { padding-block: var(--s-7) 0; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .card { grid-template-columns: 9.5rem minmax(0, 1fr); grid-template-rows: auto; gap: var(--s-3); align-items: start; }
  .card-body { padding-top: 0; }
  .card-body h4 { font-size: var(--t-sm); }
  .list, .info, .way { padding: var(--s-4); }
  .hero { min-height: 40rem; }
  .hero-inner { padding-block: var(--s-7) var(--s-5); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { text-align: left; }
}

/* ---------- Calendar ---------- */
:root {
  --fam-engel: #93311f; --fam-beers: #2f5240; --fam-cathey: #24485a; --fam-grondahl: #8a6510; --on-fam: #fbf3e6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fam-engel: #e58368; --fam-beers: #8cc1a0; --fam-cathey: #86b6c8; --fam-grondahl: #e2b54f; --on-fam: #121714; }
}
:root[data-theme="dark"] { --fam-engel: #e58368; --fam-beers: #8cc1a0; --fam-cathey: #86b6c8; --fam-grondahl: #e2b54f; --on-fam: #121714; }
.fam-engel { --fam: var(--fam-engel); }
.fam-beers { --fam: var(--fam-beers); }
.fam-cathey { --fam: var(--fam-cathey); }
.fam-grondahl { --fam: var(--fam-grondahl); }
.cal-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--fam, var(--ink-soft)); display: inline-block; flex: none; }

.cal-banner {
  margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--ink); text-decoration: none; font-size: var(--t-sm);
}
.cal-banner:hover { border-color: var(--ink-soft); }
.cal-banner [data-cal-text] { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .1em .45em; min-width: 0; }
.cal-banner-go { color: var(--barn); font-weight: 700; white-space: nowrap; }

.cal-page .topic-head { max-width: 46rem; }
.now-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-4); }
.now-card { border-radius: var(--radius); padding: var(--s-4) var(--s-5); background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--fam); display: grid; gap: var(--s-1); min-width: 0; }
.now-card .eyebrow { color: var(--ink-soft); }
.now-fam { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.1; color: var(--fam); }
.now-when { font-weight: 600; }
.now-extra { font-size: var(--t-sm); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.cal-section { margin-top: var(--s-7); }
.cal-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.cal-section-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); }
.cal-lede { max-width: 46rem; color: var(--ink-soft); margin-bottom: var(--s-4); }
.cal-foot { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-soft); max-width: 50rem; }

.timeline { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3) var(--s-4) var(--s-4); }
.tl-months { position: relative; height: 1.5rem; }
.tl-month { position: absolute; top: 0; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: .3rem; white-space: nowrap; overflow: hidden; }
.tl-lanes { position: relative; height: 3.2rem; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7)); border-radius: 6px; }
.tl-block { position: absolute; top: .35rem; bottom: .35rem; background: var(--fam); color: var(--on-fam); border-radius: 5px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: var(--t-xs); font-weight: 700; min-width: 4px; box-shadow: 0 0 0 1px var(--card); }
.tl-block span { padding: 0 .3rem; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.tl-block.is-fall { top: .8rem; bottom: .8rem; }
.tl-today { position: absolute; top: -.2rem; bottom: -.2rem; width: 2px; background: var(--ink); }
.tl-today span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: .7rem; font-family: var(--f-mono); color: var(--ink); white-space: nowrap; margin-top: .15rem; }

.fam-grid { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.fam-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--fam); border-radius: var(--radius); padding: var(--s-4); min-width: 0; }
.fam-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.fam-head h3 { font-size: var(--t-lg); }
.fam-card dl { margin: 0; display: grid; gap: .15rem; }
.fam-card dt { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-top: var(--s-2); }
.fam-card dt:first-child { margin-top: 0; }
.fam-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fam-card dd.muted { font-weight: 400; }
.fam-card .note { font-weight: 400; color: var(--ink-soft); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.rot-table { width: 100%; border-collapse: collapse; min-width: 40rem; font-variant-numeric: tabular-nums; }
.rot-table th, .rot-table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rot-table tbody tr:last-child th, .rot-table tbody tr:last-child td { border-bottom: 0; }
.rot-table thead th { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.rot-table tbody th { font-weight: 700; white-space: nowrap; }
.rot-table .est { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-soft); font-weight: 400; }
.pill { display: inline-block; background: var(--fam); color: var(--on-fam); font-weight: 700; font-size: var(--t-sm); padding: .1em .6em; border-radius: 999px; }
.td-dates { display: block; font-size: var(--t-xs); color: var(--ink-soft); margin-top: .25rem; white-space: nowrap; }
.cal-fall-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.cal-fall-actions .offline-status { margin-top: 0; }
#cal-status[data-state="live"] .dot { --dot: var(--c-arrive); }

@media (max-width: 960px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .fam-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-block span { display: none; }
  .tl-month { font-size: .65rem; }
}
.now-card.is-closed { border-left-color: var(--ink-soft); }
.now-card.is-closed .now-fam { color: var(--ink); }
