/* ==================================================================== */
/* Sipply's website: the app's drawn language, as tokens and base       */
/*                                                                      */
/* Shared by the front page (docs/index.html) and every markdown page   */
/* (docs/_layouts/default.html). docs/c/index.html keeps its own copy   */
/* of the few values it draws with (its policy allows inline styles).  */
/*                                                                      */
/* TYPE is the app's three faces, self-hosted (docs/assets/fonts, WOFF2 */
/* from the app's own assets/fonts by scripts/build-site-fonts.py, OFL  */
/* licences beside them), each to its job as in the app (theme.ts,      */
/* check-design rule 6):                                                */
/*   the marker, Sedgwick Ave  drink names, the big display words       */
/*   the poster, Anton         section heads in capitals (a transform:  */
/*                             the copy stays in sentence case), the    */
/*                             OUTLINED Nº figures and big numbers      */
/*   the text, Archivo         everything else, 400 / 500 / 600         */
/* The marker never sets a figure or an identifier (a count, an amount, */
/* a Nº, a handle): those are read exactly, so Archivo or the poster.   */
/* Sedgwick has no º; its stack falls back to Archivo for it. No face   */
/* has ✓ or №: the pen draws a check (pen.js `check`), a Nº is N + º.  */
/* The arrows and the minus come from three small "signs" faces.        */
/* The wordmark is the logo's own outline (img/wordmark*.svg), never a  */
/* font: .brand-mark paints it through a mask, so it takes a colour.    */
/*                                                                      */
/* COLOUR. Ink #0A0A0A and the signature red #D0102C on the white       */
/* studio sweep (white to 40% of the window, easing to #FBFBFB). Red is */
/* the logo and the pen; never a link, never an error. The flavour      */
/* fields (data-field) and cream are the hero's and the sections'       */
/* grounds; each GROUND sets the tokens every component reads, so a key, */
/* a focus ring or a pen mark is right on whatever it sits on:          */
/*   --bg --fg --muted --pen --pen-2 --mark --key-bg --key-fg           */
/*   --key-bg-hover --focus --focus-gap                                 */
/*   <section class="ground" data-field="daiquiri"> paints the field;   */
/*   .ground-red / .ground-ink / .ground-cream / .ground-sweep likewise. */
/*                                                                      */
/* SHAPES are squared: 2px corners on keys, chips and prints. No pills. */
/* CURSOR: the system's. No custom cursor, no ring.                     */
/* ==================================================================== */

