/*
 * Design tokens for app/ (feature 2). CARRIED OVER from prototype/css/tokens.css (A-85 palette, the
 * harmony-pass type and spacing scales, the bundled fonts), keeping the same names and values so the
 * production pages and the prototype read as one system. Left out on purpose: the legacy names the
 * prototype kept for old screens ("Do not use these in new code"), the member-area rail sizes, the
 * tier accents (P-40, tier pages only) and the interim .cele night palette.
 *
 *   deep olive #343B30  type, primary buttons          sage #858675  field borders (non-text, 3.3:1)
 *   muted #6B6C5C       secondary text (4.7:1)          champagne #B49A70  fine accents, never text
 *   stone #DED6C8       borders                         porcelain #FBF9F4  cards; cream ground #F6F0E4
 *   error #A3271B       a state, not an accent (6.5:1 on cream)
 * Contrast figures are the prototype's own, by hand; to be checked with a tool (prototype note).
 *
 * FONTS: the three files are binary and could not be copied by this session. Copy them, with their
 * licence files, from prototype/fonts/ to app/fonts/ before review; until then the system fallbacks
 * below are used. Nothing is loaded from the network.
 */
@font-face { font-family: "MZ Cormorant"; src: url("../fonts/cormorantgaramond-CormorantGaramond.ttf") format("truetype"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "MZ Cormorant"; src: url("../fonts/cormorantgaramond-CormorantGaramond-Italic.ttf") format("truetype"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "MZ Inter"; src: url("../fonts/inter-Inter.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F0E4; --porcelain: #FBF9F4; --olive: #343B30; --olive-deep: #262C23; --sage: #858675;
  --champagne: #B49A70; --stone: #DED6C8; --ink: #343B30; --ink-2: #4F5547; --muted: #6B6C5C;
  --line: #DED6C8; --line-2: #CBC1AF; --err: #A3271B; --gold-deep: #4F422C;
  --gold-line: rgba(180, 154, 112, 0.55); --gold-faint: rgba(180, 154, 112, 0.12);
  --field-bg: #FBF9F4; --field-line: #858675;
  --display: "MZ Cormorant", "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --text: "MZ Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-1: 6px; --r-2: 8px; --r-3: 12px; --r-4: 16px;
  --shadow-soft: 0 2px 10px rgba(52, 59, 48, 0.06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(18px, 4vw, 48px);

  --t-h1: clamp(2.75rem, 0.75rem + 4.167vw, 5rem);
  --t-h2: clamp(2rem, 0.75rem + 2.5vw, 3.25rem);
  --t-h3: clamp(1.5rem, 0.75rem + 1.25vw, 2rem);
  --t-serif: clamp(1.25rem, 0.75rem + 0.833vw, 1.625rem);
  --t-figure: clamp(3rem, 0.75rem + 3.889vw, 4.625rem);
  --t-lead: clamp(1rem, 0.75rem + 0.417vw, 1.1875rem);
  --t-body: clamp(0.9375rem, 0.8125rem + 0.208vw, 1.0625rem);
  --t-small: clamp(0.8125rem, 0.75rem + 0.139vw, 0.890625rem);
  --t-label: clamp(0.75rem, 0.6875rem + 0.139vw, 0.828125rem);
  --t-micro: 0.75rem;
  --lh-tight: 1.05; --lh-snug: 1.3; --lh-body: 1.55;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: clamp(36px, 3.333vw, 52px); --sp-10: clamp(48px, 4.444vw, 72px);
  --site-hdr: clamp(64px, 5vw, 76px);
  color-scheme: light;
}
@media (max-width: 760px) {
  :root {
    --t-h1: 2.5rem; --t-h2: 2rem; --t-h3: 1.5rem; --t-serif: 1.25rem; --t-figure: 3rem;
    --t-lead: 1.0625rem; --t-body: 1rem; --t-small: .875rem; --t-label: .8125rem;
    --sp-9: 40px; --sp-10: 48px; --site-hdr: 60px;
  }
}
