/* ─────────────────────────────────────────────────────────────────────────
   Leslieville Stink Reporter — design system
   Translated from the Stink Tracker prototype (Claude Design, 2026-05-01)
   Type: Fraunces (headlines) + Inter (body) + JetBrains Mono (data ticks)
   ───────────────────────────────────────────────────────────────────────── */

:root {
    --bg: #FAF7F2;
    --ink: #1B1B1B;
    --ink-65: rgba(27, 27, 27, 0.65);
    --ink-50: rgba(27, 27, 27, 0.5);
    --ink-12: rgba(27, 27, 27, 0.12);
    --ink-08: rgba(27, 27, 27, 0.08);
    --paper: #FFFEFB;
    --tile: #EFE9DC;
    --rule: rgba(27, 27, 27, 0.08);

    --accent: #DA291C;
    --amber: #FFB347;
    --sage: #7FA88F;

    /* Heat ramp — wheat → amber → burnt sienna → ox-blood */
    --heat-0: #F4EFE3;
    --heat-1: #EFE3C2;
    --heat-2: #E5D08A;
    --heat-3: #E5A756;
    --heat-4: #C97A35;
    --heat-5: #B8552A;
    --heat-6: #8E331C;
    --heat-7: #6B1F12;

    --serif: 'Fraunces', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --max: 1320px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(27, 27, 27, 0.55);
    margin-bottom: 12px;
}

/* ── Top nav ───────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
}
.nav-inner {
    max-width: var(--max); margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--serif);
    font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
    text-decoration: none; color: inherit;
}
.brand-mark {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
    padding: 8px 12px; border-radius: 8px;
    background: transparent; border: 0;
    font-family: var(--sans); font-size: 14px; font-weight: 500;
    color: var(--ink-65);
    text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: rgba(27, 27, 27, 0.05); }
.nav-link.active { color: var(--ink); background: rgba(27, 27, 27, 0.08); }
.live-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(218, 41, 28, 0.1); color: var(--accent);
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ── Streetcar ticker ───────────────────────────────────────── */
.ticker {
    background: var(--ink); color: var(--amber);
    border-top: 1px solid #000; border-bottom: 1px solid #000;
    padding: 10px 0; overflow: hidden;
    font-family: var(--mono); font-size: 14px;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.ticker-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    will-change: transform;
}
.ticker-item { display: inline-flex; gap: 12px; align-items: center; }
.ticker-dot { color: var(--accent); }
.ticker-sep { color: rgba(255, 179, 71, 0.5); }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

/* ── Container & layout ─────────────────────────────────────── */
.app { max-width: var(--max); margin: 0 auto; }
section { padding: 32px 48px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    padding: 40px 48px 24px;
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 48px; align-items: center;
}
/* The stamp positions itself absolutely against this wrapper, not the card.
   Without this, the stamp escapes to the viewport-edge containing block and
   spans the full page width. */
.raccoon-wrap { position: relative; }

