/* Tiraz Labs · طراز — design tokens v5 "Burgundy, ivory and the gold stitch" (owner: foundation A). Contract: public/DESIGN.md §3.
   Owner's brand guideline: only three colours + a darker gold.
     رماني burgundy #4A0E24  — the page (dark grounds) and text on ivory.
     عاجي  ivory    #F6ECE6  — text on burgundy, the light bands (.band-paper), and ACTION on dark (ivory buttons, links).
     ذهبي  gold     #E3B45C  — PRESTIGE accent on dark only: the diamond (الغرزة, the stitch), divider lines, numbers.
     ذهبي داكن dark gold #A8802E — accent on ivory, LARGE elements only (lines, figures ≥ 24px). Never small text (3.1:1).
   Ratio 60 % burgundy / 30 % ivory / 10 % gold. Gold is flat (no gradients, no foil, no glow): the less, the more luxurious.
   Base is DARK: burgundy pages with ivory light bands (.band-paper, tokens re-mapped below; more than one per page is fine).
   Components use SEMANTIC tokens (--bg, --text, --line, --accent, --prestige…), never raw hexes. Older names (ink, paper, leaf,
   night, neon, blue, day, navy, band, foil…) stay as ALIASES of the v5 values so older code renders in the new palette.
   Type: Alexandria 600 (Arabic headings) · Syne 700 (Latin headings, tight tracking) · IBM Plex Sans Arabic 400/500 (body, both
   scripts) · Space Mono (the word "labs", numbers, eyebrows, tags, small labels).
   Theme: html[data-theme] may still be set by data.js / loader.js; every value yields the same dark look. Direction from <html dir>. */

/* ---------- metric-matched fallbacks: text keeps its width while the webfonts arrive (no re-wrap, CLS ≈ 0) ----------
   Measured in Chrome (canvas measureText, 100px, a Gulf-copy / English sample) against the first local() face of each list:
   size-adjust = webfont width / fallback width; ascent/descent = webfont font-box metrics ÷ size-adjust. */
@font-face { font-family: "TZ Display Fallback"; src: local("Noto Sans Arabic"), local("Geeza Pro"), local("Segoe UI"), local("Tahoma"), local("Arial");
  size-adjust: 117.6%; ascent-override: 82.5%; descent-override: 21.3%; line-gap-override: 0%; }        /* Alexandria 600 */
@font-face { font-family: "TZ Arabic Fallback"; src: local("Noto Sans Arabic"), local("Geeza Pro"), local("Segoe UI"), local("Tahoma"), local("Arial");
  size-adjust: 108.4%; ascent-override: 100.6%; descent-override: 37.8%; line-gap-override: 0%; }       /* IBM Plex Sans Arabic (Arabic) */
@font-face { font-family: "TZ Latin Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Roboto");
  size-adjust: 102.5%; ascent-override: 106.3%; descent-override: 40%; line-gap-override: 0%; }         /* IBM Plex Sans Arabic (Latin) */
@font-face { font-family: "TZ Syne Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"), local("Helvetica Neue");
  size-adjust: 114.6%; ascent-override: 81.2%; descent-override: 23.6%; line-gap-override: 0%; }        /* Syne 700 */
@font-face { font-family: "TZ Mono Fallback"; src: local("Courier New"), local("Menlo"), local("Courier");
  size-adjust: 102%; ascent-override: 109.8%; descent-override: 35.3%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF; } /* Space Mono; Latin only:
  Courier New carries Arabic glyphs, so Arabic inside mono elements must fall through to IBM Plex Sans Arabic */

