/* Mandala Space — design tokens + the 9-step type ramp.
   Piece 1 of the chassis (projects/website/website-chassis-plan.md §4).

   RULES, not decoration. Every value here is either quoted from
   guidelines/mandala_brand_guidelines_v2_4.html (the token source of truth) or
   from projects/website/website-design-system-v1.md, which is what governs how
   they may be used. If a page disagrees with this file, this file wins.

   Two things this file exists to fix at source, rather than page by page:

   1. BOTH GOLDS, CORRECTLY NAMED. The live website/site.css declares
      --bowl-gold-a11y:#74592F. Per v2.4 that hex is Bowl Gold *Deep*; A11y is
      #A08758. The rendered result on the live site happens to be correct for
      its use, but the NAME is wrong, and a rebuild that trusts the name would
      ship 3:1 text where it needs 4.5:1. Both are carried here, named right.
      (design-system §1.1, CSV 125.)

   2. THE 11px FLOOR. Nothing renders below 11px, on any breakpoint. The live
      site has 100 text instances under it across 9 sub-floor styles; the home
      feel-mock has 16 (CSV 151), including the 8px .btag in the header — brand
      furniture on every page. Vietnamese diacritics stack above AND below the
      baseline (ề, ữ, ạ, ộ); at 8–10px the marks collide and the word stops
      being readable on a phone. Our primary market reads Vietnamese, so the
      floor is a market requirement, not a preference. (design-system §2.2.)

   Mobile never scales below these steps. Small screens get the same floor.
*/

