/* CoffeeProof (named CupProof until 4 Nov 2026) A3 (Claude Design, Nov 2026): espresso ground, cream type, violet
   for the main action, green for a real drop and amber for the store's own
   sale, never red for a discount. Headings in Funnel Display, text in Inter.
   Breakpoints 960 px and 640 px. */

/* Inter, served from this site (OFL, cut to Latin, 75 KB): no request to
   Google's servers for EU visitors. */
@font-face {
  font-family: "Inter";
  src: url("/static/inter.woff2") format("woff2-variations"), url("/static/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Funnel Display, the headline face (OFL, licence next to the files). Served
   from here, not from Google Fonts: no third-party request from a visitor's
   browser. Variable font, one file for 500-800; Google's two subsets with
   their ranges, so a page in plain English loads only the latin file. */
@font-face {
  font-family: "Funnel Display";
  src: url("/static/funnel-display-latin-ext.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Display";
  src: url("/static/funnel-display-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #120d0a;
  --surface: #1b1410;
  --surface-2: #231a15;
  --surface-3: #2b211b;
  --line: rgba(243, 230, 211, .09);
  --line-strong: rgba(243, 230, 211, .17);
  --head: #fff7ee;
  --text: #f3e6d3;
  --muted: #bfb1a3;
  --faint: #9c8e80;
  --accent: #a99bff;
  --accent-hover: #bdb2ff;
  --on-accent: #120d0a;
  --green: #7edca6;
  --green-bg: rgba(126, 220, 166, .1);
  --green-line: rgba(126, 220, 166, .32);
  --amber: #f2b45a;
  --amber-bg: rgba(242, 180, 90, .1);
  --amber-line: rgba(242, 180, 90, .32);
  --display: "Funnel Display", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 247, 238, .04) inset, 0 20px 40px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  font-feature-settings: "cv11", "tnum";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--head); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
s { color: var(--faint); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
main.wrap { padding-bottom: 72px; }

/* ---- header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--head); letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--text); color: var(--bg); }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.mainnav a:hover { color: var(--head); }
.mainnav a[aria-current="page"] { background: var(--surface-2); color: var(--head); }
.region { position: relative; }
.region summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--head);
}
.region summary::-webkit-details-marker { display: none; }
.region-menu {
  position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 140px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow);
}
.region-menu a { padding: 8px 12px; border-radius: 9px; color: var(--muted); }
.region-menu a:hover, .region-menu a[aria-current="page"] { background: var(--surface-2); color: var(--head); }

/* ---- shared bits -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 28px rgba(169, 155, 255, .28); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--head); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--head); background: var(--surface); }
.pill:hover { border-color: var(--muted); }
.pill-small { min-height: 28px; padding: 0 12px; font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.count { color: var(--faint); font-weight: 500; font-size: .9em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface-2);
}
.badge-green { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.badge-amber { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--faint); }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.dot-accent { background: var(--accent); box-shadow: 0 0 0 3px rgba(169, 155, 255, .18); }
.label { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lede { color: var(--muted); font-size: 16px; }
.fineprint { margin-top: 14px; font-size: 13px; color: var(--faint); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.sub { font-size: 13px; color: var(--muted); }
.sub.amber, .amber { color: var(--amber); }
.green { color: var(--green) !important; }
.link { color: var(--head); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 6px; }
.nochart { font-size: 13px; color: var(--faint); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--head); }
.crumbs span:last-child { color: var(--head); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---- sections ---------------------------------------------------------- */
.section { margin-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 8px; }

/* ---- listing hero, filters --------------------------------------------- */
.page-hero {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
  margin-top: 24px; padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(169, 155, 255, .14), transparent 55%),
    radial-gradient(90% 120% at 10% 100%, rgba(242, 180, 90, .12), transparent 60%),
    linear-gradient(135deg, #2a1d15, #160f0b 70%);
}
.page-hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: .95; letter-spacing: -.04em; }
.page-hero .lede { margin-top: 14px; font-size: 15px; }
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(18, 13, 10, .7); border: 1px solid var(--line-strong); }
.toggle a { padding: 10px 22px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.toggle a[aria-current="page"] { background: var(--text); color: var(--bg); }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; color: var(--head); background: var(--surface); }
.chip-link[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-link[aria-current="page"] .count { color: rgba(18, 13, 10, .6); }
.sortnote { font-size: 13px; color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* ---- product rows ------------------------------------------------------ */
.rows { display: grid; gap: 14px; }
.row { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.row-main {
  display: grid; grid-template-columns: 116px minmax(0, 1fr) 150px 170px 190px; align-items: center; gap: 22px;
  padding: 16px 160px 16px 16px;
}
.thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #3a2b22, #1b1410); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-info { display: grid; gap: 8px; min-width: 0; }
.row-info h3 { font-size: 19px; line-height: 1.2; font-weight: 600; }
.row-info h3 a:hover { color: var(--accent-hover); }
.row-price .price { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--head); letter-spacing: -.02em; line-height: 1.1; }
.row-chart { display: grid; gap: 4px; color: var(--accent); }
.row-chart .spark { width: 160px; height: 44px; } /* its own width: a stretched box centred it away from its caption */
.caption { font-size: 12px; color: var(--faint); }
.row-actions { display: flex; justify-content: flex-end; }
.row-more summary {
  position: absolute; right: 16px; top: 16px; list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--head); background: var(--surface-2);
}
.row-main { min-height: 148px; }
.row-more summary { top: 52px; }
.row-more summary::-webkit-details-marker { display: none; }
.row-more[open] .chevron { transform: rotate(180deg); }
.reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.reading-text { font-family: var(--display); font-size: 20px; line-height: 1.35; color: var(--head); margin-bottom: 14px; }
.reading-chart { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--accent); }

/* charts: the step line in violet, the usual price dashed, today's dot green.
   The height is set here and the plot stretches to it; the labels are drawn
   in the margin outside the box (overflow: visible), so the box leaves room. */
.chart { display: block; overflow: visible; width: calc(100% - 64px); height: 220px; margin: 8px 0 28px 64px; }
.chart .axis { fill: var(--faint); font: 12px var(--sans); }
.chart .line { stroke-width: 2; }
.reading-chart .chart { height: 150px; }
.chart .usual { stroke: var(--muted); stroke-dasharray: 4 5; stroke-width: 1; opacity: .7; }
.chart .dot { fill: var(--green); stroke: var(--bg); stroke-width: 2; }
.spark path { stroke-width: 2; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; }
.pager-now { color: var(--muted); font-size: 14px; }

/* ---- home -------------------------------------------------------------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 48px; }
.home-intro h1 { font-size: clamp(44px, 6vw, 72px); line-height: .98; letter-spacing: -.04em; }
.home-intro .lede { margin-top: 20px; max-width: 520px; }
.home-intro .actions { margin-top: 22px; }
.top-deal {
  display: grid; gap: 18px; padding: 18px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, #34261d, #1b1410 70%); box-shadow: var(--shadow);
}
.top-deal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.top-deal-image { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #2a1e17; }
.top-deal-image img { width: 100%; height: 100%; object-fit: cover; }
.top-deal-body { display: grid; gap: 10px; }
.top-deal-body h2 { font-size: 22px; line-height: 1.2; }
.top-deal-price { display: flex; align-items: baseline; gap: 12px; }
.top-deal-price .price { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--head); letter-spacing: -.03em; }
.top-deal .reading-text { font-size: 16px; margin: 0; color: var(--muted); font-family: var(--sans); }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-card { position: relative; display: grid; align-content: start; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.how-card h3 { font-size: 20px; }
.how-card p { color: var(--muted); }
.how-card-green { border-color: var(--green-line); background: linear-gradient(180deg, rgba(126, 220, 166, .07), var(--surface) 60%); }
.step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; }
.step-green { background: var(--green); }
.how-visual { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 64px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.usual-bar { position: relative; flex: 1; height: 40px; border-bottom: 2px dashed var(--muted); }
.usual-bar span { position: absolute; left: 0; bottom: 8px; font-size: 12px; color: var(--muted); }
.how-value { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--head); letter-spacing: -.02em; line-height: 1.1; }

.browse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.browse-card { display: grid; align-content: end; gap: 12px; min-height: 280px; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.browse-card h3 { font-size: 44px; letter-spacing: -.03em; }
.browse-card p { color: var(--muted); }
.browse-coffee { background: radial-gradient(120% 120% at 80% 0%, rgba(242, 180, 90, .2), transparent 55%), linear-gradient(160deg, #3a2a1f, #1b1410); }
.browse-tea { background: radial-gradient(120% 120% at 80% 0%, rgba(126, 220, 166, .16), transparent 55%), linear-gradient(160deg, #22281c, #151510); }

/* ---- product page ------------------------------------------------------ */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 50% 35%, #3a2b22, #1b1410); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-badges { position: absolute; left: 16px; top: 16px; z-index: 1; }
.gallery-size { position: absolute; right: 16px; top: 16px; z-index: 1; background: rgba(18, 13, 10, .7); padding: 4px 10px; }
.product-info h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.03em; margin-top: 10px; }
.product-info .meta a { color: var(--head); font-weight: 600; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.size { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--muted); }
.size strong { color: var(--head); font-size: 15px; }
.size .badge { justify-self: start; margin-top: 4px; }
.size-current { border-color: var(--text); background: var(--surface-2); }
.big-price { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; }
.big-price .price { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 68px); color: var(--head); letter-spacing: -.04em; line-height: 1; }
.verdict { margin: 20px 0; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.verdict p { color: var(--text); }
.verdict-title { font-weight: 700; margin-bottom: 4px; color: var(--muted) !important; font-size: 13px; }
.verdict-green { border-color: var(--green-line); background: var(--green-bg); }
.verdict-green .verdict-title { color: var(--green) !important; }
.verdict-amber { border-color: var(--amber-line); background: var(--amber-bg); }
.verdict-amber .verdict-title { color: var(--amber) !important; }
.history { margin-top: 40px; padding: 26px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 20px; }
.card-head h2 { font-size: 28px; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.chart-legend { display: flex; gap: 8px; }
.key { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.key::before { content: ""; width: 14px; height: 0; border-top: 2px solid var(--accent); }
.key-dash::before { border-top: 2px dashed var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--faint); }
.stat-value { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--head); margin-top: 4px; }
.stat-note { font-size: 12px; color: var(--faint); }
.chart-wrap { color: var(--accent); }

/* ---- footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-top: 48px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr .8fr 1.5fr; gap: 32px; }
.footer-grid h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--head); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--head); }
.footer-about p, .footer-note p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer-mark { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 13vw, 176px); white-space: nowrap; overflow: hidden; line-height: .8; letter-spacing: -.05em; color: rgba(243, 230, 211, .045); margin-top: 48px; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0 28px; font-size: 13px; color: var(--faint); }

/* ---- 960 px ------------------------------------------------------------ */
@media (max-width: 960px) {
  .home-hero, .product-top { grid-template-columns: 1fr; }
  .row-main { grid-template-columns: 96px minmax(0, 1fr) auto; padding-right: 16px; gap: 14px 18px; }
  .row-chart { grid-column: 2 / -1; }
  .row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .row-actions .btn { flex: 1; }
  .row-more summary { position: static; margin: 0 16px 16px; }
  .reading { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- 640 px ------------------------------------------------------------ */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { gap: 12px; }
  .mainnav { margin-left: auto; }
  .mainnav a { padding: 8px 10px; }
  .row-main { grid-template-columns: 76px minmax(0, 1fr); }
  .row-price { grid-column: 2; }
  .row-chart { grid-column: 1 / -1; }
  .row-info h3 { font-size: 17px; }
  .chart { width: calc(100% - 56px); height: 170px; margin-left: 56px; }
  .reading-chart .chart { height: 130px; }
  .browse { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { margin-top: 56px; }
}

/* ---- brands: the index and a store's page (4 Nov 2026) ---- */
.brand-section { margin-top: 40px; scroll-margin-top: 90px; }
.brand-section > h2, .brand-list > h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; margin-bottom: 18px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.brand-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .16s ease, transform .16s ease; }
.brand-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.brand-card:focus-visible, .guide-card:focus-visible, .jump-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand-card h3 { font-size: 18px; line-height: 1.2; margin-top: 6px; }
.brand-card .badges { margin-top: auto; padding-top: 6px; }
.brand-top { display: flex; align-items: center; justify-content: space-between; }
.brand-arrow { display: inline-flex; color: var(--faint); transform: rotate(-90deg); }
.brand-meta { font-size: 13px; color: var(--muted); }
.mono { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 247, 238, .12); font: 700 13px/1 var(--sans); letter-spacing: .04em; color: var(--head); }
.mono-lg { width: 60px; height: 60px; border-radius: 18px; font-size: 19px; }
.tone-1 { background: #24403f; } .tone-2 { background: #4f2731; } .tone-3 { background: #44441f; }
.tone-4 { background: #4a3123; } .tone-5 { background: #27304a; } .tone-6 { background: #42294a; }
.brand-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 24px; padding: 36px; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(169, 155, 255, .12), transparent 55%), linear-gradient(160deg, #2a1f18, #16110d); }
.brand-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: .98; letter-spacing: -.035em; margin: 18px 0 12px; }
.brand-hero .lede { max-width: 560px; }
.brand-hero .actions { margin-top: 22px; }
main > .legend:first-child { margin-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.tile { padding: 14px 16px; border-radius: 14px; background: rgba(18, 13, 10, .55); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tile b { display: block; margin-top: 6px; font: 700 24px/1.15 var(--display); color: var(--head); letter-spacing: -.01em; }
.tile-green { border-color: var(--green-line); } .tile-green b { color: var(--green); }
.tile-amber { border-color: var(--amber-line); } .tile-amber b { color: var(--amber); }
.brand-list { margin-top: 48px; }
.about-card { padding: 28px; }
.about-card h2 { font-size: 26px; margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--head); font-weight: 600; text-align: right; }

/* ---- guides: the index, the health guide and the history guide ---- */
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .16s ease, transform .16s ease; }
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.guide-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 220px; padding: 22px; overflow: hidden; }
.guide-visual > .chip { position: absolute; top: 16px; left: 16px; z-index: 1; background: rgba(18, 13, 10, .7); }
.guide-visual-health { background: radial-gradient(100% 120% at 100% 0%, rgba(169, 155, 255, .22), transparent 60%), linear-gradient(160deg, #2c2119, #17110d); }
.guide-visual-health b { font: 700 64px/1 var(--display); color: var(--head); letter-spacing: -.03em; }
.guide-visual-health > span:not(.chip):not(.bar) { color: var(--muted); }
.guide-visual-map { justify-content: center; padding: 0; background: #15100c; }
.guide-visual-map img { display: block; width: 100%; height: auto; }
.dotpin { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(243, 230, 211, .15); }
.guide-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.guide-card-body h3 { font-size: 22px; line-height: 1.2; }
.guide-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.jump-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jump-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .16s ease; }
.jump-card:hover { border-color: var(--line-strong); }
.jump-card h3 { font-size: 18px; line-height: 1.25; }
.jump-tag { font-size: 12px; color: var(--faint); }
.write-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 36px; border-radius: var(--r-lg); background: var(--text); color: #3a2c22; }
.write-box h2 { margin-bottom: 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; color: var(--bg); }
.write-box ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.write-box li { padding: 16px 18px; border-radius: 14px; background: rgba(18, 13, 10, .06); border: 1px solid rgba(18, 13, 10, .1); }
.write-box b { color: var(--bg); }
.write-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.write-chips span { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(18, 13, 10, .2); font-size: 12px; font-weight: 600; color: var(--bg); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: start; margin-top: 28px; }
main > .guide-cards:first-child { margin-top: 28px; }
.guide { max-width: 760px; }
.toc { position: sticky; top: 88px; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px; }
.toc a { padding: 5px 0; color: var(--muted); }
.toc a:hover { color: var(--head); }
.answer-box { padding: 28px 30px; border-radius: var(--r-lg); background: var(--text); color: #3a2c22; scroll-margin-top: 90px; }
.answer-box h2 { margin-bottom: 12px; font-size: 26px; color: var(--bg); }
.answer-box ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.answer-box strong { color: var(--bg); }
.answer-box .ref { background: rgba(18, 13, 10, .1); color: #3a2c22; }
.guide-section { margin-top: 56px; scroll-margin-top: 90px; }
.guide-section > h2 { margin-bottom: 10px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; }
.guide-section > p { margin-bottom: 18px; color: var(--muted); }
.ref { display: inline-grid; place-items: center; min-width: 20px; height: 18px; margin-left: 3px; padding: 0 5px; border-radius: 6px; background: var(--surface-3); font: 600 11px/1 var(--sans); color: var(--muted); vertical-align: 2px; text-decoration: none; }
.ref:hover { color: var(--head); }
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.calc-drinks { display: grid; padding: 8px 20px 20px; }
.drink { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drink-name { display: grid; gap: 2px; }
.drink-name b { font-weight: 600; color: var(--head); }
.drink-name span { font-size: 13px; color: var(--faint); }
.drink input { width: 72px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--head); font: 600 16px var(--sans); text-align: center; }
.drink input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-drinks .btn { justify-self: start; margin-top: 16px; }
.calc-total { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.calc-mg { color: var(--muted); }
.calc-mg b { font: 700 56px/1 var(--display); color: var(--head); letter-spacing: -.03em; }
.bar { position: relative; display: block; height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.bar-green { background: var(--green); } .bar-accent { background: var(--accent); } .bar-amber { background: var(--amber); }
.bar-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.calc-msg { margin-top: auto; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text); }
.calc-green .calc-msg { border-color: var(--green-line); background: var(--green-bg); }
.calc-amber .calc-msg { border-color: var(--amber-line); background: var(--amber-bg); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact-card { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fact-card h3 { font-size: 18px; }
.fact-card p { color: var(--muted); }
.fact-card .badge { justify-self: start; }
.fact-green { border-color: var(--green-line); background: linear-gradient(180deg, rgba(126, 220, 166, .06), var(--surface) 70%); }
.fact-amber { border-color: var(--amber-line); background: linear-gradient(180deg, rgba(242, 180, 90, .06), var(--surface) 70%); }
.note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.careful { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.careful li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.careful b { color: var(--head); }
.myth { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.myth summary { cursor: pointer; list-style: none; font: 600 17px/1.35 var(--display); color: var(--head); }
.myth summary::-webkit-details-marker { display: none; }
.myth summary::after { content: "Myth or fact?"; display: block; width: max-content; margin-top: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 12px var(--sans); color: var(--muted); }
.myth[open] summary::after { display: none; }
.myth[open] { border-color: rgba(169, 155, 255, .35); }
.myth p { margin-top: 12px; color: var(--muted); }
.myth p b { color: var(--head); }
.sources { display: grid; gap: 6px; margin: 0; padding-left: 30px; font-size: 14px; }
.sources a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(169, 155, 255, .5); text-underline-offset: 3px; }
.sources li:target a { color: var(--head); text-decoration-color: var(--accent); }
.next-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.next-cards a { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.next-cards a:hover { border-color: var(--line-strong); }
.next-cards span { font-size: 12px; color: var(--faint); }
.next-cards b { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--head); }
.map-card { margin-top: 24px; padding: 16px; scroll-margin-top: 90px; }
.map { position: relative; }
.map img { display: block; width: 100%; height: auto; }
.pin { position: absolute; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--sans); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(169, 155, 255, .25); }
.pin:hover { background: var(--accent-hover); }
.pin-static { position: static; transform: none; }
.map-note { margin-top: 8px; font-size: 12px; color: var(--faint); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.story { display: grid; align-content: start; gap: 8px; padding: 20px; scroll-margin-top: 90px; }
.story:target { border-color: var(--accent); }
.story-head { display: flex; align-items: center; gap: 8px; }
.story-year { margin-top: 4px; font: 700 30px/1.05 var(--display); color: var(--head); letter-spacing: -.02em; }
.story h3 { font-size: 17px; }
.story p:last-child { font-size: 14px; color: var(--muted); }
.era { margin: 28px 0 8px; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.tl-year b { display: block; font: 700 24px/1.1 var(--display); color: var(--head); }
.tl-year span { font-size: 12px; color: var(--faint); }
.timeline p { padding-top: 4px; color: var(--muted); }
.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.name-item { display: grid; align-content: start; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.name-item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 21px; }
.name-item p { color: var(--muted); }
.name-item .link { justify-self: start; font-size: 14px; }
@media (max-width: 960px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-hero, .write-box, .calc, .guide-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .jump-grid, .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* four menu items and the region don't fit beside the logo: the menu
     takes its own row and scrolls sideways if it must */
  .header-row { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .mainnav { order: 3; width: 100%; margin: 0; overflow-x: auto; padding-bottom: 10px; }
  .region { margin-left: auto; }
  .guide-cards, .jump-grid, .stories, .fact-grid, .names, .next-cards, .facts { grid-template-columns: 1fr; }
  /* two small cards a row: forty stores in one column made a very long page */
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-card { padding: 14px; }
  .brand-card h3 { font-size: 16px; }
  .tile b { font-size: 20px; }
  .brand-hero { padding: 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .write-box, .answer-box { padding: 22px; }
  .pin { width: 20px; height: 20px; font-size: 10px; box-shadow: 0 0 0 3px rgba(169, 155, 255, .25); }
}
