/*
  Design Plan — Coffee 101
  Subject specifics:
  1. Name: "Coffee 101" — a beginner-friendly guide to what is actually inside a coffee cup.
  2. Materials: Dark espresso extract, rich crema, steamed whole milk, airy microfoam, clear hot water, dark cocoa, and thick ceramic cups or fluted glass tumblers.
  3. Printed things of its world: Café bar recipe cards, graduated barista shot glasses with ml markings, ratio charts behind the espresso machine.
  4. Numbers and ratios: 1:2 espresso extraction, 1:1:1 cappuccino thirds, 1:2:5 latte proportions, 1:1 cortado balance, 30 ml single shots, 60 ml double shots.
  5. Constraint: Tiny, focused single-page guide with zero jargon barriers, written like a kind friend explaining the menu before you order.
  6. Colours from the cup: Unbleached filter paper ground, deep roasted espresso ink, bright coffee-cherry red-orange accent, golden hazelnut crema, warm steamed milk, and dark cocoa brown.
  7. Tactile ritual: Pouring layered drinks into a clear glass where each ingredient settles into visible horizontal bands.
  8. Audience: Anyone standing in front of a café menu wondering what separates a flat white from a latte or a macchiato from a cortado.

  Idea sentence:
  On this site, the graduated barista measuring glass with its visible horizontal liquid layers and ml ticks becomes the core layout and interactive diagram across the entire guide.

  Why it fits this brief:
  The owner asked for one central thing: "Show a clear breakdown of ingredients and ratios for each drink." Turning the page into a calibrated vessel and horizontal ratio bar makes proportions immediately legible at a glance and lets visitors compare drinks interactively.

  One bold element:
  An interactive, calibrated cross-section cup diagram on the first screen that dynamically re-layers espresso, steamed milk, microfoam, water, and chocolate with exact part ratios and ml volumes when you pick any drink or switch between single and double shots.
*/

:root {
  /* 6 Role-named Colours */
  --color-ground: #f5f0e6;       /* Unbleached paper filter */
  --color-ink: #1e140f;          /* Dark French roast espresso */
  --color-accent: #c84323;       /* Ripe coffee cherry red-orange */
  --color-crema: #c98842;        /* Golden espresso crema */
  --color-milk: #fffcf7;         /* Steamed whole milk */
  --color-cocoa: #4a2c1d;        /* Rich espresso liquid & dark cocoa */

  /* Derived surface & text tokens using color-mix in oklch */
  --surface-paper: var(--color-ground);
  --surface-warm: color-mix(in oklch, var(--color-ground) 86%, var(--color-crema));
  --surface-deep: color-mix(in oklch, var(--color-ground) 72%, var(--color-cocoa));
  --surface-roast: var(--color-ink);
  --surface-milk: var(--color-milk);

  --ink-primary: var(--color-ink);
  --ink-muted: color-mix(in oklch, var(--color-ink) 68%, var(--color-ground));
  --ink-on-roast: var(--color-milk);
  --ink-on-roast-muted: color-mix(in oklch, var(--color-milk) 75%, var(--color-crema));

  /* Ingredient fills for the live cup & ratio bars */
  --fill-espresso: var(--color-cocoa);
  --fill-crema: var(--color-crema);
  --fill-steamed-milk: var(--color-milk);
  --fill-foam: color-mix(in oklch, var(--color-milk) 82%, var(--color-crema));
  --fill-water: color-mix(in oklch, var(--color-ground) 65%, var(--color-crema));
  --fill-chocolate: color-mix(in oklch, var(--color-ink) 65%, var(--color-accent));

  /* Typography — max 2 families, max 5 sizes.
     External web fonts cannot be fetched over the network, so Mansalva is paired with
     built-in handwritten brush/marker system fonts across macOS, iOS, Windows, and Linux. */
  --font-display: 'Mansalva', 'Marker Felt', 'Noteworthy', 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', Chilanka, TSCu_Comic, casual, cursive;
  --font-body: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;

  --size-xl: clamp(2.5rem, 5.5vw, 4.25rem);
  --size-lg: clamp(1.75rem, 3.2vw, 2.5rem);
  --size-md: clamp(1.2rem, 2vw, 1.45rem);
  --size-body: 1.0625rem;
  --size-sm: 0.9375rem;

  /* Spacing scale on a 4px base */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-24: 6rem;    /* 96px */

  /* Shape decision: crisp square corners everywhere (0px), like cut recipe stock cards */
  --radius-sharp: 0px;
}
