/* ==========================================================================
   layr. design tokens: the single source of approved visual decisions.
   Shared by the Suite homepage and (later) the four product landing pages.
   Change a value here only with Creative Director approval. See DESIGN_SYSTEM.md.
   ========================================================================== */

/* ---------- Webfonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;

  /* ---------- Brand colours ---------- */
  --charcoal: #171614;                          /* page background */
  --parchment: #F3EFE7;                         /* primary text, wordmark */
  --gold: #D2A05F;                              /* primary CTA, period, rules, "Available" */
  --gold-hover: #DCAE70;
  --stone: #BDB5A8;                             /* secondary text */
  --graphite: #292724;                          /* raised surfaces: inputs, media frames */

  --hairline: rgba(243, 239, 231, 0.16);        /* dividers */
  --line-control: rgba(243, 239, 231, 0.22);    /* input borders */
  --line-outline: rgba(243, 239, 231, 0.45);    /* secondary button outline */
  --line-placeholder: rgba(243, 239, 231, 0.2); /* dashed image placeholder */
  --tint-hover: rgba(243, 239, 231, 0.06);      /* secondary button hover fill */
  --text-placeholder: rgba(189, 181, 168, 0.8);
  --error-line: #E08A6A;
  --error-text: #F0A88C;

  /* ---------- Typography: families ---------- */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;   /* functional */
  --font-editorial: "Newsreader", Georgia, "Times New Roman", serif;                            /* headlines */

  /* ---------- Typography: scale (fluid; svh terms keep the hero inside one screen) ---------- */
  --fs-wordmark-hero: clamp(76px, min(21vw, 18svh), 260px);
  --fs-wordmark-nav: clamp(26px, 2.15vw, 40px);
  --fs-wordmark-menu: 30px;
  --fs-wordmark-footer: 24px;

  --fs-display: clamp(26px, min(8.1vw, 6.25svh), 96px);   /* hero headline */
  --lh-display: 1.1;
  --ls-display: -0.012em;

  --fs-title-1: clamp(32px, 3.5vw, 52px);                  /* section headline (signup) */
  --fs-title-2: clamp(30px, 2.9vw, 50px);                  /* section headline (showcase) */
  --lh-title: 1.12;
  --ls-title: -0.01em;

  --fs-title-3: clamp(25px, 2.1vw, 37px);                  /* product headline */
  --lh-title-3: 1.18;
  --ls-title-3: -0.008em;

  --fs-lead: clamp(15px, min(4vw, 2.2svh), 26px);          /* hero supporting statement (Inter Light) */
  --fs-body-lg: clamp(15px, 1.05vw, 18px);                 /* product supporting statement */
  --fs-body: 16px;
  --fs-ui: 15px;                                           /* links, status messages */
  --fs-nav: clamp(14px, 0.95vw, 17px);
  --fs-product-name: clamp(20px, 1.4vw, 24px);
  --fs-caption: 13px;
  --fs-label: 12px;                                        /* status labels */

  --fs-eyebrow: clamp(10px, min(2.6vw, 1.9svh), 19px);     /* hero tagline */
  --ls-eyebrow: 0.5em;
  --fs-eyebrow-sm: clamp(10px, min(2.4vw, 1.5svh), 15px);  /* "Four tools. One subscription." line */
  --ls-eyebrow-sm: 0.42em;
  --ls-label: 0.14em;

  /* ---------- Spacing (8pt base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-pad-block: clamp(64px, 10vw, 160px);
  --section-pad-block-compact: clamp(50px, 7.8vw, 125px);  /* signup, desktop */

  /* ---------- Layout ---------- */
  --pad-inline: clamp(20px, 5vw, 100px);
  --frame-max: 2200px;          /* header and strips never spread wider than this */
  --content-max: 1100px;        /* hero copy column */
  --showcase-max: 1360px;       /* product showcase */
  --form-max: 560px;            /* signup column */

  /* ---------- Shape and controls ---------- */
  --radius-sm: 4px;             /* media frames */
  --radius-md: 10px;            /* small buttons, focus targets */
  --radius-pill: 999px;         /* primary CTAs, inputs */
  --touch-min: 44px;            /* minimum touch target */
  --control-h: 54px;            /* inputs and large buttons */
  --rule-w: clamp(36px, 2.8vw, 56px);   /* short gold divider */

  /* ---------- Breakpoints (reference only: CSS can't read custom properties in @media) ----------
     sm  < 600px    phones: stacked signup
     md  < 768px    single-column showcase, portrait hero photo
     lg  < 960px    mobile navigation (menu button), no hero product strip
     xl  ≥ 3000px and ≥ 1700px tall   large 1x monitors: one composition step up
  */
}
