/* ============================================================================
   tokens.css — the only file that knows about color and type faces.
   ----------------------------------------------------------------------------
   The display face is SETTLED: Cormorant Garamond. See the note on it below
   before swapping it for anything.

   The palette is SETTLED too: Pierre, with Jardin kept as an internal
   alternate. See the palette block below for how to switch between them.
   ========================================================================= */

:root{
  /* ---- scale: shared by every direction -------------------------------- */
  --measure: 34rem;          /* body copy line length                       */
  --measure-wide: 44rem;
  --page: 72rem;             /* outer content frame                         */
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --step--1: .8125rem;
  --step-0:  1.0625rem;
  --step-1:  clamp(1.2rem,  1.08rem + .5vw,  1.45rem);
  --step-2:  clamp(1.55rem, 1.3rem  + 1.1vw, 2.1rem);
  --step-3:  clamp(2rem,    1.5rem  + 2.2vw, 3rem);
  --step-4:  clamp(2.5rem,  1.6rem  + 4vw,   4.5rem);
  --step-5:  clamp(3rem,    1.5rem  + 6.4vw, 6.5rem);

  --space-xs: .5rem;
  --space-s:  1rem;
  --space-m:  1.75rem;
  --space-l:  clamp(2.5rem, 6vw, 4.5rem);
  --space-xl: clamp(4rem, 11vw, 8rem);

  --radius: 2px;             /* near-square. elegance here is not rounded.  */
  --radius-pill: 999px;
  --rule: 1px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .32s;

  /* ---- type: roles, not faces ------------------------------------------ */
  --font-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-ui: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* --font-display is set in the display-face block below */
}

/* ===== display face ========================================================
   Cormorant Garamond. Chosen 2026-11-08 over Bodoni Moda and Marcellus.

   HARD CONSTRAINT, learned the expensive way: the display face sets guest
   names on Who's Coming, so it MUST carry a Vietnamese subset. Both faces it
   replaced look fine in English and silently fall back to Times New Roman
   partway through "Nguyen Thi Lan" and seven other names, splicing two fonts
   into one word. Before ever swapping this face, check that Google Fonts
   serves a `vietnamese` subset for the replacement -- the giveaway is the
   U+1EA0-1EF9 range in its stylesheet.

   Set at 400, not Cormorant's 300: this face is delicate enough at display
   sizes, and 300 reintroduces exactly the hairline problem that disqualified
   Bodoni. Drop to 300 only if the hero starts to feel heavy.               */

:root{
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --display-weight: 400;
  --display-tracking: .002em;
  --display-leading: 1.08;
}

/* ===== palette =============================================================
   DECIDED 2026-11-16: PIERRE is the site palette. Maison was dropped.
   JARDIN is kept as an internal alternate, never shown to guests unless it is
   made the live palette.

   The live palette is whichever block carries the bare `:root,` selector.
   To switch the whole site to Jardin: move the `:root,` line from the Pierre
   block to the Jardin block. That is the only edit; no HTML changes, and it
   works without JavaScript.

   The `:root[data-theme=...]` selectors are what let the private palette page
   preview the other palette on the real pages (via assets/js/theme.js), and
   they outrank a bare :root, so previews work whichever palette is live.
   ========================================================================= */

/* --- PIERRE (live) ---------------------------------------------------------
   The site palette, chosen 2026-11-16. Maison retuned to the engagement
   photographs. The photos are warm, matte and film-graded: their brightest
   tone is a greige around #CFC1B4 and there is no true white anywhere, so
   Maison's bright, cool ivory makes them read as dim holes in the page.
   Pierre deepens and warms the ground toward the tulle and sandstone, moves
   bordeaux to a rosewood between wine and the Bethesda terracotta, and pulls
   both tints from the photos (yellow olive foliage, dusty peach bouquet).
   Reads: the same French estate, in afternoon light.                         */
