/* Hallmark · shape: one-shot scroll story (home), anchored reference (how-it-works) · genre: atmospheric · theme: Kiln (ember) · job: buy · draw: ea83dc
 * hero: stage · nav: edge-aligned, wordmark, three links and one action · footer: mast · imagery: concept renders of the machine, the extraction sequence, illustrative schematics · signature: the circle that opens from the basket
 * kiln: ember; display swapped to Archivo 300 (brand rule: no Didone); accent moved to crema, hue 63; radius hard for light, soft for the hand; mono dropped
 * axes: dark/grotesk-sans/warm · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, three pinned scenes on desktop (4.0 + 1.6 + about 2.1 screens), one on phones (3.2); each has a static end state */
/* Hallmark · answered F8 · the home page is one story through one shot; the pour, the anatomy and the ritual are beats of the same morning */
/* Hallmark · waive 12 · overshoot only on gauge needles inside a named diagram · a needle settling is the gauge’s own physics; no control or state uses it */
/* Hallmark · accepted 58 · how-it-works is a long-read reference page with a contents rail; topics run ~120 words by design */
/* Hallmark · waive 81 · span.vignette over the pour canvas and over the crema canvas · the portal of the pour stays closed until the pin opens it, and the crema circle always holds a still image under its vignette */
/* Hallmark · waive 85 · the consultation form comes first and the waitlist second · the close is a request for a private consultation; the waitlist is the quieter second card for visitors who would rather watch for a while */
/* Hallmark · waive 77 · topic text in five of eight columns beside a sticky figure, or beside the topic’s own sticky heading where a topic has no drawing · how-it-works is an anchored reference read one topic at a time, and ownership is a set of hairline rows under its heading */
/* Hallmark · waive 44c · the how-it-works intro is a reference header, not a hero · it opens with its heading, one lead paragraph and the parts photo, then the contents list follows on the same screen */
/* Hallmark · dismissed F18 · these data-slot holders are hidden copy slots for unconfirmed facts (manufacturer, team, origin, line legend), not image slots; nothing drops in until the client confirms */
/* Hallmark · dismissed 40 · without scripting the consultation button reads ink-2 on paper-3, about 10:1; the linter paired the enabled label colour with the disabled fill */
/* Hallmark · dismissed 41 · the disabled no-JS button is one rule of three specificity classes in the components layer, so its ink and its fill change together; the 1.13 pairing never renders */
/* Hallmark · dismissed F20 · the three dials sit as a triangle, two gauges above and the group gauge below, the way they sit on the machine’s face */
/* Hallmark · dismissed 59 · home carries ten beats of one morning (header and footer are chrome); how-it-works is a reference of seventeen anchored topics in one contents rail */
@layer tokens, base, components, sections;

@font-face { font-family: "Archivo fallback"; src: local("Arial"); size-adjust: 102.2%; ascent-override: 85.9%; descent-override: 20.5%; line-gap-override: 0%; }
@font-face { font-family: "Geist fallback";   src: local("Arial"); size-adjust: 101.3%; ascent-override: 99.2%; descent-override: 29.1%; line-gap-override: 0%; }