@font-face { font-family: "SedgwickAveLatin"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/SedgwickAveLatin_400Regular.woff2") format("woff2"); }
@font-face { font-family: "AntonLatin"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/AntonLatin_400Regular.woff2") format("woff2"); }
@font-face { font-family: "ArchivoLatin"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ArchivoLatin_400Regular.woff2") format("woff2"); }
@font-face { font-family: "ArchivoLatin"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ArchivoLatin_500Medium.woff2") format("woff2"); }
@font-face { font-family: "ArchivoLatin"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ArchivoLatin_600SemiBold.woff2") format("woff2"); }
/* The signs the app's cuts leave out (→ in "Profile → Settings", the true minus), from the same upstream Archivo at the same instances (scripts/build-site-fonts.py). Declared after the main faces, so they are asked first for these characters only. */
@font-face { font-family: "ArchivoLatin"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ArchivoSigns_400Regular.woff2") format("woff2"); unicode-range: U+2190-2195, U+2212; }
@font-face { font-family: "ArchivoLatin"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ArchivoSigns_500Medium.woff2") format("woff2"); unicode-range: U+2190-2195, U+2212; }
@font-face { font-family: "ArchivoLatin"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ArchivoSigns_600SemiBold.woff2") format("woff2"); unicode-range: U+2190-2195, U+2212; }

:root {
  color-scheme: light;

  /* ---- Colour ---- */
  --ink: #0A0A0A;
  --ink-pressed: #333333;
  --red: #D0102C;
  --red-pressed: #A80C23;
  --white: #FFFFFF;
  --sweep-end: #FBFBFB;
  --cream: #FDF1DF;
  --wash: #F5F5F5;
  --press: #EBEBEB;
  --line: #E3E3E3;
  --rule: #C4C4C4;
  --control: #8A8A8A;
  --grey: #5C5C5C;
  --photo-edge: rgba(10, 10, 10, 0.07);

  /* The five hero fields: the flat grounds the plates were shot on (sampled from site-refs/drinks). */
  --field-negroni: #C81E32;
  --field-aperol: #FD770D;
  --field-paloma: #F39CB5;
  --field-daiquiri: #CAE783;
  --field-espresso: #4A2618;

  /* ---- The ground's tokens (white, by default) ---- */
  --bg: var(--white);
  --fg: var(--ink);
  --muted: var(--grey);
  --pen: var(--red);
  --pen-2: var(--ink);
  --mark: var(--red);
  --key-bg: var(--ink);
  --key-fg: var(--white);
  --key-bg-hover: var(--ink-pressed);
  --focus: var(--ink);
  --focus-gap: var(--white);

  /* Legacy names, kept so older markup reads the new tokens. */
  --page: var(--white);
  --accent: var(--red);
  --on-ink: var(--white);

  /* ---- Type ---- */
  --f-marker: "SedgwickAveLatin", "ArchivoLatin", "Marker Felt", "Segoe Print", cursive;
  --f-poster: "AntonLatin", Impact, "Haettenschweiler", "Arial Narrow", sans-serif;
  --f-text: "ArchivoLatin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: var(--f-text);
  --display: var(--f-marker);

  /* The scale, at 390 -> 1440 and up. */
  --t-hero: clamp(5.5rem, 20vw, 20.625rem);      /* the mockup's hero name spans ~70% of the window: fit long names (Espresso Martini) to their column */
  --t-display: clamp(3.5rem, 8.4vw, 8.5rem);
  --t-name-xl: clamp(3rem, 6.4vw, 6.5rem);
  --t-name-lg: clamp(1.875rem, 3vw, 2.875rem);
  --t-name: 1.625rem;
  --t-hand: clamp(1.5rem, .9375rem + 1.2vw, 2.25rem);
  --t-poster-xl: clamp(3rem, 6.6vw, 6.75rem);
  --t-poster-lg: clamp(2.125rem, 3.9vw, 3.875rem);
  --t-poster-md: clamp(1.3125rem, .7969rem + 1vw, 1.875rem);
  --t-figure: clamp(6rem, 13vw, 13.5rem);
  --t-lede: clamp(1.1875rem, .6563rem + .775vw, 1.4375rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;
  --t-label: .8125rem;

  /* ---- Shape and space ---- */
  --r: 2px;
  --r-print: 2px;
  --r-key: 2px;
  --r-card: 2px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1600px;   /* the mockups run nearly edge to edge: 40px gutters at 1440 and 1672 */
  /* The head at the page's top (the mockups' scale: the wordmark ~127px wide at 1440), and closed up once the page moves. */
  --head-h: clamp(64px, 6vw, 100px);
  --head-c: clamp(56px, 4.6vw, 72px);
  --mark-h: clamp(38px, 4.9vw, 82px);
  --bar: var(--head-h);

  /* ---- Motion ---- */
  --ease-pen: cubic-bezier(.45, .05, .35, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  /* A damped spring (zeta 0.42, ~23% overshoot), for things that land: a doodle settling, a chip popping. Use it over ~0.9 to 1.2s. */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.038, 0.138, 0.279, 0.443, 0.612, 0.773, 0.916, 1.035, 1.125, 1.187, 1.222, 1.234, 1.225, 1.203, 1.17, 1.132, 1.092, 1.054, 1.021, 0.993, 0.971, 0.957, 0.948, 0.945, 0.947, 0.952, 0.96, 0.969, 0.978, 0.987, 0.995, 1.001, 1.006, 1.01, 1.012, 1.013, 1.012, 1.011, 1.009, 1);
  }
}

/* ==================================================================== */
/* Grounds                                                              */
/* ==================================================================== */

.ground { background-color: var(--bg); color: var(--fg); }
.ground-sweep { --bg: var(--white); background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 40%, #FEFEFE 55%, #FCFCFC 78%, var(--sweep-end) 100%); color: var(--ink); }
.ground-cream { --bg: var(--cream); --fg: var(--ink); --muted: #5A5249; --pen: var(--red); --pen-2: var(--ink); --mark: var(--red); --key-bg: var(--ink); --key-fg: var(--white); --key-bg-hover: var(--ink-pressed); --focus: var(--ink); --focus-gap: var(--cream); }
.ground-red { --bg: var(--red); --fg: var(--white); --muted: rgba(255, 255, 255, .88); --pen: var(--white); --pen-2: var(--ink); --mark: var(--ink); --key-bg: var(--white); --key-fg: var(--ink); --key-bg-hover: #F2F2F2; --focus: var(--white); --focus-gap: var(--ink); }
.ground-ink { --bg: var(--ink); --fg: var(--white); --muted: #A3A3A3; --pen: var(--red); --pen-2: var(--white); --mark: var(--red); --key-bg: var(--white); --key-fg: var(--ink); --key-bg-hover: #E6E6E6; --focus: var(--white); --focus-gap: var(--ink); }
/*
 * The flavour fields. Light fields carry ink words; the Negroni and the
 * Espresso Martini carry white. The wordmark is never white on the red
 * (the app's rule: white script on red is Coca-Cola's ground), so on the
 * Negroni it is ink. Pen: the brighter of red and white where red reads,
 * ink or cream where it does not. Ratios are WCAG's, against the field.
 */
[data-field="daiquiri"] { --bg: var(--field-daiquiri); --fg: var(--ink); --muted: rgba(10, 10, 10, .8); --pen: var(--red); --pen-2: var(--white); --mark: var(--red); --key-bg: var(--ink); --key-fg: var(--white); --key-bg-hover: var(--ink-pressed); --focus: var(--ink); --focus-gap: var(--white); }      /* ink 14.4, red 4.0 */
[data-field="paloma"]   { --bg: var(--field-paloma); --fg: var(--ink); --muted: rgba(10, 10, 10, .8); --pen: var(--red); --pen-2: var(--white); --mark: var(--red); --key-bg: var(--ink); --key-fg: var(--white); --key-bg-hover: var(--ink-pressed); --focus: var(--ink); --focus-gap: var(--white); }        /* ink 9.7, red 2.7 */
[data-field="aperol"]   { --bg: var(--field-aperol); --fg: var(--ink); --muted: rgba(10, 10, 10, .82); --pen: var(--ink); --pen-2: var(--white); --mark: var(--ink); --key-bg: var(--ink); --key-fg: var(--white); --key-bg-hover: var(--ink-pressed); --focus: var(--ink); --focus-gap: var(--white); }      /* ink 7.4, red 2.1 */
[data-field="negroni"]  { --bg: var(--field-negroni); --fg: var(--white); --muted: rgba(255, 255, 255, .9); --pen: var(--white); --pen-2: var(--ink); --mark: var(--ink); --key-bg: var(--white); --key-fg: var(--ink); --key-bg-hover: #F2F2F2; --focus: var(--white); --focus-gap: var(--ink); }   /* white 5.7, ink 3.5 */
[data-field="espresso"] { --bg: var(--field-espresso); --fg: var(--white); --muted: rgba(255, 255, 255, .84); --pen: var(--cream); --pen-2: var(--red); --mark: var(--white); --key-bg: var(--white); --key-fg: var(--ink); --key-bg-hover: #F2F2F2; --focus: var(--white); --focus-gap: var(--ink); } /* white 13.3, red 2.4 */

/* ==================================================================== */
/* Base                                                                 */
/* ==================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--white);
  scroll-padding-top: var(--head-c);
}

/*
 * The body has NO background of its own: html's white is the canvas, and
 * the sweep (body::before, z-index -1) paints over that and under every
 * block. A body background would paint over the sweep and hide it.
 */
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--f-text);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* The studio sweep, held to the window as the app's paper is: white to 40%, then easing to #FBFBFB. A ground with its own colour covers it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 40%, #FEFEFE 55%, #FCFCFC 78%, var(--sweep-end) 100%);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 max(var(--gut), env(safe-area-inset-right)) 0 max(var(--gut), env(safe-area-inset-left));
}

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: max(var(--gut), env(safe-area-inset-left)); top: -80px; z-index: 60;
  background: var(--ink); color: var(--white); padding: 12px 16px;
  border-radius: var(--r); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/*
 * FOCUS, visible on every ground: a 3px ring in the ground's --focus
 * with a 2px band of --focus-gap between it and the thing, so one of the
 * two always reads (ink and white on white and the light fields; white
 * and ink on red, ink and the Negroni and Espresso fields).
 */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-gap);
}

/* ==================================================================== */
/* Page changes                                                         */
/* ==================================================================== */
/*
 * A move between two of the site's pages is one view transition (every
 * page that loads this file opts in): the old page lifts away and fades,
 * the new one rises in, and the head (view-transition-name: site-head)
 * holds still between them. A page can name its own pieces to carry them
 * across (a drink's print, say): give each a unique view-transition-name.
 * Reduce Motion: the change is a plain cut.
 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease-in) both vt-leave; }
::view-transition-new(root) { animation: 520ms var(--ease-out) 60ms both vt-arrive; }
::view-transition-group(site-head) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
@keyframes vt-leave { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/*
 * SCROLLING. An in-page link (a policy's section list) glides there; with
 * Reduce Motion it jumps. A page that runs Lenis (html.lenis, its own
 * classes) owns the scroll instead: these are Lenis 1.1's own rules, so
 * the page need not carry them, and native smooth scrolling steps aside.
 */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ==================================================================== */
/* Type                                                                 */
/* ==================================================================== */
/*
 * The marker's glyphs reach past its line box (descenders to 0.43em
 * under the baseline, accented capitals to 1.17em above, 0.1em past
 * either side: lineMarks.ts): never clip a marker line (no overflow
 * hidden on it or its parent), and leave it room below.
 */
.marker { font-family: var(--f-marker); font-weight: 400; letter-spacing: 0; font-variant-ligatures: common-ligatures; }
.poster { font-family: var(--f-poster); font-weight: 400; text-transform: uppercase; letter-spacing: 0.006em; }
.outline {
  font-family: var(--f-poster); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em;
  color: transparent; -webkit-text-stroke: var(--outline-w, clamp(1.5px, 0.14vw, 2.5px)) var(--outline-c, currentColor);
  paint-order: stroke fill; font-variant-numeric: tabular-nums;
}
.outline { --outline-c: var(--fg); }
@supports not (-webkit-text-stroke: 1px black) { .outline { color: var(--fg); } }

/* The marker */
.t-hero    { font: 400 var(--t-hero)/0.9 var(--f-marker); letter-spacing: 0; }
.t-display { font: 400 var(--t-display)/0.98 var(--f-marker); letter-spacing: 0; }
.t-name-xl { font: 400 var(--t-name-xl)/1 var(--f-marker); letter-spacing: 0; }
.t-name-lg { font: 400 var(--t-name-lg)/1.12 var(--f-marker); letter-spacing: 0; }
.t-name    { font: 400 var(--t-name)/1.2 var(--f-marker); letter-spacing: 0; }
/* A note in the pen's hand ("the real one", "post one to unlock"): the marker, in the pen's colour. */
.t-hand    { font: 400 var(--t-hand)/1.1 var(--f-marker); letter-spacing: 0; color: var(--pen); }

/* The poster: capitals by transform */
.t-poster-xl { font: 400 var(--t-poster-xl)/0.94 var(--f-poster); text-transform: uppercase; letter-spacing: 0.004em; }
.t-poster-lg { font: 400 var(--t-poster-lg)/0.98 var(--f-poster); text-transform: uppercase; letter-spacing: 0.006em; }
.t-poster-md { font: 400 var(--t-poster-md)/1.1 var(--f-poster); text-transform: uppercase; letter-spacing: 0.012em; }
/* The app's section head (theme.ts `sub`: 16/26, tracked 0.8). */
.t-eyebrow   { font: 400 1rem/1.625 var(--f-poster); text-transform: uppercase; letter-spacing: 0.05em; }
/* An outlined figure: a count, a Nº. */
.t-figure    { font-size: var(--t-figure); line-height: 0.9; }

/* The text */
.t-lede  { font: 500 var(--t-lede)/1.42 var(--f-text); letter-spacing: -0.012em; }
.t-body  { font: 400 var(--t-body)/1.55 var(--f-text); letter-spacing: -0.006em; }
.t-small { font: 400 var(--t-small)/1.5 var(--f-text); letter-spacing: 0; }
/* The Nº plate's voice: 600, tracked, tabular. */
.t-label { font: 600 var(--t-label)/18px var(--f-text); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* A drink's name: always the marker. */
.drink-name { font-family: var(--f-marker); font-weight: 400; letter-spacing: 0; }
/* A Nº in a line of type: Archivo, tabular, never the marker (Sedgwick has no º). */
.dexno { font: 500 .8125rem/1.3846 var(--f-text); letter-spacing: 1px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
/* The caught plate: Archivo 600 on the red, white figures. */
.plate {
  position: relative; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px;
  border-radius: var(--r); background: var(--red); color: var(--white);
  font: 600 .8125rem/1.3846 var(--f-text); letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.plate .drip { position: absolute; right: 6px; bottom: 1.5px; width: 0; height: 0; overflow: visible; }
.plate .drip svg { position: absolute; left: -3px; top: -3px; width: 6px; height: 12px; max-width: none; overflow: visible; }

/* A print: a photo as the app hangs one, 2px corners and an inset edge so a pale photo still has one on white. */
.print { position: relative; border-radius: var(--r); overflow: hidden; background: var(--wash); }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--photo-edge); pointer-events: none; }

/*
 * The press's leader (the app's PressLeader, framePath.ts leader()): the
 * dots a menu sets between an ingredient and its amount, 1.1 wide every
 * 4, 2 clear at each end, counted from the amount's side, their foot on
 * the baseline, in --control (3.45:1). The printer's, not the hand's, so
 * it never draws itself in. Put it between the two in a row that aligns
 * on baselines:
 *   <li class="lead-row"><span>Lime juice</span><span class="leader" aria-hidden="true"></span><b>1 oz</b></li>
 */
.lead-row { display: flex; align-items: baseline; gap: 0; }
.leader {
  flex: 1 1 auto; min-width: 16px; height: 4px; margin: 0 6px; padding: 0 2px;
  background: radial-gradient(circle at 2px 2.4px, var(--leader, var(--control)) 0 0.55px, transparent 0.8px) right top / 4px 4px repeat-x content-box;
}
@media (max-resolution: 1.5dppx) { .leader { background-image: radial-gradient(circle at 2px 2.4px, var(--leader, var(--control)) 0 0.75px, transparent 1px); } }

/* ==================================================================== */
/* Keys, chips, links                                                   */
/* ==================================================================== */
/* Squared, 2px. A key takes its ground's colours (--key-bg, --key-fg); .ink, .white and .red pin one. */

.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--r);
  background: var(--key-bg); color: var(--key-fg);
  font: 600 1.0625rem/1 var(--f-text); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease;
}
.key.sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.key.lg { min-height: 60px; padding: 0 34px; font-size: 1.1875rem; }
.key.ink { --key-bg: var(--ink); --key-fg: var(--white); --key-bg-hover: var(--ink-pressed); }
.key.white { --key-bg: var(--white); --key-fg: var(--ink); --key-bg-hover: #EFEFEF; }
.key.red { --key-bg: var(--red); --key-fg: var(--white); --key-bg-hover: var(--red-pressed); }
.key.wash { --key-bg: var(--wash); --key-fg: var(--ink); --key-bg-hover: var(--press); }
/* The quiet key: a 2px edge in the ground's ink, no fill. */
.key.line { background: transparent; color: var(--fg); border: 2px solid currentColor; }
@media (hover: hover) {
  .key:hover { background: var(--key-bg-hover); }
  .key.line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
}
.key:active { background: var(--key-bg-hover); }
.key svg { width: 20px; height: 20px; flex: none; }

/* Beta or App Store: html[data-store] ("beta" until Sipply 1.0 is out, then "live"; scripts/site-store.mjs flips it). */
html:not([data-store="live"]) .if-live { display: none !important; }
html[data-store="live"] .if-beta { display: none !important; }
/* Apple's own badge, unaltered (img/app-store-badge.svg, from Apple's marketing toolbox). Apple asks for at least 40px on screen
   and clear space of a quarter of its height round it; nothing is drawn on it. */
.store-badge { display: inline-flex; flex: none; line-height: 0; border-radius: 9px; text-decoration: none; }
.store-badge img { display: block; height: 40px; width: auto; }
.store-badge.lg img { height: clamp(48px, 3.8vw, 60px); }

/* A chip: a choice among a few (Cocktails / Spirits). Outlined; the chosen one filled. Use aria-pressed or aria-selected. */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--fg); border-radius: var(--r);
  background: transparent; color: var(--fg);
  font: 600 1.0625rem/1 var(--f-text); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease;
}
.chip.sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--fg); color: var(--bg); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):not([aria-selected="true"]):not(.is-on):hover { background: color-mix(in srgb, var(--fg) 8%, transparent); } }

/* A quiet line: the ground's ink, underlined on hover. Never red. */
.quiet {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--fg); font-weight: 600; text-decoration: none;
}
.quiet svg { width: 16px; height: 16px; }
@media (hover: hover) { .quiet:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; } }

/* ==================================================================== */
/* The pen (docs/assets/pen.js)                                         */
/* ==================================================================== */
/*
 * A mark's element is its nominal box; pen.js sets the ink out from it.
 * Zero-specificity defaults (:where), so a page's own rule for a mark
 * (position: absolute; width: 120px) always wins. The ink is the
 * ground's --pen, set on the SVG itself so no page rule for spans or
 * text colour reaches it; data-color (or --pen on the mark) changes it.
 */
:where([data-pen]) { position: relative; display: inline-block; vertical-align: top; pointer-events: none; }
:where([data-pen="rule"]) { display: block; height: 6px; }
:where([data-pen="double"]) { display: block; height: 10px; }
:where([data-pen="strike"]) { display: block; height: 8px; }
:where([data-pen="vrule"]) { width: 6px; }
.pen > svg { display: block; max-width: none; color: var(--pen); }
/* The draw: each stroke's mask centreline runs from hidden (--off) to drawn, in turn (--at), for its share (--dur). */
.pen-cl { stroke-dashoffset: var(--off); }
.is-drawn .pen-cl { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pen-cl { transition: stroke-dashoffset calc(var(--dur, 400ms) * var(--pen-k, 1)) var(--ease-pen) calc(var(--at, 0ms) * var(--pen-k, 1)); }
}
.pen-instant .pen-cl { transition: none !important; }

/*
 * A doodle LANDS: as it draws, it settles from a small tilt and 90% to
 * its place on the spring (pen.js puts .pen-doodle on every doodle and
 * signed end; data-spring="off" opts one out; --pen-tilt is seeded per
 * mark). Rules, swashes, strikes and frames only draw: they are lines.
 */
@media (prefers-reduced-motion: no-preference) {
  .pen-doodle > svg {
    transform: rotate(var(--pen-tilt, -6deg)) scale(0.9); transform-origin: 50% 62%;
    transition: transform 1050ms var(--spring) var(--pen-spring-at, 0ms);
  }
  .pen-doodle.is-drawn > svg { transform: none; }
  .pen-instant.pen-doodle > svg { transition: none; }
}

/* Words struck through by the pen: <span class="struck">Ads<span data-pen="strike"></span></span>. */
.struck { position: relative; display: inline-block; }
.struck > [data-pen="strike"] { position: absolute; left: -0.08em; right: -0.12em; top: calc(52% - 4px); }

/* ==================================================================== */
/* The head                                                             */
/* ==================================================================== */
/*
 * Sticky and white on every page. A page with a full-bleed hero gives it
 * data-over="#hero" (any selector): it then lies over the hero,
 * transparent, in the tokens of its own data-field (set it to the hero's
 * field: <header ... data-over="#hero" data-field="daiquiri">, and change
 * it as the field changes), and turns white the moment the hero has gone
 * under it (docs/assets/site.js). Without JavaScript it simply scrolls
 * away with the hero.
 *
 * CLOSING UP. At the page's top the head is the mockups' size (--head-h,
 * the wordmark large); once the page has moved (.is-compact, site.js) it
 * closes up to --head-c with the wordmark smaller. Nothing in the layout
 * moves: the head's box keeps its height, its white is a layer
 * (::before) that slides up, and its row slides up half as far. The part
 * of the box under the closed bar is see-through and lets the pointer
 * through to the page (pointer-events: only the head's links take it).
 *
 * It keeps its place across a page change (view-transition-name).
 */
.site-head {
  position: sticky; top: 0; z-index: 40;
  height: var(--head-h);
  color: var(--fg);
  pointer-events: none;
  --lift: 0px;
  --mark-s: 1;
  view-transition-name: site-head;
}
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--white);
  box-shadow: inset 0 -1px 0 transparent;
  transform: translateY(var(--lift));
  transition: transform .55s var(--ease-out), background-color .35s ease, box-shadow .35s ease;
}
.site-head:not([data-over]), .site-head.is-live:not(.is-over) {
  --fg: var(--ink); --muted: var(--grey); --pen: var(--red); --mark: var(--red);
  --key-bg: var(--ink); --key-fg: var(--white); --key-bg-hover: var(--ink-pressed);
  --focus: var(--ink); --focus-gap: var(--white);
}
.site-head.is-scrolled::before { box-shadow: inset 0 -1px 0 var(--line); }
.site-head.is-compact { --lift: calc(var(--head-c) - var(--head-h)); --mark-s: 0.74; }
.site-head[data-over] { position: absolute; left: 0; right: 0; top: 0; }
.site-head[data-over]::before { background-color: transparent; }
.site-head[data-over].is-live { position: fixed; }
.site-head[data-over].is-live:not(.is-over)::before { background-color: var(--white); }
.site-head.is-over::before { box-shadow: none; }
/* Over the hero once the page has moved: a bar in the hero's own field colour (the head's data-field sets --bg), so its words never sit on the drink's name,
   with a hairline in the field's ink along its foot, so where the hero passes under it reads as the bar's edge, not as a cut. */
.site-head[data-over].is-live.is-over.is-compact::before { background-color: var(--bg); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--fg) 26%, transparent); }
.head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
  transform: translateY(calc(var(--lift) / 2));
  transition: transform .55s var(--ease-out);
}
.head-row a, .head-row button { pointer-events: auto; }