:root,
:root[data-theme="pierre"],
[data-theme="pierre"]{
  --palette: pierre;   /* read by theme.js to know which palette is live */
  color-scheme: light;

  --ground:      #F7F2EA;
  --ground-alt:  #EFE8DC;
  --ground-deep: #E6DCCC;
  --surface:     #FFFDF9;
  --inverse:     #1E2A23;
  --on-inverse:  #F7F2EA;  /* 13.36 on inverse; 7.41 as button text on accent */

  --ink:       #1E2A23;   /* 13.36 / 12.23 / 10.97 */
  --ink-soft:  #3C4B42;   /*  8.27 /  7.57 /  6.80 */
  --ink-muted: #55615A;   /*  5.81 /  5.32 /  4.77 — a step darker than
                              Maison's, which drops to 4.43 on this deep tint */

  --accent:       #7E3A35; /*  7.41 /  6.78 /  6.08 — rosewood */
  --accent-hover: #622C28;
  --accent-wash:  #F3E6E0;

  --ornament:     #A9824F; /*  3.14 on ground — sandstone. Hairlines only.   */
  --ornament-ink: #735A36; /*  5.81 /  5.32 /  4.77 */
  --tint-a:   #8A8459;    /* yellow olive — decorative */
  --tint-b:   #E4C4B4;    /* dusty peach  — decorative */

  --hair:        rgba(30,42,35,.15);
  --hair-strong: rgba(30,42,35,.3);
  --hair-ornate: rgba(169,130,79,.45);

  --shadow:      0 1px 2px rgba(60,40,20,.06), 0 10px 30px rgba(60,40,20,.08);
  --shadow-lift: 0 2px 6px rgba(60,40,20,.08), 0 22px 50px rgba(60,40,20,.12);
  --photo-ground: #E8DFD0;
}

/* --- JARDIN ----------------------------------------------------------------
   Rebuilt 2026-11-16 as Pierre with dusty rose. The v1 blush/rose (#EE7EA2,
   accent #AC395F) was a bright, cool pink that fought the warm, muted
   photographs; this takes its rose from the bouquets instead. Same green-black
   ink as Pierre; rose lives in the accent, the section tints and
   the ornament. Reads: garden, romantic, soft — but grown-up.

   INTERNAL ALTERNATE. Previewable from the private palette page.           */
:root[data-theme="jardin"],
[data-theme="jardin"]{
  --palette: jardin;
  color-scheme: light;

  --ground:      #F8F2EE;
  --ground-alt:  #F2E8E3;
  --ground-deep: #EADCD5;
  --surface:     #FFFDFB;
  --inverse:     #1E2A23;
  --on-inverse:  #F8F2EE;  /* 6.03 as button text on accent */

  --ink:       #1E2A23;   /* 13.42 / 12.35 / 11.13 */
  --ink-soft:  #3C4B42;   /*  8.31 /  7.65 /  6.89 */
  --ink-muted: #55615A;   /*  5.83 /  5.37 /  4.84 */

  --accent:       #874A55; /*  6.03 /  5.55 /  5.00 — dusty rose, deepened */
  --accent-hover: #6C3A44;
  --accent-wash:  #F5E7E6;

  --ornament:     #C4918C; /*  2.43 on ground — the bouquet's dusty rose.
                              Hairlines and flourishes only; says nothing. */
  --ornament-ink: #83524F; /*  5.76 /  5.31 /  4.78 — the same rose, browned
                              enough to read, for numerals, markers, labels. */
  --tint-a:   #8A8459;    /* yellow olive — decorative */
  --tint-b:   #E8C6C0;    /* dusty rose   — decorative */

  --hair:        rgba(30,42,35,.14);
  --hair-strong: rgba(30,42,35,.28);
  --hair-ornate: rgba(196,145,140,.5);

  --shadow:      0 1px 2px rgba(70,40,40,.05), 0 10px 28px rgba(70,40,40,.08);
  --shadow-lift: 0 2px 6px rgba(70,40,40,.08), 0 24px 54px rgba(70,40,40,.12);
  --photo-ground: #ECDFD8;
}
