/* ── Radiant Rift Website — Global Styles ──────────────────────────────── */

:root {
  --rr-bg:          #080604;
  --rr-surface:     #0f0c08;
  --rr-surface-2:   #161009;
  --rr-border:      rgba(255, 220, 140, 0.10);
  --rr-border-2:    rgba(255, 220, 140, 0.18);
  --rr-gold:        #e8c36a;
  --rr-gold-dim:    #b89340;
  --rr-crimson:     #c42838;
  --rr-amber:       #c97838;
  --rr-text:        #e8dcc8;
  --rr-text-dim:    #9a8e78;
  --rr-text-faint:  #5a5044;
  --rr-radius:      12px;
  --rr-radius-lg:   20px;
  --rr-font:        'Georgia', 'Times New Roman', serif;
  --rr-font-ui:     system-ui, -apple-system, sans-serif;
  --rr-glow-gold:   0 0 32px rgba(232, 195, 106, 0.18);
  --rr-glow-red:    0 0 32px rgba(196, 40, 56, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--rr-bg);
  color: var(--rr-text);
  font-family: var(--rr-font-ui);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--rr-font);
  line-height: 1.2;
  color: var(--rr-gold);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75em; }
h3 { font-size: 1.2rem; color: var(--rr-text); margin-bottom: 0.5em; }
h4 { font-size: 1rem; color: var(--rr-gold-dim); margin-bottom: 0.4em; }

p { color: var(--rr-text-dim); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--rr-gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #fff; }

strong { color: var(--rr-text); font-weight: 600; }

ul, ol { padding-left: 1.5em; color: var(--rr-text-dim); }
li { margin-bottom: 0.4em; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rr-border); }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 4, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rr-border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.nav-logo {
  font-family: var(--rr-font);
  font-size: 1.25rem;
  color: var(--rr-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--rr-crimson); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--rr-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--rr-gold); }
.nav-cta {
  margin-left: 8px;
  padding: 8px 20px;
  background: rgba(196, 40, 56, 0.15);
  border: 1px solid rgba(196, 40, 56, 0.4);
  border-radius: 8px;
  color: #ff6677 !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover {
  background: rgba(196, 40, 56, 0.25) !important;
  border-color: rgba(196, 40, 56, 0.7) !important;
  color: #ff8899 !important;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rr-border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--rr-font);
  font-size: 1.1rem;
  color: var(--rr-gold-dim);
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--rr-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links a:hover { color: var(--rr-gold-dim); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--rr-text-faint);
}

/* ── Divider / accent rule ── */
.rr-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rr-gold-dim), transparent);
  margin: 20px auto;
  border: none;
}
.rr-rule-left {
  margin-left: 0;
  background: linear-gradient(90deg, var(--rr-gold-dim), transparent);
}

/* ── Cards ── */
.rr-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius);
  padding: 28px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rr-card:hover {
  border-color: var(--rr-border-2);
  box-shadow: var(--rr-glow-gold);
}
.rr-card-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rr-gold-dim);
  margin-bottom: 6px;
}

/* ── Pill / badge ── */
.rr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(232, 195, 106, 0.08);
  border: 1px solid rgba(232, 195, 106, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--rr-gold-dim);
  letter-spacing: 0.06em;
}

/* ── Page hero ── */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rr-gold-dim);
  margin-bottom: 16px;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  color: var(--rr-text-dim);
}

/* ── Prose (for policy pages) ── */
.prose { max-width: 720px; margin: 0 auto; }
.prose section { padding: 40px 0; }
.prose section + section { border-top: 1px solid var(--rr-border); }
.prose h2 { font-size: 1.4rem; margin-bottom: 16px; }
.prose h3 { font-size: 1.05rem; color: var(--rr-text); margin: 24px 0 10px; }
.prose p + h3 { margin-top: 28px; }
.prose .last-updated {
  font-size: 0.82rem;
  color: var(--rr-text-faint);
  margin-bottom: 32px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold { color: var(--rr-gold); }
.text-dim { color: var(--rr-text-dim); }
.text-faint { color: var(--rr-text-faint); }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  section { padding: 48px 0; }
  .rr-card { padding: 20px; }
}