/* The wordmark: the logo's outline as a mask, so it takes the ground's --mark (red on white). */
.brand { display: block; flex: none; margin-left: -6px; padding: 6px; border-radius: var(--r); text-decoration: none; }
.brand-mark {
  display: block; height: var(--mark-h); aspect-ratio: 462.97 / 257.14;
  background-color: var(--mark);
  -webkit-mask: url("../img/wordmark-sm.svg") center / contain no-repeat;
  mask: url("../img/wordmark-sm.svg") center / contain no-repeat;
  transition: background-color .35s ease;
}
.site-head .brand-mark {
  transform: scale(var(--mark-s)); transform-origin: 6% 50%;
  transition: background-color .35s ease, transform .55s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .site-head::before, .head-row, .site-head .brand-mark { transition-property: background-color, box-shadow; }
}
/* The full mark, with its drip: for the foot. */
.brand-mark.drip {
  aspect-ratio: 462.97 / 285.52;
  -webkit-mask-image: url("../img/wordmark.svg");
  mask-image: url("../img/wordmark.svg");
}
@media (forced-colors: active) { .brand-mark { forced-color-adjust: none; background-color: CanvasText; } }

.head-nav { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 44px); }
.head-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fg); font: 600 clamp(1rem, .5938rem + .68vw, 1.375rem)/1 var(--f-text); letter-spacing: -0.014em;
  text-decoration: none; white-space: nowrap;
}
/* The head's key: the mockups' 139 x 41 at 1440. */
.site-head .key.sm { min-height: clamp(40px, 3.1vw, 50px); padding: 0 clamp(14px, 1.55vw, 26px); font-size: clamp(.9375rem, .5312rem + .6vw, 1.1875rem); }
/* The swash under each link, drawn as the page opens; it is the pen's, so it takes --pen. */
.head-link > [data-pen] { position: absolute; left: -1px; right: -3px; bottom: 5px; height: 6px; }
@media (hover: hover) { .head-link:hover { color: var(--fg); } .head-link:hover > [data-pen] { transform: translateY(1px); } }
@media (max-width: 520px) {
  .head-nav { gap: 14px; }
  .head-link { font-size: .9375rem; }
  .site-head .key.sm { min-height: 40px; padding: 0 13px; font-size: .9375rem; }
}
/* A small phone (360 to 400): the mark a little smaller and the gaps closer, so the row keeps its 16px gutters. Under 360 the links go; the wordmark and the key stay. */
@media (max-width: 400px) {
  .head-row { gap: 10px; }
  .site-head { --mark-h: 34px; }
  .head-nav { gap: 12px; }
  .site-head .key.sm { padding: 0 12px; }
}
@media (max-width: 359px) { .head-link { display: none; } }
/* On a phone the head is already small: it closes up less, and the wordmark barely shrinks. */
@media (max-width: 520px) { .site-head.is-compact { --mark-s: 0.88; } }