.raccoon-card {
    background: var(--tile);
    border-radius: 24px;
    padding: 16px;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
}
.raccoon-card svg { width: 100%; height: 100%; }
.raccoon-stamp {
    position: absolute; bottom: -10px; left: 16px; right: 16px;
    background: var(--ink); color: var(--bg);
    padding: 8px 14px; border-radius: 8px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase;
    display: flex; justify-content: space-between;
}
.raccoon-stamp .live { color: var(--amber); }
.hero h1 {
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.02;
    margin: 0 0 18px;
}
.hero h1 em { font-style: italic; }
.hero p {
    font-size: 17px; line-height: 1.55;
    color: rgba(27, 27, 27, 0.72);
    max-width: 540px; margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 12px; border: 0; cursor: pointer;
    font-family: var(--sans); font-size: 15px; font-weight: 600;
    text-decoration: none;
    transition: transform .08s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { color: var(--bg); transform: translateY(-1px); }
.btn-primary:disabled { background: rgba(27, 27, 27, 0.1); color: rgba(27, 27, 27, 0.4); cursor: not-allowed; }
.btn-secondary {
    background: transparent; color: var(--ink);
    border: 1px solid rgba(27, 27, 27, 0.25);
    font-weight: 500;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-block { display: flex; width: 100%; padding: 18px 20px; justify-content: center; font-size: 16px; border-radius: 14px; }
.btn-link {
    background: none; border: 0; padding: 0; color: var(--accent);
    font-weight: 500; cursor: pointer; text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Stats strip ────────────────────────────────────────────── */
.stats {
    padding: 24px 48px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.stat-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-50); margin-bottom: 6px;
}
.stat-num {
    font-family: var(--serif); font-size: 38px; font-weight: 500;
    letter-spacing: -0.02em; color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ── Map + Feed grid ────────────────────────────────────────── */
.map-feed {
    padding: 32px 48px;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px;
}
.section-h {
    font-family: var(--serif); font-size: 26px; font-weight: 500;
    margin: 0 0 14px; letter-spacing: -0.01em;
}
.map-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 14px;
}
.window-toggle {
    display: inline-flex; padding: 3px; border-radius: 8px;
    background: rgba(27, 27, 27, 0.06);
    font-family: var(--mono); font-size: 11px;
}
.window-toggle button {
    padding: 6px 12px; border: 0; border-radius: 6px;
    background: transparent; color: var(--ink-65);
    font-family: inherit; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em;
    cursor: pointer;
}
.window-toggle button.active { background: var(--ink); color: var(--bg); }

.map-frame {
    position: relative;
    border: 1px solid rgba(27, 27, 27, 0.1);
    border-radius: 16px; overflow: hidden;
}
#map { height: 540px; background: var(--heat-0); }
.legend {
    position: absolute; bottom: 16px; left: 16px;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(8px);
    padding: 8px 12px; border-radius: 8px;
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-65);
    display: flex; align-items: center; gap: 8px;
    z-index: 500;
}
.legend-bar { display: inline-flex; height: 8px; }
.legend-bar span { width: 14px; }
.fsa-tooltip {
    position: absolute; top: 16px; right: 16px;
    background: var(--bg); color: var(--ink);
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--ink-12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-family: var(--sans); font-size: 13px; min-width: 160px;
    z-index: 500; pointer-events: none;
    opacity: 0; transition: opacity .15s ease;
}
.fsa-tooltip.show { opacity: 1; }
.fsa-tooltip strong { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.fsa-tooltip .sub { margin-top: 4px; opacity: 0.7; }

/* Wind widget — overlay top-right of the map. Hidden by default; shown only when
   /api/weather/current succeeds (graceful degradation when OWM key is missing). */
.wind-widget {
    position: absolute; top: 16px; right: 16px;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--ink-12);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 10px;
    color: var(--ink);
    font-family: var(--sans);
    z-index: 500;
    cursor: help;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    min-width: 132px;
}
.wind-arrow {
    width: 22px; height: 22px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .4s ease;
}
.wind-meta { line-height: 1.2; }
.wind-cardinal {
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.wind-sub {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-50);
    margin-top: 2px;
}
@media (max-width: 520px) {
    .wind-widget { top: 12px; right: 12px; padding: 6px 10px; min-width: 110px; }
    .wind-arrow { width: 18px; height: 18px; }
    .wind-cardinal { font-size: 11px; }
}

/* Feed list */
.feed-frame {
    border: 1px solid rgba(27, 27, 27, 0.1);
    border-radius: 16px; overflow: hidden;
    max-height: 540px; overflow-y: auto;
}
.feed-empty {
    padding: 32px; text-align: center;
    font-family: var(--sans); font-size: 14px;
    color: var(--ink-65);
}
.feed-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(27, 27, 27, 0.06);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.feed-item-meta { display: flex; gap: 10px; align-items: center; }
.feed-fsa {
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    color: var(--ink);
}
.feed-intersection {
    font-family: var(--sans); font-size: 12px; color: var(--ink-65);
    white-space: nowrap;
}
.feed-time {
    font-family: var(--mono); font-size: 11px;
    color: var(--ink-50);
}
.odour-tag {
    background: rgba(27, 27, 27, 0.06);
    padding: 2px 8px; border-radius: 4px;
    font-size: 11px; margin-right: 8px;
    font-family: var(--sans);
}
.odour-tag-clear {
    background: rgba(127, 168, 143, 0.15);
    color: var(--sage);
    font-style: italic;
}
.feed-note {
    font-family: var(--sans); font-size: 13px;
    color: rgba(27, 27, 27, 0.85);
}

/* Severity badge */
.sev-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 8px; border-radius: 999px;
    font-family: var(--sans); font-size: 11px; font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid;
}
.sev-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
/* sev-0 = sage (positive/safe "all clear"). sev-1 was sage prior to v1.2 — moved
   to a soft wheat tone since green-on-a-complaint badge was misleading. */
