/* Ester Index — LEDGER direction
   Display: Anton · Body: Archivo · Labels: Martian Mono
   Scale ratio 1.333 (perfect fourth) */

:root {
  --paper: #F2EDE3;
  --ink: #211A12;
  --amber: #C87F2F;
  --amber-ink: #8F5A1B; /* amber darkened to pass 4.5:1 on cane paper as text */
  --funk: #6B8F3D;
  --copper: #B87333;
  --rule: color-mix(in srgb, var(--ink) 24%, transparent);
  --display: "Anton", sans-serif;
  --body: "Archivo", sans-serif;
  --mono: "Martian Mono", monospace;
  /* linear zone (0–1600) occupies this share of the track; rest is compressed */
  --wall-pct: 88.888%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211A12;
    --ink: #F2EDE3;
    --amber-ink: #DFA55C; /* amber lightened to pass 4.5:1 on molasses as text */
    --rule: color-mix(in srgb, var(--ink) 30%, transparent);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
main, .masthead { position: relative; z-index: 1; }

/* ---------- hogo haze (whimsy #1) ---------- */
.haze { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.haze-blob {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0; transform: scale(.6);
  transition: opacity .6s ease, transform .9s ease;
}
.haze-a { background: var(--amber); top: -20vmax; right: -15vmax; }
.haze-b { background: var(--funk); bottom: -25vmax; left: -15vmax; }
@media (prefers-reduced-motion: reduce) {
  .haze-blob { transition: none; transform: none; filter: blur(120px); }
}

/* ---------- masthead ---------- */
.masthead {
  padding: 3rem 1.5rem 1rem;
  max-width: 68rem; margin: 0 auto;
  border-bottom: 3px solid var(--ink);
}
@media (prefers-color-scheme: light) {
  .masthead {
    background: url("img/hero.webp") center bottom / cover no-repeat;
    padding-bottom: clamp(11rem, 30vw, 19rem);
  }
}
.kicker {
  font-family: var(--mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .75rem;
  color: var(--amber-ink);
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 8vw + 1rem, 7rem);
  line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
  margin: 0;
}
.standfirst { max-width: 60ch; margin: .75rem 0 1.25rem; font-size: 1.125rem; }

/* ---------- readout ---------- */
.readout-block { max-width: 68rem; margin: 0 auto; padding: 2rem 1.5rem 0; }
.readout { display: flex; align-items: baseline; gap: .75rem; border-bottom: 1px solid var(--rule); }
#readout-value {
  font-family: var(--display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.readout-unit { font-family: var(--mono); font-size: .875rem; letter-spacing: .12em; }
.readout-class {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin: .5rem 0 0;
}
.readout-class.tick { animation: pulse .12s ease-out; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .readout-class.tick { animation: none; } }

/* ---------- track ---------- */
.scale { max-width: 68rem; margin: 1.5rem auto 0; padding: 0 1.5rem; }
.track { position: relative; height: 72px; }
.track-classes { position: absolute; inset: 0 0 28px 0; display: block; border: 1px solid var(--ink); }
.tc-band {
  position: absolute; top: 0; bottom: 0;
  border-right: 1px solid var(--ink);
  background: color-mix(in srgb, var(--amber) var(--band-heat, 0%), transparent);
}
.tc-band.gap { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--rule) 6px 7px); }
.tc-band.active { outline: 3px solid var(--ink); outline-offset: -3px; z-index: 1; }
.tc-band.beyond { background: repeating-linear-gradient(90deg, transparent 0 4px, color-mix(in srgb, var(--funk) 40%, transparent) 4px 8px); }
.track-marques { position: absolute; left: 0; right: 0; bottom: 16px; height: 8px; }
.tm-seg { position: absolute; top: 0; bottom: 0; background: var(--copper); opacity: .35; }
/* international marques: funk-green, distinct from Jamaican copper */
.tm-seg.tm-int { background: var(--funk); opacity: .55; }
/* Grand Arôme GI floor: open-ended band fading toward the wall */
.tm-seg.tm-open { background: linear-gradient(90deg, var(--funk) 0%, var(--funk) 12%, transparent 96%); }
/* single lab measurement: a point tick, not a band */
.tm-seg.tm-point { opacity: .9; min-width: 3px; }
.track-wall {
  position: absolute; left: var(--wall-pct); top: -6px; bottom: 22px;
  border-left: 3px double var(--ink); z-index: 2; pointer-events: none;
}
.track-wall span {
  position: absolute; top: -2.1em; left: -1px; transform: translateX(-100%);
  font-family: var(--mono); font-size: .625rem; font-weight: 700;
  letter-spacing: .1em; white-space: nowrap; padding: 0 .5em .15em 0;
  background: var(--paper);
}
.track-labels { display: none; }
.track-scale-notes {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; margin-top: .25rem; color: color-mix(in srgb, var(--ink) 80%, var(--paper));
}
.track-scale-notes span { white-space: nowrap; }
@media (max-width: 40rem) { .tsn-mid { display: none; } }

/* the real range input sits over the whole track */
#ester-slider {
  position: absolute; inset: -8px 0 12px 0; width: 100%; height: auto;
  appearance: none; -webkit-appearance: none; background: transparent;
  margin: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y;
}
/* Tap target: the input itself spans the full track (100% wide, ~72px tall),
   so the grab area is never bound to the visual thumb. Thumb widened to 26px. */
