/* abso.coffee — milky paper by day, espresso by night, and the ripe cherry's red for
   what matters on a screen: coffee is the seed of a fruit. Vessels and maps share
   the same liquids: water blue, coffee brown, crema caramel, milk cream. The group's
   type (Unbounded, Onest; Be Vietnam Pro for Vietnamese) and the group's pin.
   Light and dark («светлая и тёмная обжарка») by the device's setting or the switch
   in the header (html[data-roast]). No external resources. */

@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-vietnamese-700-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('fonts/unbounded-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('fonts/unbounded-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('fonts/unbounded-vietnamese-800-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('fonts/onest-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url('fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url('fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url('fonts/be-vietnam-pro-vietnamese-500-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url('fonts/be-vietnam-pro-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url('fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url('fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }

:root {
  color-scheme: light;
  --paper: #F6F0E7;
  --paper-2: #EDE3D5;
  --card: #FCF8F2;
  --field: #FFFFFF;
  --ink: #1C130F;
  --ink-2: #4A3B32;
  --muted: #7B6A5F;
  --line: rgba(28, 19, 15, 0.11);
  --line-strong: rgba(28, 19, 15, 0.24);
  --chip: rgba(28, 19, 15, 0.06);
  --accent: #D62839;
  --accent-hover: #E8414F;
  --accent-ink: #FFFFFF;
  --accent-text: #A81E2E;
  /* the liquids and the beans */
  --water: #8EC3E6;
  --coffee: #3B2416;
  --brew: #6E4128;
  --grounds: #3A2417;
  --crema: #C58B55;
  --milk: #F1E2C6;
  --steel: #A3A7AC;
  --flame: #F27B35;
  --green-bean: #A9AE76;
  --ripe: #D62839;
  --fly: #E58A3A;
  --off: #A88B73;
  --map-dot: rgba(28, 19, 15, 0.2);
  --good: #3E7D3A;
  --mid: #A76A12;
  --bad: #B4402C;
  --night: #1C130F;
  --night-2: #261A14;
  --on-night: #F4EADD;
  --on-night-2: #C2B1A2;
  --pin: #1C130F;
  --pin-sign: #D62839;
  --radius: 20px;
  --shadow: 0 18px 50px -22px rgba(28, 19, 15, 0.45);
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Onest', sans-serif;
}
html[lang='vi'] { --text: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* the dark roast: by the device's setting unless the switch says light, or by the switch */
@media (prefers-color-scheme: dark) {
  :root:not([data-roast='light']) {
    color-scheme: dark;
    --paper: #15100C; --paper-2: #1E1611; --card: #241913; --field: #15100C;
    --ink: #F4EADD; --ink-2: #D6C7B9; --muted: #A8978A;
    --line: rgba(244, 234, 221, 0.1); --line-strong: rgba(244, 234, 221, 0.24); --chip: rgba(244, 234, 221, 0.07);
    --accent-text: #FF8C94; --good: #7FC274; --mid: #E8A94A; --bad: #FF7A62;
    --map-dot: rgba(244, 234, 221, 0.2); --off: #7D6655;
    --pin: #F4EADD; --pin-sign: #E8414F; --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.75);
  }
}
:root[data-roast='dark'] {
  color-scheme: dark;
  --paper: #15100C; --paper-2: #1E1611; --card: #241913; --field: #15100C;
  --ink: #F4EADD; --ink-2: #D6C7B9; --muted: #A8978A;
  --line: rgba(244, 234, 221, 0.1); --line-strong: rgba(244, 234, 221, 0.24); --chip: rgba(244, 234, 221, 0.07);
  --accent-text: #FF8C94; --good: #7FC274; --mid: #E8A94A; --bad: #FF7A62;
  --map-dot: rgba(244, 234, 221, 0.2); --off: #7D6655;
  --pin: #F4EADD; --pin-sign: #E8414F; --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.75);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 4.8vw, 3.9rem); }
/* the longest words in headings fit whole on 320–400 px phones */
@media (max-width: 400px) { h1 { font-size: clamp(1.5rem, 7.6vw, 1.9rem); } h2 { font-size: clamp(1.25rem, 6.2vw, 1.45rem); } }
h2 { font-size: clamp(1.45rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.28; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 860px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9em; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 46em; }
.muted { color: var(--muted); }
.note { font-size: 0.86rem; color: var(--muted); max-width: 62em; }
.mark { background: var(--accent); color: var(--accent-ink); padding: 0 0.16em; border-radius: 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.arr { display: inline-block; transition: transform 0.2s; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }
.gl { width: 1.15em; height: 1.15em; flex: none; }
.fill { background: #ffe08a; color: #3a2a00; padding: 0 4px; border-radius: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent-text); text-decoration: underline; cursor: pointer; font-size: 0.9em; }

/* ------------------------------------------------------------ header */

.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 68px; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.brand { text-decoration: none; display: inline-flex; color: var(--ink); }
.wordmark { display: inline-flex; align-items: flex-end; font: 800 1.42rem/1 'Unbounded', sans-serif; letter-spacing: -0.04em; transform: skewX(-10deg); white-space: nowrap; }
.wm-pin { width: 0.72em; height: 1em; margin: 0 0.01em -0.08em; }
.wm-tail { position: relative; display: inline-grid; }
.wm-tail > span { grid-area: 1 / 1; }
.wm-b { opacity: 0; transform: translateY(0.4em); }
@media (prefers-reduced-motion: no-preference) {
  .top .wm-a { animation: wm-a 12s 3s infinite; }
  .top .wm-b { animation: wm-b 12s 3s infinite; }
}
@keyframes wm-a { 0%, 78% { opacity: 1; transform: none; } 82%, 94% { opacity: 0; transform: translateY(-0.4em); } 100% { opacity: 1; transform: none; } }
@keyframes wm-b { 0%, 78% { opacity: 0; transform: translateY(0.4em); } 82%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(0.4em); } }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 8px 11px; border-radius: 99px; font-weight: 500; font-size: 0.94rem; color: var(--ink-2); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--chip); color: var(--ink); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--chip); }
.langs a { text-decoration: none; font-size: 0.78rem; font-weight: 700; padding: 5px 9px; border-radius: 99px; color: var(--ink-2); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
/* the roast switch: a bean that is light by day and dark by night */
.roast { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); cursor: pointer; display: grid; place-items: center; flex: none; }
.no-js .roast { display: none; }
.roast-bean { width: 14px; height: 20px; border-radius: 50%; background: #C58B55; transform: rotate(30deg); position: relative; transition: background 0.4s; }
.roast-bean::after { content: ''; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--paper); transform: skewY(-8deg); }
:root[data-roast='dark'] .roast-bean { background: #4A2A18; box-shadow: 0 0 0 1.5px #C58B55; }
@media (prefers-color-scheme: dark) { :root:not([data-roast='light']) .roast-bean { background: #4A2A18; box-shadow: 0 0 0 1.5px #C58B55; } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--chip); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform 0.2s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { border-top: 1px solid var(--line); padding: 12px clamp(16px, 4vw, 40px) 22px; background: var(--paper); }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { text-decoration: none; font: 700 1.2rem/1.2 var(--display); padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-langs { display: flex; gap: 8px; margin: 16px 0 0; }
.drawer-langs a { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--chip); }
.drawer-langs a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 1160px) { .nav { display: none; } .burger { display: inline-block; } }
@media (max-width: 560px) { .top-act .top-cta, .top-act .langs { display: none; } .wordmark { font-size: 1.24rem; } .top-in { gap: 10px; } }
/* reading as pouring: a line of coffee under the header fills as the page is read */
.pour { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.pour span { display: block; height: 100%; width: calc(var(--read, 0) * 100%); background: linear-gradient(90deg, var(--coffee), var(--brew) 85%, var(--crema)); border-radius: 0 3px 3px 0; }
.offline-bar { background: var(--ink); color: var(--paper); text-align: center; font-size: 0.86rem; padding: 6px 12px; }

/* ------------------------------------------------------------ buttons, chips, forms */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 99px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .gl { width: 18px; height: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
@media (max-width: 520px) { .cta-row .btn-lg { width: 100%; white-space: normal; } .btn { white-space: normal; max-width: 100%; text-align: center; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 15px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-weight: 500; font-size: 0.94rem; transition: background 0.15s, border-color 0.15s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip:hover > span { border-color: var(--ink); }
.req-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .req-grid { grid-template-columns: 1fr; } }
.lead-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs legend, .fld > span { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.fld { display: block; min-width: 0; }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--field); outline: none; transition: border-color 0.2s; }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--accent-text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--bad); font-weight: 600; margin: 0; }
.form-ok { padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--crema) 22%, var(--card)); }
.form-ok .num-big { font: 800 1.6rem/1.2 var(--display); display: block; margin: 6px 0 10px; }
.attach { font-size: 0.9rem; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--crema) 22%, var(--card)); border: 1px solid var(--line); }
.lead-form .btn[type='submit'] { justify-self: start; }
.contact-side h3 { font-size: 1.3rem; }
.contact-side p { color: var(--ink-2); }
.contact-big { display: flex; align-items: center; gap: 12px; font: 700 clamp(1rem, 1.9vw, 1.22rem)/1.3 var(--display); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.contact-big .gl { color: var(--accent-text); width: 24px; height: 24px; }
.contact-side .ticks { margin-top: 22px; }

/* ------------------------------------------------------------ sections */

.sec { padding: clamp(56px, 8vw, 100px) 0; }
.sec-head { margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head .lead { margin-bottom: 0; }
.sec-alt { background: var(--paper-2); }
.sec-night, .hero, .page-head.dark { background: var(--night); color: var(--on-night); --ink: var(--on-night); --ink-2: var(--on-night-2); --muted: #A8978A; --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.28); --chip: rgba(255, 255, 255, 0.08); --card: rgba(255, 255, 255, 0.045); --accent-text: #FF8C94; --field: #120C09; --map-dot: rgba(244, 234, 221, 0.2); --off: #7D6655; }
.sec-night .btn-ghost, .hero .btn-ghost, .page-head.dark .btn-ghost { color: var(--on-night); }
.sec-tight { padding-top: 0; }
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { max-width: 18em; }
.page-head.dark { padding-bottom: clamp(32px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ hero */

.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 76px); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(640px 420px at 80% 30%, rgba(197, 139, 85, 0.2), transparent 70%), radial-gradient(560px 380px at 6% 100%, rgba(214, 40, 57, 0.16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 0.42em; }
.hero-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; }
.hero-facts .gl { color: var(--crema); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ the brewing companion */

.brew { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 36px); padding: clamp(16px, 2.4vw, 28px); border-radius: calc(var(--radius) + 6px); background: var(--card); border: 1px solid var(--line); }
.brew.live-card { overflow: hidden; grid-template-columns: minmax(0, 1fr); background: linear-gradient(180deg, #2A1D16, #1A120D); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); color: var(--on-night); --ink: var(--on-night); --ink-2: var(--on-night-2); --chip: rgba(255, 255, 255, 0.08); --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.28); }
@media (max-width: 860px) { .brew { grid-template-columns: minmax(0, 1fr); } }
.brew-stage { position: relative; display: grid; justify-items: center; gap: 10px; align-content: start; }
.brew-stage .vessel { width: min(100%, 300px); height: auto; color: var(--ink); overflow: visible; }
.live-card .brew-stage { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.live-card .brew-stage .vessel { width: min(100%, 300px); margin: -10px -6px -14px; }
@media (max-width: 480px) { .live-card .brew-stage { grid-template-columns: minmax(0, 1fr); } }
.clock { font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.clock small { display: block; font: 600 0.8rem/1.4 var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.live-side { display: grid; gap: 10px; align-content: center; }
.live-side .now-step { font-weight: 600; font-size: 1.02rem; min-height: 3em; color: var(--on-night); }
.live-side .muted { font-size: 0.86rem; }
.brew-bar { height: 8px; border-radius: 8px; background: var(--chip); overflow: hidden; width: 100%; }
.brew-bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--crema), var(--accent)); border-radius: 8px; }
.brew-btns .g { display: inline-flex; }
.brew-btns .g-pause, .brew-btns [aria-pressed='true'] .g-play { display: none; }
.brew-btns [aria-pressed='true'] .g-pause { display: inline-flex; }
.brew-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.round .gl { width: 20px; height: 20px; }
.round[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.brew-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.brew-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 420px) { .brew-set { grid-template-columns: minmax(0, 1fr); } }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper output { min-width: 2.4em; text-align: center; font: 800 1.3rem/1 var(--display); }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; }
.stepper button .gl { width: 18px; height: 18px; }
.range { display: grid; gap: 6px; }
.range input { width: 100%; accent-color: var(--accent); }
.range .ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.ctl-label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.kpis { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.kpis li { padding: 12px 14px; background: var(--card); display: grid; gap: 2px; align-content: start; min-width: 0; }
.kpis b { font: 800 clamp(1.02rem, 1.8vw, 1.3rem)/1.15 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpis span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: st; }
.plan li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); align-items: baseline; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.plan li time { font: 700 0.92rem/1.3 var(--display); font-variant-numeric: tabular-nums; color: var(--muted); }
.plan li b { display: block; font-weight: 600; }
.plan li span { font-size: 0.9rem; color: var(--ink-2); }
.plan li.now { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-color: var(--accent); }
.plan li.now time { color: var(--accent-text); }
.plan li.past { opacity: 0.55; }
.brew-note { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* the vessels (shared/coffee.mjs draws them; src/brew.js moves the v-* parts) */
.vessel .v-line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.vessel .v-glass { fill: color-mix(in srgb, currentColor 5%, transparent); stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.vessel .v-metal { fill: var(--steel); }
.vessel .v-water { fill: var(--brew); }
.vessel.v-cold .v-water { fill: #C9A27E; }
.vessel .v-bed { fill: var(--grounds); }
.vessel .v-press { fill: var(--steel); }
.vessel .v-cup { fill: var(--coffee); transition: fill 1.2s; }
.vessel .v-milk { fill: var(--milk); }
.vessel .v-crust { fill: #4A2E1D; }
.vessel .v-crema { fill: var(--crema); }
.vessel .v-foam { fill: #B98458; }
.vessel .v-boiler { fill: var(--water); opacity: 0.85; }
.vessel .v-seal { fill: #2B2522; }
.vessel .v-dark { fill: #2A170D; opacity: 0; }
.vessel .v-dripline { fill: var(--coffee); }
.vessel .v-stream { fill: none; stroke: var(--water); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 7; opacity: 0; transition: opacity 0.3s; }
.vessel.is-pour .v-stream { opacity: 0.95; }
.vessel .v-drop { fill: var(--coffee); opacity: 0; }
.vessel .v-lid { transform: translateY(-34px); opacity: 0; transition: transform 0.6s, opacity 0.6s; }
.vessel.lid-on .v-lid { transform: none; opacity: 1; }
.vessel .v-ice rect { fill: rgba(225, 240, 250, 0.7); stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.5; }
.vessel .v-ice { opacity: 0; transform: translateY(-60px); transition: opacity 0.6s, transform 0.8s; }
.vessel.iced .v-ice { opacity: 1; transform: none; }
.vessel.mixed .v-cup { fill: #9C6B46; }
.vessel .v-flame { opacity: 0; transition: opacity 0.3s; transform-origin: 110px 256px; }
.vessel.is-heat .v-flame { opacity: 1; }
.vessel .v-flame path { fill: var(--flame); }
.vessel .v-fount { fill: none; stroke: var(--coffee); stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.vessel.is-flow .v-fount { opacity: 1; }
.vessel .v-shots rect { fill: #5A3520; opacity: 0; transition: opacity 0.3s; }
.vessel.is-flow .v-shots rect { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .vessel.is-pour .v-stream { animation: stream 0.5s linear infinite; }
  .vessel.is-drip .v-drop { animation: drop 1.15s ease-in infinite; }
  .vessel.is-drip .v-drop:nth-child(2) { animation-delay: 0.4s; }
  .vessel.is-drip .v-drop:nth-child(3) { animation-delay: 0.78s; }
  .vessel.is-heat .v-flame { animation: flicker 0.35s ease-in-out infinite alternate; }
  .vessel.is-flow .v-fount { animation: stream 0.4s linear infinite; stroke-dasharray: 6 4; }
}
@keyframes stream { to { stroke-dashoffset: -16; } }
@keyframes drop { 0% { transform: translateY(0); opacity: 0.95; } 85% { opacity: 0.95; } 100% { transform: translateY(84px); opacity: 0; } }
@keyframes flicker { from { transform: scaleY(0.92); } to { transform: scaleY(1.08); } }

/* method cards */
.method-card .ic { background: var(--chip); }
.method-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.vn-tag { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }

/* ------------------------------------------------------------ cards */

/* minmax(0, …): a wide table scrolls inside its column instead of widening the page */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid3, .grid2, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
a.card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; border-color: var(--line-strong); }
.card h3 { margin: 4px 0 0; font-size: 1.16rem; }
.card p { color: var(--ink-2); margin: 0; }
.card .more { margin-top: auto; padding-top: 6px; color: var(--accent-text); font-weight: 600; font-size: 0.95rem; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--chip); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.ic .gl { width: 26px; height: 26px; }
.ic-accent { background: var(--accent); color: var(--accent-ink); }

.facts-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.facts-table tbody th { font-weight: 600; color: var(--ink); }
.facts-table td.v { font-weight: 700; min-width: 8em; font-variant-numeric: tabular-nums; }
.facts-table .src { font-size: 0.82rem; color: var(--muted); }
.facts-table .src a { color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .gl { color: var(--accent-text); margin-top: 3px; }
.ticks.no .gl { color: var(--bad); }

.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.path li { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); counter-increment: s; position: relative; min-width: 0; }
.path li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 0.95rem/1 var(--display); color: var(--accent-text); margin-bottom: 10px; }
.path li .gl { position: absolute; right: 18px; top: 18px; width: 26px; height: 26px; color: var(--muted); }
.path b { display: block; margin-bottom: 4px; padding-right: 30px; }
.path span { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 1000px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .path { grid-template-columns: minmax(0, 1fr); } }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stats li { padding: 22px; background: var(--card); display: grid; gap: 6px; align-content: start; min-width: 0; }
.stats b { font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.05 var(--display); color: var(--accent-text); overflow-wrap: anywhere; }
.stats span { font-size: 0.92rem; color: var(--ink-2); }
.stats small { font-size: 0.76rem; color: var(--muted); }
.stats small a { color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.honest { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--night); color: var(--on-night); }
.honest h3 { color: #FF8C94; }
.honest ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--on-night-2); }
.band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); background: var(--accent); color: var(--accent-ink); }
.band h2 { margin-bottom: 0.3em; }
.band p { margin: 0; max-width: 40em; }
.band .btn-ink { background: #1C130F; color: #fff; }
.links-eco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.links-eco a { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.links-eco a b { font-weight: 700; }
.links-eco a span { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 900px) { .links-eco { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .links-eco { grid-template-columns: minmax(0, 1fr); } }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rule { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.rule h3 { display: flex; align-items: center; gap: 10px; }
.rule h3 .gl { color: var(--accent-text); }
.rule p { color: var(--ink-2); margin: 0 0 8px; }
.rule .src { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }
.rule .src a { color: var(--muted); }
.prose { max-width: 46em; }
.prose p, .prose li { color: var(--ink-2); }
.prose h3 { margin-top: 1.4em; }
.mt { margin-top: 28px; }
.mt-s { margin-top: 1.4em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* drinks of Vietnam */
.drink { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); scroll-margin-top: 90px; }
.drink + .drink { margin-top: 14px; }
.drink .glass-pic { width: 120px; }
.drink h3 { font-size: 1.25rem; margin-bottom: 2px; }
.drink .vi-name { font-size: 0.9rem; color: var(--accent-text); font-weight: 600; margin: 0 0 8px; }
.drink ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
@media (max-width: 560px) { .drink { grid-template-columns: minmax(0, 1fr); } .drink .glass-pic { width: 96px; } }
.layers .l-coffee { fill: var(--coffee); }
.layers .l-milk { fill: var(--milk); }
.layers .l-cream { fill: #F6EBD9; }
.layers .l-egg { fill: #F2D58C; }
.layers .l-salt { fill: #EFE6D8; }
.layers .l-coco { fill: #F4F0E8; }
.layers .l-mix { fill: #9C6B46; }
.layers .l-ice { fill: rgba(225, 240, 250, 0.7); stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.2; }
.layers .l-glass { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }

/* ------------------------------------------------------------ the bean maps */

.bean-map { position: relative; border-radius: calc(var(--radius) + 6px); background: var(--card); border: 1px solid var(--line); padding: clamp(12px, 2vw, 22px); }
.sec-night .bean-map, .hero .bean-map { background: linear-gradient(180deg, #2A1D16, #1A120D); border-color: rgba(255, 255, 255, 0.1); }
.bean-map svg { width: 100%; height: auto; }
.bm-land { fill: none; stroke: var(--map-dot); stroke-width: 1.15; stroke-linecap: round; }
.bm-belt { fill: color-mix(in srgb, var(--crema) 9%, transparent); }
.bm-tropic { stroke: color-mix(in srgb, var(--crema) 40%, transparent); stroke-width: 0.3; stroke-dasharray: 1.2 1.6; }
.bm-bean { fill: var(--off); transition: fill 0.5s; }
.bm-c.main .bm-bean { fill: var(--ripe); }
.bm-c.fly .bm-bean { fill: var(--fly); }
.bm-c.focus .bm-bean { stroke: var(--ink); stroke-width: 0.35; }
.bm-label { font: 600 4.6px var(--text); fill: var(--ink-2); }
.bm-route { fill: none; stroke: var(--crema); stroke-width: 0.6; stroke-dasharray: 1.4 1.8; opacity: 0.8; }
.bm-city { fill: var(--ink); }
.bm-top { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bm-month { font: 800 1.2rem/1 var(--display); }
.bm-month small { font: 500 0.82rem/1.3 var(--text); color: var(--muted); display: block; margin-top: 4px; }
.bm-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.82rem; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.bm-legend li { display: flex; align-items: center; gap: 6px; }
.bm-legend i { width: 10px; height: 14px; border-radius: 50%; transform: rotate(30deg); background: var(--off); display: inline-block; }
.bm-legend .k-main i { background: var(--ripe); }
.bm-legend .k-fly i { background: var(--fly); }
.bm-legend .k-land i { width: 6px; height: 6px; background: var(--map-dot); }
.bm-time { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 10px; }
.bm-time input { width: 100%; accent-color: var(--accent); }
.bm-now { font-size: 0.95rem; color: var(--ink-2); margin: 12px 0 0; }
.bm-now b { color: var(--ink); }
.bm-note { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }
.bm-note a { color: var(--muted); }
.harvest { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.harvest th, .harvest td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.harvest thead th { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.harvest td.m { width: 26px; padding: 8px 1px; }
.harvest td.m i { display: block; height: 14px; border-radius: 4px; background: var(--chip); }
.harvest td.m.main i { background: var(--ripe); }
.harvest td.m.fly i { background: var(--fly); }
.harvest td.m.cur { box-shadow: inset 0 -3px 0 var(--ink); }
.harvest td.v { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.vn-map { max-width: 360px; margin: 0 auto; }
.vn-map .bm-land { stroke-width: 1.35; }
.vn-map .bm-bean { fill: var(--crema); }
.vn-map .k-robusta .bm-bean { fill: var(--brew); }
.vn-map .k-arabica .bm-bean { fill: var(--ripe); }
.vn-map .k-mixed .bm-bean { fill: var(--fly); }
.vn-map .vm-label { font: 600 7px var(--text); fill: var(--ink); }
.vn-map .vm-city { font: 500 6.2px var(--text); fill: var(--muted); }
.vn-legend { justify-content: center; margin-top: 8px; }
.vn-legend .k-robusta i { background: var(--brew); }
.vn-legend .k-arabica i { background: var(--ripe); }
.vn-legend .k-mixed i { background: var(--fly); }

/* ------------------------------------------------------------ calculators and tools */

.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); padding: clamp(18px, 3vw, 32px); border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--line); scroll-margin-top: 90px; }
.tool + .tool { margin-top: 18px; }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); display: flex; gap: 12px; align-items: center; }
.tool-form { display: grid; gap: 14px; align-content: start; min-width: 0; }
.tool-out { display: grid; gap: 12px; align-content: start; min-width: 0; }
.big-num { font: 800 clamp(2rem, 5vw, 3rem)/1.05 var(--display); font-variant-numeric: tabular-nums; color: var(--accent-text); overflow-wrap: anywhere; }
.big-num small { font: 600 0.95rem/1.3 var(--text); color: var(--ink-2); display: block; margin-top: 6px; }
.meter { position: relative; height: 14px; border-radius: 8px; background: var(--chip); overflow: hidden; }
.meter span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; }
.meter .lo { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.meter .hi { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.meter .lim { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.meter-scale { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); }
.drink-rows { display: grid; gap: 8px; }
.drink-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--chip); }
.drink-row b { display: block; font-weight: 600; font-size: 0.95rem; }
.drink-row span { font-size: 0.8rem; color: var(--muted); }
.verdict { padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; background: var(--chip); }
.verdict.ok { background: color-mix(in srgb, var(--good) 14%, var(--card)); }
.verdict.warn { background: color-mix(in srgb, var(--mid) 16%, var(--card)); }
.verdict.over { background: color-mix(in srgb, var(--bad) 16%, var(--card)); }

/* the roast */
.roaster { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(18px, 3vw, 32px); border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--line); }
@media (max-width: 760px) { .roaster { grid-template-columns: minmax(0, 1fr); } }
.roast-pic { display: grid; place-items: center; }
.roast-pic svg { width: min(100%, 240px); }
.roast-pic .rb-body { transition: fill 0.2s; }
.roast-pic .rb-crease { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-width: 4; stroke-linecap: round; }
.roast-pic .rb-shine { fill: rgba(255, 255, 255, 0.18); }
.roast-pic .rb-oil { fill: rgba(255, 255, 255, 0.35); opacity: 0; transition: opacity 0.3s; }
.roast-pic.oily .rb-oil { opacity: 1; }
.curve { width: 100%; height: auto; }
.curve .c-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.curve .c-axis { stroke: var(--line-strong); stroke-width: 1; }
.curve .c-mark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.curve text { font: 500 10px var(--text); fill: var(--muted); }
.curve .c-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.roast-stage { font: 800 1.3rem/1.2 var(--display); }
.roast-read { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 0.95rem; }

/* the taste compass */
.compass { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); gap: 6px; }
.compass .ax { font-size: 0.74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: grid; place-items: center; text-align: center; padding: 4px; }
.compass .ax-y { writing-mode: vertical-rl; transform: rotate(180deg); }
.compass button { min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; padding: 8px; font-weight: 600; font-size: 0.86rem; line-height: 1.25; }
.compass button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.compass button.ideal { border-style: dashed; }
.compass-out { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--chip); }
.compass-out h3 { margin-bottom: 6px; }
.compass-out ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; }

/* ------------------------------------------------------------ questions, jokes, sources */

.srcs { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.srcs summary { cursor: pointer; font-weight: 600; }
.srcs ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.srcs a { color: var(--muted); overflow-wrap: anywhere; }
.faq { display: grid; max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: currentColor; transition: transform 0.2s; }
.faq-x::after { transform: rotate(90deg); }
.faq details[open] .faq-x::after { transform: none; }
.faq details p { color: var(--ink-2); padding: 0 0 22px; margin: 0; max-width: 46em; }
.jokes { max-width: 860px; margin: 0 auto; padding: clamp(20px, 3vw, 32px) clamp(22px, 3vw, 36px); border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1.5px dashed var(--line-strong); }
.jokes-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.jokes-title .gl { width: 20px; height: 20px; }
.joke { font: 500 clamp(1.05rem, 1.8vw, 1.26rem)/1.5 var(--text); margin: 0 0 14px; }
.jokes.cycling .joke { display: none; }
.jokes.cycling .joke.on { display: block; }
@media (prefers-reduced-motion: no-preference) { .jokes.cycling .joke.on { animation: joke-in 0.35s ease; } }
@keyframes joke-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec-joke { padding: 0 0 clamp(48px, 7vw, 86px); }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.glossary div { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 760px) { .glossary { grid-template-columns: minmax(0, 1fr); } }

.legal h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal p { color: var(--ink-2); }

/* admin */
.admin-login { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: 520px; }
.admin-login .fld { flex: 1; }
.admin-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.admin-list { display: grid; gap: 12px; }
.lead-card { padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.95rem; }
.lead-card header { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.lead-card header b { font-family: var(--display); }
.lead-card pre { white-space: pre-wrap; font: inherit; margin: 0; color: var(--ink-2); }
.lead-card select { padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--field); }

/* ------------------------------------------------------------ footer */

.foot { background: var(--night); color: var(--on-night); padding: 64px 0 28px; --pin: #F4EADD; --pin-sign: var(--accent); }
.foot .brand { color: var(--on-night); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.foot-brand p { color: var(--on-night-2); font-size: 0.92rem; margin: 18px 0 0; max-width: 30em; }
.foot-brand .foot-asof { font-size: 0.8rem; margin-top: 10px; }
.foot-nav, .foot-contacts, .foot-group { display: grid; gap: 10px; align-content: start; font-size: 0.95rem; }
.foot-nav a, .foot-group a, .foot-contacts a { text-decoration: none; color: var(--on-night); display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.foot-nav a:hover, .foot-group a:hover, .foot-contacts a:hover { color: #FF8C94; }
.foot-contacts span, .foot-group > span, .foot-group a span { color: var(--on-night-2); }
.foot-group > span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.foot-base { max-width: 1240px; margin: 48px auto 0; padding: 20px clamp(16px, 4vw, 40px) 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.84rem; color: var(--on-night-2); }
.foot-base a { color: var(--on-night-2); }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
.install { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); cursor: pointer; }

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