/* TasteLadder brand kit: bk-warm-discovery (locked).
   Palette warm white + dark ink + restrained amber/burgundy accents.
   Type: Newsreader (display) + Inter Tight (UI) + JetBrains Mono (data). */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #faf6ef;
  --card: #ffffff;
  --ink: #211b16;
  --muted: #5c5347; /* 7:1 on --paper: clears WCAG AA 4.5:1 for secondary/disclosure text (CT-1) */
  --line: #e7ddcf;
  --amber: #b3781f;
  --amber-soft: #f6ecd8;
  --burgundy: #7a2433;
  --burgundy-soft: #f3e2e3;
  --focus: #b3781f;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ui: 'Inter Tight', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1714;
    --card: #241f1b;
    --ink: #f1e9dd;
    --muted: #b3a896;
    --line: #3a322a;
    --amber: #e2a64a;
    --amber-soft: #33291a;
    --burgundy: #d98a96;
    --burgundy-soft: #33222420;
    --focus: #e2a64a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(6px);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); }
.logo svg { width: 26px; height: 26px; flex: none; }
.site-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.site-nav a:hover { background: var(--amber-soft); color: var(--ink); text-decoration: none; }

/* Type scale */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 23px; margin: 34px 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.tool-tag { font-family: var(--ui); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); }

/* Answer block: the citable 60-90 word answer at the top of every page */
.answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 26px;
}
.answer .q { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.answer p { margin: 0; }
.answer .src { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); }
.card p { color: var(--muted); margin: 8px 0 14px; }
.card .go { font-weight: 600; color: var(--burgundy); }

/* Matcher */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0 0 26px; }
.matcher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.matcher-grid .field { display: flex; flex-direction: column; }
.matcher-grid label { font-size: 13px; font-weight: 600; color: var(--muted); min-height: 34px; display: flex; align-items: flex-end; padding-bottom: 6px; }
select {
  font-family: var(--ui); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}

/* Segmented controls (Paul-4): every option visible at once, no dropdown click.
   Replaces <select> for the matcher questions and the comparator filters. */
.seg-label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin: 0 0 7px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented .seg {
  font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.2;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; cursor: pointer;
}
.segmented .seg:hover { border-color: var(--amber); }
.segmented .seg[aria-checked="true"] {
  background: var(--burgundy); color: #fff; border-color: var(--burgundy); font-weight: 600;
}
.filters .field { gap: 0; }
.filters .seg-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.filters .segmented .seg { font-size: 12px; padding: 6px 10px; }
.btn {
  font-family: var(--ui); font-size: 15px; font-weight: 600;
  background: var(--burgundy); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; cursor: pointer; margin-top: 16px;
}
.btn:hover { background: color-mix(in srgb, var(--burgundy) 88%, #000); }
.btn.ghost { background: transparent; color: var(--burgundy); border: 1px solid var(--line); }

/* Result + product cards */
.picks { display: grid; gap: 12px; margin-top: 18px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pick .rank { font-family: var(--mono); color: var(--amber); font-weight: 600; }
.pick .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--amber-soft); border-radius: 999px; padding: 3px 9px; }
.tag.badge { color: var(--burgundy); background: var(--burgundy-soft); border: 1px solid var(--line); }
.cta-soon { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 9px 14px; white-space: nowrap; }
.cta-live { font-weight: 600; color: #fff; background: var(--amber); border-radius: 10px; padding: 9px 16px; white-space: nowrap; }
.cta-live:hover { text-decoration: none; background: color-mix(in srgb, var(--amber) 88%, #000); }

/* Comparator table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.filters .field { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }

/* Disclosure + footer */
.disclosure { font-size: 13px; color: var(--muted); background: var(--amber-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 22px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.siblings { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.siblings a { font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); margin-top: 50px; }
.site-foot .wrap { padding: 28px 20px 50px; color: var(--muted); font-size: 13px; }
.site-foot a { color: var(--muted); }
.site-foot .brand-line { font-family: var(--display); font-size: 16px; color: var(--ink); margin-bottom: 8px; }
main { padding: 30px 0 10px; }
.muted { color: var(--muted); }

/* Editorial body (Paul's authored comparison-page content, rendered static) */
.answer p + p { margin-top: 12px; }
.answer strong { color: var(--ink); }
.tool-wrap { margin: 0 0 30px; }
.tool-wrap > h2 { margin-top: 0; }
.editorial { margin-top: 8px; }
.editorial h2 { border-top: 1px solid var(--line); padding-top: 22px; }
.editorial h3 { font-size: 20px; margin: 24px 0 8px; }
.editorial h4 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 18px 0 6px; color: var(--ink); }
.editorial p { line-height: 1.62; }
.editorial ul, .editorial ol { margin: 8px 0 16px; padding-left: 22px; }
.editorial li { margin: 0 0 7px; line-height: 1.55; }
.editorial hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.editorial a.buy {
  display: inline-block; font-weight: 600; color: #fff; background: var(--amber);
  border-radius: 9px; padding: 7px 14px; margin: 4px 0; font-size: 14px;
}
.editorial a.buy:hover { text-decoration: none; background: color-mix(in srgb, var(--amber) 88%, #000); }
.md-table { font-size: 14px; }
.md-table th { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); background: var(--amber-soft); }
.md-table td { vertical-align: top; }

/* Bold lead-in lines ("Specs:", "Also consider:") — their own visual block so
   the pick cards break cleanly instead of stacking into one paragraph. */
.lead-in { margin: 6px 0 0; line-height: 1.5; }
.lead-in strong { color: var(--ink); }
.editorial .lead-in { font-size: 14px; color: var(--muted); }
.editorial .lead-in strong { color: var(--ink); }

/* Answer block rendered as a scannable list (one line per pick) */
.answer-list p { margin: 0 0 9px; padding-left: 17px; position: relative; }
.answer-list p:last-child { margin-bottom: 0; }
.answer-list p:not(.lead-in)::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.answer-list .lead-in { margin-top: 13px; padding: 12px 0 0 17px; border-top: 1px solid var(--line); }

/* Per-pick fit line + jump-to-review link in the matcher results */
.pick .fit { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.pick .fit .jump { display: inline-block; margin-left: 6px; font-weight: 600; color: var(--burgundy); white-space: nowrap; }
