:root {
  --bg: #F4F6F3;
  --surface: #FFFFFF;
  --ink: #17201B;
  --muted: #56615A;
  --forest: #234536;
  --line: #CFDAD2;
  --amber: #C08416;
  --amber-ink: #7E5306;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131815; --surface: #1B221E; --ink: #E8EDE9; --muted: #A3AFA7;
    --forest: #8FC2A8; --line: #2E3A33; --amber: #E0A93E; --amber-ink: #E9B858;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
}
a { color: var(--forest); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 42rem; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--amber); }
nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }

h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 2.5rem 0 1rem; max-width: 22ch; }
h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 2.5rem 0 0.75rem; line-height: 1.2; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

.answer { font-size: 1.2rem; max-width: 40rem; border-left: 4px solid var(--amber); padding-left: 1rem; margin: 0 0 0.75rem; }
.meta { color: var(--muted); font-size: 0.9rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: 0.95rem; }
caption { text-align: left; padding: 0.9rem 1rem 0.2rem; font-weight: 700; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th a { font-weight: 700; color: var(--ink); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 2.5rem; }

/* The one signature element: price-per-ml bar, like oil level in a dropper bottle */
.ppm { display: grid; gap: 0.3rem; min-width: 8rem; }
.ppm b { font-weight: 700; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.ppm .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ppm .bar i { display: block; height: 100%; background: var(--amber); border-radius: 3px; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; max-width: 42rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
.procon { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; max-width: 42rem; }
.procon ul { padding-left: 1.2rem; margin: 0; }
.buy { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
.buy a { background: var(--forest); color: var(--bg); padding: 0.6rem 1.1rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.notice { background: var(--surface); border: 1px dashed var(--amber); padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.9rem; margin-top: 1.5rem; }

footer.site { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer.site p { max-width: 42rem; }

@media (max-width: 36rem) {
  nav a { margin: 0 1rem 0 0; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: 0.5rem; }
}
tbody th { min-width: 10rem; }
tbody th .meta { font-weight: 400; }

.faq { max-width: 42rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; }
.faq details p { margin: 0 0 1rem; }
.notice.warn { border-style: solid; border-color: #B4432F; }
