/* ==========================================================================
   rapturenft.com , sacred-archive cinematic theme
   Near-black ground, gold leaf, Cinzel display, Fraunces italic scripture,
   Inter body. Built standalone: does not depend on jasonhaygood styles.css.
   ========================================================================== */

:root {
  --ink: #050403;
  --ink-2: #0c0906;
  --panel: #14100a;
  --panel-2: #1c150d;
  --line: rgba(212, 175, 91, 0.22);
  --line-soft: rgba(212, 175, 91, 0.12);
  --gold: #d4af5b;
  --gold-bright: #f3d98a;
  --gold-dim: #9c7f3f;
  --white: #f6f1e6;
  --dim: #c9bfa9;
  --dim-strong: #8f8672;
  --red: #8a2f2f;
  --glow: rgba(212, 175, 91, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }

body.rn-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(212,175,91,0.06), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(212,175,91,0.04), transparent 50%);
}

.rn-body a { color: inherit; text-decoration: none; }
.rn-body em {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  color: var(--gold-bright);
}
.rn-body strong { font-weight: 600; color: var(--white); }
.rn-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  .rn-body * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================ NAV */
.rn-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 40px;
  background: rgba(5,4,3,0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.rn-brand { display: flex; align-items: center; gap: 12px; }
.rn-brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 14px;
  border-radius: 3px;
  box-shadow: 0 0 14px var(--glow), inset 0 0 8px rgba(212,175,91,0.15);
}
.rn-brand-sub { font-family: 'Cinzel', serif; color: var(--dim); font-size: 13px; letter-spacing: 1.5px; }
.rn-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rn-link { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; transition: color 0.2s; }
.rn-link:hover { color: var(--gold-bright); text-shadow: 0 0 12px var(--glow); }
@media (max-width: 760px) {
  .rn-nav { padding: 14px 18px; }
  .rn-brand-sub { display: none; }
  .rn-links {
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100vw - 70px);
    scrollbar-width: none;
  }
  .rn-links::-webkit-scrollbar { display: none; }
  .rn-link { flex-shrink: 0; }
}

/* ============================================================ ORNAMENT FRAME */
.rn-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.rn-frame::before, .rn-frame::after,
.rn-frame > .rn-corner-tl, .rn-frame > .rn-corner-br { display: none; }
.rn-corners { position: absolute; inset: 10px; pointer-events: none; }
.rn-corners::before, .rn-corners::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--gold);
}
.rn-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.rn-corners::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ============================================================ HERO */
.rn-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.rn-hero-slides { position: absolute; inset: 0; z-index: 0; }
.rn-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.4s ease;
}
.rn-hero-slide.on { opacity: 1; }
.rn-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,4,3,0.55) 0%, rgba(5,4,3,0.35) 35%, rgba(5,4,3,0.92) 100%),
    linear-gradient(90deg, rgba(5,4,3,0.55) 0%, rgba(5,4,3,0.05) 45%, rgba(5,4,3,0.05) 55%, rgba(5,4,3,0.55) 100%);
}
.rn-hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 120px 40px 60px; }
.rn-hero-kicker {
  font-family: 'Cinzel', serif; color: var(--gold); font-size: 13px; font-weight: 600;
  letter-spacing: 4px; margin-bottom: 22px; text-shadow: 0 0 16px var(--glow);
}
.rn-hero-title {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(38px, 7vw, 88px); line-height: 1.06; letter-spacing: -0.01em;
  margin-bottom: 26px; text-wrap: balance;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
.rn-hero-verse {
  font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(17px, 2vw, 22px);
  color: var(--gold-bright); max-width: 680px; margin-bottom: 10px; line-height: 1.6;
  text-shadow: 0 0 20px rgba(212,175,91,0.25);
}
.rn-hero-ref { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 3px; color: var(--dim); margin-bottom: 40px; }
.rn-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.rn-hero-caption {
  position: absolute; bottom: 22px; left: 40px; z-index: 2;
  font-size: 11px; letter-spacing: 1.5px; color: var(--dim-strong);
}
@media (max-width: 700px) {
  .rn-hero-content { padding: 100px 22px 50px; }
  .rn-hero-caption { left: 22px; }
}

/* ============================================================ BUTTONS */
.rn-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 2px; cursor: pointer;
  transition: all 0.22s ease; border: 1px solid transparent;
}
.rn-btn-gold {
  background: linear-gradient(135deg, #e9cd85, #b8903f);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset;
}
.rn-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px var(--glow), 0 0 0 1px rgba(255,255,255,0.35) inset; }
.rn-btn-line { border-color: var(--gold-dim); color: var(--gold-bright); }
.rn-btn-line:hover { border-color: var(--gold); background: rgba(212,175,91,0.08); }

