/* ============================================================
   Dusted Design System — tokens + base + the spotlight stage.
   Tokens are copied verbatim from the handoff bundle
   (tokens/{fonts,colors,typography,spacing,effects}.css).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Yellowtail&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* ---- Parchment / Cream ---- */
  --cream-50: #FBF6EA;
  --cream-100: #F6EDD8;
  --cream-200: #EFE1C2;
  --cream-300: #E4D2A8;
  --cream-400: #D8C291;
  --paper: #FFFDF6;

  /* ---- Espresso ink ---- */
  --espresso-900: #221E18;
  --espresso-800: #2E2820;
  --espresso-700: #443C30;
  --espresso-600: #5E5444;
  --espresso-500: #7C7160;

  /* ---- Dusty rose (primary) ---- */
  --rose-700: #A12C42;
  --rose-600: #C0364F;
  --rose-500: #DB4961;
  --rose-400: #EC6B80;
  --rose-300: #F6A1AE;
  --rose-100: #FBDDE2;

  /* ---- Aged gold ---- */
  --gold-600: #A37F4F;
  --gold-500: #BE9A6A;
  --gold-400: #D2B488;
  --gold-200: #ECDCC0;

  /* ---- Sage (designer-added support) ---- */
  --sage-600: #5F6E54;
  --sage-500: #7C8C6F;
  --sage-300: #AEBBA1;
  --sage-100: #DEE4D6;

  /* ---- Semantic aliases ---- */
  --color-bg: var(--cream-50);
  --color-bg-sunken: var(--cream-100);
  --surface-card: var(--paper);
  --surface-raised: var(--cream-100);
  --surface-inverse: var(--espresso-900);

  --text-strong: var(--espresso-900);
  --text-body: var(--espresso-800);
  --text-muted: var(--espresso-600);
  --text-faint: var(--espresso-500);
  --text-on-dark: var(--cream-50);
  --text-on-rose: var(--cream-50);

  --color-primary: var(--rose-500);
  --color-primary-hover: var(--rose-600);
  --color-primary-press: var(--rose-700);
  --color-primary-soft: var(--rose-100);
  --color-accent: var(--gold-500);
  --color-accent-soft: var(--gold-200);

  --border-strong: var(--espresso-900);
  --border: color-mix(in oklab, var(--espresso-900) 18%, transparent);
  --border-soft: color-mix(in oklab, var(--espresso-900) 10%, transparent);
  --border-rose: var(--rose-500);

  --color-success: var(--sage-600);
  --color-success-soft: var(--sage-100);
  --color-warning: var(--gold-600);
  --color-warning-soft: var(--gold-200);
  --color-danger: var(--rose-600);
  --color-danger-soft: var(--rose-100);

  --ring: color-mix(in oklab, var(--rose-500) 55%, transparent);

  /* ---- Type ---- */
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;
  --font-display: 'Zilla Slab', 'Rockwell', Georgia, serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 36px;
  --text-3xl: 46px;
  --text-4xl: 60px;
  --text-5xl: 78px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.22em;

  /* ---- Spacing & layout ---- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --container-sm: 640px;
  --container-md: 860px;
  --container-lg: 1120px;
  --container-xl: 1280px;
  --gutter: var(--space-6);
  --section-y: var(--space-24);

  /* ---- Radius & borders ---- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --border-hair: 1px;
  --border-ink: 2px;
  --border-bold: 3px;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(34, 30, 24, 0.10);
  --shadow-sm: 0 2px 6px rgba(34, 30, 24, 0.10);
  --shadow-md: 0 6px 18px rgba(34, 30, 24, 0.12);
  --shadow-lg: 0 16px 38px rgba(34, 30, 24, 0.16);
  --shadow-press: inset 0 2px 4px rgba(34, 30, 24, 0.18);
  --shadow-badge: 0 4px 0 var(--espresso-900);

  /* ---- Spotlight & metal ---- */
  --metal-950: #050506;
  --metal-900: #0B0C0E;
  --metal-800: #15171C;
  --metal-700: #222630;
  --surface-metal: radial-gradient(130% 96% at 50% -10%, #353B47 0%, #181B21 36%, #0A0B0E 72%, #050506 100%);
  --metal-sheen: linear-gradient(180deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.05) 6%,
      rgba(255, 255, 255, 0) 26%,
      rgba(0, 0, 0, 0) 68%,
      rgba(0, 0, 0, 0.32) 100%);
  --spotlight-gold: radial-gradient(56% 70% at 50% 4%,
      rgba(242, 230, 202, 0.50) 0%,
      rgba(206, 192, 158, 0.16) 34%,
      rgba(0, 0, 0, 0) 66%);
  --spotlight-fan: radial-gradient(38% 78% at 22% -6%,
      rgba(247, 233, 200, 0.34) 0%,
      rgba(226, 198, 142, 0.12) 30%,
      rgba(0, 0, 0, 0) 58%),
    radial-gradient(38% 78% at 78% -6%,
      rgba(247, 233, 200, 0.34) 0%,
      rgba(226, 198, 142, 0.12) 30%,
      rgba(0, 0, 0, 0) 58%),
    radial-gradient(46% 92% at 50% -10%,
      rgba(252, 242, 218, 0.52) 0%,
      rgba(236, 214, 168, 0.20) 26%,
      rgba(214, 188, 140, 0.06) 50%,
      rgba(0, 0, 0, 0) 72%);
  --spotlight-rose: radial-gradient(58% 66% at 50% 12%,
      rgba(222, 154, 162, 0.40) 0%,
      rgba(178, 78, 91, 0.10) 38%,
      rgba(0, 0, 0, 0) 68%);
  --surface-metal-lit: var(--spotlight-fan), var(--metal-sheen), var(--surface-metal);
  --glow-gold: 0 0 80px 8px rgba(226, 198, 142, 0.28);
  --glow-rose: 0 0 70px 4px rgba(222, 154, 162, 0.22);
  --edge-light: inset 0 1px 0 rgba(255, 248, 232, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  --text-on-metal: #F3E9D4;
  --text-on-metal-muted: #B8A98C;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   Base + the spotlight stage (ported from the scheduler kit)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--metal-950);
  font-family: var(--font-body);
  min-height: 100vh;
}

.stage {
  position: relative;
  min-height: 100vh;
  background: var(--surface-metal);
  overflow: hidden;
}
.stage::before { content: ""; position: absolute; inset: 0; background: var(--spotlight-fan); pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: 0; background: var(--metal-sheen); pointer-events: none; }

.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 36px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand .nm { font-family: var(--font-script); font-size: 30px; color: var(--text-on-metal); line-height: 1; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-on-metal-muted); text-decoration: none;
  transition: color var(--dur-base) var(--ease-out); cursor: pointer;
}
.nav a:hover { color: var(--text-on-metal); }
.nav a.active { color: var(--gold-400); }

.hero-label { position: relative; z-index: 3; text-align: center; margin: 8px 0 30px; }
.scene { position: relative; z-index: 3; padding: 0 36px 80px; display: flex; justify-content: center; }

@media (max-width: 560px) {
  .topbar { padding: 16px 20px; flex-direction: column; gap: 12px; }
  .scene { padding: 0 16px 56px; }
}
