/* ==========================================================================
   Design tokens: every color, font and spacing value for the site.
   To swap the brand palette, change only the values in this file.

   PLACEHOLDER PALETTE (calm, neutral). Final palette comes from ChatGPT.
   When swapping, keep WCAG AA contrast:
     --color-text, --color-text-muted and --color-accent on --color-bg  >= 4.5:1
     --color-on-accent on --color-accent                                 >= 4.5:1
   ========================================================================== */

/* Self-hosted font slot. Drop .woff2 files in src/fonts/, uncomment, and put
   the family name first in --font-body / --font-heading below.
   (No Google Fonts or other third-party font calls; the CSP blocks them.)

@font-face {
  font-family: "BrandSans";
  src: url("../fonts/brand-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  /* Color */
  --color-bg: #faf7f2;          /* warm off-white */
  --color-surface: #f2ede4;     /* slightly deeper panel */
  --color-border: #ddd5c8;
  --color-text: #1d2127;        /* deep ink   (15.1:1 on bg) */
  --color-text-muted: #4a515b;  /* muted ink  (7.5:1 on bg)  */
  --color-accent: #2f5d62;      /* restrained deep teal (6.9:1 on bg) */
  --color-accent-hover: #234a4e;
  --color-on-accent: #faf7f2;   /* text on accent buttons (6.9:1) */
  --color-focus: #b4532a;       /* focus ring, distinct from accent (4.7:1 on bg) */

  /* Type: system stacks until brand fonts are chosen (no network requests) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --text-sm: 0.9375rem;                         /* 15px */
  --text-base: 1.0625rem;                       /* 17px */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --leading-tight: 1.15;
  --leading-body: 1.65;
  --weight-normal: 400;
  --weight-medium: 600;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Layout */
  --measure: 40rem;             /* comfortable reading width */
  --page-max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.375rem;
  --focus-width: 3px;
}
