/* BrewPicker. Cool neutrals, one burnt-orange accent, Geist + Geist Mono.
   Radius system: 8px for cards, tables and inputs; full pill for buttons and tags. */

@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #f7f7f6;
  --bg-2: #eef0f3;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #3b404a;
  --muted: #5b616e;
  --line: #e3e4e8;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff1e8;
  --good: #166534;
  --good-soft: #ecf6ef;
  --bad: #9f1239;
  --bad-soft: #fbeef1;
  --footer: #16181d;
  --r: 8px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 6px 20px rgba(22, 24, 29, .05);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-2: #171a20;
    --surface: #1b1e24;
    --ink: #eceef2;
    --ink-2: #c9ccd3;
    --muted: #9aa0ac;
    --line: #2a2e36;
    --accent: #f97316;
    --accent-hover: #fb923c;
    --accent-soft: #2a1a10;
    --good: #86efac;
    --good-soft: #13241a;
    --bad: #fda4af;
    --bad-soft: #2a151a;
    --footer: #0b0c0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-top: 1.8em; }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.icon { flex: none; vertical-align: -0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.wordmark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .94rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 820px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px 16px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .header-cta { margin-left: auto; }
}
.disclosure-bar { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 6px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 999px; font: 600 .98rem/1.1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, border-color .18s ease, transform .12s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
/* Button fill stays dark enough for white text (WCAG AA) in both themes. */
.btn-buy { background: #c2410c; color: #fff; }
.btn-buy:hover { background: #9a3412; color: #fff; }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.text-link { font-weight: 500; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.text-link:hover { color: var(--accent); }
.arrow-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 19ch; font-size: clamp(2.1rem, 3.9vw, 3.15rem); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 600 1.3rem/1.2 var(--mono); }
.facts span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* Comparison card (hero visual) */
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.vs-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { padding: 12px 20px; text-align: left; font-size: .93rem; border-bottom: 1px solid var(--line); }
.vs-table thead th { background: var(--bg); vertical-align: bottom; }
.vs-table thead small { display: block; font: 500 .7rem/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.vs-table thead a { color: var(--ink); text-decoration: none; font-weight: 650; }
.vs-table tbody th { color: var(--muted); font-weight: 500; }
.vs-table td { font-family: var(--mono); font-feature-settings: 'tnum'; }
.vs-table tr:last-child td, .vs-table tr:last-child th { border-bottom: 0; font-weight: 650; color: var(--ink); }
.vs-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.hi { color: var(--accent); font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--muted); }

/* Guide grid: one feature + stacked list */
.guide-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.guide-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.guide-feature h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0; }
.guide-feature h3 a, .guide-row h3 a { color: var(--ink); text-decoration: none; }
.guide-feature h3 a:hover, .guide-row h3 a:hover { color: var(--accent); }
.feature-picks { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 0; }
.feature-picks li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.feature-picks span { color: var(--muted); }
.feature-picks a { color: var(--ink); font-weight: 600; text-decoration: none; text-align: right; }
.feature-picks a:hover { color: var(--accent); }
.guide-list { display: grid; gap: 16px; }
.guide-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: grid; gap: 4px; }
.guide-row h3 { margin: 0; }
.guide-row p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 820px) { .guide-grid { grid-template-columns: 1fr; } }