/* ==================================================================== */
/* The foot                                                             */
/* ==================================================================== */

/* On the sweep, as the page is: no fill of its own, so it never steps from #FBFBFB to white at the window's foot. */
.site-foot {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 calc(40px + env(safe-area-inset-bottom));
  background-color: transparent; color: var(--ink);
  --fg: var(--ink); --muted: var(--grey); --pen: var(--red); --mark: var(--red); --focus: var(--ink); --focus-gap: var(--white);
}
.site-foot.ruled { box-shadow: inset 0 1px 0 var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.foot-brand .brand-mark { --mark-h: clamp(48px, 4.4vw, 64px); }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(18px, 2.4vw, 36px); }
.foot-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font: 500 1rem/1.2 var(--f-text); letter-spacing: -0.006em; text-decoration: none;
}
@media (hover: hover) { .foot-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; } }
.foot-notes { display: grid; gap: 6px; margin-top: 20px; max-width: 64ch; }
.foot-notes p { margin: 0; color: var(--grey); font: 400 .875rem/1.5 var(--f-text); text-wrap: pretty; }
@media (min-width: 900px) { .foot-nav { justify-content: flex-end; } }
/* Wide enough for each note on one line: under the links, on the right, as the mockup's small print. */
@media (min-width: 1180px) {
  .foot-notes { max-width: none; justify-items: end; text-align: right; margin-top: 6px; }
}