.sev-0 { color: var(--sage);   background: rgba(127, 168, 143, 0.13); border-color: rgba(127, 168, 143, 0.33); }
.sev-1 { color: #B68C2E;       background: rgba(229, 208, 138, 0.18); border-color: rgba(229, 208, 138, 0.45); }
.sev-3 { color: var(--heat-3); background: rgba(229, 167, 86, 0.13);  border-color: rgba(229, 167, 86, 0.33); }
.sev-5 { color: var(--accent); background: rgba(218, 41, 28, 0.13);   border-color: rgba(218, 41, 28, 0.33); }

/* ── Form pages ─────────────────────────────────────────────── */
.form-page {
    padding: 40px 24px; max-width: 680px; margin: 0 auto;
}
.form-page h1 {
    font-size: clamp(36px, 4vw, 52px);
    margin: 0 0 8px;
}
.form-page .lede {
    font-family: var(--sans); font-size: 16px; line-height: 1.5;
    color: var(--ink-65); margin: 0 0 32px;
}
.form-section { margin-bottom: 28px; }
.form-section-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-50); margin-bottom: 10px;
}

/* Severity buttons (with raccoons) */
.severity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sev-btn {
    padding: 16px; border-radius: var(--radius);
    border: 1px solid rgba(27, 27, 27, 0.15);
    background: transparent; cursor: pointer; text-align: center;
    transition: all .15s; font-family: inherit;
}
.sev-btn:hover { background: rgba(27, 27, 27, 0.02); }
.sev-btn[aria-pressed="true"] {
    border: 2px solid var(--ink);
    background: rgba(27, 27, 27, 0.04);
    padding: 15px;
}
/* "All clear" check-in: positive/safe → sage active border, not black. */
.sev-btn-clear[aria-pressed="true"] {
    border-color: var(--sage);
    background: rgba(127, 168, 143, 0.08);
}
.sev-btn-icon { display: flex; justify-content: center; margin-bottom: 6px; }
.sev-btn-icon svg { width: 84px; height: 84px; }
.sev-btn-label {
    font-family: var(--serif); font-size: 18px; font-weight: 500;
    color: var(--ink);
}
.sev-btn-desc {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-65); margin-top: 2px;
}

/* Odour chips */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid rgba(27, 27, 27, 0.18);
    background: transparent; color: var(--ink);
    font-family: var(--sans); font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked),
.chip[aria-pressed="true"] {
    background: var(--ink); color: var(--bg);
    border-color: var(--ink);
}

/* "Where" section */
.fsa-row {
    padding: 14px; border-radius: 12px;
    background: rgba(27, 27, 27, 0.04);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-family: var(--sans); font-size: 14px; flex-wrap: wrap;
}
.fsa-row .fsa-code { font-family: var(--mono); font-weight: 600; }
.fsa-row .fsa-sub { opacity: 0.6; }
.fsa-row select {
    background: transparent; border: 0;
    color: var(--ink); font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; text-decoration: underline;
}
.checkbox-row {
    display: flex; align-items: center; gap: 10px; margin-top: 12px;
    font-family: var(--sans); font-size: 13px; color: var(--ink-65);
    cursor: pointer;
}
.intersection-picker { margin-top: 14px; }
.intersection-picker select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(27, 27, 27, 0.15);
    background: var(--paper);
    font-family: var(--sans); font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

