/* SOMM. The wine list in a dark bar, printed on a terminal grid. Dark-locked. 0 radius. */
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/static/fonts/ebg-400i.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/plexmono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/plexmono-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/plexsans-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/plexsans-500.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0E0A0B; --surface: #150F11; --ink: #EDE6DA; --ink-muted: #A99F94;
  --rule: #3A2A2D; --shadow: #2A1A1D; --bordeaux: #9B1B30; --bordeaux-text: #DD5670; --correct: #69CF8D;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px; --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
body::after { /* 3% paper grain, fixed, never on scrolling containers */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--bordeaux-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { font: inherit; color: inherit; border-radius: 0; }
code, .mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.nav-in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.mark { width: 28px; height: 28px; display: block; }
.mark .stroke, .glass .stroke { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
.mark .stroke { stroke-width: 4; }
.mark .lw, .glass .lw { stroke-linejoin: round; }
.glass .node { fill: var(--ink); stroke: none; }
.mark .liq, .glass .liq { fill: var(--bordeaux); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.4); }
.word { font: 500 15px/1 var(--mono); letter-spacing: .12em; }
.links { display: none; gap: 4px; }
.links a, .sheet a { color: var(--ink-muted); text-decoration: none; font: 400 14px/1 var(--sans); padding: 10px 10px; white-space: nowrap; }
.links a:hover, .sheet a:hover { color: var(--ink); }
.links a { transition: color .2s var(--ease); }
.menu-btn { background: none; border: 1px solid var(--rule); color: var(--ink); padding: 8px 12px; font: 500 13px/1 var(--mono); letter-spacing: .06em; cursor: pointer; min-height: 40px; }
.sheet { display: grid; border-top: 1px solid var(--rule); background: var(--bg); padding: 8px var(--gutter) 16px; }
.sheet a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .links { display: flex; } .menu-btn, .sheet { display: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--bordeaux); color: var(--ink); border-color: var(--bordeaux); box-shadow: 3px 3px 0 var(--shadow); }
.btn.primary:hover:not(:disabled) { background: #A82139; color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn.primary:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.iconbtn { background: none; border: 1px solid var(--rule); width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-muted); flex: none; }
.iconbtn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-muted); }
.iconbtn:disabled { opacity: .4; cursor: not-allowed; }
.iconbtn svg, .lnk svg { width: 16px; height: 16px; fill: currentColor; }
.toggle { background: none; border: 1px solid var(--rule); color: var(--ink-muted); font: 400 12px/1 var(--mono); letter-spacing: .04em; padding: 0 10px; min-height: 32px; cursor: pointer; }
.toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-muted); }