/* ==================================================================== */
/* Markdown pages (docs/_layouts/default.html)                           */
/* ==================================================================== */
/*
 * Support, privacy, terms and data deletion: words to be
 * read, so one measured column of Archivo at a reading size, the title
 * and section heads in the poster's capitals, the pen's double swash under
 * the title, its double rule where the page breaks (a markdown ---, on a
 * page with three or fewer), garnish beside the title on a wide window,
 * and the page signed at its end. Links are ink and underlined: never red.
 */
.doc { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.doc-grid { display: grid; gap: 48px; }
@media (min-width: 1100px) { .doc-grid { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 96px; } }
.doc-aside { display: none; }
@media (min-width: 1100px) { .doc-aside { display: block; position: relative; } }
/* The garnish: a doodle and its partner, beside the title. Ornament only. */
.doc-art { position: relative; height: 230px; max-width: 320px; }
.doc-art > [data-pen] { position: absolute; }
.doc-art .art-a { left: 18px; top: 8px; width: 132px; }
.doc-art .art-b { left: 190px; top: 70px; width: 76px; }
.doc-art .art-c { left: 150px; top: -6px; width: 52px; }
/* The section list, sticky under the head: only where there is room beside the column. */
.toc { position: sticky; top: calc(var(--head-h) + 40px); max-width: 300px; padding-top: 8px; }
.toc-label { margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--grey); font: 500 .9375rem/1.35 var(--f-text); text-decoration: none; }
.toc a[aria-current] { color: var(--ink); font-weight: 600; }
@media (hover: hover) { .toc a:hover { color: var(--ink); } }

