/* Elixir theme (Morning Rituals LLC)
   Tokens come from the bottle labels: cream paper, espresso ink, and four-step syrup bands per flavor.
   Motion tokens follow docs/plan section 6: slow in, long settle, no bounce. */

:root {
  --cream: #F6E7D6;
  --paper: #FBF3E6;
  --espresso: #37160E;
  --espresso-soft: color-mix(in srgb, var(--espresso) 74%, var(--cream));
  --accent: #C95E1C;
  --logo: #3F0306;
  --night: #2A110B;
  --night-ink: var(--cream);
  --line: color-mix(in srgb, var(--espresso) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--espresso) 32%, transparent);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;

  --ease-pour: cubic-bezier(.22, 1, .36, 1);
  --ease-honey: cubic-bezier(.33, 0, .12, 1);
  --ease-drip: cubic-bezier(.65, 0, .35, 1);
  --dur-micro: 240ms;
  --dur-ui: 480ms;
  --dur-reveal: 1000ms;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1280px;
  --radius: 22px;
  --header-h: 76px;

  /* default flavor (vanilla) so any flavor-aware block renders before data arrives */
  --fl-label: #F7EBD8; --fl-liquid: #C4863C;
  --fl-b1: #F1DDBF; --fl-b2: #E0BF92; --fl-b3: #C99A63; --fl-b4: #A7713C;
}

@property --f { syntax: "<number>"; inherits: true; initial-value: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--cream); }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.has-grain::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 .05 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: 0; }

/* ---------- type ---------- */
.display, h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--display); font-weight: 760; line-height: .98; letter-spacing: -.02em; margin: 0; text-wrap: balance;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
.display em, h1 em, h2 em, .h1 em, .h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.h1, h1 { font-size: clamp(2.8rem, 6.2vw, 5.6rem); }
.h2, h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.h3, h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 640; line-height: 1.06; font-variation-settings: "SOFT" 100, "opsz" 72; }
.h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 620; line-height: 1.2; margin: 0; }
.eyebrow { font: 500 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .18em; margin: 0; }
.lede { font-size: 1.12rem; max-width: 56ch; margin: 0; }
.muted { color: var(--espresso-soft); }
.notes { margin: 0; }
.notes span + span::before { content: "✦"; font-size: .55em; margin: 0 .7em; vertical-align: .25em; color: var(--accent); }
.rte { max-width: 66ch; }
.rte > * + * { margin-top: 1em; }
.rte h2, .rte h3 { margin-top: 1.6em; }
.rte h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.rte h3 { font-size: 1.5rem; }
.rte a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rte img { border-radius: var(--radius); }
.rte ul, .rte ol { padding-left: 1.2em; }
.rte blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 3px solid var(--accent); font-family: var(--display); font-size: 1.3rem; font-style: italic; }

/* ---------- layout ---------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.inner { max-width: var(--max); margin: 0 auto; }
.section { position: relative; }
.section > .wrap > .inner, .section-pad { padding-block: clamp(64px, 9vw, 112px); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--night { background: var(--night); color: var(--night-ink); --line: rgba(246, 231, 214, .22); --espresso-soft: color-mix(in srgb, var(--night-ink) 78%, transparent); }
.section--espresso { background: var(--espresso); color: var(--cream); --line: rgba(246, 231, 214, .22); --espresso-soft: color-mix(in srgb, var(--cream) 78%, transparent); }
.section-head { display: grid; gap: 16px; max-width: 680px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { color: var(--espresso-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* living wave edge between sections (path drawn by theme.js) */
.wave-edge { position: absolute; left: 0; right: 0; top: -71px; height: 72px; width: 100%; display: block; pointer-events: none; z-index: 2; }
.wave-edge path { fill: var(--edge, var(--cream)); }

/* ---------- reveals: lines rise from behind a mask ---------- */
.js [data-reveal] .line-in { will-change: transform, opacity; }
span.line-in { display: block; }

/* ---------- syrup button ---------- */
.btn {
  --f: 0;
  --btn-ink: var(--espresso); --btn-bg: transparent; --btn-fill: var(--espresso); --btn-ink-on: var(--cream);
  position: relative; isolation: isolate; overflow: hidden; display: inline-grid; place-items: center;
  font: 500 .95rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; white-space: nowrap;
  color: var(--btn-ink); background: var(--btn-bg); border: 1.5px solid var(--btn-fill); border-radius: 999px;
  padding: 17px 28px; min-height: 52px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: --f 600ms var(--ease-drip), transform 120ms var(--ease-pour), opacity var(--dur-micro);
}
.btn > .btn__fill { position: absolute; left: -10%; width: 120%; height: 100%; bottom: 0; z-index: -1; pointer-events: none;
  transform: translateY(calc((100% + 14px) * (1 - var(--f)))); }
