/* The Reckoning Universe — cosmic crimson reskin */
:root {
  --bg: #05060c;
  --bg2: #0a0d17;
  --crimson: #e22032;
  --crimson-deep: #8f1622;
  --crimson-soft: #ff5d6c;
  --line: rgba(226, 32, 50, 0.22);
  --line-faint: rgba(226, 32, 50, 0.12);
  --ivory: #f0e9da;
  --muted: #9d96a8;
  --faint: #6b6577;
  --gold: #d8a94e; /* reserved: the "Start Here" star only */
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint fixed starfield so the whole page sits in deep space */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1px 1px at 55% 8%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1px 1px at 78% 42%, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(1px 1px at 91% 78%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 88%, rgba(255,180,190,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 66% 28%, rgba(255,255,255,.45), transparent 100%),
    radial-gradient(1px 1px at 44% 48%, rgba(255,255,255,.4), transparent 100%);
}
body > * { position: relative; z-index: 1; }

::selection { background: var(--crimson); color: #fff; }

h1, h2, h3, .wordmark, .foot-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

section { padding: 96px 0; position: relative; }
/* hairline gradient dividers between sections */
section:not(.hero)::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(680px, 78%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,32,50,.38), transparent);
}

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(5, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-faint);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wordmark { font-size: 1.02rem; letter-spacing: 0.16em; color: #fff; white-space: nowrap; text-decoration: none; }
.wordmark::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson); margin-left: 12px; vertical-align: 2px;
  box-shadow: 0 0 10px var(--crimson); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ivory); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.06em; opacity: 0.85; transition: opacity .2s, color .2s; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--gold); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 1px; transition: transform .25s, opacity .25s; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 6, 12, 0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-faint); padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 24px; font-size: 1rem; border-top: 1px solid var(--line-faint); }
  .nav-links a:not(.btn):first-child { border-top: none; }
  .nav-links .btn { margin: 12px 24px 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #ef2f40, #c11727);
  color: #fff;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em;
  padding: 14px 34px; border-radius: 2px; text-decoration: none;
  border: 1px solid rgba(255, 93, 108, 0.45);
  box-shadow: 0 6px 28px rgba(226, 32, 50, 0.35), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn:hover { filter: brightness(1.12); box-shadow: 0 8px 34px rgba(226,32,50,.5), inset 0 1px 0 rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-small { padding: 9px 20px; font-size: 0.82rem; white-space: nowrap; }
.btn-ghost {
  background: rgba(226,32,50,0.06); color: var(--ivory);
  border: 1px solid rgba(226,32,50,.4); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--crimson-soft); color: #fff; background: rgba(226,32,50,.12); filter: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background: url('assets/hero.jpg') center 30% / cover no-repeat, var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(165deg, rgba(10,6,16,0.52) 0%, rgba(143,22,34,0.14) 52%, rgba(5,6,12,0.42) 100%),
    linear-gradient(to bottom, rgba(5,6,12,0.78) 0%, rgba(5,6,12,0.50) 42%, rgba(5,6,12,0.96) 100%);
}
/* CSS starfield + Xylos disc glow + nebula, layered over the photo */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 76% 16%, rgba(226,32,50,.42) 0%, rgba(226,32,50,.14) 24%, transparent 44%),
    radial-gradient(circle at 76% 16%, rgba(255,130,142,.22) 0%, transparent 11%),
    radial-gradient(ellipse 55% 40% at 10% 90%, rgba(72,52,150,.22), transparent 62%),
    radial-gradient(ellipse 45% 35% at 92% 88%, rgba(226,32,50,.10), transparent 60%),
    radial-gradient(1.5px 1.5px at 14% 24%, rgba(255,255,255,.9), transparent 100%),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(1px 1px at 41% 30%, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(2px 2px at 58% 14%, rgba(255,255,255,.85), transparent 100%),
    radial-gradient(1px 1px at 66% 34%, rgba(255,200,208,.6), transparent 100%),
    radial-gradient(1px 1px at 88% 44%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(1.5px 1.5px at 94% 8%, rgba(255,255,255,.8), transparent 100%),
    radial-gradient(1px 1px at 6% 58%, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(1px 1px at 20% 74%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(2px 2px at 35% 62%, rgba(255,220,226,.7), transparent 100%),
    radial-gradient(1px 1px at 48% 82%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1px 1px at 62% 70%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 64%, rgba(255,255,255,.75), transparent 100%),
    radial-gradient(1px 1px at 93% 30%, rgba(255,255,255,.55), transparent 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 24px 80px; max-width: 900px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.78rem;
  color: var(--crimson-soft); margin-bottom: 28px; text-indent: 0.34em;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.04; color: #fff;
  text-shadow: 0 2px 34px rgba(0,0,0,0.8), 0 0 70px rgba(226,32,50,.25);
  margin-bottom: 26px;
}
.hero h1 .h1-accent {
  background: linear-gradient(180deg, #ff8b96 0%, var(--crimson) 55%, var(--crimson-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(226,32,50,.45));
}
.tagline { font-size: 1.25rem; color: var(--ivory); font-weight: 300; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--crimson-soft); font-size: 1.4rem; z-index: 1; opacity: .85;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- section headings ---------- */
.premise h2, .books h2, .trailer h2, .author-note h2, .signup h2 {
  font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 30px;
}
section h2::before {
  content: ''; display: block; width: 54px; height: 2px; margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  box-shadow: 0 0 12px rgba(226,32,50,.6);
}

/* ---------- premise ---------- */
.premise { background: transparent; text-align: center; }
.lede { font-size: 1.2rem; max-width: 760px; margin: 0 auto 44px; color: var(--ivory); }
.hooks { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
/* transmissions, not pull-quotes */
.hook {
  border: 1px solid rgba(226,32,50,.28); border-left: 2px solid var(--crimson);
  border-radius: 2px; padding: 18px 22px 18px 20px; max-width: 320px; text-align: left;
  font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.05em; line-height: 1.65;
  color: var(--ivory); background: rgba(10, 13, 23, 0.72);
  box-shadow: inset 0 0 24px rgba(226,32,50,.05);
  position: relative;
}
.hook span::before { content: '▸ '; color: var(--crimson); }
.hook::after {
  content: 'TRANSMISSION'; position: absolute; top: -9px; right: 12px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.28em;
  color: var(--crimson-soft); background: var(--bg); padding: 0 8px;
}
.premise p:last-child { max-width: 720px; margin: 0 auto; color: var(--muted); }

/* ---------- from the author ---------- */
.from-author { background: transparent; text-align: center; }
.from-author .eyebrow { margin-bottom: 30px; }
.dedication::before {
  content: ''; display: block; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  margin: 0 auto 36px; opacity: 0.9;
}
.dedication {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; font-style: italic; line-height: 1.85;
  color: var(--ivory);
}
.dedication p { margin-bottom: 24px; }
.dedication cite {
  display: block; margin-top: 34px;
  font-family: 'Inter', sans-serif; font-style: normal;
  font-size: 0.92rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson-soft);
}

/* ---------- trailer ---------- */
.trailer { background: rgba(10, 13, 23, 0.55); text-align: center; }
.video-label { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; margin: 1.6rem 0 0.7rem; }
.video-frame {
  max-width: 880px; margin: 0 auto;
  border: 1px solid rgba(226,32,50,.35); border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 44px rgba(226,32,50,.12);
}
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }

/* ---------- books ---------- */
.books { background: transparent; }
.books h2 { text-align: center; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 20px; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }
.book {
  border: 1px solid rgba(226,32,50,.28); border-radius: 6px; overflow: hidden;
  background: rgba(10, 13, 23, 0.72);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.book:hover {
  transform: translateY(-6px);
  border-color: rgba(226,32,50,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(226,32,50,.14);
}
.book img { width: 100%; display: block; }
.book-body { padding: 30px 30px 34px; }
.book-body .series {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem;
  color: var(--crimson-soft); margin-bottom: 10px;
}
.book-body h3 { font-size: 1.9rem; margin-bottom: 4px; color: #fff; }
.book-body .subtitle { font-style: italic; color: var(--ivory); margin-bottom: 16px; font-size: 0.98rem; }
.book-body .subtitle .star { color: var(--gold); font-style: normal; }
.book-body p { color: var(--muted); margin-bottom: 20px; font-size: 0.98rem; }
.badge {
  display: inline-block; border: 1px solid rgba(226,32,50,.5); color: var(--crimson-soft);
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
  padding: 8px 18px; border-radius: 2px; background: rgba(226,32,50,.07);
}

/* ---------- author note ---------- */
.author-note { background: rgba(10, 13, 23, 0.55); }
.author-note h2 { text-align: center; }
.author-note blockquote {
  border-left: 3px solid var(--crimson);
  padding: 10px 0 10px 32px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-style: italic;
  color: var(--ivory);
}
.author-note blockquote p { margin-bottom: 18px; }
.author-note cite { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* ---------- signup ---------- */
.signup {
  background:
    radial-gradient(ellipse 50% 42% at 50% 62%, rgba(226,32,50,.10), transparent 65%),
    transparent;
  text-align: center;
}
.signup h2 { margin-bottom: 18px; }
.signup > .wrap > p { color: var(--muted); margin-bottom: 36px; }
.signup form { display: flex; flex-direction: column; gap: 14px; max-width: 440px; margin: 0 auto; }
.signup input {
  background: rgba(10,13,23,.8); border: 1px solid rgba(226,32,50,.3); border-radius: 2px;
  padding: 15px 18px; color: var(--ivory); font-size: 1rem; font-family: 'Inter', sans-serif;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(226,32,50,.15); }
.signup .btn { border: 1px solid rgba(255, 93, 108, 0.45); }
.form-note { color: var(--crimson-soft); font-size: 0.9rem; min-height: 1.4em; }

/* ---------- footer ---------- */
footer { position: relative; padding: 56px 0 44px; text-align: center; background: transparent; }
footer::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(680px, 78%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,32,50,.38), transparent);
}
.foot-wordmark { letter-spacing: 0.2em; color: #fff; margin-bottom: 14px; }
.social { margin-bottom: 4px; }
.social a { color: var(--ivory); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.social a:hover { color: var(--crimson-soft); }
.copy { color: var(--faint); font-size: 0.82rem; margin-top: 18px; }

/* ---------- Kit embed ---------- */
.kit-form-wrap { max-width: 440px; margin: 0 auto; text-align: left; }
.kit-form-wrap .formkit-form { margin: 0 auto !important; }
.formats-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  section { padding: 72px 0; }
  .nav-inner { padding: 12px 14px; }
  .wordmark { font-size: 0.74rem; letter-spacing: 0.1em; }
  .wordmark::after { margin-left: 8px; width: 5px; height: 5px; }
  .btn-small { padding: 7px 11px; font-size: 0.7rem; letter-spacing: 0.03em; }
  .eyebrow { letter-spacing: 0.22em; text-indent: 0.22em; }
  .hook { max-width: 100%; }
  .author-note blockquote { padding-left: 20px; font-size: 1.2rem; }
}