:root{
  /* ---- light surfaces — v2.4, unchanged ---------------------------------- */
  --lotus-cream:#F5EFE4;     /* page background */
  --parchment:#E8DDD0;       /* dividers · card fills */
  --deep-earth:#3D3530;      /* body text · headlines */
  --warm-slate:#8A7360;      /* large subheads ONLY, ≥24px (3.9:1 on cream) */

  /* ---- the three golds, named per v2.4 ----------------------------------- */
  --bowl-gold:#C9A96E;       /* CTAs · accent · logo on dark. Never a background for large text blocks. */
  --bowl-gold-a11y:#A08758;  /* large text only, 3:1 */
  --bowl-gold-deep:#74592F;  /* small text + labels on light, AA 4.5:1 */

  /* ---- dark surfaces — option A: Night Soil is the only dark -------------
     Sang decided 2026-07-27 (design-system §0). Option B — adding deeper
     website-only darks (#15110E, #0F0C0A) to match the reference — is DEAD.
     Do not reintroduce them. Verified pairings on Night Soil:
       Lotus Cream 15.10:1 · Dawn 14.31:1 · Parchment 12.91:1 · Bowl Gold 7.72:1
       Bowl Gold A11y 5.02:1 · Warm Slate 3.87:1 (≥24px only) */
  --night-soil:#1E1A17;
  --dawn:#F0E9DC;            /* body copy on dark */
  --parchment-dark:#E8DDD0;  /* secondary/muted copy on dark — same hex as --parchment,
                                named separately so a surface token and a text token
                                are not the same word (design-system §1.2). */

  /* ---- families ---------------------------------------------------------- */
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Be Vietnam Pro',system-ui,-apple-system,sans-serif;

  /* ---- the 9-step ramp (design-system §2.3) ------------------------------
     39 measured styles on the live site collapse to these nine. Sizes are
     desktop → mobile via clamp; the small end of every clamp is ≥ the floor. */
  --t-display:clamp(44px,6.2vw,88px);   /* Cormorant 300 — hero headline only */
  --t-h2:clamp(32px,4.2vw,48px);        /* Cormorant 300 — section titles */
  --t-h3:clamp(22px,2.5vw,28px);        /* Cormorant 300 italic — service names · pull quotes */
  --t-lede:16px;                        /* Be Vietnam 300 — section intro */
  --t-body:15px;                        /* Be Vietnam 300 — all running copy (Sang approved 2026-07-27) */
  --t-body-sm:13px;                     /* card copy · secondary */
  --t-caption:12px;                     /* meta · fine print */
  --t-label:11px;                       /* eyebrows · tags — THE FLOOR */
  --t-button:11px;                      /* CTAs — THE FLOOR */
  --t-floor:11px;                       /* nothing below this, anywhere */

  /* ---- layout ------------------------------------------------------------ */
  --measure:62ch;                       /* 68 chars/line at --t-body on desktop — inside 45–75 */
  --wrap:1120px;
  --wrap-pad:24px;
  --band:clamp(48px,7vw,96px);
  --band-short:clamp(44px,5.5vw,76px);   /* transitional bands: a quote, a hinge, a closing CTA */
  /* The sticky header is ONE row at every width now: below 900 the nav moves
     into the burger drawer instead of wrapping to two rows. That is CSV 179 —
     the wrap cost 89px of an 844px viewport (11%) on every mobile screen. */
  --head-h:56px;

  /* ==== EDITORIAL STILLNESS additions — redesign port 2026-08-02 (CSV 208) =====
     Folded from mocks/es.css with the chassis port. TWO are PROPOSED AMENDMENTS to
     website-design-system-v1.md, signed off WITH this port:
       §5  a formal spacing scale (--s1..--s7) — none existed before. 8-based.
       §2  --es-display pushes Display type ABOVE the 88px ramp ceiling, for HERO
           compositions ONLY (.es-display). Every other size stays on the 9-step
           ramp above, so the 11px floor is untouched. */
  --s1:8px; --s2:16px; --s3:24px; --s4:40px; --s5:64px; --s6:96px; --s7:144px;
  --es-display:clamp(46px,8.2vw,104px);   /* hero display only — §2 amendment */
  --es-head-gap:clamp(30px,4vw,52px);     /* eyebrow+title (.es-head) → content gap — ONE value across es-* sections */

  /* Embers — v2.4 secondary elevated dark surface; used inside dark plates only. */
  --embers:#2E2820;

  /* Editorial reading measures (es-* components). */
  --measure-tight:34ch; --measure-read:60ch; --measure-wide:72ch;

  /* Motion — one rhythm everywhere (es-* reveals, plates, rails, buttons). Every
     rule that uses these is reduced-motion-guarded in components.css. */
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in:cubic-bezier(.7,0,.84,0);
  --dur:.7s;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

/* Anchor targets clear the sticky header. Without this every jump parks its
   destination underneath it — measured at 89px hidden on the mocks. */
[id]{scroll-margin-top:calc(var(--head-h) + 18px)}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  background:var(--lotus-cream);
  color:var(--deep-earth);
  font-family:var(--sans);
  font-size:var(--t-body); font-weight:300; line-height:1.75; letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}

/* ---------- the ramp, as classes ---------- */
.display{font-family:var(--serif);font-weight:300;font-size:var(--t-display);line-height:1.06;letter-spacing:-.01em;margin:0}
.h2{font-family:var(--serif);font-weight:300;font-size:var(--t-h2);line-height:1.15;margin:0}
.h3{font-family:var(--serif);font-weight:300;font-style:italic;font-size:var(--t-h3);line-height:1.25;margin:0}
.lede{font-size:var(--t-lede);line-height:1.85;font-weight:300;max-width:var(--measure)}
.body-sm{font-size:var(--t-body-sm);line-height:1.7}
.caption{font-size:var(--t-caption);line-height:1.6}
.label{font-size:var(--t-label);font-weight:500;text-transform:uppercase;letter-spacing:.10em;color:var(--bowl-gold-deep);margin:0}
.label-dark{color:var(--bowl-gold)}

/* Warm Slate is legal only at ≥24px. This is the one permitted use of it. */
.subhead{font-family:var(--serif);font-size:clamp(24px,3vw,32px);color:var(--warm-slate);font-weight:300;line-height:1.3;margin:0}

/* Desktop reading sizes (2026-10-11 polish). The 13-16px ramp was set for phone; inside 1440px
   panels it read as fine print. Phones keep the original ramp; labels/buttons keep the 11px floor. */
@media (min-width:821px){
  :root{--t-lede:18px;--t-body:16px;--t-body-sm:14px;--t-caption:13px}
}