.btn__fill svg { position: absolute; left: 0; top: -10px; width: 200%; height: 14px; animation: wave-drift 2.4s linear infinite; }
.btn__fill svg path { fill: var(--btn-fill); }
.btn__fill i { position: absolute; inset: 0; background: var(--btn-fill); }
.btn__label, .btn__label-on { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; }
.btn__label-on { color: var(--btn-ink-on); clip-path: inset(calc((1 - var(--f)) * 100%) 0 0 0); }
@media (hover: hover) { .btn:hover { --f: 1; transition: --f 720ms var(--ease-honey), transform 120ms var(--ease-pour); } }
.btn:focus-visible { --f: 1; }
.btn:active { transform: scale(.98); }
.btn--solid { --f: 1; }
@media (hover: hover) { .btn--solid:hover { --f: .0001; } }
.btn--light { --btn-ink: var(--cream); --btn-fill: var(--cream); --btn-ink-on: var(--espresso); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.is-loading .btn__label, .btn.is-loading .btn__label-on { opacity: .35; }
@keyframes wave-drift { to { transform: translateX(-50%); } }

/* links that grow a drip */
.link {
  position: relative; display: inline-block; text-decoration: none; font-weight: 500; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size var(--dur-micro) var(--ease-pour);
  border: 0; cursor: pointer; background-color: transparent; padding-inline: 0;
}
.link::after { content: ""; position: absolute; right: -1px; bottom: 0; width: 5px; height: 5px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: currentColor; transform: scale(0); opacity: 0; }
@media (hover: hover) { .link:hover { background-size: 100% 3px; } .link:hover::after { animation: drip 900ms var(--ease-drip) 120ms both; } }
.link:focus-visible { background-size: 100% 3px; }
@keyframes drip { 0% { transform: translateY(-1px) scale(.4, .8); opacity: 1; } 45% { transform: translateY(2px) scale(.8, 1.25); opacity: 1; } 100% { transform: translateY(16px) scale(.7, 1); opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .85rem; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-width: 0; padding: 15px 18px; border-radius: 16px; border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--espresso); transition: border-color var(--dur-micro) var(--ease-pour);
}
.input--pill { border-radius: 999px; padding-inline: 22px; }
.textarea { min-height: 140px; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--espresso); }
.section--night .input, .section--espresso .input { background: transparent; color: var(--cream); border-color: rgba(246, 231, 214, .4); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }
.form-msg { font-size: .9rem; margin: 10px 0 0; }
.form-msg--error { color: #9b2c12; }
.section--night .form-msg--error, .section--espresso .form-msg--error { color: #ffb38a; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .92rem; transition: background var(--dur-micro) var(--ease-pour), border-color var(--dur-micro); }
.choice input:checked + span { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- announcement + header ---------- */
.announce { background: var(--espresso); color: var(--cream); font-size: .84rem; text-align: center; position: relative; z-index: 31; }
.announce .inner { min-height: 38px; display: grid; place-items: center; padding-block: 8px; }
.announce__msg { grid-area: 1 / 1; }
.announce a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.section-header { position: sticky; top: 0; z-index: 30; }
.section-header:has(.header.is-overlay) { height: 0; }
.header { position: relative; transition: background var(--dur-ui) var(--ease-pour), box-shadow var(--dur-ui) var(--ease-pour), transform var(--dur-ui) var(--ease-honey); padding-top: env(safe-area-inset-top, 0px); }
.header:not(.is-overlay) { background: var(--cream); }
.header .inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: var(--header-h); }
.header.is-stuck { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.wordmark { display: inline-flex; color: var(--logo); line-height: 0; text-decoration: none; }
.wordmark svg { height: 44px; width: auto; display: block; overflow: visible; }
.wordmark img { height: 40px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); justify-content: center; }
.nav a { text-decoration: none; font-size: .96rem; position: relative; padding: 6px 0; }
.nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-ui) var(--ease-pour); }
.nav a:hover::before, .nav a[aria-current="page"]::before { transform: scaleX(1); transform-origin: left; }
.header__icons { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.icon-btn { appearance: none; background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; position: relative; text-decoration: none; color: inherit; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: color-mix(in srgb, var(--espresso) 7%, transparent); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--espresso); color: var(--cream); font-size: .68rem; font-weight: 600; display: grid; place-items: center; padding: 0 5px; overflow: hidden; font-variant-numeric: tabular-nums; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header .inner { grid-template-columns: auto 1fr auto; }
  .header__brand { justify-self: center; grid-column: 2; }
  .header__icons .btn { display: none; }
  .menu-toggle { grid-column: 1; grid-row: 1; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: grid; align-content: center; gap: 6px; }
.mobile-menu nav a { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 700; text-decoration: none; line-height: 1.15; }
.mobile-menu__foot { display: grid; gap: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--cream); }
.hero__flow, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero__fallback { z-index: -2; }
.hero > .wrap > .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center; min-height: clamp(660px, 92svh, 920px); padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 540px; min-width: 0; position: relative; z-index: 3; }
.hero__flavor { display: flex; flex-direction: column; gap: 10px; min-height: 214px; }
.hero__name { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.hero__pair { margin: 0; color: var(--espresso-soft); font-size: .96rem; }
.hero__price { font-variant-numeric: tabular-nums; }
.hero-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-tab { appearance: none; border: 0; background: none; font-size: .88rem; padding: 10px 12px 14px; cursor: pointer; position: relative; display: flex; align-items: center; gap: 8px; opacity: .6; transition: opacity var(--dur-micro) var(--ease-pour); color: inherit; }
.hero-tab[aria-selected="true"] { opacity: 1; }
.hero-tab .sw, .sw { width: 12px; height: 12px; border-radius: 50%; background: var(--sw, var(--fl-b3)); box-shadow: inset 0 0 0 1px rgba(55, 22, 14, .2); flex: none; }
.hero-tab .bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hero-tab .bar i { position: absolute; inset: 0; background: var(--espresso); transform-origin: left; transform: scaleX(0); }
.hero__stage { position: relative; height: clamp(440px, 62vh, 620px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero__bottle { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 220 / 560; transform-origin: 50% 92%; will-change: transform, opacity; cursor: pointer; text-decoration: none; }
.hero__bottle svg, .hero__bottle img { height: 100%; width: auto; display: block; overflow: visible; }
.hero__bottle img { object-fit: contain; }
.js .hero__bottle:not(.is-placed) { opacity: 0; }
.no-js .hero__bottle:not(:first-child) { display: none; }
@media (max-width: 880px) {
  .hero > .wrap > .inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(var(--header-h) + 44px); padding-bottom: 32px; gap: 8px; }
  .hero__flavor { min-height: 0; }
  .hero__stage { height: min(112vw, 480px); }
}

/* ---------- bottle art ---------- */
.bottle-art { display: block; overflow: visible; }
.bottle-art .ink { fill: var(--espresso); }
.bottle-art text { fill: var(--espresso); }

.trio-art { position: absolute; left: 0; right: 0; bottom: 0; height: 84%; display: flex; align-items: flex-end; justify-content: center; }
.trio-art .bottle-art { height: 78%; width: auto; margin: 0 -6%; }
.trio-art .bottle-art:nth-child(2), .trio-art > span:nth-child(2) .bottle-art { height: 88%; position: relative; z-index: 1; }
.trio-art > span:first-child .bottle-art { transform: rotate(-6deg); }
.trio-art > span:last-child .bottle-art { transform: rotate(6deg); }

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--paper); }
.proof .inner { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; padding-block: 22px; font-size: .92rem; }
.proof__item { display: inline-flex; align-items: center; gap: 10px; }
.proof__item svg { width: 18px; height: 18px; color: var(--accent); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }

/* ---------- flavor panels ---------- */
.flavors__list { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 72px); }
.flavor-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: var(--fl-label); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 520px; }
.flavor-panel:nth-child(even) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.flavor-panel:nth-child(even) .flavor-panel__copy { order: 2; }
.flavor-panel__waves { position: absolute; inset: 0; z-index: -1; }
.flavor-panel__waves svg { width: 100%; height: 100%; display: block; }
.flavor-panel__copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 520px; }
.flavor-panel__name { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.flavor-panel__blurb { margin: 0; max-width: 42ch; }
.flavor-panel__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .92rem; color: var(--espresso-soft); }
.flavor-panel__art { position: relative; display: grid; place-items: end center; padding-top: 32px; min-height: 520px; }
.flavor-panel__art .bottle-art { height: 460px; width: auto; transform: rotate(var(--tilt, -4deg)) translateY(6%); transform-origin: 50% 100%; transition: transform 900ms var(--ease-honey); }
.flavor-panel:nth-child(even) .flavor-panel__art .bottle-art { --tilt: 4deg; }
@media (hover: hover) { .flavor-panel:hover .flavor-panel__art .bottle-art { transform: rotate(0deg) translateY(4%); } }
@media (max-width: 880px) {
  .flavor-panel, .flavor-panel:nth-child(even) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .flavor-panel:nth-child(even) .flavor-panel__copy { order: 0; }
  .flavor-panel__art { height: 380px; padding-top: 0; }
  .flavor-panel__art .bottle-art { height: 360px; }
}