/* Product tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .18s ease, box-shadow .18s ease; }
.tile:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); box-shadow: var(--shadow); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-icon { width: 36px; height: 36px; border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; }
.tag { font: 500 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.tile h3 { margin: 4px 0 0; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a:hover { color: var(--accent); }
.tile-sub { color: var(--muted); font-size: .9rem; margin: 0; min-height: 2.9em; }
.spec-list { margin: 4px 0 0; padding: 12px 0; border-block: 1px solid var(--line); display: grid; gap: 6px; }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; }
.spec-list dt { color: var(--muted); font-size: .86rem; }
.spec-list dd { margin: 0; font: 500 .88rem/1.4 var(--mono); font-feature-settings: 'tnum'; text-align: right; }
.tile-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.center { text-align: center; margin-top: 28px; }

/* Editorial band */
.band { padding: 64px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.band p.statement { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; max-width: 34ch; margin-bottom: 16px; }

/* Product page */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.p-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 24px 0 8px; }
.p-head .tag { display: inline-block; margin-bottom: 14px; }
.p-head h1 { margin-bottom: 8px; }
.p-meta { color: var(--muted); font-family: var(--mono); font-size: .88rem; margin: 0; }
.p-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .p-head { grid-template-columns: 1fr; } }
.answer { font-size: 1.1rem; color: var(--ink-2); padding: 18px 0; border-top: 1px solid var(--line); margin-top: 18px; }
.key-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 8px 0 32px; }
.key-specs > div { background: var(--surface); padding: 18px; display: grid; gap: 6px; }
.key-specs .k { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.key-specs .v { font: 600 1.25rem/1.2 var(--mono); font-feature-settings: 'tnum'; letter-spacing: -0.02em; }
@media (max-width: 700px) { .key-specs { grid-template-columns: 1fr 1fr; } }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
.verdict > div { border-radius: var(--r); padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.verdict h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 8px; }
.verdict .yes h3 { color: var(--good); }
.verdict .no h3 { color: var(--bad); }
.verdict p { margin: 0; color: var(--ink-2); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pros-cons li { display: flex; gap: 10px; align-items: flex-start; }
.pros-cons li .icon { margin-top: 3px; }
.pros-cons .pros .icon { color: var(--good); }
.pros-cons .cons .icon { color: var(--bad); }
@media (max-width: 700px) { .verdict, .pros-cons { grid-template-columns: 1fr; } }
.full-specs { margin: 28px 0; }
.full-specs summary { cursor: pointer; font-weight: 600; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); list-style: none; display: flex; justify-content: space-between; }
.full-specs summary::-webkit-details-marker { display: none; }
.full-specs summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
.full-specs[open] summary::after { content: '−'; }
.full-specs[open] summary { border-radius: var(--r) var(--r) 0 0; }
.full-specs .table-wrap { border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.note { background: var(--accent-soft); border-radius: var(--r); padding: 16px 20px; margin: 24px 0; color: var(--ink-2); }
.note p { margin: 0; }
.updated { font-size: .85rem; color: var(--muted); font-family: var(--mono); }
.sources { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; }
.sources ul { padding-left: 1.1em; margin: 6px 0 0; }
.sources a { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.specs th, .specs td, .compare-table th, .compare-table td { text-align: left; padding: 11px 16px; vertical-align: top; }
.specs tr + tr th, .specs tr + tr td { border-top: 1px solid var(--line); }
.specs th { width: 44%; color: var(--muted); font-weight: 500; }
.specs td { font-family: var(--mono); font-feature-settings: 'tnum'; }
.compare-table thead th { font-weight: 650; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.compare-table thead a { color: var(--ink); text-decoration: none; }
.compare-table tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
.compare-table tbody tr:nth-child(even) th, .compare-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.compare-table td { min-width: 180px; font-family: var(--mono); font-size: .88rem; font-feature-settings: 'tnum'; }
.compare-table td.text { font-family: var(--sans); font-size: .9rem; }

/* Guides */
.pick { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 18px 0; }
.pick .tile-icon { width: 44px; height: 44px; }
.pick .label { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 8px; }
.pick h3 { margin: 0 0 4px; font-size: 1.3rem; }
.pick h3 a { color: var(--ink); text-decoration: none; }
.pick .p-meta { margin-bottom: 12px; }
.pick .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
@media (max-width: 560px) { .pick { grid-template-columns: 1fr; } }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; background: var(--surface); }
.toc p { margin: 0 0 8px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.prose { font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.guide-cards { display: grid; gap: 14px; }
.guide-cards a.guide-row { text-decoration: none; }

/* Tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .legend { font-weight: 600; font-size: .95rem; }
.help { font-size: .84rem; color: var(--muted); }
input[type="number"], select { font: 500 1rem var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); width: 100%; max-width: 360px; }
input[type="number"] { font-family: var(--mono); }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--bg); font-size: .95rem; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); }
.quiz-step { border: 0; padding: 0; margin: 0 0 22px; }
.quiz-step legend { margin-bottom: 10px; }
.result { margin-top: 20px; padding: 20px; background: var(--bg-2); border-radius: var(--r); }
.result .big { font: 650 2.2rem/1.1 var(--mono); letter-spacing: -0.03em; margin: 0 0 6px; color: var(--accent); }
.picker-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.picker-row label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.picker-row select { max-width: none; }
@media (max-width: 820px) { .picker-row { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { margin-top: 72px; background: var(--footer); color: #c9ccd3; padding: 48px 0 28px; }
.site-footer a { color: #e7e9ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.wordmark-footer { color: #fff; margin: 0 0 10px; }
.footer-blurb { max-width: 36ch; color: #a3a8b3; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-h { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #8b909c; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.fine-print { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: .8rem; color: #8b909c; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
