/* ============================================================
   THEME — AI Workshops Australia
   Section-AI archetype: white + ink + warm orange, sans only.
   Tokens only. No layout in this file.
   ============================================================ */

:root {
  /* ---- Palette ---- */
  --paper:       #FFFFFF;
  --shell:       #F7F4EF;        /* one warm-cream band, used sparingly */
  --ink:         #0B0B0B;
  --ink-2:       #2A2A2A;
  --muted:       #6B6B6B;
  --rule:        #E6E6E6;        /* hairline borders */
  --rule-strong: #0B0B0B;        /* solid ink rules in nav etc. */

  --accent:      #E6622A;        /* warm orange */
  --accent-deep: #C24E1F;
  --accent-soft: #FBEADE;

  /* ---- Typography ---- */
  --font-sans:   "DM Sans", -apple-system, system-ui, "Helvetica Neue", sans-serif;
  --font-mono:   "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Display sizes — Section-AI tight & huge */
  --fs-display-xl: clamp(48px, 7vw, 88px);   /* hero H1 */
  --fs-display-l:  clamp(36px, 5vw, 64px);   /* section H2 */
  --fs-display-m:  clamp(26px, 3.4vw, 40px); /* card H3 */
  --fs-h4:         clamp(18px, 1.5vw, 22px);
  --fs-lede:       clamp(17px, 1.4vw, 20px);
  --fs-body:       16px;
  --fs-small:      14px;
  --fs-kicker:     12px;

  /* ---- Spacing (8px base) ---- */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 192px;

  /* ---- Layout ---- */
  --container: 1200px;
  --content:   960px;
  --narrow:    720px;
  --gutter:    clamp(20px, 4vw, 40px);

  /* ---- Radii ---- */
  --radius-sm:   6px;     /* buttons, inputs */
  --radius:      12px;    /* cards, photo */
  --radius-pill: 999px;

  /* ---- Motion ---- */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur:      240ms;

  /* Legacy aliases so existing background-tint classes keep painting */
  --font-body:    var(--font-sans);
  --font-display: var(--font-sans);
  --lime:    var(--accent);
  --blush:   var(--paper);
  --sage:    var(--paper);
  --butter:  var(--shell);
  --sky:     var(--paper);
  --paper-2: var(--paper);
  --paper-3: var(--shell);
  --rule-hair: var(--rule);
  --rule-soft: var(--rule);
  --rule-w-1: 1px;
  --rule-w-2: 2px;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* No background grid pattern — pure white. */
}

::selection { background: var(--accent); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Typography defaults — Sans only, mixed case, tight tracking.
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display-xl); }
h2 { font-size: var(--fs-display-l); }
h3 { font-size: var(--fs-display-m); }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); max-width: 64ch; }
p:last-child { margin-bottom: 0; }

em, i { font-style: normal; font-weight: 500; }
strong, b { font-weight: 600; }

.kicker, .flourish, .italic {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-style: normal;
}

.lede {
  font-size: var(--fs-lede);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.45;
}

p a {
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
p a:hover { color: var(--accent); }

/* Utility roles */
.ink-on-paper   { background: var(--paper); color: var(--ink); }
.paper-on-ink   { background: var(--ink);   color: var(--paper); }
.accent-on-ink  { color: var(--accent); }
.shell          { background: var(--shell); color: var(--ink); }