/* ---------- static ribbon waves (cards, product page) ---------- */
.ribbons g:nth-child(1) path:nth-child(1) { fill: var(--fl-b1); }
.ribbons g:nth-child(1) path:nth-child(2) { fill: var(--fl-b2); }
.ribbons g:nth-child(2) path:nth-child(1) { fill: var(--fl-b3); }
.ribbons g:nth-child(2) path:nth-child(2) { fill: var(--fl-b4); }
.ribbons g { animation: ribbon-sway 22s var(--ease-drip) infinite alternate; transform-origin: 50% 50%; }
.ribbons g:nth-child(2) { animation-duration: 27s; animation-delay: -6s; }
@keyframes ribbon-sway { from { transform: translateX(-2%) skewX(-1.5deg); } to { transform: translateX(2%) skewX(1.5deg); } }

/* ---------- mix ---------- */
.mix__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 44px; }
.mix__canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 28px; display: block; background: #4b1d10; }
.mix__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { appearance: none; display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 10px 16px 10px 10px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; transition: background var(--dur-micro) var(--ease-pour), border-color var(--dur-micro); font-size: .92rem; color: inherit; }
.chip .sw { width: 22px; height: 22px; }
.chip[aria-pressed="true"] { background: rgba(246, 231, 214, .12); border-color: currentColor; }
.mix__name { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 640; line-height: 1.05; margin: 28px 0 8px; }
.mix__tip { margin: 0 0 26px; color: var(--espresso-soft); max-width: 40ch; }
@media (max-width: 880px) { .mix__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pump ---------- */
.pump__scene { width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 420 / 600; cursor: pointer; }
.pump__scene > svg { width: 100%; height: 100%; overflow: visible; }
.pump__sizes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pump__size { appearance: none; border: 1.5px solid var(--line); background: transparent; border-radius: 16px; padding: 12px 16px; cursor: pointer; text-align: left; min-width: 104px; transition: border-color var(--dur-micro) var(--ease-pour), background var(--dur-micro); color: inherit; }
.pump__size[aria-pressed="true"] { border-color: var(--espresso); background: var(--cream); }
.pump__size b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 650; line-height: 1.1; }
.pump__size small { font-size: .95rem; color: var(--espresso-soft); }
.pump__readout { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pump__count { font-family: var(--display); font-size: 3.6rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; display: inline-block; min-width: .8ch; overflow: hidden; height: 1em; }
.pump__count span { display: block; }
.pump__actions { margin-top: 22px; }
.fine { font-size: .84rem; color: var(--espresso-soft); font-style: italic; margin: 18px 0 0; }
.pump-chart { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.pump-chart li { flex: 1 1 0; min-width: 84px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.pump-chart b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 650; }
.pump-chart span { font-size: .95rem; color: var(--espresso-soft); }

/* ---------- story teaser / image + text ---------- */
.media-frame { position: relative; overflow: hidden; border-radius: 30px; aspect-ratio: 4 / 5; background: var(--fl-label); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1400ms var(--ease-honey); }
.media-frame.is-in img { transform: scale(1); }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame__waves { position: absolute; inset: 0; }
.media-frame__waves svg { width: 100%; height: 100%; }
.media-frame__note { position: absolute; left: 16px; bottom: 16px; right: 16px; font-size: .8rem; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.story__copy { display: grid; gap: 20px; }
.signature { font-family: var(--display); font-style: italic; font-size: 1.5rem; font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0; }
.offset-stack { position: relative; }
.offset-stack .media-frame + .media-frame { position: absolute; width: 46%; right: -6%; bottom: -10%; aspect-ratio: 1; border: 8px solid var(--cream); }
@media (max-width: 880px) { .offset-stack .media-frame + .media-frame { display: none; } }

/* ---------- reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 48px; }
.review { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--paper); display: grid; gap: 18px; align-content: start; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 1.32rem; line-height: 1.35; font-weight: 450; font-variation-settings: "SOFT" 100, "opsz" 40; }
.review figcaption { font-size: .9rem; color: var(--espresso-soft); }

/* ---------- cards: journal, products ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 36px); }
.article-card { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.article-card .media-frame { aspect-ratio: 5 / 4; border-radius: var(--radius); }
.article-card__meta { font-size: .95rem; color: var(--espresso-soft); }
.article-card h3 { font-size: 1.6rem; }
@media (hover: hover) { .article-card:hover .media-frame img { transform: scale(1.03); } }

.product-card { position: relative; display: grid; gap: 14px; align-content: start; }
.product-card__media { position: relative; overflow: hidden; border-radius: 26px; background: var(--fl-label); aspect-ratio: 4 / 5; display: grid; place-items: end center; isolation: isolate; text-decoration: none; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.product-card__media .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.product-card__media .bottle-art { height: 84%; width: auto; transform: translateY(5%) rotate(-3deg); transition: transform 900ms var(--ease-honey); }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .product-card:hover .bottle-art { transform: translateY(3%) rotate(0); } }
.product-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-card__title { font-family: var(--display); font-size: 1.5rem; font-weight: 640; text-decoration: none; line-height: 1.1; }
.product-card__title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__quick { position: relative; z-index: 2; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--espresso-soft); margin-right: 6px; font-size: .9em; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: var(--paper); border: 1px solid var(--line); }
.product-card .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }

/* ---------- instagram ---------- */
.insta__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.insta__grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--fl-label); }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-honey); }
.insta__grid a:hover img { transform: scale(1.05); }
@media (max-width: 880px) { .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- café band ---------- */
.cafe-band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.cafe-band__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cafe-band__list li { display: flex; gap: 12px; align-items: baseline; }
.cafe-band__list li::before { content: "✦"; color: var(--accent); font-size: .8em; }
@media (max-width: 880px) { .cafe-band__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- newsletter ---------- */
.newsletter__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
@media (max-width: 880px) { .newsletter__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 30px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li.is-done::before { background: var(--espresso); }
.timeline__dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 2px solid var(--line-strong); display: grid; place-items: center; }
.timeline li.is-done .timeline__dot { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.timeline li.is-current .timeline__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline__dot svg { width: 10px; height: 10px; }
.timeline b { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 620; line-height: 1.2; }
.timeline small { display: block; color: var(--espresso-soft); margin-top: 6px; font-size: .84rem; }
@media (max-width: 640px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding: 0 0 26px 38px; }
  .timeline li::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
}

/* ---------- stockists ---------- */
.stockists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 44px; }
.stockist { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; background: var(--paper); }
.stockist h3 { font-size: 1.45rem; }
.stockist address { font-style: normal; color: var(--espresso-soft); }
.empty-state { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 36px; margin-top: 44px; display: grid; gap: 14px; justify-items: start; max-width: 640px; }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--display); font-size: 1.22rem; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { width: 22px; height: 22px; flex: none; position: relative; }
.accordion summary .plus::before, .accordion summary .plus::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-ui) var(--ease-honey); }
.accordion summary .plus::after { transform: rotate(90deg); }
.accordion details[open] summary .plus::after { transform: rotate(0); }
.accordion__body { padding: 0 0 22px; overflow: hidden; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 24px; }
.product__gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.product__stage { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: var(--fl-label); aspect-ratio: 5 / 6; display: grid; place-items: end center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.product__stage .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.product__stage .bottle-art { height: 88%; width: auto; transform: translateY(4%); }
.product__slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 32px; scrollbar-width: none; }
.product__slides::-webkit-scrollbar { display: none; }
.product__slide { scroll-snap-align: start; aspect-ratio: 5 / 6; background: var(--fl-label); }
.product__slide img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: 10px; }
.product__thumbs button { appearance: none; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; width: 72px; aspect-ratio: 1; cursor: pointer; background: var(--fl-label); }
.product__thumbs button[aria-current="true"] { border-color: var(--espresso); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: grid; gap: 22px; padding-block: 12px 40px; }
.product__title { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.product__price { font-size: 1.4rem; font-family: var(--display); font-weight: 600; }
.product__desc { color: var(--espresso-soft); }
.variant-pills { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.variant-pills legend { font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; height: 52px; }
.qty button { appearance: none; border: 0; background: none; width: 44px; height: 100%; cursor: pointer; font-size: 1.2rem; color: inherit; border-radius: 999px; }
.qty input { width: 40px; border: 0; background: none; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 220px; }
.waitlist { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.waitlist p { margin: 0; }
.pairing { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--paper); text-decoration: none; }
.pairing .sw { width: 34px; height: 34px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--paper); border-top: 1px solid var(--line); padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter); display: none; align-items: center; gap: 14px; transform: translateY(110%); transition: transform var(--dur-ui) var(--ease-honey); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__name { font-family: var(--display); font-weight: 640; font-size: 1.1rem; line-height: 1.1; flex: 1; min-width: 0; }
.sticky-buy .btn { min-height: 46px; padding: 13px 20px; }
@media (max-width: 880px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__gallery { position: relative; top: 0; }
  .sticky-buy { display: flex; }
}

/* ---------- collection ---------- */
.collection-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--fl-label); }
.collection-hero .ribbons { position: absolute; right: 0; top: 0; height: 100%; width: 55%; z-index: -1; }
.collection-hero .inner { padding-top: 56px; padding-bottom: 96px; display: grid; gap: 16px; }
@media (max-width: 880px) { .collection-hero .ribbons { width: 100%; opacity: .45; } }
.trio-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--paper); border-radius: 32px; padding: clamp(24px, 4vw, 48px); margin-top: 48px; }
.trio-feature__art { display: flex; justify-content: center; align-items: flex-end; height: 340px; }
.trio-feature__art .bottle-art { height: 88%; width: auto; margin: 0 -18px; }
.trio-feature__art .bottle-art:nth-child(2) { height: 100%; position: relative; z-index: 1; }
.trio-feature__art .bottle-art:first-child { transform: rotate(-6deg); }
.trio-feature__art .bottle-art:last-child { transform: rotate(6deg); }
@media (max-width: 880px) { .trio-feature { grid-template-columns: minmax(0, 1fr); } .trio-feature__art { height: 260px; } }