.prose { max-width: 720px; font: 400 1.125rem/1.62 var(--f-text); letter-spacing: -0.008em; }
.prose > :first-child { margin-top: 0; }
.prose h1 {
  position: relative; width: fit-content; max-width: 100%;
  margin: 0 0 clamp(54px, 5.4vw, 70px);
  font: 400 clamp(3.25rem, 8vw, 6.5rem)/0.92 var(--f-poster); text-transform: uppercase; letter-spacing: 0.004em;
  text-wrap: balance;
}
/* Under the title's last line: the double swash hangs from the line box's foot, into the title's margin. */
.prose h1 .title-swash { position: absolute; left: -0.02em; top: calc(100% + 0.06em); width: min(100%, 9.5em); height: 6px; }
.prose h2 {
  margin: 72px 0 16px;
  font: 400 clamp(1.75rem, 1.0312rem + 1.5vw, 2.375rem)/1.02 var(--f-poster); text-transform: uppercase; letter-spacing: 0.01em;
  text-wrap: balance;
}
.prose :is(h2, h3) { scroll-margin-top: 16px; }
.prose h3 { margin: 40px 0 8px; font: 600 1.25rem/1.3 var(--f-text); letter-spacing: -0.014em; }
.prose h4, .prose h5, .prose h6 { margin: 28px 0 6px; font: 600 1.125rem/1.35 var(--f-text); }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose blockquote { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--grey); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--control); overflow-wrap: anywhere; }
@media (hover: hover) { .prose a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; } }
/* "Last updated", the line under every title. */
.prose h1 + p { color: var(--grey); font: 500 .9375rem/1.5 var(--f-text); margin-bottom: 32px; }
.prose h1 + p strong { font-weight: 500; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 44px 0; }
.prose hr.pen-hr { height: 0; background: none; margin: 0; }
.prose .pen-break { margin: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); width: min(100%, 320px); }
.prose .pen-break + h2 { margin-top: 0; }
.prose code { font: 500 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--wash); border-radius: var(--r); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.prose pre { background: var(--wash); border-radius: var(--r); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; }
/* A quote's edge is a printed rule, not the pen: red is the logo's and the pen's alone. */
.prose blockquote { margin-left: 0; padding-left: 18px; box-shadow: inset 2px 0 0 var(--rule); color: var(--grey); }
/* Tables scroll inside themselves, never the page. */
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
.prose th { font-weight: 600; white-space: nowrap; }
.prose img { height: auto; border-radius: var(--r); }
/* The page signed at its end, right on the column's edge, as the app signs a list. */
.doc-end { display: flex; justify-content: flex-end; max-width: 720px; margin-top: 56px; }