#ester-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 72px; border-radius: 0;
  background: var(--ink); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
}
#ester-slider::-moz-range-thumb {
  width: 26px; height: 72px; border-radius: 0;
  background: var(--ink); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
}
#ester-slider:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

/* ---------- first-touch affordances (all retire on body.touched) ---------- */

/* 1 · calibration pulse: thumb shifts ±2px until first input */
@keyframes calibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
/* Blink won't animate the thumb pseudo — but the input paints ONLY the thumb
   (its track is transparent), so pulsing the input moves just the visible thumb. */
body:not(.touched) #ester-slider { animation: calibrate 1.6s ease-in-out infinite; }

/* 2 · phosphor sweep: a faint highlight runs 0 → current value; thumb stays still */
.track-sweep {
  position: absolute; inset: 0 0 28px 0; width: var(--sweep-w, 8.5%);
  overflow: hidden; pointer-events: none; z-index: 2;
}
.track-sweep::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--amber) 55%, transparent), transparent);
  transform: translateX(-110%);
  animation: sweep 2.2s ease-in-out infinite;
}
@keyframes sweep { to { transform: translateX(290%); } }
body.touched .track-sweep { display: none; }

/* 3 · terminal prompt: block cursor after the standfirst, 800ms blink */
.tcursor {
  display: inline-block; width: .55em; height: 1em; margin-left: .18em;
  vertical-align: text-bottom; background: var(--ink);
  animation: blink .8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
body.touched .tcursor { display: none; }

@media (prefers-reduced-motion: reduce) {
  body:not(.touched) #ester-slider { animation: none; }
  .track-sweep { display: none; }
  .tcursor { animation: none; } /* solid cursor until touched, no blink */
}

/* ---------- cards ---------- */
.cards { max-width: 68rem; margin: 2rem auto 0; padding: 0 1.5rem; }
.card-tools {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: .75rem;
}

/* searchable marque dropdown */
.marque-search { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.ms-input {
  width: 100%; font-family: var(--mono); font-size: .8125rem;
  padding: .5rem .75rem; border: 1px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
}
.ms-input::placeholder { color: color-mix(in srgb, var(--ink) 50%, var(--paper)); }
.ms-input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.ms-panel {
  position: absolute; z-index: 4; top: 100%; left: 0; right: 0;
  margin: .25rem 0 0; background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 20%, transparent);
}
@media (max-width: 40rem) { .ms-panel { width: calc(100vw - 3rem); } }
.ms-filters { padding: .5rem .75rem 0; border-bottom: 1px dotted var(--rule); }
.msf-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin-bottom: .5rem; }
.msf-label {
  font-family: var(--mono); font-size: .5625rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-right: .2rem;
  color: color-mix(in srgb, var(--ink) 55%, var(--paper)); flex: 0 0 4.5rem;
}
.msf-chip, .msf-clear {
  font-family: var(--mono); font-size: .625rem; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  padding: .2rem .5rem; border-radius: 0;
}
.msf-chip:hover { border-color: var(--ink); }
.msf-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--amber) 22%, var(--paper));
  border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber);
}
.msf-chip:focus-visible, .msf-clear:focus-visible, .ms-sort:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.msf-clear { border-style: dashed; margin-bottom: .5rem; color: var(--amber-ink); }
.ms-sortbar {
  display: flex; align-items: center; gap: .5rem; justify-content: flex-end;
  padding: .4rem .75rem; border-bottom: 1px dotted var(--rule);
}
.ms-sort-label { font-family: var(--mono); font-size: .5625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 55%, var(--paper)); }
.ms-sort {
  font-family: var(--mono); font-size: .6875rem; font-weight: 700;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  padding: .2rem .3rem; border-radius: 0;
}
.ms-list {
  margin: 0; padding: 0; list-style: none;
  max-height: 13rem; overflow: auto;
}
.ms-opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .45rem .75rem; cursor: pointer; border-bottom: 1px dotted var(--rule);
}
.ms-opt:last-child { border-bottom: 0; }
.ms-opt:hover, .ms-opt.active { background: color-mix(in srgb, var(--amber) 18%, var(--paper)); }
.ms-marque { font-family: var(--mono); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.ms-meta { font-family: var(--mono); font-size: .625rem; font-weight: 300; letter-spacing: .02em; text-align: right; color: color-mix(in srgb, var(--ink) 60%, var(--paper)); }
.ms-none { padding: .45rem .75rem; font-family: var(--mono); font-size: .6875rem; color: color-mix(in srgb, var(--ink) 60%, var(--paper)); }
.unbottled-toggle {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--mono); font-size: .6875rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 65%, var(--paper));
}
.unbottled-toggle:hover { color: var(--ink); }
.unbottled-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ut-box {
  position: relative; flex: none; width: 34px; height: 18px;
  border: 1px solid var(--ink); background: var(--paper);
}
.ut-box::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  background: color-mix(in srgb, var(--ink) 45%, var(--paper));
  transition: left .12s ease, background .12s ease;
}
.unbottled-toggle input:checked + .ut-box { background: color-mix(in srgb, var(--amber) 18%, var(--paper)); }
.unbottled-toggle input:checked + .ut-box::after { left: 18px; background: var(--amber-ink); }
.unbottled-toggle input:focus-visible + .ut-box { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ut-box::after { transition: none; } }
.card-switcher {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem; margin-bottom: .75rem;
}
.card-switcher:empty { display: none; }
.cnav-current {
  font-family: var(--mono); font-size: .875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 var(--amber); padding-bottom: .2rem;
}
.cnav-side {
  min-height: 44px; min-width: 0; width: 100%;
  padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, var(--paper));
  white-space: nowrap; overflow: hidden; border-radius: 0;
  /* fade both ends so any clip against the center label reads as intentional */
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.cnav-side.prev { text-align: left; }
.cnav-side.next { text-align: right; }
@media (max-width: 40rem) {
  .card-switcher { gap: .5rem; }
  .cnav-side { font-size: .6875rem; }
}
.cnav-side:hover { color: var(--ink); mask-image: none; }
.cnav-side:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; mask-image: none; }