/* ---------- cart drawer + page ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: 1fr minmax(0, 440px); visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { background: rgba(42, 17, 11, .38); opacity: 0; transition: opacity var(--dur-ui) var(--ease-pour); border: 0; padding: 0; cursor: pointer; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; height: 100%; height: 100dvh; transform: translateX(104%); box-shadow: -30px 0 60px -40px rgba(42, 17, 11, .6); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter-r) 12px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.8rem; }
.drawer__body { overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; display: grid; gap: 12px; }
.line-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item__art { width: 76px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--fl-label); display: grid; place-items: end center; position: relative; isolation: isolate; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.line-item__art .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.line-item__art .bottle-art { height: 90%; width: auto; }
.line-item__art img { width: 100%; height: 100%; object-fit: cover; }
.line-item__title { font-family: var(--display); font-weight: 620; font-size: 1.12rem; line-height: 1.15; text-decoration: none; }
.line-item__variant { font-size: .84rem; color: var(--espresso-soft); }
.line-item .qty { height: 40px; margin-top: 10px; }
.line-item .qty button { width: 36px; }
.line-item__remove { font-size: .8rem; margin-top: 8px; }
.cart-totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart-totals b { font-family: var(--display); font-size: 1.4rem; }
.cart-upsell { margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--cream); display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cart-upsell .line-item__art { width: 56px; }
.cart-empty { display: grid; gap: 18px; justify-items: start; padding-top: 32px; }
.cart-page .line-item { grid-template-columns: 110px minmax(0, 1fr) auto; }
.cart-page .line-item__art { width: 110px; }
.cart-page__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 48px; align-items: start; margin-top: 40px; }
.cart-page__summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
@media (max-width: 880px) { .cart-page__grid { grid-template-columns: minmax(0, 1fr); } }
@keyframes count-roll { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- article / recipe ---------- */
.article-hero { padding-top: 48px; }
.article-hero .inner { display: grid; gap: 18px; justify-items: start; }
.article-hero .inner > * { max-width: 900px; }
.article-hero .lede { max-width: 620px; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 56px; align-items: start; }
.article-body.has-aside { grid-template-columns: minmax(0, 1fr) 300px; justify-items: stretch; }
.recipe-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
@media (max-width: 880px) { .article-body { grid-template-columns: minmax(0, 1fr); } .recipe-card { position: relative; top: 0; } }
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 48px; align-items: center; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--espresso); color: var(--cream); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- page hero (simple) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero .inner { padding-top: 64px; padding-bottom: 72px; display: grid; gap: 18px; justify-items: start; }
.page-hero .inner > * { max-width: 900px; }
.page-hero .lede { max-width: 560px; }
.page-hero .ribbons { position: absolute; right: -4%; top: 0; height: 100%; width: 42%; z-index: -1; }
@media (max-width: 880px) { .page-hero .ribbons { width: 70%; opacity: .35; } }