/* Textarea */
textarea, input[type="email"], input[type="text"] {
    font-family: var(--sans); font-size: 14px; line-height: 1.5;
    width: 100%; padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(27, 27, 27, 0.15);
    background: var(--paper); color: var(--ink);
    outline: none;
}
textarea { min-height: 90px; resize: vertical; }
input[type="email"], input[type="text"] { padding: 14px 16px; font-size: 16px; }
.char-count {
    text-align: right; margin-top: 4px;
    font-family: var(--mono); font-size: 11px;
    color: rgba(27, 27, 27, 0.45);
}
.char-count.warn { color: var(--accent); }
.hint {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-50); margin-top: 8px;
}

/* Turnstile box */
.turnstile-row {
    padding: 14px; border-radius: 10px;
    border: 1px solid rgba(27, 27, 27, 0.15);
    background: var(--paper);
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; min-height: 70px;
}
.turnstile-row .label {
    flex: 1; font-family: var(--sans); font-size: 13px;
}
.turnstile-row .badge {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(27, 27, 27, 0.45);
}

/* Form status */
.form-status {
    margin-top: 12px; min-height: 1.4em;
    font-family: var(--sans); font-size: 14px;
    text-align: center;
}
.form-status.success { color: #1F6F3D; }
.form-status.error   { color: var(--accent); }

/* ── Subscribe-specific ─────────────────────────────────────── */
.fsa-chip-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.fsa-chip {
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid rgba(27, 27, 27, 0.2);
    background: transparent; color: var(--ink);
    cursor: pointer; transition: all .15s;
    font-family: var(--mono); font-size: 13px; font-weight: 600;
    display: inline-flex; gap: 8px; align-items: center; line-height: 1;
    position: relative;
}
.fsa-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fsa-chip-name { font-family: var(--sans); font-weight: 400; opacity: 0.6; font-size: 11px; }
.fsa-chip:has(input:checked) {
    background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.severity-slider input[type=range] {
    width: 100%; accent-color: var(--ink);
}
.severity-slider .ladder {
    display: flex; justify-content: space-between; margin-top: 8px;
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-50);
}

/* Postcard success */
.postcard-success {
    padding: 80px 48px 40px; max-width: 560px; margin: 0 auto;
    text-align: center;
}
.postcard {
    margin: 0 auto 32px; width: 320px; height: 200px;
    background: var(--paper);
    border: 1px solid rgba(27, 27, 27, 0.2);
    border-radius: 6px; position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    transform: rotate(-2deg);
    padding: 18px; text-align: left; font-family: var(--sans);
}
.postcard-greeting {
    font-family: var(--serif); font-size: 13px; font-style: italic;
    color: var(--ink);
    border-bottom: 1px dashed rgba(27, 27, 27, 0.25);
    padding-bottom: 8px; margin-bottom: 10px;
}
.postcard-body { font-size: 12px; line-height: 1.5; color: var(--ink); }
.postcard-stamp {
    position: absolute; top: 14px; right: 14px;
    width: 56px; height: 70px;
    border: 2px solid rgba(27, 27, 27, 0.4);
    background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(218, 41, 28, 0.15) 4px 6px);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em;
    color: rgba(27, 27, 27, 0.55);
}
.postcard-date {
    position: absolute; bottom: 10px; right: 14px;
    font-family: var(--mono); font-size: 9px;
    color: rgba(27, 27, 27, 0.55);
}

/* ── About / editorial ──────────────────────────────────────── */
.prose {
    padding: 48px 24px; max-width: 760px; margin: 0 auto;
}
.prose h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin: 0 0 24px; letter-spacing: -0.018em;
}
.prose .lede {
    font-family: var(--sans); font-size: 18px; line-height: 1.65;
    color: rgba(27, 27, 27, 0.85);
    margin: 0 0 32px; max-width: 640px;
}
.prose h2 {
    font-family: var(--serif); font-size: 26px; font-weight: 500;
    margin: 32px 0 8px; letter-spacing: -0.01em;
}
.prose p {
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    color: rgba(27, 27, 27, 0.78);
    margin: 0 0 16px; max-width: 640px;
}
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.pull-quote {
    margin: 40px 0; padding: 36px 32px;
    border-left: 4px solid var(--accent);
    background: rgba(218, 41, 28, 0.04);
    border-radius: 0 12px 12px 0;
}
.pull-quote-text {
    font-family: var(--serif); font-size: 32px; font-weight: 400; font-style: italic;
    line-height: 1.25; letter-spacing: -0.01em;
    color: var(--ink); margin: 0; opacity: 0.35;
    text-wrap: balance;
}
.pull-quote-cite {
    margin-top: 14px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-50);
}