/* ============================================================ SECTIONS */
.rn-section { padding: 100px 0; border-top: 1px solid var(--line-soft); }
.rn-section.tight { padding: 70px 0; }
.rn-eyebrow { font-family: 'Cinzel', serif; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 3px; margin-bottom: 16px; }
.rn-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(28px, 4vw, 52px); line-height: 1.15; margin-bottom: 20px; text-wrap: balance; }
.rn-lead { font-size: 17px; color: var(--dim); max-width: 700px; margin-bottom: 44px; line-height: 1.65; text-wrap: pretty; }

/* ============================================================ SCRIPTURE CALLOUT */
.rn-verse-block {
  text-align: center; max-width: 760px; margin: 40px auto; padding: 8px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 20px;
}
.rn-verse-block .v { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(18px,2.4vw,26px); color: var(--gold-bright); line-height: 1.55; }
.rn-verse-block .r { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 3px; color: var(--dim-strong); margin-top: 16px; }

/* ============================================================ ART TILES */
.rn-art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px; margin: 8px 0 8px; }
.rn-art-tile { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--panel); }
.rn-art-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: saturate(0.95) contrast(1.03); }
.rn-art-tile:hover img { transform: scale(1.05); filter: saturate(1.05) contrast(1.06); }
.rn-art-tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.rn-art-tile:hover::after { box-shadow: inset 0 0 0 1px var(--gold), 0 0 30px var(--glow); }
.rn-art-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 12px; color: var(--dim); background: linear-gradient(0deg, rgba(5,4,3,0.92), transparent); }
.rn-art-cap b { color: var(--gold-bright); display: block; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 3px; }

.rn-fullbleed { position: relative; width: 100%; aspect-ratio: 16/8; overflow: hidden; margin: 20px 0; }
.rn-fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.rn-fullbleed .cap { position: absolute; left: 24px; bottom: 20px; font-size: 12px; color: var(--dim); text-shadow: 0 2px 8px rgba(0,0,0,0.8); }

/* ============================================================ PANEL / NUMERAL INFOGRAPHIC (Bo Polny slide language) */
.rn-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
  position: relative;
}
.rn-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.rn-num { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold-bright); font-size: 56px; line-height: 1; text-shadow: 0 0 20px var(--glow); }
.rn-num-label { font-size: 11px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; margin-top: 10px; }
.rn-num-ref { font-size: 11px; color: var(--dim-strong); margin-top: 4px; }

/* ============================================================ AGREE / DISAGREE GRID */
.rn-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.rn-view-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px 22px; }
.rn-view-card .vc-name { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold-bright); margin-bottom: 10px; letter-spacing: 0.4px; }
.rn-view-card p { font-size: 13.5px; color: var(--dim); line-height: 1.6; }
.rn-view-card .vc-holders { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--dim-strong); }

/* ============================================================ THREE DOORS */
.rn-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rn-door { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.rn-door img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: saturate(0.9) brightness(0.75); }
.rn-door:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(0.85); }
.rn-door-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,4,3,0.95) 100%); }
.rn-door-label { position: absolute; left: 24px; right: 24px; bottom: 26px; }
.rn-door-label .dl-eyebrow { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 3px; color: var(--gold); margin-bottom: 8px; }
.rn-door-label .dl-title { font-family: 'Cinzel', serif; font-size: 24px; color: var(--white); }
.rn-door-label .dl-sub { font-size: 13px; color: var(--dim); margin-top: 8px; }
@media (max-width: 860px) { .rn-doors { grid-template-columns: 1fr; } .rn-door { aspect-ratio: 16/10; } }