:root {
  /* ======================================================================
     v5 primitives. Reference values; components use the semantic tokens below.
     Contrast (WCAG 2.x) measured against the named ground.
     ====================================================================== */
  --burg-0: #4A0E24;        /* رماني: the page */
  --burg-1: #410C20;        /* alternate sections (a step darker) */
  --burg-2: #561A30;        /* cards (a touch lighter) */
  --burg-3: #632640;        /* raised cards, fields, chips */
  --ivory: #F6ECE6;         /* عاجي: main text on burgundy (13.1:1 on burg-0 · 11.4:1 on burg-2 · 9.6:1 on burg-3); ground of .band-paper */
  --ivory-2: #EFE2DA;       /* quiet panels inside .band-paper */
  --ivory-3: #E6D5CB;       /* chips / pressed inside .band-paper */
  --ivory-card: #FBF6F2;    /* cards inside .band-paper */
  --ivory-hover: #FFF8F3;   /* primary (ivory) button hover: 14.5:1 with burgundy text */
  --ivory-soft: #D4C0BF;    /* secondary text = ivory 80 % on burg-0 (8.8:1 on burg-0 · 7.6:1 on burg-2 · 6.4:1 on burg-3) */
  --ivory-faint: #BFA5A8;   /* small notes = ivory 68 % (6.6:1 on burg-0 · 5.8:1 on burg-2 · 4.9:1 on burg-3) */
  --gold: #E3B45C;          /* ذهبي: PRESTIGE on dark: the diamond, dividers, numbers (7.9:1 on burg-0 · 6.9:1 on burg-2) */
  --gold-deep: #A8802E;     /* ذهبي داكن: gold on ivory: LINES and figures ≥ 24px only (3.1:1 on ivory; never small text) */
  --gold-rgb: 227, 180, 92;
  --gold-deep-rgb: 168, 128, 46;
  --gold-line: rgba(227, 180, 92, .55);   /* the gold hairline on dark */
  --burg-rgb: 74, 14, 36;
  --ivory-rgb: 246, 236, 230;
  --burg-hover: #5E1A33;    /* burgundy button hover on ivory (ivory text 10.8:1) */
  --wa: #25D366;            /* WhatsApp brand green: the glyph tint only (never a fill with text) */

  /* ---------- v4 primitive names → v5 values (aliases; don't use in new code) ---------- */
  --ink-0: var(--burg-0); --ink-1: var(--burg-1); --ink-2: var(--burg-2); --ink-3: var(--burg-3);
  --paper: var(--ivory); --paper-2: var(--ivory-2); --paper-3: var(--ivory-3);
  --paper-soft: var(--ivory-soft); --paper-faint: var(--ivory-faint);
  --leaf: var(--ivory);     /* v4 ACTION colour → ivory on dark */
  --leaf-hover: var(--ivory-hover);
  --leaf-soft: rgba(var(--ivory-rgb), .1);
  --leaf-soft-2: rgba(var(--ivory-rgb), .18);
  --leaf-deep: var(--burg-0); /* v4 "leaf on a light ground" → burgundy on ivory */
  --leaf-deep-hover: var(--burg-hover);
  --leaf-rgb: var(--ivory-rgb);
  --gold-light: var(--gold); /* no more gradient highlight: flat gold */
  --gold-ink: var(--burg-0); /* v4 "gold text on paper" → burgundy (dark gold is never small text) */
  --gold-grad: linear-gradient(var(--gold), var(--gold)); /* flat: kept only so old background-clip code still paints */
  --ink-rgb: var(--burg-rgb);
  --paper-rgb: var(--ivory-rgb);
  --ink: var(--burg-0);     /* "dark ink" (text on ivory) */

  /* ---------- v3 / v2 primitive names → v5 values (aliases; don't use in new code) ---------- */
  --mist: var(--ink-1); --cloud: var(--ink-3); --fog: rgba(var(--paper-rgb), .09); --fog-2: rgba(var(--paper-rgb), .18); --steel: #966E79;
  --blue: var(--leaf); --blue-ink: var(--leaf); --blue-hover: var(--leaf-hover); --blue-50: var(--leaf-soft); --blue-100: var(--leaf-soft-2); --blue-200: var(--leaf-soft-2);
  --blue-rgb: var(--leaf-rgb);
  --night-0: var(--ink-0); --night-1: var(--ink-1); --night-2: var(--ink-2); --night-3: var(--ink-3); --night-4: #6E2E48; --night-line: var(--ink-3);
  --night-text: var(--paper); --night-soft: var(--paper-soft); --night-faint: var(--paper-faint); --night-strong: var(--steel);
  --neon: var(--leaf); --neon-ink: var(--leaf); --neon-rgb: var(--leaf-rgb); --night-rgb: var(--ink-rgb);
  --neon-deep: var(--leaf-deep); --neon-cyan: var(--leaf); --neon-hi: var(--paper); --neon-soft: var(--leaf-hover); --neon-hi-rgb: var(--paper-rgb);
  --white-0: var(--ink-0); --white-1: var(--ink-1); --white-2: var(--ink-3); --white-3: var(--leaf-soft); --white-line: var(--fog);
  --day-text: var(--paper); --day-soft: var(--paper-soft); --day-faint: var(--paper-faint); --day-strong: var(--steel);
  --day-blue: var(--leaf); --day-blue-ink: var(--leaf); --day-cyan: var(--leaf); --day-blue-rgb: var(--leaf-rgb); --day-rgb: var(--ink-rgb);
  --navy-900: var(--ink-1); --navy-800: var(--ink-2); --navy-line: var(--night-line); --navy-soft: var(--paper-soft); --navy-faint: var(--paper-faint);
  --navy-strong: var(--steel); --navy-accent: var(--leaf); --navy-accent-rgb: var(--leaf-rgb);
  --foil: var(--gold); --foil-deep: var(--gold);
  --veil-dark: linear-gradient(var(--ink-0), var(--ink-0)); --veil-light: linear-gradient(var(--ink-0), var(--ink-0));
  --glow-neon: none; --glow-neon-text: none; --glow-day: none;

  /* ======================================================================
     Type. Arabic: Alexandria 600 (display + h1–h3) + IBM Plex Sans Arabic 400/500 (text, UI, h4).
     Latin: Syne 700 (display + h1–h3, tight tracking; lowercase-friendly, never forced) + IBM Plex Sans Arabic (its Latin) for text.
     Space Mono: the word "labs", numbers, eyebrows, tags, step numbers, small labels, price meta. Arabic inside a mono
     element falls through to IBM Plex Sans Arabic (Space Mono has no Arabic).
     The v4 signature face (Mr Dafoe) is retired: --f-sign = the Latin display face.
     ====================================================================== */
  --f-ar-display: "Alexandria", "TZ Display Fallback", "Noto Sans Arabic", sans-serif;
  --f-ar-body: "IBM Plex Sans Arabic", "TZ Arabic Fallback", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-lat-display: "Syne", "TZ Syne Fallback", "Alexandria", "Helvetica Neue", Arial, sans-serif;
  --f-lat-body: "IBM Plex Sans Arabic", "TZ Latin Fallback", system-ui, sans-serif;
  --f-mono: "Space Mono", "TZ Mono Fallback", "IBM Plex Sans Arabic", "TZ Arabic Fallback", ui-monospace, monospace;
  --f-num: var(--f-mono);            /* numbers: figures, prices, step numbers */
  --f-label: var(--f-ar-body);       /* small text labels (eyebrows, chips, tags): Space Mono in English; in Arabic the body face
                                        (Space Mono has no Arabic, and its wide space glyph would gap Arabic words) */
  --f-sign: var(--f-lat-display);    /* retired signature face */
  --f-display: var(--f-ar-display);  /* resolved per <html lang> at the bottom */
  --f-body: var(--f-ar-body);
  --f-serif: var(--f-lat-display); --f-latin: var(--f-lat-body); --f-ar-logo: var(--f-ar-display);
  --w-ar-display: 600;               /* Alexandria SemiBold */
  --w-lat-display: 700;              /* Syne Bold */
  --w-display: var(--w-ar-display);

  /* scale (px at 390 → 768 → 1440; fluid between). 1rem = 16px. */
  --t-caption: .875rem;                                    /* 14 — captions, legal, meta (never smaller; v6: 13 → 14 for readability) */
  --t-small: 1rem;                                         /* 16 — UI text, buttons, nav, card meta (v6: 15 → 16) */
  --t-body: 1.0625rem;                                     /* 17 — body */
  --t-lead: clamp(1.125rem, 1.032rem + .381vw, 1.375rem);  /* 18 → 19.4 → 22 — leads */
  --t-h4: clamp(1.1875rem, 1.118rem + .286vw, 1.375rem);   /* 19 → 20.1 → 22 — card titles */
  --t-h3: clamp(1.375rem, 1.189rem + .762vw, 1.875rem);    /* 22 → 24.9 → 30 — h3, sub-sections */
  --t-h2: clamp(1.75rem, 1.432rem + 1.302vw, 2.75rem);     /* 28 → 34.5 → 44 — section titles (brand: Arabic headings 28–56) */
  --t-h1: clamp(2rem, 1.523rem + 1.953vw, 3.5rem);         /* 32 → 41.8 → 56 — inner page titles */
  --t-display: clamp(2.25rem, 1.457rem + 3.255vw, 4.25rem); /* 36 → 52.3 → 68 — the home hero only (Alexandria/Syne are wide faces) */
  --t-figure: clamp(2.25rem, 1.773rem + 1.953vw, 3.75rem); /* 36 → 45.8 → 60 — big numbers (proof, prices; Space Mono) */
  --t-sign: clamp(1.75rem, 1.432rem + 1.302vw, 2.75rem);   /* 28 → 34.5 → 44 — the (retired) signature line, now Syne */
  /* line-heights: Alexandria is compact (font box 1.22 em) so Arabic display sits at 1.3–1.35; IBM Plex Sans Arabic body 1.8.
     Syne display is tight (1.05) — its font box is 1.2 em, so descenders never touch at 1.05. */
  --lh-ar-display: 1.3; --lh-ar-h2: 1.35; --lh-ar-h3: 1.45; --lh-ar-body: 1.8; --lh-ar-ui: 1.5;
  --lh-en-display: 1.05; --lh-en-h2: 1.1; --lh-en-h3: 1.2; --lh-en-body: 1.6; --lh-en-ui: 1.4;
  /* tracking: LATIN ONLY (Arabic never gets letter-spacing). Syne wants it tight. Mono labels get a little air. */
  --tr-display: -.03em; --tr-h2: -.025em; --tr-h3: -.015em; --tr-ui: 0; --tr-mono: .02em;
  /* measures */
  --measure: 64ch; --measure-lead: 54ch; --measure-title: 18ch;

  /* ======================================================================
     Grid, space, rhythm
     ====================================================================== */
  --container: 1200px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4.2vw, 64px);         /* 20 → 32 → 60 */
  --col-gap: clamp(16px, 2.2vw, 32px);
  --row-gap: clamp(32px, 4vw, 56px);
  --sec-y: clamp(72px, 2.644rem + 7.619vw, 152px);   /* section padding: 72 → 101 → 152 */
  --sec-y-sm: clamp(48px, 1.893rem + 4.571vw, 96px); /* compact sections: 48 → 65 → 96 */
  --head-gap: clamp(32px, 1.5rem + 2.857vw, 72px);   /* section head → content */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --hdr-h: 76px;            /* 64px under 768px: the header box (constant, no layout shift) */
  --hdr-sm: var(--hdr-h);   /* v6: the header no longer shrinks on scroll (kept for old selectors) */
  --hdr-now: var(--hdr-h);  /* the header bar height right now (html.hdr-scrolled → --hdr-sm); use it for anything sticky under the header */
  --bar-h: 0px;             /* mobile action bar; 64px under 768px */
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* shape */
  --r-ctl: 12px;            /* buttons, inputs, selects */
  --r-card: 18px;           /* cards, panels, popovers (brand: soft 16–20) */
  --r-media: 20px;          /* large media frames, reels */
  --r-pill: 999px;
  --cut: 0px;               /* v4 .card-cartouche clipped corner: v5 cards are soft-rounded, no cut */
  --diamond: 7px;           /* the stitch (a square rotated 45°): side of the small ornament */

  /* ======================================================================
     Motion
     ====================================================================== */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 140ms; --dur-2: 200ms; --dur-3: 240ms; --dur-reveal: 450ms; /* v6: quicker, quieter */
  --z-header: 50; --z-bar: 55; --z-menu: 60; --z-progress: 70; --z-toast: 80; --z-lightbox: 85; --z-loader: 90;

  /* ======================================================================
     SEMANTIC tokens (the base: burgundy). ACTION = ivory (buttons, links); PRESTIGE = gold (accents only); focus = gold.
     ====================================================================== */
  --bg: var(--burg-0);
  --bg-alt: var(--burg-1);
  --surface: var(--burg-2);         /* cards */
  --surface-2: var(--burg-1);       /* quiet panels, media wells */
  --surface-3: var(--burg-3);       /* chips, fields, pressed */
  --text: var(--ivory);             /* 13.1:1 on burg-0 · 11.4:1 on burg-2 */
  --text-soft: var(--ivory-soft);   /* 8.8:1 on burg-0 · 6.4:1 on burg-3 */
  --text-faint: var(--ivory-faint); /* 6.6:1 on burg-0 · 5.8:1 on burg-2 · 4.9:1 on burg-3 */
  --line: rgba(var(--ivory-rgb), .1);
  --line-2: rgba(var(--ivory-rgb), .2);
  --line-strong: #966E79;           /* form controls: 3.0:1 on burg-2 */
  --accent: var(--ivory);           /* accent TEXT (links), any size */
  --accent-line: var(--ivory);
  --accent-fill: var(--ivory);      /* primary button: ivory fill … */
  --accent-fill-hover: var(--ivory-hover);
  --accent-ink: var(--burg-0);      /* … burgundy text: 13.1:1 (14.5:1 on hover) */
  --accent-soft: rgba(var(--ivory-rgb), .1);
  --accent-soft-2: rgba(var(--ivory-rgb), .18);
  --accent-rgb: var(--ivory-rgb);
  --prestige: var(--gold);          /* gold TEXT / ornaments in the current band (7.9:1 on burg-0) */
  --prestige-lg: var(--gold);       /* gold FIGURES ≥ 24px (prices, big numbers) */
  --prestige-line: var(--gold-line);
  --ornament: var(--gold);          /* the stitch diamond, divider ornaments (non-text: ≥ 3:1) */
  --prestige-grad: linear-gradient(var(--prestige), var(--prestige)); /* flat (no foil) */
  --shade-rgb: 30, 4, 13;
  --scrim: rgba(30, 4, 13, .84);
  --focus-ring: var(--gold);
  --selection: rgba(var(--gold-rgb), .32);
  --scroll-thumb: #7A4458;
  --ok: #9CD9B4; --warn: var(--gold); --bad: #F3A9A9;   /* 9.4 · 7.9 · 8.0 :1 on burg-0 */
  --ok-soft: rgba(156, 217, 180, .12); --warn-soft: rgba(var(--gold-rgb), .12); --bad-soft: rgba(243, 169, 169, .12);
  /* elevation (flat brand: shadows stay soft and low) */
  --shadow-1: 0 1px 2px rgba(30, 4, 13, .4);
  --shadow-2: 0 1px 2px rgba(30, 4, 13, .3), 0 18px 40px -20px rgba(30, 4, 13, .7);
  --shadow-3: 0 2px 6px rgba(30, 4, 13, .3), 0 32px 64px -32px rgba(30, 4, 13, .8);
  --shadow-media: 0 2px 6px rgba(30, 4, 13, .3), 0 40px 80px -40px rgba(30, 4, 13, .85);
  /* logo (T.logo): ivory wordmark, gold stitch on dark; the app tile is burgundy with an ivory mark */
  --logo-ink: var(--ivory); --logo-spark: var(--gold); --logo-tile: var(--burg-0); --logo-tile-ink: var(--ivory);
  /* grain overlay (.grain) */
  --grain-opacity: .06;

  /* ---------- v2 / v3 semantic aliases (don't use in new code) ---------- */
  --bg-veil: var(--bg);
  --hair: var(--line); --hair-2: var(--line-2); --hair-accent: rgba(var(--accent-rgb), .45);
  --card-bg: var(--surface); --card-bg-hover: var(--surface);
  --grid-line: transparent;
  --spark: var(--accent-line); --spark-rgb: var(--accent-rgb); --hi-rgb: var(--accent-rgb);
  --btn-fill: var(--accent-fill); --btn-ink: var(--accent-ink);
  --btn-glow: none; --btn-glow-hover: none;
  --glow-line: none; --text-glow: none; --glow-accent: none; --focus-glow: none;
  --shadow-sm: var(--shadow-1); --shadow: var(--shadow-2); --shadow-lg: var(--shadow-3);
  --band-bg: var(--ink-1); --band-surface: var(--ink-2); --band-surface-2: var(--ink-3);
  --band-text: var(--paper); --band-soft: var(--paper-soft); --band-faint: var(--paper-faint);
  --band-line: rgba(var(--paper-rgb), .1); --band-line-strong: var(--line-strong);
  --band-accent: var(--leaf); --band-accent-rgb: var(--leaf-rgb); --band-grid: transparent;
  --gold-text: var(--gold); --gold-foil: var(--gold); --logo-gold: var(--gold);
  --glow-btn: none; --glow-btn-hover: none; --glow-gold: none; --line-glow: none; --foil-glow: none;
  --ribbon-fill: var(--gold);
  --indigo-950: var(--ink-0); --indigo-900: var(--ink-1); --indigo-800: var(--ink-2); --indigo-700: var(--ink-3); --indigo-600: var(--night-4); --indigo-line: var(--night-line);
  --gold-bright: var(--gold-light);
  --cream: var(--paper); --cream-2: var(--paper-2); --cream-3: var(--paper-3); --cream-line: rgba(var(--burg-rgb), .1); --cream-text: var(--ink-0);
  /* v2 type/space/shape/motion names */
  --t-micro: var(--t-caption); --t-label: var(--t-caption); --t-xs: var(--t-caption); --t-sm: var(--t-small); --t-md: var(--t-body);
  --t-lg: var(--t-lead); --t-xl: var(--t-h3); --t-2xl: var(--t-h2); --t-3xl: var(--t-h1);
  --t-4xl: clamp(2.875rem, 1.8rem + 4.4vw, 5.5rem);
  --lh-tight: 1.1; --lh-snug: 1.35; --lh-body: var(--lh-ar-body); --lh-display-ar: var(--lh-ar-display); --lh-display-en: var(--lh-en-display);
  --track-label: 0; --track-caps: .06em; --track-display: var(--tr-display);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --maxw: calc(var(--container) + 2 * var(--gutter)); --maxw-text: var(--measure);
  --r-1: 6px; --r-2: 10px; --r-3: var(--r-ctl); --r-4: var(--r-card);
  --r-xs: var(--r-1); --r-sm: var(--r-2); --r-md: var(--r-ctl); --r-lg: var(--r-card);
  --rule-w: 1px; --rule-gap: 4px;
  --d-fast: var(--dur-1); --d-base: var(--dur-2); --d-slow: var(--dur-3); --d-slower: 700ms; --d-reveal: var(--dur-reveal); --d-draw: 1200ms; --d-shimmer: 7s;
  --stagger: 70ms; --stagger-words: 30ms;
  --ease-silk: var(--ease-out); --ease-out-expo: var(--ease-expo); --ease-thread: var(--ease-inout); --ease-in-out-sine: cubic-bezier(.37, 0, .63, 1);
  color-scheme: dark;
}

