/* Hallmark · shape: Split Studio (draw d7ab14) · genre: playful · theme: brand · redesign: full · job: buy
 * paper: oklch(94.4% 0.020 87.5) · accent: oklch(89.6% 0.143 93) · display: Fredoka · body: Nunito · hero: Index (swapped from Counter: 23 items, the menu is the reason to come) · nav: slab · footer: colophon block · signature: the price list made tappable, each bottle opening in place to its notes and a Messenger order
 * axes: light/rounded-sans/warm · posture: committed (olive field on the nav slab and the payment band; yellow is the order signal) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a menu of rows could be any shop; carried by the real bottles in every row, the brand shelves and the olive slab with the cream logo */
/* Hallmark · dropped #book, book, brandsBtn, brandsDialog, brandsList, brandsTitle, prevBtn, nextBtn, pagerLabel, pagerNum, pagerOrder, pagerOrderText, pagerSection, progressBar, .page · the swipe book and its pager are replaced by the menu, which opens each bottle in place */
/* Hallmark · finish-review: in-thread · 2 findings · 2 resolved (brand jump row restored from the old Brands menu; lineup photo full-bleed on phones) · gap: bottles stay small until a row opens, by design */
/* Hallmark · dismissed F4 · the filled chips are the pressed state of a filter toggle, not a second action; Order on Messenger is the one filled button */
/* Hallmark · dismissed 58 · the 998 counted words include 23 closed bottle panels; about 160 words show until a bottle is opened */
/* Hallmark · dropped the drafted one-liners, brand taglines and Bestseller/New badges · 46a and 19 name invented claims and generated copy; the owner supplies real ones */
/* tokens.css and base.css load as their own <link> tags in index.template.html, in parallel with this file */

/* ---------- page ---------- */
body { font-size: var(--text-md); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-thumb); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); outline: 2px solid var(--color-focus); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg);
  border: 1px solid var(--color-accent); border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: transparent; border-color: var(--color-rule); color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-paper-3); }
.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- nav slab ---------- */
.slab { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-field); color: var(--color-field-ink); }
.slab__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; }
.slab__logo { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-thumb); }
.slab__logo img { width: 104px; height: auto; }
.slab__action {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md);
  border: 1px solid color-mix(in oklab, var(--color-field-ink) 45%, transparent); border-radius: var(--radius-pill);
  color: var(--color-field-ink); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out);
}
.slab__action:hover { background: var(--color-field-2); }
.slab__logo:focus-visible, .slab__action:focus-visible { outline: 2px solid var(--color-focus-on-field); outline-offset: 2px; }

/* ---------- the menu (hero: Index) ---------- */
.menu { padding-block: var(--space-xl) var(--section-gap); }
.menu__head { display: grid; gap: var(--space-sm); }
.menu h1 { font-size: var(--text-display-s); max-width: 16ch; }
.menu .lead { color: var(--color-ink-2); }

.filters { display: none; }
.js .filters { display: grid; gap: var(--space-xs); margin-top: var(--space-lg); }
.filters__count:empty { display: none; }
.seg { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-3xs) var(--gutter); }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; min-height: 44px; padding: 0 var(--space-md);
  border: 1px solid var(--color-rule); border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink); font-weight: 700; font-size: var(--text-sm); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.seg button:hover { background: var(--color-paper-3); }
.seg button[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg button:active { transform: translateY(1px); }
.filters__count { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }

.shelf { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.jump + .shelf { margin-top: var(--space-md); }
.jump { display: flex; gap: var(--space-2xs); overflow-x: auto; scrollbar-width: none; margin: var(--space-xs) calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); border-bottom: 1px solid var(--color-rule); }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); font-weight: 700; color: var(--color-ink-2); text-decoration: none; border-radius: var(--radius-thumb); transition: background-color var(--dur-short) var(--ease-out); }
.jump a:first-child { padding-left: 0; }
.jump a:hover { background: var(--color-paper-3); text-decoration: underline; }
.jump a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.shelf[hidden] { display: none; }
.shelf h2 { font-size: var(--text-section); color: var(--color-ink-2); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-rule); }
.row { border-bottom: 1px solid var(--color-rule); }

