/* ==========================================================================
   TC Design System - Timm Christophel, Rational Mystic
   Aesthetic: Rational Mystic (lp-design skill) - warm, grounded, spacious, luminous
   Fonts: Fraunces (headings) + DM Sans (body), self-hosted (see fonts.css)
   Distinct from YotS palette: calmer, more editorial. Deep navy anchor (the
   "rational"), warm gold accents (the "mystic"), cream foundation.
   ========================================================================== */

/* --- CSS Reset (minimal) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Custom Properties --- */
:root {
  /* Brand colors */
  --cream: #F7F3EB;             /* page background */
  --paper: #FDFBF6;             /* cards, raised surfaces */
  --sand: #EFE8D9;              /* alternating sections */
  --ink: #2C2A26;               /* warm charcoal: body text */
  --ink-soft: #57534B;          /* secondary text */
  --ink-faint: #8A8478;         /* tertiary text, captions */
  --teal: #2A3A52;              /* NAVY primary (revalued from teal 2026-06-13): CTAs, links - the rational */
  --teal-dark: #1C2C44;         /* deep navy: Begin band background */
  --teal-tint: #E4E9F0;         /* dusty-blue tinted background */
  --gold: #B68A3A;              /* decorative: eyebrows, rules, icons (the mystic) */
  --gold-soft: #D9C394;         /* light gold lines */
  --terracotta: #BC5F3C;        /* sparing warm highlight only */

  /* Semantic */
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-tertiary: var(--ink-faint);
  --bg-page: var(--cream);
  --bg-alt: var(--sand);
  --bg-card: var(--paper);
  --border-light: #E2DAC9;
  --border-medium: #CFC5AF;

  /* CTAs */
  --cta-bg: var(--teal);
  --cta-text: #FFFFFF;
  --cta-hover: #15212F;         /* dark-button hover: decisive darken, clearly visible (decoupled from Begin band) */
  --cta-ghost-border: var(--teal);
  --cta-ghost-text: var(--teal);

  /* Typography */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale (1.333 perfect fourth, fluid) */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.1875rem, 1.5vw + 0.9rem, 1.375rem);
  --text-xl: clamp(1.5rem, 2.5vw + 1rem, 1.875rem);
  --text-2xl: clamp(1.875rem, 3.5vw + 1rem, 2.5rem);
  --text-hero: clamp(2.25rem, 5.5vw + 1rem, 3.75rem);

  /* Spacing (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Layout */
  --measure: 65ch;
  --container: 72rem;
  --container-narrow: 46rem;
  --radius: 4px;

  /* Motion */
  --ease-breath: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-reveal: 700ms;
}

/* --- Base typography --- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

p { max-width: var(--measure); }

::selection { background: var(--gold-soft); color: var(--ink); }
