/* Army of One Studio — design tokens (World Windows)
   Source: FINAL_DESIGN_SYSTEM.md §4; container 1280px / text 720px (owner decision, lot 6.3). */
:root {
  /* Institutional frame (permanent) */
  --aos-ink-950: #110818; --aos-ink-900: #1A1030; --aos-ink-800: #251742;
  --aos-ink-700: #33225C; --aos-ink-500: #5A4A8A;
  --aos-text: #F7F3FF; --aos-text-muted: #B9AEDA;
  --aos-sun: #F2CB4E; --aos-sun-deep: #B8891A;
  --aos-mint: #5FD8A5; --aos-coral: #F0605A; --aos-teal: #3C847A;
  --aos-paper: #FFF7E8; --aos-paper-ink: #1A1030;

  /* Semantic roles — components read these, never the raw values */
  --color-bg: var(--aos-ink-900);
  --color-surface: var(--aos-ink-700);
  --color-surface-alt: var(--aos-ink-800);
  --color-text: var(--aos-text);
  --color-text-muted: var(--aos-text-muted);
  --color-action: var(--aos-sun);
  --color-action-hover: #F5D570;          /* sun lightened ~6%; ink-900 on it ≥ 11:1 */
  --color-on-action: var(--aos-ink-900);
  --color-link: var(--aos-mint);
  --color-border-decorative: var(--aos-ink-500);   /* 2.4:1 — decorative only */
  --color-border-control: var(--aos-text-muted);   /* 8.7:1 — controls */
  --color-focus-outer: var(--aos-sun);
  --color-focus-inner: var(--aos-ink-950);
  --color-warning-text: var(--aos-coral);          /* only on ink-900/800 */
  --shadow-extrude-color: var(--aos-sun-deep);

  /* Typography */
  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --text-display: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --text-h1: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --text-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --text-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --text-body: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --text-small: .875rem;
  --leading-tight: 1.15; --leading-body: 1.6; --measure: 68ch;
  --weight-display: 600; --weight-display-strong: 700;
  --weight-body: 400; --weight-control: 600; --weight-strong: 700;

  /* Space (4px base) */
  --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: 96px; --space-10: 128px;
  --gutter: 16px; --page-margin: 16px; --section-gap: 64px;

  /* Containers */
  --container: 1280px;
  --container-text: 720px;

  /* Radii, borders, shadows */
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-window: 24px; --radius-pill: 999px;
  --border-width: 2px;
  --shadow-extrude: 0 4px 0 var(--shadow-extrude-color);
  --shadow-window: 0 0 0 4px var(--aos-ink-500), 0 24px 64px rgb(0 0 0 / .45);
  --shadow-card: 0 8px 24px rgb(0 0 0 / .3);

  /* Layers */
  --z-base: 0; --z-raised: 10; --z-header: 100; --z-skip: 200; --z-dialog: 1000;

  /* Header */
  --header-height: 72px;

  /* Motion */
  --motion-fast: 120ms; --motion-base: 240ms; --motion-slow: 480ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-press: cubic-bezier(.3, 0, .5, 1);
  --motion-distance: 16px;

  /* Touch */
  --target-min: 44px; --target-gap: 8px;
}
@media (min-width: 600px) { :root { --gutter: 24px; --page-margin: 24px; } }
@media (min-width: 900px) { :root { --page-margin: 32px; --section-gap: 96px; --radius-window: 40px; } }
@media (min-width: 1200px) { :root { --section-gap: 112px; } } /* 6.8: was 128px */
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; --motion-distance: 0px; }
}