.marque-card {
  position: relative;
  border: 1px solid var(--ink); border-top: 6px solid var(--amber);
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--paper); /* opaque — guarantees text contrast over the haze */
  animation: slide-in .25s ease-out;
}
.mc-plate {
  /* anchored cornerpiece: bleeds to the card's top-right frame */
  float: right; width: 120px; height: 120px; object-fit: cover; aspect-ratio: 1;
  margin: -1.25rem -1.5rem 1rem 1.25rem;
  border: 0; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
@media (max-width: 40rem) { .mc-plate { width: 84px; height: 84px; } }
@media (prefers-color-scheme: dark) { .mc-plate { filter: sepia(.15) brightness(.92); } }
.marque-card.is-class { border-top-color: var(--funk); }
@keyframes slide-in { from { opacity: 0; transform: translateY(14px); } }
.marque-card.from-right { animation: slide-r .22s ease-out; }
.marque-card.from-left { animation: slide-l .22s ease-out; }
@keyframes slide-r { from { opacity: 0; transform: translateX(36px); } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-36px); } }
@media (prefers-reduced-motion: reduce) {
  .marque-card, .marque-card.from-right, .marque-card.from-left { animation: none; }
}

.mc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.mc-marque { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.01em; margin: 0; text-transform: uppercase; }
.mc-band { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--amber-ink); }
.mc-sub { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; width: 100%; margin: .25rem 0 0; }
.mc-origin {
  font-family: var(--mono); font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--funk); color: var(--ink);
  background: color-mix(in srgb, var(--funk) 16%, transparent);
  padding: .1rem .5rem; align-self: center;
}
.marque-card.is-int { border-top-color: var(--funk); }