/* ---------- contact paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.path { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; background: var(--paper); text-align: left; cursor: pointer; color: inherit; transition: border-color var(--dur-micro), transform var(--dur-ui) var(--ease-honey); }
.path:hover { border-color: var(--espresso); transform: translateY(-3px); }
.path h3 { font-size: 1.5rem; }
.path p { margin: 0; color: var(--espresso-soft); font-size: .95rem; }
@media (max-width: 880px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: var(--cream); position: relative; --edge: var(--espresso); }
.footer .inner { padding-block: 72px 36px; display: grid; gap: 48px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .6fr)) minmax(0, 1fr); gap: 32px; }
.footer .wordmark { color: var(--cream); }
.footer .wordmark svg { height: 64px; }
.footer h2 { font: 500 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .18em; margin: 0 0 14px; opacity: .7; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .85rem; opacity: .75; border-top: 1px solid rgba(246, 231, 214, .18); padding-top: 24px; }
.socials { display: flex; gap: 6px; }
.socials .icon-btn:hover { background: rgba(246, 231, 214, .1); }
.payment-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-icons svg { width: 38px; height: 24px; }
@media (max-width: 880px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer__brand, .footer__news { grid-column: 1 / -1; } }

/* ---------- signup nudge ---------- */
.nudge { position: fixed; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(380px, calc(100vw - 40px)); background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: 0 30px 60px -30px rgba(42, 17, 11, .55); border: 1px solid var(--line); display: grid; gap: 12px; }
.nudge__close { position: absolute; top: 8px; right: 8px; }
.nudge h2 { font-size: 1.8rem; padding-right: 32px; }
.nudge p { margin: 0; color: var(--espresso-soft); font-size: .95rem; }

