/* ==========================================================================
   Regalis Capital / Shared Design Tokens
   Extracted from LOI Playbook (style.css). Do NOT add page-specific rules.
   ========================================================================== */

/* ---------- Missing tokens (not declared in source) ---------- */
:root {
  --border: #e0e0e0;
}

/* ---------- CSS Variables ---------- */
:root {
  /* Brand */
  --navy: #002950;
  --navy-deep: #001529;
  --navy-rich: #003a6e;
  --gold: #fcd981;
  --gold-soft: #fff3d0;
  --gold-deep: #e6b94a;
  --gold-ink: #7a5d14;

  /* Paper and ink */
  --cream: #F8F4EE;
  --paper: #FAF7F2;
  --ink: #0a0a0a;
  --ink-soft: #525252;
  --ink-mute: #8a8a8a;
  --rule: rgba(0, 41, 80, 0.12);
  --rule-warm: rgba(10, 10, 10, 0.08);
  --white: #ffffff;

  /* Typography (canonical names from source) */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Typography aliases (used by hub pages) */
  --serif: var(--font-display);
  --sans: var(--font-body);
  --mono: var(--font-mono);

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(0, 41, 80, 0.06), 0 2px 4px rgba(0, 41, 80, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 41, 80, 0.08), 0 8px 16px rgba(0, 41, 80, 0.06), 0 16px 32px rgba(0, 41, 80, 0.04);
  --shadow-lg: 0 12px 24px rgba(0, 41, 80, 0.10), 0 24px 48px rgba(0, 41, 80, 0.08), 0 48px 96px rgba(0, 41, 80, 0.05);
  --shadow-gold: 0 0 0 1px rgba(252, 217, 129, 0.3), 0 8px 24px rgba(252, 217, 129, 0.25), 0 20px 60px rgba(252, 217, 129, 0.15);
  --shadow-navy-glow: 0 0 0 1px rgba(0, 41, 80, 0.15), 0 20px 60px rgba(0, 41, 80, 0.25);

  /* Layout */
  --content-max: 1440px;
  --content-wide: 1680px;
  --header-height: 72px;

  /* Motion */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --stagger: 0ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* SVG grain overlay, fixed, applied over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Animation keyframes ---------- */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(252, 217, 129, 0.3), 0 8px 24px rgba(252, 217, 129, 0.25), 0 20px 60px rgba(252, 217, 129, 0.15);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(252, 217, 129, 0.45), 0 12px 32px rgba(252, 217, 129, 0.35), 0 28px 72px rgba(252, 217, 129, 0.22);
  }
}
