/* Rogue Valley, Actually. Direction E: one stylesheet for every page the engine renders
   (home, fire incident, town air). Tokens first, then components, then page layouts.

   Two registers, one system:
   - Editorial (home hero, weekend): the red pen corrects a guess with a measurement.
   - Utility (fire, air, pass pages): no pen, no jokes. Facts, freshness, safety.
   The pen colour is reserved for corrections; it never marks danger. */

/* ---------- tokens ---------- */
:root {
  --paper: #eef0e6;
  --paper-2: #e4e8da;
  --paper-3: #d8decb;
  --card: #f7f8f2;
  --ink: #17302b;
  --ink-2: #47574f;
  --ink-3: #6b7a71;
  --rule: rgba(23, 48, 43, .16);
  --rule-strong: rgba(23, 48, 43, .55);
  --on-ink: #eef0e6;
  --on-ink-2: #b9c6bd;
  --on-ink-rule: rgba(238, 240, 230, .16);

  --river: #2b6a86;
  --river-soft: #8db7c6;
  --pear: #d3da4e;
  --pen: #b3263a;
  --ember: #c2502f;
  --contour: #9c6b3e;
  --stale: #8a8f86;

  --q1: #5e9e64; --q2: #d9bc3a; --q3: #e0913a; --q4: #c8553d; --q5: #8a4a8e; --q6: #6b2737;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;

  --t-xs: .8125rem; --t-s: .9375rem; --t-m: 1.0625rem; --t-l: 1.3125rem;
  --t-xl: 1.625rem; --t-2xl: 2.125rem; --t-3xl: 2.75rem;

  --gut: clamp(1.1rem, 3.4vw, 2.75rem);
  --max: 1320px;
  --radius: 4px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-m); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--river); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
section[id], article[id] { scroll-margin-top: 1rem; }