.row summary {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 20px; align-items: center; gap: var(--space-sm);
  min-height: 84px; padding: var(--space-sm) var(--space-2xs); cursor: pointer; list-style: none;
  border-radius: var(--radius-thumb);
  transition: background-color var(--dur-short) var(--ease-out);
}
.row summary::-webkit-details-marker { display: none; }
.row summary:hover { background: var(--color-paper-2); }
.row summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.row__thumb { width: 56px; height: 60px; object-fit: contain; }
.row__name { display: grid; gap: var(--space-3xs); min-width: 0; }
.row__title { font: 600 var(--text-md)/1.25 var(--font-display); color: var(--color-ink); overflow-wrap: break-word; }
.row__meta { font-size: var(--text-sm); color: var(--color-muted); }
.row__price { font: 600 var(--text-lg)/1 var(--font-display); color: var(--color-ink); white-space: nowrap; }
.row__badge { justify-self: start; margin-top: var(--space-3xs); padding: 0 var(--space-xs); border-radius: var(--radius-thumb); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-xs); font-weight: 700; line-height: 1.6; }
.row__chev { width: 20px; height: 20px; color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.row details[open] .row__chev { transform: rotate(180deg); }
.row details[open] summary { background: var(--color-paper-2); }

.detail { display: grid; gap: var(--space-md); padding: var(--space-xs) var(--space-2xs) var(--space-xl); }
.detail__photo { margin: 0; display: grid; place-items: center; padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); }
.detail__photo img { width: auto; max-width: 100%; height: min(30svh, 220px); aspect-ratio: 600 / 636; object-fit: contain; }
.detail__info { display: grid; gap: var(--space-lg); align-content: start; }
.facts { display: grid; margin: 0; }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); }
.facts > div:first-child { padding-top: 0; }
.facts dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.facts dd { margin: 0; }
.detail__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.detail__actions .btn:first-child { flex: 1 1 12rem; }
.detail__next { justify-self: start; font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); text-underline-offset: 0.2em; }
.detail__next:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--space-2xs); }

.menu__empty { margin-top: var(--space-xl); color: var(--color-muted); }

/* ---------- the lineup photo ---------- */
.lineup { padding-block: 0 var(--section-gap-s); }
.lineup h2 { font-size: var(--text-section); }
.lineup__photo { margin: var(--space-xl) calc(-1 * var(--gutter)) 0; aspect-ratio: 3600 / 1530; background: var(--color-paper-2); }
.lineup__photo > img { object-fit: contain; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- how to order ---------- */
.how { padding-block: var(--section-gap) var(--section-gap-l); }
.how__grid { display: grid; gap: var(--space-2xl); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--space-xs); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.steps li::before { content: counter(step); font: 600 var(--text-3xl)/1 var(--font-display); color: var(--color-field); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--text-title); }
.steps p { color: var(--color-ink-2); max-width: 32ch; }

/* ---------- payment and delivery band ---------- */
.band { padding-block: var(--section-gap-s); background: var(--color-field); color: var(--color-field-ink); }
.band__grid { display: grid; gap: var(--space-xl); }
.band h2 { font-size: var(--text-section); color: var(--color-field-ink); }
.band__lists { display: grid; gap: var(--space-xl); }
.band h3 { font-size: var(--text-title); color: var(--color-accent); }
.band ul { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.band li { padding: var(--space-sm) 0; border-top: 1px solid color-mix(in oklab, var(--color-field-ink) 25%, transparent); font-weight: 700; }
.band__btn { justify-self: start; }
.band .btn:focus-visible { outline-color: var(--color-focus-on-field); }

/* ---------- footer ---------- */
.colophon { padding-block: var(--space-2xl) var(--space-3xl); }
.colophon__grid { display: grid; gap: var(--space-lg); align-items: start; }
.colophon__logo { width: 160px; height: auto; }
.colophon__grid > div { display: grid; gap: var(--space-sm); }
.colophon__line { font: 600 var(--text-xl)/1.2 var(--font-display); color: var(--color-ink-2); }
.colophon a { font-weight: 700; }
.colophon a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--space-2xs); }
.colophon__small { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); z-index: var(--z-toast);
  max-width: calc(100% - 2 * var(--space-md)); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-thumb);
  background: var(--color-ink); color: var(--color-paper); font-weight: 700; font-size: var(--text-sm); text-align: center;
  opacity: 0; transform: translate(-50%, var(--space-md)); pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wider screens ---------- */
@media (min-width: 40rem) {
  .row summary { grid-template-columns: 64px minmax(0, 1fr) auto 24px; gap: var(--space-md); padding-inline: var(--space-xs); }
  .row__thumb { width: 64px; height: 68px; }
  .row__title { font-size: var(--text-lg); }
  .row__chev { width: 24px; height: 24px; }
  .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-lg); padding-inline: var(--space-xs); }
  .detail__photo img { height: auto; width: min(100%, 300px); }
  .how .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
}
@media (min-width: 60rem) {
  .slab__row { min-height: 72px; }
  .slab__logo img { width: 120px; }
  .menu { padding-top: var(--space-2xl); }
  .menu__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gap-columns); }
  .seg { margin-inline: 0; padding-inline: var(--space-3xs); flex-wrap: wrap; }
  .jump { margin-inline: 0; padding-inline: 0; }
  .lineup__photo { margin-inline: 0; border-radius: var(--radius-card); }
  .lineup__photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; border-radius: var(--radius-card); }
  .shelf { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); align-items: start; margin-top: var(--space-3xl); }
  .shelf h2 { position: sticky; top: calc(72px + var(--space-lg)); }
  .row summary { grid-template-columns: 72px minmax(0, 1fr) auto 24px; }
  .row__thumb { width: 72px; height: 76px; }
  .how__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); }
  .how .steps { grid-template-columns: minmax(0, 1fr); }
  .band__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); }
  .band__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
  .band__btn { grid-column: 2; }
  .colophon__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); }
}
@media (min-width: 75rem) {
  .how .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