/* ---------- misc ---------- */
.center { text-align: center; }
.stack { display: grid; gap: 18px; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }
.not-found { min-height: 70svh; display: grid; place-items: center; text-align: center; }
.not-found .inner { display: grid; gap: 20px; justify-items: center; padding-block: 64px; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 640px; }
.search-form .input { flex: 1 1 260px; }
.account-box { max-width: 520px; display: grid; gap: 18px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn, .btn:hover { transition: none; }
  .ribbons g { animation: none; }
}

/* The footer signup steps aside on pages that already end with the big newsletter section. */
body:has(.section-newsletter) .footer__news { display: none; }
@media (min-width: 881px) { body:has(.section-newsletter) .footer__top { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, .7fr)); } }

/* ---------- Blog elements (posts are Markdown in blog/posts; see blog/AGENTS.md) ---------- */
.post-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.post-hero__copy { display: grid; gap: 18px; justify-items: start; }
.post-hero__media .media-frame { border-radius: 30px; }
@media (max-width: 880px) { .post-hero { grid-template-columns: minmax(0, 1fr); } .post-hero__media { max-width: 460px; } }
.post-byline { display: flex; align-items: center; gap: 12px; }
.post-byline p { margin: 0; }
.post-byline__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.post-byline__name { font-weight: 500; }
.post-byline__meta { font-size: .88rem; }
.post-body { width: 100%; max-width: 68ch; font-size: 1.08rem; line-height: 1.7; }
.post-body > p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.6em; line-height: .86; padding: .06em .1em 0 0; font-weight: 700; color: var(--logo); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.post-quote { margin: 2em 0; padding: 0; }
.post-quote blockquote { margin: 0; padding: 0; border: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.22; color: var(--logo); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.post-quote blockquote::before { content: "\201C"; display: block; font-size: 2.6em; line-height: .6; height: .4em; color: var(--accent); }
.post-quote blockquote p { margin: 0; }
.post-quote figcaption { margin-top: 12px; font-size: 1rem; color: var(--espresso-soft); }
.post-note { margin: 2em 0; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.post-note > * + * { margin-top: .7em; }
.post-note p { margin-bottom: 0; }
.post-note__title { font-family: var(--display); font-size: 1.3rem; font-weight: 620; line-height: 1.2; margin: 0; }
.post-recipe { margin: 2em 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--fl-label); border: 1px solid var(--line); display: grid; gap: 12px; }
.post-recipe h3 { margin: 0; }
.post-recipe ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.post-recipe ul li { padding-left: 1.2em; position: relative; }
.post-recipe ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .48em; height: .48em; border-radius: 50%; background: var(--fl-liquid); }
.post-steps { margin: 2em 0; }
.post-steps__title { font-family: var(--display); font-size: 1.4rem; font-weight: 640; margin: 0 0 .6em; }
.post-steps ol, .post-recipe ol { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.post-steps ol li, .post-recipe ol li { counter-increment: step; position: relative; padding-left: 2.6em; min-height: 1.9em; }
.post-steps ol li::before, .post-recipe ol li::before { content: counter(step); position: absolute; left: 0; top: -.1em; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; font: 600 .9rem/1 var(--sans); background: var(--espresso); color: var(--cream); }
.post-figure { margin: 2em 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.post-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--espresso-soft); }
.post-photos { margin: 2em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.post-photos .post-figure { margin: 0; }
.post-photos img { aspect-ratio: 4 / 5; object-fit: cover; }
.post-signature { margin-top: 2em; }
.post-signature p:first-child { font-family: var(--display); font-style: italic; font-size: 2rem; line-height: 1; margin: 0; color: var(--logo); font-variation-settings: "SOFT" 100, "WONK" 1; }
.post-signature .muted { margin: 6px 0 0; font-size: .9rem; }
.post-after { display: grid; gap: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); justify-items: center; }
.post-after > * { width: 100%; max-width: 68ch; }
.post-after > .post-more { max-width: none; }
.post-author { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.post-author__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
@media (max-width: 560px) { .post-author { grid-template-columns: minmax(0, 1fr); } .post-author__photo { width: 88px; height: 88px; } }
.post-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; text-decoration: none; color: inherit; }
.post-feature .media-frame { aspect-ratio: 5 / 4; border-radius: 30px; }
.post-feature__copy { display: grid; gap: 16px; justify-items: start; }
.post-feature__copy .h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
@media (hover: hover) { .post-feature:hover .media-frame img { transform: scale(1.03); } .post-feature:hover .link { text-decoration-thickness: 2px; } }
@media (max-width: 880px) { .post-feature { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Coming soon (Cauldrons and Brews) ---------- */
.soon > .wrap > .inner { padding-block: clamp(40px, 5vw, 56px) clamp(88px, 9vw, 112px); }
.soon__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.soon__head .h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.soon__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.soon__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
.soon__art { color: var(--cream); width: 84px; height: 100px; }
.soon__art svg { width: 100%; height: 100%; overflow: visible; }
.soon__copy { display: grid; gap: 6px; justify-items: start; }
.soon__copy p { margin: 0; color: var(--espresso-soft); }
.soon__name { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.soon__badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .95rem; border: 1px solid #C4863C; color: #E0A35A; }
.soon__wave { animation: soon-wave 6s linear infinite; }
@keyframes soon-wave { to { transform: translateX(80px); } }
.soon__steam { fill: none; stroke: var(--cream); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: soon-steam 5s ease-in-out infinite; }
.soon__steam:nth-of-type(2) { animation-delay: -1.7s; }
.soon__steam:nth-of-type(3) { animation-delay: -3.4s; }
@keyframes soon-steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .5; } 100% { transform: translateY(-8px); opacity: 0; } }
@media (max-width: 880px) { .soon__grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .soon__wave, .soon__steam { animation: none; } .soon__steam { opacity: .4; } }

/* Syrup splashes on click or tap (assets/ripple.js) */
/* The syrup layer floats over the page and blends in: multiply keeps dark text on top on light sections,
   screen keeps light text on top on dark ones (ripple.js switches it with the section under the click). */
.ripples { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; mix-blend-mode: multiply; }
.ripples--dark { mix-blend-mode: screen; }
.ripples--goo { opacity: .42; overflow: visible; }

/* ---------- film ---------- */
.film__inner { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: center; }
.film__head { text-align: center; }
.film__frame { position: relative; width: 100%; max-width: 1120px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -30px rgba(55, 22, 14, .45); }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__toggle { position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(42, 17, 11, .55); color: var(--cream); cursor: pointer; opacity: .75; transition: opacity var(--dur-micro), transform var(--dur-ui) var(--ease-honey); }
.film__toggle:hover, .film__toggle:focus-visible { opacity: 1; transform: scale(1.06); }
.film__icon { width: 22px; height: 22px; fill: currentColor; }
.film__icon--play, .film.is-paused .film__icon--pause { display: none; }
.film.is-paused .film__icon--play { display: block; }
@media (max-width: 600px) and (orientation: portrait) {
  .film__frame { aspect-ratio: 9 / 16; max-width: 420px; }
}