/* ---------- masthead ---------- */
.mast { border-bottom: 1px solid var(--rule); }
.mast-in { display: flex; align-items: baseline; gap: 1.6rem; padding-block: 1.05rem .95rem; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1; letter-spacing: -.012em; text-decoration: none; white-space: nowrap; }
.brand-b { position: relative; font-style: italic; font-weight: 500; }
.brand-b::after { /* the pen's one permanent mark */
  content: ""; position: absolute; left: -1px; right: -3px; bottom: -.2em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5 C 28 2.5, 62 6.5, 99 3' fill='none' stroke='%23b3263a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.mast-tag { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: var(--t-m); }
.nav { margin-left: auto; display: flex; gap: 1.5rem; font-family: var(--cond); font-weight: 500; font-size: var(--t-m); }
.nav a { text-decoration: none; padding-block: .2rem; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.alert-bar { background: #f3d37a; color: #3d2d00; font-size: var(--t-s); }
.alert-in { padding-block: .6rem; }

/* ---------- shared atoms ---------- */
.stamp { font-family: var(--cond); font-size: var(--t-s); color: var(--ink-3); line-height: 1.4; margin-top: .9rem; }
.fine { font-size: var(--t-xs); color: var(--ink-3); margin-top: .7rem; }
.sub-h { font-family: var(--cond); font-weight: 600; font-size: var(--t-s); color: var(--ink-2); letter-spacing: .01em; margin-bottom: .7rem; }
.tag-sample { font-family: var(--cond); font-weight: 600; font-size: var(--t-xs); color: var(--pen); border: 1px dashed currentColor; border-radius: 999px; padding: .05rem .6rem; white-space: nowrap; }
.readout { display: flex; align-items: baseline; gap: .4rem; }
.num { font-family: var(--cond); font-weight: 500; font-size: var(--t-3xl); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.unit { font-family: var(--cond); font-size: var(--t-s); color: var(--ink-3); }
.readout-s .num { font-size: var(--t-2xl); }
.chip {
  font-family: var(--cond); font-weight: 500; font-size: var(--t-m);
  background: transparent; border: 1px solid var(--rule-strong); color: var(--ink);
  border-radius: 999px; padding: .32rem .95rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill { font-family: var(--cond); font-weight: 600; font-size: var(--t-xs); border-radius: 999px; padding: .12rem .6rem; white-space: nowrap; }
.pill-active { background: var(--ember); color: #fff; }
.pill-contained { background: var(--paper-3); color: var(--ink-2); }
.pill-stale { background: transparent; color: var(--ink-2); border: 1px solid var(--stale); }
.contain { display: block; height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.contain-fill { display: block; height: 100%; background: var(--ink); border-radius: 3px; }

/* ---------- hero: the correction ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.hero-q { font-family: var(--cond); font-weight: 500; font-size: var(--t-l); color: var(--ink-2); }
.correction { margin-top: clamp(.6rem, 1.5vw, 1.2rem); min-height: clamp(15rem, 24vw, 21rem); }
.guess { max-width: 100%; }
.guess-text {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem);
  line-height: 1.12; letter-spacing: -.02em; color: var(--ink-3);
  /* the pen: a hand-drawn stroke per line fragment, so it survives wrapping */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5 C 40 4.5, 80 9, 120 6 S 175 4, 198 6.5' fill='none' stroke='%23b3263a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 60% / 100% .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .04em;
}
.correction.is-new .guess-text { animation: pen .5s cubic-bezier(.6, .05, .3, 1) both; }
@keyframes pen { from { background-size: 0% .2em; } to { background-size: 100% .2em; } }
.correction.is-new .answer, .correction.is-new .answer-list { animation: ink .4s .15s ease both; }
@keyframes ink { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.answer {
  display: flex; gap: .3em; align-items: flex-start; margin-top: .35em;
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 1.25rem + 3.1vw, 4.1rem);
  line-height: 1.06; letter-spacing: -.02em; max-width: 19ch; text-wrap: balance;
}
.caret { flex: none; width: .5em; height: .5em; margin-top: .32em; margin-left: -.06em; }
.caret path { fill: none; stroke: var(--pen); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.answer-list { margin-top: 1rem; border-top: 1px solid var(--rule); max-width: 38rem; }
.answer-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: var(--t-m); }
.answer-list b { font-family: var(--cond); font-weight: 600; color: var(--ink-2); }
.correction .stamp { max-width: 52ch; font-size: var(--t-m); }
.asks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.board { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.2rem; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--on-ink-rule); }
.board-head h2 { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); }
.board-clock { font-family: var(--cond); font-size: var(--t-s); color: var(--on-ink-2); display: flex; gap: .7rem; align-items: center; }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--on-ink-2); margin-right: .4rem; vertical-align: 1px; }
.live[data-s="live"]::before { background: var(--pear); box-shadow: 0 0 0 3px rgba(211, 218, 78, .18); }
.live[data-s="partial"]::before { background: var(--q3); }
.live[data-s="down"]::before { background: var(--q4); }
.brow {
  width: 100%; text-align: left; background: none; border: 0; color: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .05rem 1rem; align-items: baseline;
  padding: .8rem .2rem .8rem .75rem; margin-left: -.75rem; width: calc(100% + .75rem);
  border-bottom: 1px solid var(--on-ink-rule); border-left: 3px solid transparent;
  transition: border-color .18s ease, background-color .18s ease;
}
.board-rows li:last-child .brow { border-bottom: 0; }
.brow:hover { background: rgba(238, 240, 230, .04); }
.brow[aria-current="true"] { border-left-color: var(--pear); }
.brow-k { font-family: var(--cond); font-weight: 500; font-size: var(--t-s); color: var(--on-ink-2); }
.brow-v { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--cond); font-weight: 500; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.brow-v small { font-size: var(--t-s); color: var(--on-ink-2); margin-left: .2rem; font-weight: 400; }
.brow-n { font-size: var(--t-m); line-height: 1.3; }
.brow[data-state="loading"] .brow-v, .brow[data-state="down"] .brow-v { color: #6f8279; }
.brow[data-state="stale"] .brow-v { color: var(--on-ink-2); text-decoration: line-through; text-decoration-color: rgba(238, 240, 230, .4); }
.board-foot { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--on-ink-rule); font-size: var(--t-xs); color: var(--on-ink-2); }
.q-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .3em; vertical-align: .08em; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.hero + .sec { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.sec-alt { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .6rem 2.5rem; align-items: end; padding-bottom: 1.2rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1.5px solid currentColor; }
.sec-h { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.02; letter-spacing: -.02em; }
.sec-dek { color: var(--ink-2); max-width: 54ch; }
.sec-ink .sec-dek { color: var(--on-ink-2); }
.sec-head .tag-sample { justify-self: end; }
.sec-ink .tag-sample { color: var(--pear); }

/* fires */
.fires-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.list-h { font-family: var(--serif); font-size: var(--t-l); margin-bottom: .8rem; }
.fire-list { border-top: 1.5px solid var(--ink); }
.fire-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .85rem 0 .95rem; border-bottom: 1px solid var(--rule); }
.fire-row a.fire-name { font-family: var(--serif); font-weight: 600; font-size: var(--t-l); line-height: 1.2; text-decoration: none; }
.fire-row a.fire-name:hover { text-decoration: underline; }
.fire-dist { font-family: var(--cond); font-weight: 500; font-size: var(--t-l); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fire-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-family: var(--cond); font-size: var(--t-s); color: var(--ink-2); }
.fire-meta .contain { width: 70px; display: inline-block; vertical-align: middle; }
.m-cont { display: inline-flex; align-items: center; gap: .5rem; }
.fire-row.is-stale .fire-dist, .fire-row.is-stale .fire-meta .m-size { color: var(--stale); }
.fire-row.is-contained a.fire-name { color: var(--ink-2); font-weight: 500; }
.fire-row:hover { background: linear-gradient(90deg, transparent, rgba(23, 48, 43, .03)); }
.fire-row.is-hot a.fire-name { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; }
.fire-empty { padding: 1rem 0; font-family: var(--serif); font-size: var(--t-l); }
.notice { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: var(--t-s); line-height: 1.5; }
.notice-inline { margin-top: 1.4rem; }

/* map */
.mapfig { margin: 0; }
.map-frame { position: relative; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.map { display: block; width: 100%; height: auto; }
.map-cap { font-family: var(--serif); font-style: italic; font-size: var(--t-s); color: var(--ink-2); margin-top: .55rem; }
.terrain image { opacity: .92; }
.ct { fill: none; stroke: var(--contour); stroke-width: .7; opacity: .36; }
.ct-idx { stroke-width: 1.2; opacity: .5; }
.m-river { fill: none; stroke: var(--river); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-creek { fill: none; stroke: var(--river); stroke-width: 1.5; stroke-linecap: round; opacity: .8; }
.m-lake { fill: #9cc3cf; stroke: var(--river); stroke-width: 1.2; }
.m-road { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 5; stroke-linecap: round; }
.m-road-core { fill: none; stroke: #6d5f50; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 7 4; }
.m-road-major { stroke-dasharray: none; stroke: #5d5144; stroke-width: 2; }
.m-ring { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .55; }
.m-ring-label { font-family: var(--cond); font-weight: 600; font-size: 15px; fill: var(--ink-2); paint-order: stroke; stroke: rgba(238, 240, 230, .9); stroke-width: 4px; }
.m-town { fill: var(--ink); }
.m-town-label { font-family: var(--cond); font-weight: 600; font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: rgba(238, 240, 230, .9); stroke-width: 4px; stroke-linejoin: round; }
.m-town-label.minor { font-weight: 500; font-size: 15px; fill: var(--ink-2); }
.m-home { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.m-home-label { font-family: var(--serif); font-weight: 600; font-size: 24px; fill: var(--ink); paint-order: stroke; stroke: rgba(238, 240, 230, .92); stroke-width: 5px; stroke-linejoin: round; }
.m-fire { cursor: pointer; }
.m-fire .f-halo { fill: var(--ember); opacity: .18; transition: opacity .2s ease; }
.m-fire .f-dot { fill: var(--ember); stroke: #fff; stroke-width: 2.5; }
.m-fire.is-contained .f-dot { fill: var(--stale); }
.m-fire.is-contained .f-halo { fill: var(--stale); }
.m-fire .f-label { font-family: var(--cond); font-weight: 600; font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: rgba(238, 240, 230, .94); stroke-width: 4.5px; stroke-linejoin: round; }
.m-fire .f-sub { font-family: var(--cond); font-weight: 500; font-size: 14px; fill: var(--ink-2); paint-order: stroke; stroke: rgba(238, 240, 230, .94); stroke-width: 4px; }
.m-fire:hover .f-halo, .m-fire.is-focus .f-halo, .m-fire:focus-visible .f-halo { opacity: .38; }
.m-fire:focus { outline: none; }
.m-fire .f-arrow { fill: var(--ember); }
.m-fire.is-contained .f-arrow { fill: var(--stale); }
.m-line { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; fill: none; }
.m-line-label { font-family: var(--cond); font-weight: 600; font-size: 18px; fill: var(--ink); paint-order: stroke; stroke: rgba(238, 240, 230, .94); stroke-width: 5px; }

/* air */
.air-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.aqi-k { font-family: var(--cond); font-weight: 600; font-size: var(--t-s); color: var(--ink-2); }
.aqi-v { display: flex; align-items: baseline; gap: .5rem; margin-top: .2rem; }
.aqi-num { font-family: var(--cond); font-weight: 500; font-size: clamp(4.5rem, 3rem + 4vw, 6.5rem); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.aqi-unit { font-family: var(--cond); color: var(--ink-3); }
.aqi-cat { font-family: var(--serif); font-size: var(--t-xl); margin-top: .3rem; }
.aqi-scale { width: 100%; max-width: 300px; height: 26px; margin-top: .7rem; overflow: visible; }
.aqi-scale .q1 { fill: var(--q1); } .aqi-scale .q2 { fill: var(--q2); } .aqi-scale .q3 { fill: var(--q3); }
.aqi-scale .q4 { fill: var(--q4); } .aqi-scale .q5 { fill: var(--q5); } .aqi-scale .q6 { fill: var(--q6); }
.aqi-tick { fill: var(--ink); }
.aqi-tip { margin-top: .6rem; color: var(--ink-2); max-width: 36ch; }
[data-state="down"] .aqi-num, [data-state="loading"] .aqi-num { color: var(--stale); }
.towns, .escapes { border-top: 1.5px solid var(--ink); }
.towns li, .escapes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; align-items: center; padding: .62rem 0; border-bottom: 1px solid var(--rule); }
.t-name { font-family: var(--serif); font-size: var(--t-l); line-height: 1.2; }
.t-name small { display: block; font-family: var(--cond); font-size: var(--t-s); color: var(--ink-3); }
.t-aqi { font-family: var(--cond); font-weight: 600; font-size: var(--t-l); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .45rem; }
.t-aqi .q-dot { width: .7rem; height: .7rem; }
.t-flag { margin-left: .5rem; font-family: var(--cond); font-weight: 600; font-size: var(--t-xs); color: #fff; background: var(--q1); border-radius: 999px; padding: .02rem .5rem; vertical-align: .2em; }

/* trio: weather, pass, river */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); }
.panel { border-top: 1.5px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; }
.panel-h { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); line-height: 1.15; margin-bottom: .9rem; }
.panel-sub { display: block; font-family: var(--cond); font-weight: 500; font-size: var(--t-s); color: var(--ink-3); margin-top: .15rem; }
.panel .num { font-size: 3.5rem; }
.panel-line { font-family: var(--serif); font-size: var(--t-l); margin-top: .35rem; }
.kv { margin-top: 1rem; border-top: 1px solid var(--rule); }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.kv dt { color: var(--ink-2); font-size: var(--t-s); }
.kv dd { font-family: var(--cond); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.caution { margin-top: 1rem; font-size: var(--t-s); padding-left: .8rem; border-left: 3px solid var(--q2); }
.panel .stamp { margin-top: auto; padding-top: 1rem; }
.panel[data-state="down"] .num, .panel[data-state="loading"] .num { color: var(--stale); }
.spark { display: block; width: 100%; height: 48px; margin-top: .6rem; }
.spark-line { fill: none; stroke: var(--river); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(43, 106, 134, .12); }

/* horizon band: the valley itself, in the house duotone */
.horizon { position: relative; margin: 0; background: var(--ink); }
.horizon img { width: 100%; height: clamp(180px, 24vw, 340px); object-fit: cover; object-position: center 62%; filter: grayscale(1) contrast(1.2) brightness(.95); mix-blend-mode: screen; }
.horizon::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #e9edc6, var(--pear)); mix-blend-mode: multiply; opacity: .92; }
.horizon figcaption { position: absolute; z-index: 1; left: var(--gut); bottom: .8rem; right: var(--gut); font-family: var(--serif); font-style: italic; font-size: var(--t-s); color: var(--on-ink); text-shadow: 0 1px 8px rgba(15, 35, 30, .8); }

/* weekend: the editorial register returns */
.struck-word { position: relative; color: var(--on-ink-2); font-style: italic; font-weight: 400; margin-right: .35em; text-decoration: none; }
.struck-word::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--pen); border-radius: 1em; transform: rotate(-2deg); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.pick { border-top: 1px solid var(--on-ink-rule); padding-top: 1rem; }
.pick-when { font-family: var(--cond); font-weight: 600; font-size: var(--t-s); color: var(--pear); }
.pick-h { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); line-height: 1.15; margin: .35rem 0 .3rem; }
.pick-where { font-family: var(--cond); font-size: var(--t-s); color: var(--on-ink-2); margin-bottom: .6rem; }
.pick p:last-child { color: #dfe5dc; font-size: var(--t-m); }
.facts { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.facts-h { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--t-2xl); line-height: 1.1; }
.facts-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--on-ink-rule); }
.facts-list li:last-child { border-bottom: 1px solid var(--on-ink-rule); }
.facts-list span { font-family: var(--serif); font-style: italic; color: var(--pear); }

/* newsletter */
.letter-sec { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.letter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.letter-h { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.05; margin-bottom: .5rem; }
.letter p { color: var(--ink-2); max-width: 48ch; }
.letter-form label { display: block; font-family: var(--cond); font-weight: 600; font-size: var(--t-s); margin-bottom: .4rem; }
.letter-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.letter-row input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: .7rem 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card); color: var(--ink); }
.letter-row button { font-family: var(--cond); font-weight: 600; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: .7rem 1.2rem; }
.letter-row :disabled { cursor: not-allowed; opacity: .7; }

/* footer */
.foot { background: var(--paper-2); padding-block: 2.5rem 3rem; font-size: var(--t-s); color: var(--ink-2); }
.foot .notice { margin-bottom: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 2rem; }
.brand-foot { font-size: 1.35rem; color: var(--ink); margin-bottom: .6rem; }
.foot-h { font-family: var(--serif); font-weight: 500; font-size: var(--t-m); color: var(--ink); margin-bottom: .5rem; }
.sources li { margin-bottom: .45rem; line-height: 1.45; }
.src { font-family: var(--cond); font-weight: 600; font-size: var(--t-xs); padding: 0 .4rem; border-radius: 3px; background: var(--paper-3); white-space: nowrap; }
.src.ok { background: #cfe3c9; color: #24502c; }
.src.fail { background: #f0d2c8; color: #7a2b18; }

/* ---------- utility page: fire incident ---------- */
.labbar { background: repeating-linear-gradient(135deg, #f3e9c7 0 10px, #efe3bb 10px 20px); border-bottom: 1px dashed #b49a4a; font-size: var(--t-s); }
.labbar-in { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; padding-block: .5rem; }
.labbar-opts { display: flex; gap: .4rem; }
.labbar-opts button { font-family: var(--cond); font-weight: 600; font-size: var(--t-s); background: transparent; border: 1px solid #8a7330; border-radius: 999px; padding: .15rem .8rem; color: #4a3b10; }
.labbar-opts button[aria-pressed="true"] { background: #4a3b10; color: #f3e9c7; border-color: #4a3b10; }

.fire-page { padding-block: 1.4rem clamp(3rem, 6vw, 5rem); }
.crumbs { font-family: var(--cond); font-size: var(--t-s); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs span[aria-hidden] { color: var(--ink-3); }
.fire-head { padding-block: clamp(1.5rem, 4vw, 2.8rem) clamp(1.25rem, 3vw, 2rem); border-bottom: 1.5px solid var(--ink); }
.fire-status { display: flex; align-items: center; gap: .7rem; font-family: var(--cond); font-weight: 500; color: var(--ink-2); }
.fire-h { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.022em; margin-top: .6rem; text-wrap: balance; }
.fire-lede { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.35; max-width: 46ch; margin-top: .9rem; color: var(--ink); text-wrap: pretty; }
.stale-banner { margin-top: 1.4rem; background: var(--card); border: 1px solid var(--stale); border-left: 4px solid var(--stale); border-radius: var(--radius); padding: .9rem 1.1rem; }
.fire-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-top: clamp(1.5rem, 3vw, 2.4rem); align-items: start; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; border-top: 1px solid var(--rule); }
.fact { padding: .95rem 0 1rem; border-bottom: 1px solid var(--rule); }
.fact-wide { grid-column: 1 / -1; }
.fact dt { font-family: var(--cond); font-weight: 500; font-size: var(--t-s); color: var(--ink-2); margin-bottom: .25rem; }
.fact dd { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.fact-v { font-family: var(--cond); font-weight: 500; font-size: var(--t-3xl); line-height: 1; font-variant-numeric: tabular-nums; }
.fact-n { font-family: var(--cond); font-size: var(--t-m); color: var(--ink-2); }
.fact-t, .fact-v.is-text { font-family: var(--serif); font-size: var(--t-l); line-height: 1.25; font-weight: 400; }
.fact-wide dd { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.fact-wide .contain { height: 10px; border-radius: 5px; }
.fire-page[data-fresh="stale"] .fact-v, .fire-page[data-fresh="stale"] [data-f="updated"] { color: var(--stale); }
.fire-page[data-fresh="stale"] .contain-fill { background: var(--stale); }
.fire-page[data-fresh="stale"] [data-f="updatedAgo"] { color: var(--ink); font-weight: 600; }

.fire-map .m-town-label { font-size: 24px; stroke-width: 5px; }
.fire-map .m-town-label.minor { display: none; }
.fire-map .m-home-label { font-size: 32px; stroke-width: 6px; }
.fire-map .f-label { font-size: 30px; stroke-width: 6px; }
.fire-map .f-sub { font-size: 22px; }
.fire-map .m-line-label { font-size: 26px; stroke-width: 6px; }
.notice-safety { margin-top: clamp(2rem, 4vw, 3rem); border-left-width: 6px; padding: 1.3rem 1.5rem; background: var(--card); }
.notice-h { font-family: var(--serif); font-weight: 600; font-size: var(--t-xl); line-height: 1.2; margin-bottom: .5rem; }
.notice-safety > p { font-size: var(--t-m); max-width: 64ch; }
.notice-links { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0; }
.notice-links a { display: inline-block; font-family: var(--cond); font-weight: 600; text-decoration: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: .25rem .85rem; background: var(--paper); }
.notice-links a:hover { border-color: var(--ink); }
.notice-911 { font-family: var(--cond); font-weight: 600; font-size: var(--t-l) !important; }

.related { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.fire-list-compact .fire-row a.fire-name { font-size: var(--t-m); }
.fire-list-compact .fire-dist { font-size: var(--t-m); }
.related-air { border-top: 1.5px solid var(--ink); padding-top: 1rem; }
.related-air .sub-h { margin-bottom: .4rem; }
.related-air p:last-child { margin-top: .6rem; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .mast-tag { display: none; }
  .air-grid { grid-template-columns: 1fr 1fr; }
  .aqi-hero { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 2rem; align-items: end; }
  .aqi-hero .aqi-k, .aqi-hero .aqi-v { grid-column: 1; }
  .aqi-hero > :not(.aqi-k):not(.aqi-v) { grid-column: 2; }
  .aqi-hero .aqi-cat { grid-row: 1; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .correction { min-height: 0; }
  .fires-grid, .fire-grid, .related { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .facts, .letter { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .tag-sample { justify-self: start; }
}
@media (max-width: 640px) {
  :root { --t-3xl: 2.4rem; }
  .mast-in { flex-wrap: wrap; row-gap: .55rem; padding-block: .9rem .75rem; }
  .brand { font-size: 1.4rem; }
  .nav { margin-left: 0; width: 100%; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; font-size: var(--t-m); }
  .hero { padding-top: 1.75rem; }
  .guess-text { font-size: 2.3rem; }
  .answer { font-size: 2.15rem; max-width: none; }
  .asks { gap: .4rem; }
  .chip { font-size: var(--t-s); padding: .3rem .8rem; }
  .board { padding: 1.05rem 1.1rem; margin-inline: calc(-1 * var(--gut) + .5rem); }
  .brow-v { font-size: 1.6rem; }
  .air-grid { grid-template-columns: 1fr; }
  .aqi-hero { display: block; }
  .answer-list li { grid-template-columns: 1fr; gap: 0; }
  .facts-list li { grid-template-columns: 1fr; gap: .1rem; }
  .m-town-label { font-size: 34px; stroke-width: 7px; }
  .m-town-label.minor { display: none; }
  .m-home-label { font-size: 42px; stroke-width: 8px; }
  .m-ring-label { font-size: 28px; }
  .m-fire .f-label { font-size: 34px; stroke-width: 7px; }
  .m-fire .f-sub { font-size: 26px; }
  .fire-map .m-town-label { font-size: 34px; }
  .fire-map .m-home-label { font-size: 42px; }
  .fire-map .f-label { font-size: 40px; }
  .fire-map .f-sub { font-size: 30px; }
  .fire-map .m-line-label { font-size: 36px; }
  .m-ring-label { font-size: 24px; }
  .m-line-label { font-size: 30px; stroke-width: 7px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact-v { font-size: 2rem; }
  .fact-t { font-size: var(--t-m); }
  .notice-safety { padding: 1.1rem 1.1rem; }
  .labbar-in { padding-block: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ---------- engine pages (added for the renderer) ---------- */
.sec-h a, .panel-h a { color: inherit; text-decoration: none; }
.sec-h a:hover, .panel-h a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.single { max-width: 34rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.idx-sec { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.fire-page .air-grid { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.t-name { color: inherit; }
a.t-name { text-decoration: none; }
a.t-name:hover { text-decoration: underline; }

/* ---------- events ---------- */
.picks-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(1.4rem, 3vw, 2.2rem); }
.pick-h a { color: inherit; text-decoration: none; }
.pick-h a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.pick-cat { font-family: var(--cond); font-size: var(--t-s); letter-spacing: .02em; opacity: .75; }
a.tag-link { text-decoration: none; }
.ev-switch { margin-top: .6rem; font-family: var(--cond); }
.ev-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: clamp(1.2rem, 3vw, 2rem) 0 .5rem; }
.ev-day { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.ev-day-h { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.6rem); padding-bottom: .5rem; border-bottom: 1.5px solid var(--ink); margin: 0; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .4rem 1.2rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ev-row[hidden] { display: none; }
.ev-time { font-family: var(--cond); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ev-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ev-title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.ev-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.ev-where { font-size: var(--t-s); color: var(--ink-2); }
.ev-cat { font-family: var(--cond); font-size: var(--t-s); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .6rem; white-space: nowrap; }
@media (max-width: 900px) { .picks-6 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ev-row { grid-template-columns: 1fr auto; }
  .ev-time { grid-column: 1 / -1; }
}
.tag-link { border-style: solid !important; }

/* ---------- photos ---------- */
.horizon-photo img { filter: none; mix-blend-mode: normal; height: clamp(220px, 30vw, 460px); object-position: center 55%; }
.horizon-photo::after { background: linear-gradient(180deg, rgba(15, 35, 30, 0) 55%, rgba(15, 35, 30, .55)); mix-blend-mode: normal; opacity: 1; }
.photo-strip { margin-top: clamp(2.5rem, 5vw, 4rem); }
.photo-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1rem); }
.photo-grid figure { margin: 0; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-grid figcaption { font-family: var(--serif); font-style: italic; font-size: var(--t-s); margin-top: .45rem; opacity: .9; }
.photo-credit { font-size: var(--t-xs); opacity: .7; margin-top: .8rem; }
.sec-ink .photo-credit a { color: inherit; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- interactive map ---------- */
.rv-map { width: 100%; aspect-ratio: 900 / 1004; }
.rv-map-fire { width: 100%; aspect-ratio: 900 / 700; }
.map-fallback { padding: 1.5rem; font-size: var(--t-s); color: var(--ink-2); }
@media (max-width: 640px) { .rv-map { aspect-ratio: 4 / 5; } .rv-map-fire { aspect-ratio: 1 / 1; } }

/* ---------- towns, news, event pages ---------- */
.town-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; margin: clamp(1.2rem, 3vw, 2rem) 0; padding: 0; }
.town-glance div { border-top: 1.5px solid var(--ink); padding-top: .6rem; }
.town-glance dt { font-family: var(--cond); font-size: var(--t-s); color: var(--ink-2); }
.town-glance dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.2rem; }
.town-glance dd a { color: inherit; }
.town-fc, .town-notices, .town-events { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.fc-list, .news-list { list-style: none; margin: 0; padding: 0; }
.fc-list li { display: grid; grid-template-columns: 9rem 4rem 1fr; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fc-list b { font-family: var(--cond); font-weight: 600; }
.fc-t { font-family: var(--cond); font-weight: 600; font-size: 1.15rem; }
.news-list li { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.news-list a { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.news-list a:hover { text-decoration: underline; text-underline-offset: .18em; }
.news-list span { font-size: var(--t-s); color: var(--ink-2); }
.news-cols { columns: 2 22rem; column-gap: clamp(1.5rem, 4vw, 3rem); }
.news-cols li { break-inside: avoid; }
.ev-go { font-family: var(--cond); font-weight: 600; }
.towns small { display: block; font-family: var(--cond); font-size: var(--t-xs); color: var(--ink-2); }
@media (max-width: 640px) { .fc-list li { grid-template-columns: 1fr auto; } .fc-list li span:last-child { grid-column: 1 / -1; } }
.fire-page .others { margin-top: clamp(1.6rem, 3.5vw, 2.4rem); font-size: var(--t-s); line-height: 2; }
