/* Glass Bar. Day: white walls, a mural behind frosted glass. Night: walnut, a warm pendant, green leather.
   Colour lives in the blurred blobs behind the glass; numbers are large and light, labels set like a menu wall.
   System fonts stand in for Geist (SF Pro and SF Mono on Apple devices), so no font host sees visitors. */
:root {
  --bg: #F5F5F4;
  --ink: #141414;
  --muted: #5E5E5B;
  --line: rgba(20, 20, 20, 0.08);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 40px rgba(20, 20, 20, 0.08);
  --chip: rgba(20, 20, 20, 0.06);
  --accent: #C4511F;
  --accent-hover: #9C3F17;
  --on-accent: #FFFFFF;
  --good: #2F6B4F;
  --good-bg: rgba(111, 170, 134, 0.18);
  --track: rgba(20, 20, 20, 0.08);
  --error: #A3322A;
  --b1: #F08A4B; --b2: #8FB3C9; --b3: #F2C14E; --b4: #6FAA86; --bo: 0.45;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0C0B;
    --ink: #F3F1EE;
    --muted: #A39B93;
    --line: rgba(255, 255, 255, 0.10);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --chip: rgba(255, 255, 255, 0.08);
    --accent: #FF8A4C;
    --accent-hover: #FFA877;
    --on-accent: #141414;
    --good: #9FD3B4;
    --good-bg: rgba(111, 170, 134, 0.16);
    --track: rgba(255, 255, 255, 0.10);
    --error: #F08A80;
    --b1: #C7782F; --b2: #2F5546; --b3: #8A5A34; --b4: #2F5546; --bo: 0.5;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* The mural: four blurred blobs behind everything. */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; opacity: var(--bo); filter: blur(60px); }
.blobs i:nth-child(1) { left: -80px; top: 40px; width: 280px; height: 260px; background: var(--b1); }
.blobs i:nth-child(2) { right: -90px; top: 160px; width: 260px; height: 240px; background: var(--b2); }
.blobs i:nth-child(3) { left: 18%; top: 300px; width: 240px; height: 200px; background: var(--b3); }
.blobs i:nth-child(4) { right: -60px; top: 780px; width: 260px; height: 240px; background: var(--b4); filter: blur(70px); }
.top, main, .foot { position: relative; z-index: 1; }

.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; width: 100%; max-width: 860px; margin: 0 auto; padding: 16px 20px; }
.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--ink); }
.brand { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.path { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
main { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px 40px; flex: 1; }
main.narrow-page { max-width: 640px; }
.foot { width: 100%; max-width: 860px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--muted); }
.foot a { color: var(--muted); }

h1, h2, h3 { text-wrap: balance; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.ok { color: var(--good); font-weight: 600; }
.error { color: var(--error); font-weight: 600; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
code { font-family: var(--mono); background: var(--chip); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

/* Glass */
.glass, .card { background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); border-radius: 24px; }
.card { padding: 22px; margin: 16px 0; box-shadow: var(--shadow); }
.card h1 { margin-top: 0; font-weight: 300; letter-spacing: -0.03em; }
.card h2 { margin: 0 0 12px; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 24px; }
.prose p, .prose li { max-width: 66ch; }

/* Buttons */
.actions { display: flex; flex-direction: column; gap: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { color: var(--on-accent); filter: brightness(1.06); }
.button.secondary { min-height: 44px; padding: 12px 20px; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.button.secondary:hover { color: var(--ink); }
.button.ink { background: var(--ink); color: var(--bg); }
.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
form.inline { display: inline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Public roast page */
.hero { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { margin: 0; font-size: clamp(48px, 13vw, 76px); line-height: 0.92; font-weight: 300; letter-spacing: -0.055em; }
.hero .details { font-size: 15px; color: var(--muted); }
.hero .intro { margin: 8px 0 0; font-size: 17px; line-height: 1.4; max-width: 46ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; background: var(--chip); border-radius: 999px; padding: 6px 12px; }
.section { padding: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.section h2 { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.recipe-row { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.recipe-row .values { font-family: var(--mono); font-size: 14px; }
.recipe-row .notes { flex-basis: 100%; margin: 0; font-size: 15px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { font-size: 14px; color: var(--ink); text-decoration: none; background: var(--chip); border-radius: 999px; padding: 10px 16px; min-height: 40px; }
.filters a.on { background: var(--ink); color: var(--bg); font-weight: 500; }
.grinders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.grinder { padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.grinder:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.grinder header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grinder h3 { margin: 0; font-size: 16px; font-weight: 600; }
.badge { font-family: var(--mono); font-size: 11px; background: var(--good-bg); color: var(--good); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.big { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.big span:first-child { font-size: 72px; font-weight: 300; letter-spacing: -0.06em; line-height: 0.88; }
.big span:last-child { font-size: 18px; font-weight: 500; color: var(--muted); }
.grinder .recipe { font-family: var(--mono); font-size: 13px; margin: 0; }
.grinder .empty { margin: 0; color: var(--muted); }
.meter { display: flex; gap: 4px; align-items: center; }
.meter i { width: 20px; height: 8px; border-radius: 4px; background: var(--track); }
.meter i.on { background: var(--good); }
.meter b { font: 400 12px var(--mono); color: var(--good); margin-left: 6px; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.posts li .rating { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.posts li .sub { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Forms (roaster and admin) */
label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; letter-spacing: 0.06em; color: var(--ink); }
.hint { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
input, select, textarea { font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; min-height: 48px; }
label.check input { width: auto; min-height: 0; }
textarea { min-height: 0; }
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 0 6px; }
legend .hint { letter-spacing: 0; text-transform: none; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.list th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--muted); border-top: 0; white-space: nowrap; }
.hidden-row td { opacity: .5; }

/* Roaster roast page */
.qr-layout { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 24px; align-items: start; }
.qr { background: #fff; border-radius: 14px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.lockups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.lockup-preview { background: #E7E5E1; border-radius: 18px; padding: 20px; display: flex; justify-content: center; }
.lockup-preview svg { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 6px; }
.badge-preview img { display: block; max-width: 100%; height: auto; }
@media (max-width: 640px) { .qr-layout { grid-template-columns: 1fr; } .qr { max-width: 260px; } }

/* W2: the card on a roaster's product page. Pure white and hairlines: a label, not an ad. */
body.embed { background: transparent; min-height: 0; display: block; overflow: hidden; color-scheme: light; }
.embed-card { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 360px; height: 170px; padding: 14px 18px; background: #FFFFFF; color: #141414; border: 1px solid rgba(20, 20, 20, 0.12); border-radius: 18px; box-shadow: 0 6px 24px rgba(20, 20, 20, 0.06); font-family: var(--sans); text-decoration: none; }
.embed-card .head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2px; font-family: var(--mono); font-size: 10px; }
.embed-card .head b { font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.embed-card .head span { color: #5E5E5B; }
.embed-card .line { display: flex; gap: 8px; align-items: baseline; border-bottom: 1px solid rgba(20, 20, 20, 0.08); padding: 4px 0 6px; }
.embed-card .line .name { font-size: 14px; font-weight: 500; flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-card .line .num { font-size: 24px; font-weight: 300; letter-spacing: -0.04em; }
.embed-card .line .meta { font-family: var(--mono); font-size: 11px; color: #5E5E5B; white-space: nowrap; }
.embed-card .more { margin-top: auto; font-size: 13px; font-weight: 600; color: #C4511F; }
.embed-card .first { margin: auto 0; font-size: 15px; }

/* Home page */
main.wide-page { max-width: 1120px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; padding: 36px 0 12px; }
.landing-copy { display: flex; flex-direction: column; gap: 16px; }
.landing-copy h1 { margin: 0; font-size: clamp(40px, 6.4vw, 68px); line-height: 0.98; font-weight: 300; letter-spacing: -0.045em; }
.landing-copy .intro { margin: 0; font-size: 19px; line-height: 1.45; max-width: 46ch; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: flex; flex-direction: column; gap: 2px; min-width: 190px; padding: 14px 20px; border-radius: 20px; color: var(--ink); text-decoration: none; }
.store b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
a.store:hover { color: var(--ink); border-color: var(--accent); }
.phone-shot { margin: 0; justify-self: center; width: 100%; max-width: 330px; }
.phone-shot img { display: block; width: 100%; height: auto; border-radius: 42px; border: 8px solid var(--ink); box-shadow: var(--shadow); background: var(--bg); }
.section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; font-weight: 300; letter-spacing: -0.035em; max-width: 24ch; }
.tile { padding: 22px; border-radius: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.trio, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step-n { font-size: 44px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; }
.feature-copy p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 52ch; }
.feature-shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.feature-shots .back { margin-top: 64px; }
.devices { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.device-card { margin: 0; padding: 14px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
.device-card.wide { grid-column: auto; }
.device-card img { display: block; width: 100%; height: auto; border-radius: 18px; }
.device-card.watch img { border-radius: 36px; background: #000; padding: 10px; box-sizing: border-box; }
.device-card figcaption { font-size: 14px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wide-tile { padding: 32px; }
.wide-tile p { font-size: 17px; max-width: 70ch; }
.landing-cta { align-items: flex-start; padding-bottom: 20px; }
@media (max-width: 900px) {
  .landing-hero, .feature-split { grid-template-columns: 1fr; }
  .phone-shot { max-width: 280px; }
  .features, .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .trio, .steps, .features { grid-template-columns: 1fr; }
  .feature-shots .back { margin-top: 40px; }
  .store { min-width: 0; flex: 1 1 140px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
