/* ============================================================================
   DESIGN TOKENS

   Three layers, one theming mechanism.

     1. Primitives   --c-*        raw ramps. A component NEVER consumes these.
     2. Semantics    --color-*    role-named. What components use.
     3. Components   --btn-*      per-component recipes built from semantics.

   Every themed token is light-dark(). v1 ships light-only (ADR-009), but the
   dark side is authored for real: it is what lets any container re-theme its
   whole subtree with one `color-scheme: dark`, which is how the brown bands,
   the footer and the copy over photography get their colours without a single
   hand-written inverse.

   If a component needs a colour and no semantic fits, add a semantic here.
   Don't reach down to a primitive, and never write a hex in a component.

   Values: Design System Spec §3. Keep the measured contrast in the comment
   beside every token — it is the only way these floors survive a palette
   change.
   ============================================================================ */

@layer tokens {

/* ── Layer 1 · Primitives ─────────────────────────────────────────────────── */

:root {
	/* v1 is light-only (ADR-009). Delete this line — and run a contrast audit —
	   to let OS dark mode through. Scoped `color-scheme: dark` containers work
	   either way. */
	color-scheme: light;

	/* Warm ramp — the site's neutral. Brown and cream are the only grounds.
	   Chroma is NOT locked: it rises as lightness falls (0.016 → 0.062) and hue
	   rotates 83 → 71. That is correct for a warm family; the lightness steps
	   are what stay perceptually even.

	   500 sits at L 0.556, not 0.560: at 0.560 it measures 4.47 on cream and
	   tertiary text must clear 4.5. 400 is its mirror on brown. Don't round
	   either.
	                                                      onCream  onBrown */
	--c-warm-50:  oklch(0.984 0.016 82.8);  /* #FFF9EE      1.00    13.81  ← THE CREAM */
	--c-warm-100: oklch(0.945 0.018 82.1);  /* #F3ECDF      1.12    12.32 */
	--c-warm-200: oklch(0.885 0.022 81.1);  /* #E1D8C9      1.35    10.25 */
	--c-warm-300: oklch(0.800 0.028 79.6);  /* #C7BCAA      1.79     7.72 */
	--c-warm-400: oklch(0.665 0.037 77.3);  /* #A1917B      2.92     4.72  ← tertiary ink on brown */
	--c-warm-450: oklch(0.612 0.040 76.4);  /* #928169      3.60     3.84 */
	--c-warm-500: oklch(0.556 0.044 75.5);  /* #837057      4.53     3.03  ← tertiary ink on cream */
	--c-warm-600: oklch(0.462 0.050 73.9);  /* #6A5539      6.74     2.05 */
	--c-warm-700: oklch(0.368 0.056 72.3);  /* #513A1B     10.17     1.36 */
	--c-warm-800: oklch(0.286 0.062 70.9);  /* #3D2400     13.81     1.00  ← THE BROWN */
	--c-warm-900: oklch(0.215 0.050 70.9);  /* #271500     16.79     1.22 */
	--c-warm-950: oklch(0.155 0.040 70.9);  /* #170800     18.71     1.35 */

	/* Alpha washes. An alpha lightens or darkens *relative to what's behind
	   it*, which is why they matter more here than a fixed step: over
	   photography a ramp step can land invisibly close to its backdrop. */
	--c-white-alpha-10: hsl(0 0% 100% / 0.1);
	--c-white-alpha-20: hsl(0 0% 100% / 0.2);
	--c-white-alpha-30: hsl(0 0% 100% / 0.3);
	--c-white-alpha-40: hsl(0 0% 100% / 0.4);
	--c-white-alpha-50: hsl(0 0% 100% / 0.5);
	--c-white-alpha-60: hsl(0 0% 100% / 0.6);
	--c-white-alpha-70: hsl(0 0% 100% / 0.7);
	--c-white-alpha-80: hsl(0 0% 100% / 0.8);
	--c-white-alpha-90: hsl(0 0% 100% / 0.9);

	--c-black-alpha-10: hsl(0 0% 0% / 0.1);
	--c-black-alpha-20: hsl(0 0% 0% / 0.2);
	--c-black-alpha-30: hsl(0 0% 0% / 0.3);
	--c-black-alpha-40: hsl(0 0% 0% / 0.4);
	--c-black-alpha-50: hsl(0 0% 0% / 0.5);
	--c-black-alpha-60: hsl(0 0% 0% / 0.6);
	--c-black-alpha-70: hsl(0 0% 0% / 0.7);
	--c-black-alpha-80: hsl(0 0% 0% / 0.8);
	--c-black-alpha-90: hsl(0 0% 0% / 0.9);

	/* Accent ramps. 500 is the identity value in every family — and every 500
	   fails both inks, because maximum chroma lives at mid-lightness, exactly
	   where no ink has room. So: on cream, text and controls take 600–800; on
	   brown, 300–400. The 500 is for identity — large fills, bands, graphics.

	                                  asText:           asFill, ink:
	                                  onCream  onBrown  cream   brown */
	--c-red-300:    #FF7267;   /*       2.55     5.41     2.55    5.41 */
	--c-red-400:    #FF3B39;   /*       3.38     4.09     3.38    4.09 */
	--c-red-500:    #E8001B;   /*       4.51     3.11     4.51    3.11  ← identity (not #E90C1F: 4.42) */
	--c-red-600:    #C60015;   /*       5.87     2.35     5.87    2.35 */
	--c-red-700:    #A60010;   /*       7.62     1.81     7.62    1.81 */
	--c-red-800:    #86000A;   /*       9.93     1.39     9.93    1.39 */

	--c-orange-300: #FFBB90;   /*       1.57     8.80     1.57    8.80 */
	--c-orange-400: #FFA061;   /*       1.92     7.21     1.92    7.21 */
	--c-orange-500: #FF8000;   /*       2.40     5.75     2.40    5.75  ← identity */
	--c-orange-600: #D66A00;   /*       3.38     4.08     3.38    4.08 */
	--c-orange-700: #AE5500;   /*       4.89     2.83     4.89    2.83 */
	--c-orange-800: #8D4300;   /*       6.83     2.02     6.83    2.02 */

	/* YELLOW IS A FILL, NOT AN INK. 500 is 1.58:1 on cream. Brown on it is
	   8.76 — the strongest pairing in the palette — which is why it is the
	   action colour. Any yellow *word* is 800 (see --color-action-text). */
	--c-yellow-300: #FFE3AB;   /*       1.19    11.60     1.19   11.60 */
	--c-yellow-400: #FFD276;   /*       1.36    10.15     1.36   10.15 */
	--c-yellow-500: #FFBF00;   /*       1.58     8.76     1.58    8.76  ← identity */
	--c-yellow-600: #D9A200;   /*       2.20     6.29     2.20    6.29 */
	--c-yellow-700: #B18400;   /*       3.25     4.25     3.25    4.25 */
	--c-yellow-800: #8F6900;   /*       4.78     2.89     4.78    2.89 */

	--c-green-300:  #81CE4C;   /*       1.84     7.49     1.84    7.49 */
	--c-green-400:  #6AB630;   /*       2.40     5.75     2.40    5.75 */
	--c-green-500:  #519B00;   /*       3.32     4.16     3.32    4.16  ← identity */
	--c-green-600:  #438300;   /*       4.47     3.09     4.47    3.09 */
	--c-green-700:  #356A00;   /*       6.24     2.21     6.24    2.21 */
	--c-green-800:  #295400;   /*       8.48     1.63     8.48    1.63 */

	--c-teal-300:   #4BBAEB;   /*       2.10     6.56     2.10    6.56 */
	--c-teal-400:   #2DA2D2;   /*       2.78     4.97     2.78    4.97 */
	--c-teal-500:   #008AB8;   /*       3.76     3.67     3.76    3.67  ← identity */
	--c-teal-600:   #00749C;   /*       5.04     2.74     5.04    2.74 */
	--c-teal-700:   #005F80;   /*       6.80     2.03     6.80    2.03 */
	--c-teal-800:   #004C67;   /*       8.99     1.54     8.99    1.54 */
}

/* ── Layer 2 · Semantic colour ────────────────────────────────────────────── */

:root {
	/* Surfaces — cream and brown are the only grounds. Teal is an accent,
	   never a ground. */
	--color-surface:   light-dark(var(--c-warm-50),  var(--c-warm-800));
	--color-surface-2: light-dark(var(--c-warm-100), var(--c-warm-900));
	--color-surface-3: light-dark(var(--c-warm-200), var(--c-warm-700));

	/* Text. Measured on --color-surface (light / dark):
	   text-1 13.81 / 13.81 · text-2 6.74 / 7.72 · text-3 4.53 / 4.72 */
	--color-text-1: light-dark(var(--c-warm-800), var(--c-warm-50));
	--color-text-2: light-dark(var(--c-warm-600), var(--c-warm-300));
	--color-text-3: light-dark(var(--c-warm-500), var(--c-warm-400));

	/* Lines. Two tokens, two jobs, two floors. --color-rule is a decorative
	   hairline and may be faint. --color-border-control is the only thing
	   bounding an input or an outline button, so it holds ≥ 3:1 — 4.53 / 4.72. */
	--color-rule:           light-dark(var(--c-black-alpha-10), var(--c-white-alpha-10));
	--color-rule-strong:    light-dark(var(--c-warm-300), var(--c-warm-600));
	--color-border-control: light-dark(var(--c-warm-500), var(--c-warm-400));

	/* Brand */
	--color-brand:         var(--c-yellow-500);   /* identity yellow — large use only */
	--color-surface-brand: var(--c-warm-800);     /* the brown field */
	--color-on-brand:      var(--c-warm-50);      /* 13.81 on the brown field */

	/* Action — yellow is primary. Fills only. */
	--color-action:       var(--c-yellow-500);
	--color-action-hover: var(--c-yellow-600);
	--color-on-action:    var(--c-warm-800);      /* 8.76 on 500 · 6.29 on 600 */

	/* Action as small text — a link, an inline accent — where there is no fill
	   to carry it. THIS is the yellow word. Never --c-yellow-500 as `color`. */
	--color-action-text:  light-dark(var(--c-yellow-800), var(--c-yellow-400));  /* 4.78 / 10.15 */

	/* Editorial accent — the PDP story's eyebrow, pull quote and quote rule
	   (the Figma PDP's orange). As text it takes the darker step on cream and
	   the lighter on brown, like every accent: 4.89 / 7.21. The rule is the
	   identity 500 — a graphic, not a word. */
	--color-accent:      var(--c-orange-500);
	--color-accent-text: light-dark(var(--c-orange-700), var(--c-orange-400));  /* 4.89 / 7.21 */

	/* Danger and info — the two remaining verified control fills. */
	--color-danger:       var(--c-red-600);       /* cream ink 5.87 */
	--color-on-danger:    var(--c-warm-50);
	--color-info:         var(--c-teal-600);      /* cream ink 5.04 */
	--color-on-info:      var(--c-warm-50);
	/* Error / danger as text. 5.87 on cream / 5.41 on brown. */
	--color-danger-text:  light-dark(var(--c-red-600), var(--c-red-300));

	/* Focus — each brand colour chosen for its ground. The 2px offset puts the
	   ring on the page ground, not on the control: keep it. 13.81 / 8.76 */
	--color-focus: light-dark(var(--c-warm-800), var(--c-yellow-500));

	/* Status. All four clear 4.5 on both grounds, so the word is legible as
	   text and the dot as a graphic. Low is ORANGE, not yellow: yellow is the
	   action colour, and a chip the colour of Add to Bag reads as a control.

	   In stock on cream is green-700, NOT the Design System Spec's green-600:
	   600 measures 4.46 on cream (the spec's own table says 4.47), which fails
	   4.5 for the status word. Caught by axe in the build's a11y pass.
	                                                                  cream  brown */
	--color-status-in-stock: light-dark(var(--c-green-700),  var(--c-green-400));   /* 6.24   5.75 */
	--color-status-low:      light-dark(var(--c-orange-700), var(--c-orange-400));  /* 4.89   7.21 */
	--color-status-waitlist: light-dark(var(--c-teal-600),   var(--c-teal-300));    /* 5.04   6.56 */
	--color-status-sold-out: light-dark(var(--c-warm-500),   var(--c-warm-400));    /* 4.53   4.72 */

	/* Scrims — text over photography. The base is --c-warm-950, not black: a
	   cool black reads as grey haze against the brown bands either side. */
	--scrim-strong: color-mix(in srgb, var(--c-warm-950) 55%, transparent);
	--scrim-soft:   color-mix(in srgb, var(--c-warm-950) 28%, transparent);
	--scrim-veil:   color-mix(in srgb, var(--c-warm-950) 12%, transparent);

	/* The recipes, so a section never hand-rolls a gradient. BOTH are strong at
	   the top: that band carries the transparent header, which has no
	   per-section override (Design System §3.6 rule 5). Never lighten it.

	   The strong stop is HELD through --header-height, not just at 0%. With
	   the spec's single 0% stop the scrim was already fading under the header
	   itself: measured over pure white photography, header icons came out at
	   2.75:1 at 1440 — under their 3:1 floor. Held, cream over --scrim-strong
	   over white is ≈4.2:1 across the whole bar. (Build a11y pass; flagged as
	   a Design System Spec edit.) --header-height is set on :root, where these
	   are declared, so the stop follows the measured header. */
	--scrim-from-bottom: linear-gradient(to top,
		var(--scrim-strong) 0%, var(--scrim-soft) 35%, var(--scrim-soft) 80%,
		var(--scrim-strong) calc(100% - var(--header-height)), var(--scrim-strong) 100%);
	--scrim-from-top: linear-gradient(to bottom,
		var(--scrim-strong) 0%, var(--scrim-strong) var(--header-height),
		var(--scrim-soft) 35%, var(--scrim-soft) 80%, var(--scrim-strong) 100%);

	/* The PoC's legibility treatment for the transparent header, promoted to a
	   token. A filter, not a fill — a solid header background would break the
	   full-bleed premise. */
	--shadow-on-media: drop-shadow(0 1px 3px color-mix(in srgb, var(--c-warm-950) 45%, transparent));

	/* The shadow a floating panel casts on the page. */
	--shadow-panel: 0 0 3rem color-mix(in srgb, var(--c-warm-950) 20%, transparent);
	--shadow-float: 0 0.75rem 2.5rem color-mix(in srgb, var(--c-warm-950) 28%, transparent);

	/* The dimmer behind an open sheet or panel. */
	--color-backdrop: color-mix(in srgb, var(--c-warm-950) 45%, transparent);

	/* The header's ground over paper: cream, frosted. 88% surface keeps brown
	   ink at ≥10.5:1 over anything scrolling beneath it — measured over pure
	   black — before the blur softens it further. Over
	   photography and brown bands the header has no ground at all (the scrim
	   carries it) — see 06-chrome.css. */
	--color-header-ground: color-mix(in oklch, var(--color-surface) 88%, transparent);

	/* Floating controls over any ground (the PDP buy bar, the shop's Filter
	   and sort pill): the darkest warm, frosted, with a cream hairline. Cream
	   ink on it is ≥9.8:1 — measured at 78% over pure white. */
	--color-float-ground: color-mix(in srgb, var(--c-warm-950) 78%, transparent);
	--color-float-rule:   color-mix(in srgb, var(--c-warm-50) 35%, transparent);

	/* Photography placeholder while an image loads, and the ground under a
	   product image that doesn't fill its frame. */
	--color-media-ground: light-dark(var(--c-warm-100), var(--c-warm-900));
}

/* ── Layer 3 · Component recipes ──────────────────────────────────────────── */

:root {
	/* Buttons — verified recipes only (Design System §3.5). Don't improvise
	   new pairings without measuring.

	   Primary   yellow-500 / brown        8.76
	   Secondary text-1 / surface          13.81 — inverts under a dark scheme
	   Danger    red-600 / cream           5.87
	   Info      teal-600 / cream          5.04 */
	--btn-primary-bg:       var(--color-action);
	--btn-primary-bg-hover: var(--color-action-hover);
	--btn-primary-fg:       var(--color-on-action);

	/* Secondary is written as text-1 on surface so a scoped
	   `color-scheme: dark` inverts it for free. Don't write two variants. */
	--btn-secondary-bg:       var(--color-text-1);
	--btn-secondary-bg-hover: light-dark(var(--c-warm-700), var(--c-warm-100));
	--btn-secondary-fg:       var(--color-surface);

	--btn-danger-bg: var(--color-danger);
	--btn-danger-fg: var(--color-on-danger);

	--btn-info-bg: var(--color-info);
	--btn-info-fg: var(--color-on-info);

	--btn-ghost-bg-hover: light-dark(var(--c-black-alpha-10), var(--c-white-alpha-10));

	/* NOTE — why the button borders are NOT tokens here. A var() inside a
	   custom property is substituted where it is *declared*, so
	   `--btn-secondary-border: var(--color-border-control)` would freeze to the
	   :root value and ignore any container that re-points the semantic.
	   light-dark() is different — a colour function resolved at use — which is
	   why the fills above still track a scoped scheme. Borders read
	   var(--color-border-control) directly in 05-buttons.css. */
}

/* ── Typography ───────────────────────────────────────────────────────────── */

:root {
	/* Adobe Fonts kit jig2cea, loaded in app/root.jsx.

	     gelica          400 500 600 700 900   (+ italics)
	     gotham          400 500 700 800 900   — NO 300 IN THIS KIT
	     gotham-narrow   400 500 700

	   The weight ladder lives in 04-typography.css. Read it before touching a
	   font-weight anywhere. */
	--font-display: "gelica", Georgia, "Times New Roman", serif;
	--font-body:    "gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-narrow:  "gotham-narrow", "gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--ls-tight:  -0.025em;
	--ls-normal: 0em;
	--ls-loose:  0.07em;
	--ls-wide:   0.15em;
	--ls-wider:  0.25em;

	/* Type scale — Utopia, 390/16/1.2 → 1440/20/1.333
	   @link https://utopia.fyi/type/calculator?c=390,16,1.2,1440,20,1.333,8,2,&s=0.75|0.5|0.25,1.5|2|3|4|6|8,s-l&g=s,l,xl,12

	   THE STEP NAMES ARE OFFSET FROM UTOPIA'S BY ONE. Utopia's base step is
	   --step-1 here, not --step-0: the generator's −2…7 paste in as −1…8.

	   Rendered px:   @390    @1440
	   --step--1      11.1     11.3   the floor. Never add a step below it.
	   --step-0       13.3     15.0
	   --step-1       16.0     20.0   ← base. The 1rem floor is LOAD-BEARING:
	                                    iOS Safari zooms any focused control
	                                    under 16px. Every form control uses it.
	   --step-2       19.2     26.7
	   --step-3       23.0     35.5
	   --step-4       27.7     47.4
	   --step-5       33.2     63.2
	   --step-6       39.8     84.2
	   --step-7       47.8    112.2
	   --step-8       57.3    149.6   ≈ the PoC's 3.5rem display at mobile

	   No type-size media queries, ever. If something is too big on a phone it
	   is on the wrong step. If this scale is regenerated, grep for --step-
	   outside 04-typography.css and re-check every hit. */
	--step--1: clamp(0.6944rem, 0.6911rem + 0.0133vw, 0.7031rem);
	--step-0:  clamp(0.8333rem, 0.7944rem + 0.1590vw, 0.9375rem);
	--step-1:  clamp(1rem,      0.9071rem + 0.3810vw, 1.25rem);
	--step-2:  clamp(1.2rem,    1.0268rem + 0.7105vw, 1.6663rem);
	--step-3:  clamp(1.44rem,   1.1498rem + 1.1905vw, 2.2213rem);
	--step-4:  clamp(1.728rem,  1.2701rem + 1.8790vw, 2.9613rem);
	--step-5:  clamp(2.0736rem, 1.3778rem + 2.8552vw, 3.9475rem);
	--step-6:  clamp(2.4883rem, 1.4579rem + 4.2267vw, 5.2619rem);
	--step-7:  clamp(2.9863rem, 1.4901rem + 6.1381vw, 7.0144rem);
	--step-8:  clamp(3.5831rem, 1.4411rem + 8.7876vw, 9.35rem);
}

/* ── Space, radius, layout ────────────────────────────────────────────────── */

:root {
	/* Space scale — Utopia, 390/11/1.2 → 1440/20/1.25
	   Base 11 so --space-m lands on the PoC's 16px edge inset and --space-xl
	   on its 32px vertical inset.
	   Rendered px:                                                   @390   @1440 */
	--space-3xs: clamp(0.1719rem, 0.1196rem + 0.2143vw, 0.3125rem);  /*  2.8     5 */
	--space-2xs: clamp(0.3438rem, 0.2393rem + 0.4286vw, 0.625rem);   /*  5.5    10 */
	--space-xs:  clamp(0.5156rem, 0.3589rem + 0.6429vw, 0.9375rem);  /*  8.3    15 */
	--space-s:   clamp(0.6875rem, 0.4786rem + 0.8571vw, 1.25rem);    /* 11      20 */
	--space-m:   clamp(1.0313rem, 0.7179rem + 1.2857vw, 1.875rem);   /* 16.5    30 */
	--space-l:   clamp(1.375rem,  0.9571rem + 1.7143vw, 2.5rem);     /* 22      40 */
	--space-xl:  clamp(2.0625rem, 1.4357rem + 2.5714vw, 3.75rem);    /* 33      60 */
	--space-2xl: clamp(2.75rem,   1.9143rem + 3.4286vw, 5rem);       /* 44      80 */
	--space-3xl: clamp(4.125rem,  2.8714rem + 5.1429vw, 7.5rem);     /* 66     120 */
	--space-4xl: clamp(5.5rem,    3.8286rem + 6.8571vw, 10rem);      /* 88     160 */

	/* One-up pairs, for spans that must interpolate across two steps */
	--space-s-m:     clamp(0.6875rem, 0.2464rem + 1.8095vw, 1.875rem);
	--space-m-l:     clamp(1.0313rem, 0.4857rem + 2.2381vw, 2.5rem);
	--space-l-xl:    clamp(1.375rem,  0.4929rem + 3.6190vw, 3.75rem);
	--space-xl-2xl:  clamp(2.0625rem, 0.9714rem + 4.4762vw, 5rem);
	--space-2xl-3xl: clamp(2.75rem,   0.9857rem + 7.2381vw, 7.5rem);

	/* Semantic aliases — components reference intent, not scale position. */
	/* The Figma comps (PDP, homepage) inset at 24–32px on a 402px phone; the
	   PoC's 16px read cramped against the corner-anchored type. space-l is
	   22px @390 → 40px @1440. */
	--inset-edge-x: var(--space-l);    /* section horizontal inset */
	--inset-edge-y: var(--space-xl);   /* section vertical inset */

	/* Radii, as SUPERBOLD. The PoC's 1rem button radius is --radius-lg. */
	--radius-xs:  4px;
	--radius-sm:  8px;
	--radius-md:  12px;
	--radius-lg:  16px;
	--radius-xl:  20px;
	--radius-2xl: 24px;
	--radius-round: 999px;

	/* Wrappers — all 90% wide and centred (03-base.css). */
	--wrap:        1180px;   /* standard content measure */
	--wrap-wide:   1440px;   /* the snap-section well, the shop grid */
	--wrap-narrow:  720px;   /* long-form reading: About, policies */

	/* The wordmark sets the header's height: 56px @390 → 80px @1440. */
	--wordmark-height: clamp(3.5rem, 2.9429rem + 2.2857vw, 5rem);
	/* Scrolled, the header condenses: the wordmark scales to this and the
	   bar's ground shortens with it. The bar's LAYOUT height never changes,
	   so nothing below it reflows and --header-height stays put. */
	--wordmark-condensed: 0.68;

	/* Published at runtime by a ResizeObserver on the header (Header.jsx),
	   which catches webfont swaps and logo reflow. This fallback computes the
	   same value from the header's own parts, so the first paint already clears
	   the header and hydration shifts nothing. Keep it in step with
	   .siteHeader's padding in 06-chrome.css. */
	--header-height: calc(var(--wordmark-height) + var(--space-s) * 2);

	/* Interactive targets. 24px is the WCAG 2.2 AA floor; buttons and icon
	   controls sit well above it. */
	--target-min: 24px;
	--control-height: 3rem;          /* 48px — buttons, inputs */
	--control-height-compact: 2.75rem; /* 44px — icon buttons, steppers */

	/* A floating panel's width (the filter sheet above a phone). */
	--panel-width: min(36rem, 100vw);

	/* Motion. Every use is guarded under prefers-reduced-motion in
	   11-animation.css. */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	/* Sheets and panels. A SYMMETRIC curve (x1 = 1 − x2, y1 = 1 − y2), so a
	   close is the open played exactly backwards — equal and opposite, not a
	   snappy open and an abrupt shut. Items inside still ease out. */
	--ease-sheet: cubic-bezier(0.65, 0, 0.35, 1);
	--duration-fast: 150ms;
	--duration-base: 250ms;
	--duration-sheet: 440ms;
	--duration-slow: 600ms;
	/* The stagger between items entering a sheet. */
	--stagger: 28ms;
}

/* ── Scoped themes ────────────────────────────────────────────────────────────
   Because every themed token is light-dark(), a container re-themes its whole
   subtree with one declaration:

       .someAlwaysDarkBand { color-scheme: dark; background: var(--color-surface); }

   Text, rules, buttons, form controls and scrollbars inside all follow. Never
   write an .onDark / .isInverse colour override.
   ---------------------------------------------------------------------------- */

.themeDark  { color-scheme: dark; }
.themeLight { color-scheme: light; }

.themeDark,
.themeLight {
	background: var(--color-surface);
	color: var(--color-text-1);
}

/* Copy set over photography (a snap section, the hero). Dark scheme for the
   controls and focus ring, and the text tiers collapse to solid cream:
   hierarchy on photography comes from size and weight, never from fading the
   ink. Cream over --scrim-strong clears 4.5 only because it is solid.

   No background: the photograph and its scrim are the ground. */
.onMedia {
	color-scheme: dark;

	--color-text-1: var(--color-on-brand);
	--color-text-2: var(--color-on-brand);
	--color-text-3: var(--color-on-brand);

	color: var(--color-text-1);
}

} /* @layer tokens */
