/* /assets/css/variables.css
   Global design tokens. Every color, font, size, spacing and radius used by
   the site is defined here; component stylesheets only reference var(--*).
*/

:root {
  /* ---------- Brand colors ---------- */
  --color-bg: #050505;
  --color-bg-glow: #111111;
  --color-surface: #0a0a0a;
  --color-surface-hover: #111111;
  --color-surface-border: #222222;

  --gold-base: #c5a059;
  --gold-shine: #fcf6ba;
  --gold-dark: #aa771c;
  --gold-foil-1: #bf953f;
  --gold-foil-2: #b38728;
  --gold-foil-3: #fbf5b7;
  --gold-nav: #e0cba0;

  /* RGB channels so translucent variants can be built with rgba(var(--x), a) */
  --gold-base-rgb: 197, 160, 89;
  --gold-shine-rgb: 252, 246, 186;
  --gold-dark-rgb: 170, 119, 28;
  --bg-rgb: 5, 5, 5;
  --code-bg-rgb: 10, 10, 10;
  --black-rgb: 0, 0, 0;
  --white-rgb: 255, 255, 255;

  --gradient-gold-foil: linear-gradient(to right, var(--gold-foil-1), var(--gold-shine), var(--gold-foil-2), var(--gold-foil-3), var(--gold-dark));
  --gradient-gold-bar: linear-gradient(to bottom, var(--gold-foil-1), var(--gold-dark));
  --gradient-page-bg: radial-gradient(circle at center, var(--color-bg-glow) 0%, var(--color-bg) 70%);

  /* ---------- Text colors ---------- */
  --color-text: #f8f8f8;
  --color-text-white: #ffffff;
  --body-text: rgba(var(--white-rgb), 0.92);
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --color-success: #22c55e;

  /* Document-page text (shared with legal.shatteredvales.studio; WCAG AA on --color-bg) */
  --color-text-muted: #a3a3a3;
  --color-text-subtle: #8c8c8c;
  --color-text-on-gold: var(--color-bg);
  --color-gold-glow: rgba(var(--gold-shine-rgb), 0.5);

  /* ---------- Service nav hover + glow ---------- */
  --service-halo-strong: rgba(var(--gold-base-rgb), 0.10);
  --service-halo-mid: rgba(var(--gold-base-rgb), 0.06);
  --service-glow-1: rgba(var(--gold-base-rgb), 0.22);
  --service-glow-2: rgba(var(--gold-base-rgb), 0.14);

  /* ---------- Home pill ---------- */
  --home-pill-bg: rgba(var(--bg-rgb), 0.70);
  --home-pill-border: rgba(var(--gold-base-rgb), 0.28);
  --home-pill-text: rgba(var(--gold-base-rgb), 0.85);

  /* ---------- Typography ---------- */
  --font-display: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-system: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-code-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-xs: 1rem;
  --leading-sm: 1.25rem;
  --leading-base: 1.5rem;
  --leading-lg: 1.75rem;
  --leading-2xl: 2rem;
  --leading-3xl: 2.25rem;
  --leading-4xl: 2.5rem;
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-heading: 1.2;
  --leading-relaxed: 1.625;

  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ---------- Spacing scale ---------- */
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;

  /* ---------- Layout widths ---------- */
  --width-3xl: 48rem;
  --width-4xl: 56rem;
  --width-5xl: 64rem;
  --width-6xl: 72rem;
  --gutter: var(--space-4);       /* minimum space between content and the browser edge */

  /* ---------- Radii ---------- */
  --radius-xs: 1px;
  --radius-sm: 0.125rem;
  --radius-md: 4px;
  --radius-button: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-focus: 6px;
  --radius-full: 9999px;

  /* ---------- Motion ---------- */
  --ease-soft: 0.65s ease;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --transition-doc: 0.2s ease-in-out;
}

@media (min-width: 641px) {
  :root {
    --gutter: var(--space-6);
  }
}