.cta-card {
    margin-top: 48px; padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(27, 27, 27, 0.12);
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.cta-card-text {
    flex: 1; min-width: 220px;
}
.cta-card-h {
    font-family: var(--serif); font-size: 20px; font-weight: 500;
    color: var(--ink); margin: 0 0 4px;
}
.cta-card-sub {
    font-family: var(--sans); font-size: 14px;
    color: var(--ink-65); margin: 0 0 12px;
}
.cta-card .raccoon-mini { width: 88px; height: 88px; flex-shrink: 0; }

/* ── Lake wave + footer ─────────────────────────────────────── */
.lake-wave {
    display: block; width: 100%; height: 80px;
}
footer.foot {
    padding: 28px 48px 16px;
    border-top: 1px solid var(--rule);
    font-family: var(--sans); font-size: 13px;
    color: rgba(27, 27, 27, 0.6);
    display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
}
.foot a { text-decoration: underline; text-decoration-color: rgba(27, 27, 27, 0.25); text-underline-offset: 3px; }
.foot .meta {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase;
    opacity: 0.7;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
    .nav-inner { padding: 10px 16px; gap: 8px; }
    .nav-link { padding: 6px 8px; font-size: 13px; }
    .nav-link.live-pill-wrap { display: none; }
    .brand { font-size: 17px; }
    section { padding-left: 20px; padding-right: 20px; }
    .hero { grid-template-columns: 1fr; padding: 28px 20px 24px; }
    .raccoon-card { max-width: 320px; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px; }
    .map-feed { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
    #map { height: 380px; }
    .form-page { padding: 28px 16px; }
    /* 4 buttons → 2x2 on mobile so each still has room for the raccoon icon. */
    .severity-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sev-btn { padding: 12px 6px; }
    .sev-btn[aria-pressed="true"] { padding: 11px 5px; }
    .sev-btn-icon svg { width: 56px; height: 56px; }
    .sev-btn-label { font-size: 15px; line-height: 1.15; }
    .sev-btn-desc { font-size: 11px; }
    footer.foot { padding: 20px; }
}
@media (max-width: 520px) {
    .brand-mark { width: 26px; height: 26px; font-size: 11px; }
    .hero h1 { font-size: 32px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 28px; }
    .severity-grid { gap: 6px; }
    .sev-btn { padding: 10px 4px; }
    .sev-btn[aria-pressed="true"] { padding: 9px 3px; }
    .sev-btn-icon svg { width: 48px; height: 48px; }
    /* Long single words ("Overwhelming") — let them shrink and wrap. */
    .sev-btn-label {
        font-size: 13px;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .sev-btn-desc { font-size: 10px; }
}

/* Inputs reset */
input[type="checkbox"] { accent-color: var(--ink); }
input[type="range"] { accent-color: var(--ink); }

/* ── Honest Ed's hand-painted headline treatment ──────────────────
   Ported from the Stink Tracker prototype. Toronto-coded, unmistakable.
   Stacked drop-shadow (amber + TTC red) + italic Fraunces, with
   <em> elements rendered as a yellow rotated highlight pill. */
h1 {
    font-style: italic;
    text-shadow: 1.5px 1.5px 0 var(--amber), 3px 3px 0 var(--accent);
    letter-spacing: -0.02em;
}
h1 em {
    background: #FFE066;
    padding: 0 8px;
    transform: rotate(-1.2deg) skew(-2deg);
    display: inline-block;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--accent);
    font-style: normal;
    color: var(--ink) !important;   /* override any inline color from JS */
}
@media (max-width: 520px) {
    h1 { text-shadow: 1px 1px 0 var(--amber), 2px 2px 0 var(--accent); }
    h1 em { box-shadow: 2.5px 2.5px 0 var(--accent); padding: 0 6px; }
}