@layer tokens {
  :root {
    color-scheme: dark;

    /* grounds */
    --color-stage: #080605;
    --color-paper: #0E0B09;
    --color-paper-2: #17130F;
    --color-paper-3: #211D19;
    --color-ground: var(--color-paper);          /* the page ground: home is the dark kitchen; how-it-works is the calmer second room (below) */
    /* ink */
    --color-ink: #EDE7DE;
    --color-ink-2: #CFC6BA;
    --color-muted: #A39A8F;
    --color-edge: #7D746A;
    --color-rule: color-mix(in oklch, var(--color-ink) 12%, transparent);
    --color-line: #B9B0A4;
    /* signals: accent is a fill only, signal is the object only */
    --color-accent: #D98C3F;
    --color-accent-ink: #0E0B09;
    --color-focus: #E8B06A;
    --color-signal: #C8402A;
    --color-error: #E8705A;
    --color-light: #FFF3E3;
    /* instruments */
    --color-dial: #ECE6D8;
    --color-dial-ink: #141210;
    /* crema ramp: WebGL uniforms and the still image only */
    --crema-0: #120905;
    --crema-1: #3A1C0B;
    --crema-2: #9A5520;
    --crema-3: #D39A5C;
    --crema-4: #EFCF9C;
    /* mask ink (used only inside mask-image gradients) */
    --mask-ink: #000;
    --selection: color-mix(in oklch, var(--color-accent) 35%, transparent);

    /* type */
    --font-display: "Archivo", "Archivo fallback", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Geist", "Geist fallback", ui-sans-serif, system-ui, sans-serif;
    --display-weight: 300;
    --tracking-display: -0.025em;
    --text-display: clamp(2.75rem, 1.5rem + 4.1vw, 5.25rem);      /* h1: 44 / 77 / 83 px at 375 / 1280 / 1440 */
    --text-display-s: clamp(2.25rem, 1.35rem + 2.6vw, 3.75rem);   /* statements, ritual numbers: ~59 at 1440 */
    --text-section: clamp(2rem, 1.2rem + 2.3vw, 3.25rem);         /* h2: 52 at 1440 */
    --text-title: clamp(1.25rem, 1.05rem + 0.55vw, 1.5625rem);    /* h3: 25 at 1440 */
    --text-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);        /* 21 at 1440 */
    --text-body: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);        /* 16 / 17 */
    --text-sm: 0.875rem;                                           /* labels, captions, nav, buttons */
    --text-xs: 0.8125rem;                                          /* functional small only */
    --leading-display: 1.02;
    --leading-statement: 1.04;
    --leading-section: 1.06;
    --leading-title: 1.25;
    --leading-lead: 1.45;
    --leading-body: 1.6;
    --measure: 62ch;
    --measure-lead: 34ch;

    /* space (hallmark scale) */
    --space-3xs: 0.125rem;  /* 2 */
    --space-2xs: 0.25rem;   /* 4 */
    --space-xs: 0.5rem;     /* 8 */
    --space-sm: 0.75rem;    /* 12 */
    --space-md: 1rem;       /* 16 */
    --space-lg: 1.5rem;     /* 24 */
    --space-xl: 2.5rem;     /* 40 */
    --space-2xl: 4rem;      /* 64 */
    --space-3xl: 6rem;      /* 96 */
    --space-4xl: 9rem;      /* 144 */
    /* section gaps, mixed on purpose (Reflex 59, 9) */
    --gap-a: clamp(5rem, 3rem + 6.5vw, 9rem);    /* ~144 at 1440 */
    --gap-b: clamp(6rem, 3rem + 8.5vw, 11rem);   /* ~176 */
    --gap-c: clamp(4.5rem, 3rem + 5.2vw, 7.5rem);/* ~123 at 1440 */
    /* how-it-works reading rhythm: a calm long-read. The three answers of one topic follow each other closely (2–2.75rem);
       topics stand apart by a clear pause (≈10rem at 1440, 13rem at 1920). Gate 58 is accepted on this page (stamp above). */
    --how-row-gap: clamp(2rem, 1.6rem + 0.8vw, 2.75rem);
    --how-topic-gap: clamp(5rem, 1rem + 10vw, 14rem);
    --how-group-gap: clamp(6rem, 2rem + 10vw, 15rem);
    --text-how: var(--text-body);                                /* answers on how-it-works: 17 → 18 px from 64em */
    --leading-how: 1.65;
    --text-title-how: clamp(2rem, 1rem + 1.6vw, 2.75rem);         /* a topic heading set in the margin: 44 at 1440 */
    /* heading steps by meaning (home): one louder step for the turning points, one calmer for the quieter beats */
    --text-display-l: clamp(3rem, 1rem + 6vw, 7.5rem);            /* ~104 at 1440: 07 and 10 */
    --text-section-calm: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);    /* ~44 at 1440: 02 and 06 */

    /* layout */
    --container: 90rem;                          /* 1440 */
    --gutter: clamp(1.25rem, 4.4vw, 4rem);
    --columns: 4;
    --gap-columns: 1rem;
    --header-h: 60px;
    --peek: 48px;
    --rail-w: 15rem;                             /* how-it-works contents rail, ≥75em */
    --toc-bar-h: 3rem;                           /* how-it-works contents bar under the header, <75em (48px) */

    /* shape */
    --radius-card: 0;                            /* photos, canvases, sections */
    --radius-well: 12px;                         /* form fields */
    --radius-pill: 999px;                        /* buttons */
    --rule-hair: 1px;
    --focus-w: 2px;
    --shadow-card: none;
    --control-h: 50px;                           /* buttons */
    --field-h: 48px;                             /* inputs */

    /* layers */
    --z-base: 0;
    --z-raised: 10;
    --z-sticky: 20;
    --z-header: 40;
    --z-overlay: 100;
    --z-skip: 1000;

    /* motion */
    --dur-micro: 120ms;
    --dur-short: 220ms;
    --dur-long: 420ms;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --ease-in: cubic-bezier(.7, 0, .84, 0);

    /* image treatment (never on text grounds) */
    --grain-image: 0.06;
    --grain-under-text: 0.04;
    --vignette: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, color-mix(in oklch, var(--color-stage) 85%, transparent) 100%);
  }
  /* how-it-works: a second, calmer room, one warm step up from the home page's ground (ink 15:1, muted 6.7:1 on it) */
  :root:has(> body[data-page="how"]) { --color-ground: var(--color-paper-2); }
  @media (min-width: 40em) { :root { --columns: 8; --gap-columns: 1.25rem; } }
  @media (min-width: 64em) { :root { --columns: 12; --gap-columns: 2rem; --header-h: 72px; --peek: 72px;
                                     --text-how: 1.125rem; --leading-how: 1.7; } }
  @media (prefers-contrast: more) { :root { --color-muted: var(--color-ink-2); --color-rule: var(--color-edge); } }
  @media print {   /* palette C for printing how-it-works; crema never prints on light */
    :root { --color-paper: #F2EEE7; --color-paper-2: #FBF9F5; --color-stage: #F2EEE7; --color-ink: #161412; --color-ink-2: #2B2724;
            --color-muted: #5C554E; --color-line: #161412; --color-edge: #8D857C; --color-rule: #D9D2C7; --color-signal: #B03A22; --color-link-print: #8F4A14;
            --color-accent: #8F4A14; --color-accent-ink: #FBF9F5; }
  }
}