/* ---------- hero + stream ---------- */
.hero { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.hero h1 { font: italic 400 clamp(44px, 6vw, 68px)/1.1 var(--serif); letter-spacing: -.01em; padding-bottom: .12em; max-width: 13ch; }
.sub { font-size: 17px; line-height: 1.55; color: var(--ink-muted); max-width: 44ch; margin: 18px 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stream-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 32px; }
.label { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.stream-state { font: 400 12px/1 var(--mono); color: var(--ink-muted); margin-right: auto; }
.pours { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
#pours { --ch: 336px; height: calc(3 * var(--ch) + 2px); overflow: hidden; align-content: start; }
.card { background: var(--surface); padding: 16px 18px; display: grid; gap: 10px; grid-template-rows: auto auto auto 1fr; height: var(--ch, auto); overflow: hidden; }
.card .card-links { align-self: end; }
.single-card .card { grid-template-rows: none; }
.card.new { animation: fade .12s linear; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.card-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tick { font: 500 13px/1.2 var(--mono); text-transform: uppercase; color: var(--bordeaux-text); flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cname { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.agetag { font: 400 12px/1.2 var(--mono); color: var(--ink-muted); flex: none; white-space: nowrap; }
.prose { font: italic 400 18px/26px var(--serif); margin: 0; color: var(--ink); }
.card .prose { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 419px) { #pours { --ch: 372px; } #pours .prov { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { #pours .prov { grid-template-columns: 1fr 1fr; } }
.prov { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0; }
.prov > div { background: var(--bg); padding: 6px 8px; min-width: 0; }
.prov dt { font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.prov dd { margin: 2px 0 0; font: 400 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-links { display: flex; gap: 16px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.lnk { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/1 var(--mono); color: var(--bordeaux-text); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; min-height: 28px; }
.lnk:hover { color: var(--ink); }
.slot-empty { background: var(--surface); }
.corked { height: var(--ch, 44px); display: flex; align-items: flex-start; padding: 16px 18px; background: var(--surface); font: italic 400 17px/1 var(--serif); color: var(--ink-muted); }
.more { font: 400 12px/1.4 var(--mono); color: var(--ink-muted); min-height: 18px; margin: 8px 0 0; }
.empty-card { background: var(--surface); padding: 20px; color: var(--ink-muted); font: italic 400 18px/1.4 var(--serif); }
.skel .sk { background: var(--rule); height: 12px; }
.skel .sk.tall { height: 18px; } .sk.w40 { width: 40%; } .sk.w70 { width: 70%; } .sk.w90 { width: 90%; } .sk.grid4 { height: 46px; margin-top: 8px; }

@media (min-width: 768px) and (max-width: 1023px) {
  #pours { --ch: 376px; grid-template-columns: 1fr 1fr; height: calc(2 * var(--ch) + 1px); }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 5fr 7fr; gap: 48px; padding-top: 56px; align-items: start; }
  .hero-copy { padding-top: 40px; position: sticky; top: 88px; }
  .hero h1 { max-width: 12ch; }
  .prose { font-size: 20px; line-height: 28px; }
  .card .prose { -webkit-line-clamp: 3; }
  #pours { --ch: 246px; height: calc(4 * var(--ch) + 3px); }
}
@media (max-width: 767px) { #pours .card:nth-child(n+4) { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { #pours .card:nth-child(n+5) { display: none; } }

/* ---------- stat strip ---------- */
.strip { padding-top: 8px; padding-bottom: 56px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0; }
.stats .cell { background: var(--bg); padding: 14px 14px 16px; min-width: 0; }
.stats .slot { grid-column: 1 / -1; }
.stats dt { font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.stats dd { margin: 8px 0 0; display: grid; gap: 4px; }
.stats .num { font-size: 22px; line-height: 1.1; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.stats small { font: 400 12px/1.3 var(--mono); color: var(--ink-muted); }
.live { width: 8px; height: 8px; background: var(--correct); display: inline-block; flex: none; }
.live.off { background: var(--ink-muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stats .slot { grid-column: auto; } .stats .num { font-size: 28px; } }

/* ---------- blind tasting ---------- */
.blind { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--rule); }
.h2 { font: italic 400 clamp(36px, 5vw, 52px)/1.1 var(--serif); padding-bottom: .1em; }
.h3 { font: italic 400 28px/1.2 var(--serif); padding-bottom: .1em; }
.lede { max-width: 52ch; color: var(--ink-muted); font-size: 17px; margin: 12px 0 28px; }
.bt-msg { font: 400 14px/1.4 var(--mono); color: var(--ink); min-height: 20px; margin: 0 0 16px; }
.bt-msg.err { color: var(--bordeaux-text); }
.bt-grid { display: grid; gap: 16px; }
.bt-card { background: var(--surface); box-shadow: 3px 3px 0 var(--shadow); border: 2px solid transparent; padding: 16px; display: grid; grid-template-columns: 76px 1fr; gap: 14px 16px; align-content: start; }
.bt-card.chosen { border-color: var(--bordeaux); }
.glass-wrap { grid-row: span 2; }
.glass { width: 76px; height: 76px; display: block; }
.glass .liq { transform: scaleY(0); }
.bt[data-state="tasting"] .glass .liq, .bt[data-state="resolved"] .glass .liq { transition: transform 1s var(--ease); }
.bt-body { display: grid; gap: 10px; min-width: 0; align-content: start; }
.bt-label { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bt-card .pick { grid-column: 1 / -1; width: 100%; }
.bt:not([data-state="open"]) .bt-card .pick { display: none; }
.bt[data-state="open"] #next, .bt[data-state="tasting"] #next { display: none; }
.bt-live { font-size: 13px; color: var(--ink-muted); margin: 0; min-height: 18px; }
.reveal { display: grid; gap: 8px; }
.reveal .rname { font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.reveal .rname .tick { max-width: none; }
.win-mark { font: 400 12px/1 var(--mono); color: var(--ink); border: 1px solid var(--rule); padding: 4px 6px; }
.bt-gutter { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; align-content: center; padding: 4px 0; }
.commit { margin: 0; font-size: 12px; color: var(--ink-muted); overflow-wrap: anywhere; }
.commit .k { color: var(--bordeaux-text); }
.timer { grid-column: 1 / -1; margin: 0; font-size: 13px; min-height: 18px; }
.bar { grid-column: 1 / -1; height: 3px; }
.bar span { display: block; height: 100%; background: var(--bordeaux); transform-origin: 0 50%; transform: scaleX(0); }
.bt-card .prov:empty, .bt-live:empty { display: none; }
.bt-card .prov { grid-template-columns: 1fr 1fr; }
.bt-foot { display: grid; gap: 10px; margin-top: 24px; }
.bt[data-state="idle"] .verdict:empty, .bt[data-state="idle"] .verify:empty { display: none; }
.verdict { font: italic 400 32px/1.15 var(--serif); margin: 0; min-height: 37px; display: flex; align-items: center; gap: 10px; }
.verdict svg { width: 26px; height: 26px; fill: currentColor; }
.verdict.correct { color: var(--correct); } .verdict.wrong { color: var(--bordeaux-text); } .verdict.void { color: var(--ink-muted); }
.verify, .streak { margin: 0; font-size: 13px; color: var(--ink-muted); min-height: 18px; }
.verify.ok { color: var(--ink); }
.bt-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.sticky-picks { position: sticky; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--rule); margin-top: 16px; }
@media (max-width: 767px) {
  .bt-card .prov { grid-template-columns: 1fr 1fr; }
  .bt[data-state="open"] .bt-card .pick { display: none; }
  .bt-card { min-height: 0; }
}
@media (min-width: 768px) {
  .bt-grid { grid-template-columns: minmax(0, 520px) 200px minmax(0, 520px); justify-content: center; gap: 0 20px; }
  .bt-card { grid-template-columns: 88px 1fr; padding: 20px; }
  .bt:is([data-state="open"], [data-state="tasting"], [data-state="resolved"]) .bt-card { min-height: 236px; }
  .glass { width: 88px; height: 88px; }
  .sticky-picks { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1023px) { .bt-grid { grid-template-columns: 1fr 1fr; gap: 16px; } .bt-gutter { grid-column: 1 / -1; grid-row: 1; } .bt-card { grid-template-columns: 64px 1fr; } .glass { width: 64px; height: 64px; } .bt-card .prov { grid-template-columns: 1fr 1fr; } }


/* ---------- cellar (printed menu) ---------- */
.cellar { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--rule); }
.menu { display: grid; gap: 40px; margin-top: 32px; }
.menu-side { order: -1; }
.menu-h { font: italic 400 26px/1.2 var(--serif); margin-bottom: 18px; padding-bottom: .08em; }
.menu-g { font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.rows { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.rows a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); padding: 8px 0; min-height: 40px; }
.rows a:hover .rn { color: var(--bordeaux-text); }
.rn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.rn .tick { margin-left: 8px; font-size: 12px; }
.lead { border-bottom: 1px dotted var(--ink-muted); opacity: .6; transform: translateY(-4px); min-width: 16px; }
.rv { font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.rv i { font-style: normal; color: var(--ink-muted); margin-left: 10px; }
.rows .empty { color: var(--ink-muted); font: italic 400 18px/1.4 var(--serif); padding: 8px 0; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.note { font: 400 12px/1.4 var(--mono); color: var(--ink-muted); margin-top: 16px; }
.house { font: italic 400 clamp(64px, 10vw, 120px)/1.05 var(--serif); margin: 0; padding-bottom: .12em; overflow-wrap: anywhere; min-height: 1.2em; }
.house-n { font: 400 13px/1.4 var(--mono); color: var(--ink-muted); margin: 4px 0 32px; }
.chart { margin: 0 0 28px; position: relative; }
.chart-box { height: 88px; display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 2px; align-items: end; }
.chart-box span { background: var(--bordeaux); min-height: 1px; display: block; }
.chart-box span:hover { background: var(--bordeaux-text); }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); margin-top: 6px; }
.tip { font-size: 12px; color: var(--ink); min-height: 16px; margin: 6px 0 0; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0; }
.counts > div { background: var(--bg); padding: 12px; }
.counts dt { font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.counts dd { margin: 6px 0 0; font-size: 22px; }
@media (max-width: 1023px) {
  .rows a { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
  .rows li + li a { border-top: 1px dotted var(--rule); }
  .rn { max-width: none; }
  .lead { display: none; }
  .rv { font-size: 12px; color: var(--ink-muted); }
  .rv i { margin-left: 8px; }
}
@media (min-width: 768px) { .menu { grid-template-columns: 7fr 5fr; gap: 64px; } .menu-side { order: 0; } .rn { max-width: 30vw; } }

/* ---------- how it tastes ---------- */
.how { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--rule); }
.legend { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 32px 0 56px; }
.tile { background: var(--surface); padding: 20px; display: grid; gap: 10px; align-content: start; }
.tile h3 { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bordeaux-text); }
.th { font-size: 12px; line-height: 1.6; color: var(--ink); margin: 0; }
.ex { font-size: 22px; line-height: 1.3; }
.small { font-size: 14px; color: var(--ink-muted); margin: 0; }
@media (min-width: 768px) { .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile.wide { grid-column: span 2; } .legend .tile:nth-child(4) { grid-column: span 2; } .legend .tile:nth-child(5) { grid-column: span 3; } }
@media (min-width: 1024px) { .legend { grid-template-columns: repeat(12, minmax(0, 1fr)); } .legend .tile { grid-column: span 3; } .legend .tile:nth-child(1) { grid-column: span 6; } .legend .tile:nth-child(4) { grid-column: span 4; } .legend .tile:nth-child(5) { grid-column: span 8; } }
.rules-wrap { display: grid; gap: 20px; margin-bottom: 56px; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 4px; max-width: 760px; }
@media (min-width: 1024px) { .rules { grid-template-columns: 1fr 1fr; gap: 8px 48px; max-width: 1100px; } }
.rules li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 0; font-size: 17px; max-width: 52ch; }
.rules li::before { content: counter(r, decimal-leading-zero); font: 400 13px/1.9 var(--mono); color: var(--bordeaux-text); }
.api { display: grid; gap: 16px; max-width: 860px; }
.curls { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.curls li { background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; min-width: 0; }
.curls code { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.api code { color: var(--ink); }
.source { font-size: 17px; margin: 8px 0 0; max-width: 60ch; }

/* ---------- token ---------- */
.token { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--rule); }
.token-box { margin-top: 28px; background: var(--surface); box-shadow: 3px 3px 0 var(--shadow); padding: 24px; display: grid; gap: 16px; max-width: 760px; }
.token-main { font: italic 400 26px/1.3 var(--serif); margin: 0; }
.token-sub { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--ink-muted); }
.token-links { display: flex; gap: 20px; margin: 0; flex-wrap: wrap; }
.token-verify { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--ink-muted); }
.ca { display: flex; align-items: stretch; border: 1px solid var(--rule); min-width: 0; }
.ca-k { background: var(--bordeaux); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .08em; padding: 0 10px; display: grid; place-items: center; }
.ca-v { flex: 1; padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; min-width: 0; align-self: center; }
.ca .iconbtn { border-width: 0 0 0 1px; height: auto; min-height: 40px; width: 44px; }
.honest { color: var(--ink-muted); margin: 24px 0 0; font-size: 15px; }

/* ---------- single card view ---------- */
.single { padding-top: 32px; padding-bottom: 24px; }
.single-in { max-width: 640px; display: grid; gap: 16px; justify-items: start; }
.single-card { width: 100%; }
.single-card .card { height: auto; }
.single-msg { margin: 0; color: var(--ink-muted); }

/* ---------- footer, toast ---------- */
.foot { border-top: 1px solid var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--ink-muted); }
.foot p { margin: 0; }
.sep { color: var(--rule); margin: 0 6px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 500 13px/1 var(--mono); padding: 12px 16px; margin: 0; z-index: 95; opacity: 0; pointer-events: none; transition: opacity .12s linear; }
.toast.show { opacity: 1; }

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

/* audit 2026-10-04: sealed pours read as a state, not a blank box */
.bt:is([data-state="idle"], [data-state="warming"], [data-state="quiet"], [data-state="expired"]) .bt-prose { font-size: 0; line-height: 0; }
.bt:is([data-state="idle"], [data-state="warming"], [data-state="quiet"], [data-state="expired"]) .bt-prose::before { content: "Sealed. Name and notes stay corked until you pour a round."; display: block; font: italic 400 19px/1.4 var(--serif); color: var(--ink-muted); }
.bt:is([data-state="idle"], [data-state="warming"], [data-state="quiet"], [data-state="expired"]) .bt-card { border-style: dashed; border-color: var(--rule); box-shadow: none; }
.bt:is([data-state="idle"], [data-state="warming"], [data-state="quiet"], [data-state="expired"]) :is(.timer, .bar) { display: none; }

/* top CA bar: user rule, the CA is the first visible thing on the page */
.topca { background: var(--surface); border-bottom: 1px solid var(--rule); }
.topca-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; min-width: 0; }
.topca-k { background: var(--bordeaux); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .08em; padding: 6px 8px; white-space: nowrap; }
.topca-v { font: 500 13px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; word-break: break-all; min-width: 0; flex: 0 1 auto; }
.topca-btn { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--ink); background: transparent; border: 1px solid var(--rule); padding: 6px 10px; min-height: 32px; cursor: pointer; }
.topca-btn:hover, .topca-btn:focus-visible { border-color: var(--bordeaux-text); color: var(--bordeaux-text); }
.topca-live { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: var(--correct); }
.topca-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 13px/1.3 var(--mono); }
.topca-links a { color: var(--bordeaux-text); }
@media (min-width: 900px) { .topca-live { margin-left: auto; } }

/* hero: the trader hook first (what it does, how), then the wine words decoded into signals */
.hero .kicker { margin: 0 0 10px; color: var(--accent, #b0262f); letter-spacing: .08em; }
.hero h1.hook { font: 700 clamp(28px, 3.4vw, 40px)/1.15 var(--sans, inherit); font-style: normal; max-width: 24ch; letter-spacing: -.01em; }
.decode { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 46ch; }
.decode li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.45; }
.decode b { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--ink, inherit); }
.decode span { color: var(--ink-muted); }
.hero .ctas .btn { white-space: normal; }