.mc-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .25rem 3rem; margin: 1rem 0 0; }
.mc-specs > div {
  display: grid; grid-template-columns: max-content 1fr; align-items: baseline;
  gap: 1.25rem; border-bottom: 1px dotted var(--rule); padding: .3rem 0;
}
.mc-specs dt { font-family: var(--mono); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.mc-specs dd { margin: 0; text-align: right; font-size: .9375rem; overflow-wrap: break-word; min-width: 0; }
.mc-flavor-block { margin: 1.25rem 0 0; }
.mc-flavor-block .kicker { margin-bottom: .5rem; }
.mc-flavors {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0; padding: 0;
}
/* icon-first tiles: the image carries the meaning, the caption is a whisper */
.flavor-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .35rem; width: 76px; text-align: center;
  border: 1px solid var(--rule); padding: .5rem .25rem .4rem;
  background: color-mix(in srgb, var(--amber) 7%, var(--paper));
}
.flavor-chip img {
  width: 48px; height: 48px; object-fit: cover;
  border: 1px solid var(--rule);
}
.fc-label {
  font-family: var(--mono); font-size: .5625rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; line-height: 1.25;
  color: color-mix(in srgb, var(--ink) 62%, var(--paper));
}
.flavor-chip.no-img { justify-content: center; min-height: 76px; }
.flavor-chip.no-img .fc-label { font-size: .6875rem; color: var(--ink); }
@media (prefers-color-scheme: dark) { .flavor-chip img { filter: sepia(.15) brightness(.92); } }

/* ---------- process badges (dunder / cane acid / muck) ---------- */
.process-badges {
  list-style: none; display: flex; gap: .75rem;
  margin: 1rem 0 0; padding: 0;
}
.pbadge {
  flex: 1 1 0; max-width: 11rem;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  border: 1px solid var(--rule); padding: .6rem .5rem .5rem;
  text-align: center;
}
.pb-ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pb-label { font-family: var(--mono); font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pb-qual { font-family: var(--mono); font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 60%, var(--paper)); }
.pbadge.is-on {
  border-color: var(--ink); color: var(--ink);
  background: color-mix(in srgb, var(--amber) 18%, var(--paper));
  box-shadow: inset 0 -3px 0 var(--amber);
}
.pbadge.is-off, .pbadge.is-na { opacity: .35; }
.pbadge.is-na { border-style: dashed; }
.pbadge.is-part { opacity: .7; border-style: dashed; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- fermentation range bar ---------- */
.mc-ferm {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: max-content 1fr; align-items: baseline;
  gap: 1.25rem; border-bottom: 1px dotted var(--rule); padding: .3rem 0;
}
.mc-ferm dd {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: .25rem .6rem; margin: 0; min-width: 0;
}
.ferm-days { grid-column: 1 / -1; text-align: right; font-size: .9375rem; }
.ferm-bar {
  position: relative; display: block; height: 8px;
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--rule) calc(100% / 6 - 1px) calc(100% / 6)); /* week ticks */
}
.ferm-bar i { position: absolute; top: 0; bottom: 0; background: var(--copper); }
.ferm-cap { font-family: var(--mono); font-size: .5625rem; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 60%, var(--paper)); }

