:root {
  /* TMJ six-colour system — single global colour authority. Fixed tokens,
     never invent shades; interaction hover uses a controlled opacity mix. */
  --tmj-anthracite: #2A252D;
  --tmj-sage: #89937C;
  --tmj-yellow: #FFB81C;
  --tmj-sand: #E5D6B8;
  --tmj-off-white: #F5F2EA;
  --tmj-terracotta: #B86648;

  /* Semantic aliases — components reference these, never raw values.
     Mapping: structure → anthracite, canvas → off-white, warm rhythm → sand,
     action/CTA → yellow, people/stories → terracotta, environment → sage. */
  --color-primary: var(--tmj-anthracite);
  --color-primary-dark: var(--tmj-anthracite);
  --color-secondary: var(--tmj-anthracite);
  --color-accent-green: var(--tmj-yellow);
  --color-accent-green-dark: color-mix(in srgb, var(--tmj-yellow) 82%, var(--tmj-anthracite));
  --color-accent-cyan: var(--tmj-yellow);

  /* Background */
  --color-bg: var(--tmj-off-white);
  --color-bg-secondary: var(--tmj-sand);
  --color-bg-teal: var(--tmj-sand);
  --color-bg-dark: var(--tmj-anthracite);
  --color-bg-darker: var(--tmj-anthracite);

  /* Surface */
  --color-surface: var(--tmj-off-white);

  /* Text — links stay anthracite (13.4:1); terracotta reserved for large
     accents only (3.7:1, fails body sizes). Secondary/muted are controlled
     opacity treatments of anthracite (~5.3:1 / ~4.1:1 on off-white). */
  --color-text: var(--tmj-anthracite);
  --color-text-secondary: color-mix(in srgb, var(--tmj-anthracite) 88%, var(--tmj-off-white));
  --color-text-muted: color-mix(in srgb, var(--tmj-anthracite) 82%, var(--tmj-off-white));
  --color-text-light: var(--tmj-off-white);

  /* Borders */
  --color-border: var(--tmj-sand);
  --color-border-strong: var(--tmj-sage);

  /* Functional — form status only, never brand. Kept off-palette on purpose. */
  --color-success: #4F9D43;
  --color-warning: #E4A72C;
  --color-error: #D9534F;
  --color-info: #3287A8;

  /* Typography */
  --font-heading: "Elegant Lux Mager";
  --font-body: "DM Sans", sans-serif;

  /* Universal type scale — every font-size references one of these.
     Fixed steps shift down one notch on mobile (single media block below);
     fluid clamps adapt on their own. Never hardcode a size elsewhere. */
  --text-display: clamp(88px, 20vw, 176px);
  --text-hero: clamp(44px, 5.1vw, 62px);
  --text-quote: clamp(34px, 4.5vw, 54px);
  --text-h2: clamp(31px, 3.7vw, 44px);
  --text-h3: 22px;
  --text-lede: 22px;
  --text-pullquote: clamp(26px, 3.1vw, 33px);
  --text-body: 20px;
  --text-small: 18px;
  --text-caption: 15px;
  --text-fine: 12px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Spacing */
  --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: 80px;
  --space-10: 96px;
  --space-11: 128px;
}

@media (max-width: 767px) {
  :root {
    --text-quote: clamp(28px, 7.2vw, 38px);
    --text-h3: 20px;
    --text-lede: 20px;
    --text-body: 19px;
    --text-small: 17px;
    --text-caption: 14px;
  }
}