/* ============================================================ BEASTS BESTIARY */
.rn-beast-list { display: flex; flex-direction: column; gap: 4px; }
.rn-beast {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.rn-beast-art { position: relative; min-height: 320px; }
.rn-beast-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-beast-art.placeholder { display: grid; place-items: center; background: radial-gradient(ellipse at center, var(--panel-2), var(--ink)); }
.rn-beast-art.placeholder .rn-num { font-size: 44px; opacity: 0.5; }
.rn-beast-body { padding: 34px 32px; }
.rn-beast-ref { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 10px; }
.rn-beast-name { font-family: 'Cinzel', serif; font-size: clamp(22px,3vw,32px); color: var(--white); margin-bottom: 14px; }
.rn-beast-verse { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); font-size: 15px; line-height: 1.6; border-left: 2px solid var(--line); padding-left: 14px; margin-bottom: 16px; }
.rn-beast-body p.note { font-size: 13.5px; color: var(--dim); line-height: 1.65; margin-bottom: 12px; }
.rn-beast-body .kit { font-size: 12px; color: var(--dim-strong); border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.rn-beast-body .kit b { color: var(--gold); }
@media (max-width: 820px) { .rn-beast { grid-template-columns: 1fr; } .rn-beast-art { min-height: 220px; } }

/* ============================================================ STICKY SUBNAV */
.rn-subnav {
  position: sticky; top: 68px; z-index: 90;
  background: rgba(5,4,3,0.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex; gap: 4px; overflow-x: auto; padding: 0 24px;
}
.rn-subnav a { padding: 14px 16px; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--dim); white-space: nowrap; border-bottom: 2px solid transparent; }
.rn-subnav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* ============================================================ FOOTER */
.rn-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--ink-2); }
.rn-footer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 18px; }
.rn-footer-name { font-family: 'Cinzel', serif; font-size: 17px; color: var(--white); }
.rn-footer-sub { font-size: 13px; color: var(--dim-strong); margin-top: 4px; }
.rn-footer-links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.rn-footer-links a { color: var(--dim); }
.rn-footer-links a:hover { color: var(--gold-bright); }
.rn-footer-meta { text-align: center; font-size: 11px; color: var(--dim-strong); padding-top: 20px; border-top: 1px solid var(--line-soft); letter-spacing: 1px; line-height: 1.8; }

/* ============================================================ STATUS PILLS (shared with prophecyledger, kept for shared components) */
.rn-pill { display: inline-block; font-size: 10px; letter-spacing: 1.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); text-transform: uppercase; }
.rn-pill.hit { border-color: var(--gold); color: var(--gold-bright); }
.rn-pill.missed { border-color: rgba(138,47,47,0.6); color: #c98686; }
.rn-pill.pending { border-color: rgba(140,150,170,0.4); color: #9aa3b5; }
.rn-pill.debunked { border-color: rgba(138,47,47,0.6); color: #c98686; text-decoration: line-through; }

@media (max-width: 375px) { .rn-container { padding: 0 18px; } }

/* ============================================================
   COMPAT ALIASES , reskins pages still carrying jasonhaygood's
   legacy class names (.hero, .section-eyebrow, .venture-card, etc.)
   from cyan/gunmetal to this theme's gold-on-black by redefining the
   SAME custom-property names their old styles.css rules read from.
   Loaded AFTER styles.css so this :root wins the cascade. New pages
   (home, beasts) never read these legacy vars, so this is additive.
   ============================================================ */
:root {
  /* NOTE: --gold, --gold-bright, --white, --dim, --dim-strong, --line are
     already declared in the primary :root block at the top of this file
     with the values this site wants, so they are deliberately NOT
     redeclared here. A self-referencing custom property (e.g.
     "--gold: var(--gold);") is a cycle per the CSS spec and resolves to
     the guaranteed-invalid value, which silently breaks every rule that
     reads it (this shipped once, live, and rendered all hero/body text
     black , fixed 2026-09-03). Only names genuinely absent from the
     primary block are aliased below. */
  --navy-deep: var(--ink);
  --navy: var(--panel);
  --navy-light: var(--panel-2);
  --glow-soft: rgba(212, 175, 91, 0.28);
  --metal: linear-gradient(135deg, #f3e6bd 0%, #c9a94f 45%, #f6ecc9 70%, #ad8a3a 100%);
}
body:not(.rn-body) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
}
body:not(.rn-body) em { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); }
