/* ==========================================================================
   LCDH13 — Design tokens
   Single source of truth for color, type, spacing, radius, shadow, motion.
   ========================================================================== */

:root {
  /* ---- Color: warm paper / ink neutrals ---- */
  --paper: #F7F2EC;
  --paper-alt: #EFE6D8;
  --surface: #FFFFFF;

  --ink: #211C19;
  --ink-soft: #5B5349;
  --ink-faint: #8A8074;

  --line: #E3D9C9;
  --line-strong: #D8CBB6;

  /* ---- Color: brand terracotta accent (restrained, decorative use) ---- */
  --accent: #DA7054;         /* foreground use on light bg: text, icons, underlines */
  --accent-dark: #B85A40;    /* solid CTA button fills (contrast-safe with white text) */
  --accent-darker: #96432E;  /* link/active states on light bg */
  --accent-wash: #F6E4DA;    /* tint background for badges / highlight blocks */

  /* ---- Color: chambre-froide sub-accent (scoped use only) ---- */
  --cold: #4F7A87;
  --cold-dark: #3B6069;
  --cold-wash: #E7EFF0;

  /* ---- Color: dark bookend bands (footer, CTA bands) ---- */
  --footer-bg: #211C19;
  --footer-ink: #F7F2EC;
  --footer-ink-soft: #C9BFAF;
  --footer-line: #35302B;

  /* ---- Color: feedback states ---- */
  --success-bg: #EAF3EC;
  --success-text: #2F6B4F;
  --error-bg: #FBEAE8;
  --error-text: #B23B33;

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.9375rem;   /* 15px */
  --text-base: 1.0625rem; /* 17px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.625rem;    /* 26px */
  --text-2xl: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  --text-3xl: clamp(2.75rem, 2rem + 3.2vw, 4rem);
  --text-4xl: clamp(3.25rem, 2rem + 5.5vw, 5.5rem);

  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.14em;

  /* ---- Spacing (8px base) ---- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */
  --space-11: 10rem;   /* 160 */

  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* ---- Shadow (ink-tinted, not neutral grey) ---- */
  --shadow-sm: 0 6px 20px -10px rgba(33, 28, 25, 0.16);
  --shadow-md: 0 20px 60px -20px rgba(33, 28, 25, 0.18);
  --shadow-lg: 0 30px 90px -25px rgba(33, 28, 25, 0.24);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-reveal: 800ms;
}
