/* ============================================================
   RDB BACKSTAGE — DESIGN TOKENS
   Single source of truth. Import this file from every artifact.
   ============================================================ */

/* Webfonts — pulled from Google Fonts.
   Bodoni Moda  → display / wordmark    (matches the RDB Didone)
   Manrope      → body / data tables
   JetBrains Mono → IDs, COIs, tabular numerals
   --------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* ---------- Bodoni Moda — wordmark serif (licensed files, 72pt optical masters) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa_72pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa_72pt-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa_72pt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa_72pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa_72pt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa_72pt-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- BRAND (per rdbbackstage.com spec) ---------- */
  --rdb-gold:        #C9A84C;     /* RDB Gold — primary */
  --rdb-gold-dim:    #A98C38;     /* Hover on light bg / pressed on dark bg */
  --rdb-gold-bright: #E8C96A;     /* Stage Light — accent / hover on dark bg */
  --rdb-gold-soft:   rgba(201, 168, 76, 0.32);   /* Hairline rules, glow */
  --rdb-gold-faint:  rgba(201, 168, 76, 0.08);   /* Background tint, focus halo */
  --rdb-black:       #0D0D0D;     /* Backstage Black */

  /* ---------- INK SCALE (neutral, dark-stage) ---------- */
  --ink-0:  #0D0D0D;   /* Backstage Black — darkest */
  --ink-1:  #1A1A1A;   /* Dark Stage — page bg */
  --ink-2:  #222222;   /* Surface card */
  --ink-3:  #2E2E2E;   /* Borders */
  --ink-4:  #3A3A3A;   /* divider strong */
  --ink-5:  #5A5A5A;   /* faint text */
  --ink-6:  #8A8A8A;   /* Muted text */
  --ink-7:  #BDBDBD;   /* tertiary text */
  --ink-8:  #E8E8E8;   /* Body text / hairline on light */
  --ink-9:  #F2F2F2;   /* surface on light */
  --ink-10: #FAFAFA;   /* page bg on light (spec is dark-only) */

  /* ---------- ACCENTS ---------- */
  --stage-light:    #E8C96A;
  --champagne:      #E8C96A;
  --champagne-dim:  #C9A84C;
  --midnight:       #0D1B2A;
  --midnight-tint:  rgba(13, 27, 42, 0.06);

  /* ---------- SEMANTIC ---------- */
  --success:  #7FA86C;
  --success-tint: rgba(127, 168, 108, 0.14);
  --warning:  #E8A33D;
  --warning-tint: rgba(232, 163, 61, 0.14);
  --danger:   #C0392B;
  --danger-tint:  rgba(192, 57, 43, 0.14);
  --info:     #4A6FA5;
  --info-tint:    rgba(74, 111, 165, 0.14);

  /* ---------- SEMANTIC ALIASES (dark mode — the only mode) ---------- */
  --bg:           var(--ink-1);   /* Dark Stage #1A1A1A */
  --bg-raised:    var(--ink-2);   /* Surface card #222222 */
  --bg-hover:     #2A2A2A;
  --border:       var(--ink-3);   /* #2E2E2E */
  --border-strong:var(--ink-4);
  --fg:           #E8E8E8;        /* Body text */
  --fg-1:         #E8E8E8;        /* primary text */
  --fg-2:         #B0B0B0;        /* secondary text */
  --fg-3:         var(--ink-6);   /* muted #8A8A8A */
  --fg-4:         var(--ink-5);   /* disabled */
  --accent:       var(--rdb-gold);
  --accent-fg:    #0D0D0D;        /* text on a gold fill */

  /* ---------- TYPE ---------- */
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif:   "Bodoni Moda", Didot, "Bodoni MT", Cambria, serif;
  --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
  --fs-56: 56px;
  --fs-80: 80px;
  --fs-base: 15px;

  --lh-tight: 1.05; /* @kind other */
  --lh-snug:  1.2;  /* @kind other */
  --lh-base:  1.5;  /* @kind other */
  --lh-loose: 1.7;  /* @kind other */

  --tracking-tight:  -0.02em;
  --tracking-base:    0em;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.16em;   /* nav labels */
  --tracking-marquee: 0.32em;   /* eyebrows / "BACKSTAGE" */

  /* ---------- SPACING (4px base) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ---------- RADII ---------- */
  /* Brief spec: 6px base radius */
  --radius-0: 0;
  --radius-1: 4px;
  --radius-2: 6px;   /* default */
  --radius-3: 10px;  /* modals / images */

  /* ---------- SHADOWS ---------- */
  --shadow-card:  0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 40px 80px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--rdb-gold-soft);

  /* ---------- MOTION ---------- */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   400ms; /* @kind other */

  /* ---------- LAYOUT ---------- */
  --page-max:   1440px;
  --gutter:     80px;
  --header-h:   72px;
  --sidenav-w:  240px;
}

/* ----------------------------------------------------------
   SEMANTIC TYPE RAMP
   Use these instead of raw vars where possible.
   ---------------------------------------------------------- */
.rdb-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-80);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.rdb-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-56);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.rdb-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-40);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}
.rdb-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-32);
  line-height: var(--lh-snug);
}
.rdb-h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-20);
  line-height: var(--lh-snug);
}
.rdb-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-12);
  line-height: 1;
  letter-spacing: var(--tracking-marquee);
  text-transform: uppercase;
  color: var(--rdb-gold);
}
.rdb-nav-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.rdb-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-15);
  line-height: var(--lh-base);
}
.rdb-body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-13);
  line-height: var(--lh-base);
}
.rdb-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-13);
  line-height: 1.2;
}
.rdb-mono,
.rdb-tabular {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-13);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Base resets — opt in by adding .rdb-root to your container */
.rdb-root {
  font-family: var(--font-body);
  font-size: var(--fs-15);
  line-height: var(--lh-base);
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
.rdb-root.light {
  --bg:           var(--ink-10);
  --bg-raised:    #FFFFFF;
  --bg-hover:     var(--ink-9);
  --border:       var(--ink-8);
  --border-strong:#D4D0C5;
  --fg:           var(--ink-1);
  --fg-1:         var(--ink-1);
  --fg-2:         #4A4A4A;
  --fg-3:         var(--ink-6);
  --fg-4:         #BDBDBD;
  --accent-fg:    var(--ink-0);
}