/* ---------- still icons ---------- */
.dd-still { display: inline-flex; align-items: center; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.still-icons { display: inline-flex; gap: .25rem; flex: none; }
.still-ic { width: 22px; height: 22px; fill: none; stroke: var(--amber-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- flavor radar ---------- */
.mc-flavor-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
@media (max-width: 40rem) { .mc-flavor-grid { grid-template-columns: 1fr; justify-items: center; } }
.mc-radar { width: 190px; height: 190px; flex: none; overflow: visible; }
.mc-radar .rr { fill: none; stroke: var(--rule); }
.mc-radar .ra { stroke: var(--rule); }
.mc-radar .rs {
  fill: color-mix(in srgb, var(--amber) 30%, transparent);
  stroke: var(--amber-ink); stroke-width: 1.5; stroke-linejoin: round;
}
.mc-radar .rl { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; fill: var(--ink); }

.mc-aroma { margin: 1rem 0 0; font-size: 1.0625rem; }
.mc-notes { margin: .5rem 0 0; font-size: .9375rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }

.mc-bottle { margin-top: 1.25rem; border: 1px solid var(--rule); padding: .875rem 1rem; }
.mc-bottle.is-empty {
  display: flex; align-items: center; gap: .75rem;
  border-style: dashed; opacity: .5; padding: .6rem 1rem;
}
.mc-bottle.is-empty .kicker { margin: 0; }
.bottle-ic { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mc-bottle .kicker { margin-bottom: .25rem; }
.mc-bottle-name { font-family: var(--body); font-weight: 500; font-size: 1.125rem; margin: 0; }
.mc-bottle-why { font-size: .9375rem; margin: .25rem 0 .75rem; }
.mc-buy {
  display: inline-block; font-family: var(--mono); font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--ink); padding: .55rem .9rem; color: var(--ink); border-radius: 0;
}
.mc-buy:hover { background: var(--ink); color: var(--paper); }
.mc-buy[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.mc-buy:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- fine print → info button + dialog ---------- */
.fine-print { max-width: 68rem; margin: 2.5rem auto 3rem; padding: 0 1.5rem; }
.fig-info-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 0; padding: .25rem 0; cursor: pointer;
  font-family: var(--mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber-ink);
}
.fig-info-btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round;
}
.fig-info-btn svg .dot { fill: currentColor; stroke-width: 2; }
.fig-info-btn:hover { color: var(--ink); }
.fig-info-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fig-dialog {
  max-width: min(34rem, calc(100vw - 3rem));
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-top: 6px solid var(--amber);
  padding: 1.25rem 1.5rem 1.5rem;
}
.fig-dialog::backdrop { background: color-mix(in srgb, #211A12 55%, transparent); }
.fig-dialog p:not(.kicker) { font-size: .9375rem; margin: 0 0 1rem; }
.fig-close {
  font-family: var(--mono); font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  background: none; border: 2px solid var(--ink); color: var(--ink);
  padding: .55rem .9rem; border-radius: 0;
}
.fig-close:hover { background: var(--ink); color: var(--paper); }
.fig-close:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- wall flash (whimsy #3) ---------- */
.wall-flash {
  position: fixed; inset: 0; z-index: 5; display: grid; place-items: center;
  pointer-events: none; opacity: 0;
}
.wall-flash .wall-img {
  position: absolute; width: min(56vmin, 480px); mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { .wall-flash .wall-img { display: none; } }
.wall-flash span {
  position: relative;
  font-family: var(--display); text-transform: uppercase; text-align: center;
  font-size: clamp(3rem, 14vw, 11rem); line-height: .9; letter-spacing: -.02em;
  color: var(--funk); -webkit-text-stroke: 2px var(--ink);
}
.wall-flash.fire { animation: wall 1.6s ease-out forwards; }
@keyframes wall {
  0% { opacity: 0; transform: scale(.92); }
  12% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .wall-flash.fire { animation: none; opacity: 0; } }

/* corbet-footer retheme (tokens only — component untouched).
   Verified with the footer's contrast.js: light 4.77:1, dark 5.29:1 composited. */
.cf {
  --cf-bg: var(--paper);
  --cf-ink: var(--ink);
  --cf-accent: var(--funk);
  --cf-muted: #56513F;
}
@media (prefers-color-scheme: dark) {
  .cf { --cf-muted: #A9A294; }
}