@media (max-width: 767px) { :root { --hdr-h: 64px; --bar-h: 64px; } }
html.hdr-scrolled { --hdr-now: var(--hdr-sm); }

/* alternate sections step a shade darker; their cards keep burg-2 and quiet wells use the page burgundy */
.sec-alt { --surface: var(--burg-2); --surface-2: var(--burg-0); }

/* ======================================================================
   THE IVORY BAND (.band-paper): the light sections of a page (<section class="sec band-paper">). Every semantic token flips
   locally, so .btn, .card, .chip, .field, .price-from … inside it just work. ACTION becomes burgundy (burgundy button,
   ivory text); PRESTIGE becomes burgundy for small text and dark gold #A8802E for lines and figures ≥ 24px only.
   ====================================================================== */
.band-paper {
  --bg: var(--ivory); --bg-alt: var(--ivory);
  --surface: var(--ivory-card); --surface-2: var(--ivory-2); --surface-3: var(--ivory-3);
  --text: var(--burg-0);            /* 13.1:1 on ivory · 14.2:1 on ivory-card · 10.7:1 on ivory-3 */
  --text-soft: #6C3A4B;             /* burgundy 80 %: 7.7:1 on ivory · 6.3:1 on ivory-3 */
  --text-faint: #7E515E;            /* burgundy 70 %: 5.6:1 on ivory · 5.1:1 on ivory-2 · 6.1:1 on ivory-card */
  --line: rgba(var(--burg-rgb), .12); --line-2: rgba(var(--burg-rgb), .24); --line-strong: #A3828B; /* 3.2:1 on ivory-card */
  --accent: var(--burg-0); --accent-line: var(--burg-0);
  --accent-fill: var(--burg-0); --accent-fill-hover: var(--burg-hover); --accent-ink: var(--ivory); /* 13.1:1 · 10.8:1 hover */
  --accent-soft: rgba(var(--burg-rgb), .08); --accent-soft-2: rgba(var(--burg-rgb), .15); --accent-rgb: var(--burg-rgb);
  --prestige: var(--burg-0);        /* small "gold" text on ivory = burgundy (dark gold is 3.1:1: large only) */
  --prestige-lg: var(--gold-deep);  /* figures ≥ 24px: dark gold (3.1:1 ≥ 3:1 large-text AA) */
  --prestige-line: rgba(var(--gold-deep-rgb), .7);
  --ornament: var(--gold-deep);     /* the stitch on ivory: 3.1:1 non-text */
  --prestige-grad: linear-gradient(var(--prestige), var(--prestige));
  --focus-ring: var(--burg-0); --selection: rgba(var(--burg-rgb), .18); --scroll-thumb: #C9AFA9;
  --ok: #1F6B45; --warn: #8A4E0B; --bad: #9E1F2C; --ok-soft: #E3EFE6; --warn-soft: #F7EAD7; --bad-soft: #F7E1E1; /* 5.6 · 5.7 · 6.7 :1 */
  --shadow-1: 0 1px 2px rgba(var(--burg-rgb), .08);
  --shadow-2: 0 1px 2px rgba(var(--burg-rgb), .06), 0 14px 32px -16px rgba(var(--burg-rgb), .22);
  --shadow-3: 0 2px 6px rgba(var(--burg-rgb), .06), 0 32px 64px -32px rgba(var(--burg-rgb), .28);
  --shadow-media: 0 2px 6px rgba(var(--burg-rgb), .05), 0 40px 80px -40px rgba(var(--burg-rgb), .32);
  --logo-ink: var(--burg-0); --logo-spark: var(--gold-deep);
  --grain-opacity: .05;
  /* aliases that sections read directly */
  --hair: var(--line); --hair-2: var(--line-2); --card-bg: var(--surface); --card-bg-hover: var(--surface);
  --band-text: var(--text); --band-soft: var(--text-soft); --band-faint: var(--text-faint); --band-line: var(--line); --band-accent: var(--accent);
  --gold-text: var(--burg-0);
  color-scheme: light;
  background-color: var(--bg); color: var(--text);
}

/* language-resolved type */
html[lang="en"] { --f-display: var(--f-lat-display); --f-body: var(--f-lat-body); --f-label: var(--f-mono); --lh-body: var(--lh-en-body); --w-display: var(--w-lat-display); }
