/* ===== Tokens ===== */
:root {
  --bg-900: #06101c; /* deep navy */
  --bg-800: #0a1b2e;
  --bg-700: #0f2946;
  --ink-100: #e8eef7; /* silver-white */
  --ink-200: #c7d8f7;
  --ink-300: #a8c4ff;
  --accent: #8fb7ff;
  --line: #234a7a;
  --radius: 16px;
  --glow: 0 0 16px rgba(168, 196, 255, 0.18), 0 0 42px rgba(120, 170, 255, 0.12);
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-900);
  color: var(--ink-100);
  font-size: 22px;
  align-content: top;
}
body {
  font-family: "Cormorant Garamond", serif;
}
h1,
h2,
h3,
.brand-title {
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
}
h1,
h2,
h3 {
  margin: 0.25rem 0 1rem;
}
p {
  margin: 0.5rem 0 1rem;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}
.section {
  padding: 64px 0;
}
.alt-bg {
  background: linear-gradient(180deg, var(--bg-900), var(--bg-800));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px min(3vw, 24px);
  background: rgba(6, 16, 28, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168, 196, 255, 0.15);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink-100);
}
.brand .emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink-300);
  box-shadow: var(--glow);
  position: relative;
}
.brand .emblem::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--ink-300);
  border-radius: 50%;
}
.brand-title {
  font-weight: 800;
  font-size: 16px;
}
.brand-sub {
  display: block;
  font-family: "Spectral", serif;
  color: var(--ink-200);
  font-size: 16px;
  opacity: 0.9;
}
.nav a {
  color: var(--ink-200);
  text-decoration: none;
  margin-left: 20px;
  font-family: "Spectral", serif;
}
.nav a:hover {
  color: #fff;
}

/* Hero */
.hero {
  /* Use background properties to add and style the image */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
}
/* Soften overlay shading */
.hero-media {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lower and soften the text glow */
.hero-title {
  text-shadow: 0 0 14px rgba(168, 196, 255, 0.25),
    0 0 32px rgba(120, 170, 255, 0.15);
}
.hero-inner {
  position: relative;
  text-align: center;
  padding: 48px 16px;
}
.hero-tag {
  max-width: 900px;
  margin: 10px auto 22px;
  color: var(--ink-200);
  font-size: 22px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Spectral", serif;
  transition: 0.2s transform ease, 0.2s;
  border: 1px solid rgba(168, 196, 255, 0.45);
  color: #fff;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(90deg, #1a3360, #244b86);
}
.btn-ghost {
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Poster + text */
.poster {
  max-width: 600px;
  align-self: center;
  align-items: center;
  align-content: center;
  margin: 0 auto 16px; /* centers it */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 196, 255, 0.15);
  border-radius: var(--radius);
  padding: 14px;
}

.series-blurb {
  font-size: 30px;
  color: var(--ink-200);
  max-width: 600px;
  text-align: center;
  margin: auto;
  padding-bottom: 30px;
  align-content: center;
}

/* Books */
.h-section {
  font-size: 40px;
}
.books-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 100%;
}
.book {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 196, 255, 0.15);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.book h3 {
  font-size: 20px;
}
.book p {
  font-size: 18px;
  color: var(--ink-200);
}
.book img {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(168, 196, 255, 0.25);
}
.book .btn {
  margin-top: auto;
}

/* Characters strip */
.lede {
  max-width: 900px;
  color: var(--ink-200);
  font-size: 20px;
}
.faces {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.faces img {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top; /* default for all */
  border: 1px solid rgba(168, 196, 255, 0.25);
}

/* override for the first image only */
.faces__img--bottom {
  object-fit: fill;
}

/* Lore callout */
.callout {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(168, 196, 255, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
}

/* CTA + form */
.ctas {
  display: grid;
  gap: 24px;
  grid-template-columns: 2fr 1.2fr;
  align-items: start;
}
.signup {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(168, 196, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.signup input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1e34;
  color: #fff;
  font-family: "Spectral", serif;
}
.form-note {
  font-size: 16px;
  color: var(--ink-200);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 28px min(3vw, 24px);
  border-top: 1px solid rgba(168, 196, 255, 0.15);
  background: var(--bg-900);
}
.site-footer nav a {
  color: var(--ink-200);
  text-decoration: none;
  margin-left: 16px;
}
.site-footer nav a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .nav {
    display: none;
  }
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ctas {
    grid-template-columns: 1fr;
  }
  .faces img {
    width: 96px;
    height: 96px;
  }
}
@media (max-width: 440px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Add-ons (safe + minimal) ===== */

/* Makes the hero background feel like the covers: darker edges + silver focus */

/* Slightly nicer spacing when books wrap */
.books-grid {
  align-items: start;
}

/* Optional: Keep book titles from jumping in height too much */
.book h3 {
  min-height: 2.6em;
}

/* Optional: Make CTA section breathe a little on wide screens */
.ctas {
  gap: 32px;
}



.faces img {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 1px solid rgba(168, 196, 255, 0.25);
}

.faces img:first-child {
  object-position: 50% 50% !important;
}

/* ===== Series: poster + blurb side-by-side ===== */
.series {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 34px;
  align-items: center;
}

.series .poster {
  max-width: 420px; /* keeps it from getting huge */
  width: 100%;
  margin: 0; /* important: remove auto-centering for grid */
}

.series .poster img {
  width: 100%;
  height: auto;
  display: block;
}

.series__text .hero-ctas {
  justify-content: flex-start;
}

/* Responsive: stack on smaller screens */
@media (max-width: 820px) {
  .series {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .series__text .hero-ctas {
    justify-content: center;
  }
}
/* ===== About the Author ===== */
.author {
  display: grid;
  gap: 28px;
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.author__media {
  border-radius: var(--radius);
  border: 1px solid rgba(168, 196, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 18px rgba(168, 196, 255, 0.1);
  padding: 14px;
}

.author__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(168, 196, 255, 0.22);
}

.author__content p {
  color: var(--ink-200);
  max-width: 70ch;
}

.author__lede {
  font-size: 1.08rem;
}

.author__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 860px) {
  .author {
    grid-template-columns: 1fr;
  }
  .author__media {
    width: min(420px, 100%);
    margin-inline: auto;
  }
}

.divider--glass {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(6, 16, 28, 0.2),
    rgba(143, 183, 255, 0.12),
    rgba(6, 16, 28, 0.2)
  );
  backdrop-filter: blur(6px);
  border: 1px solid rgba(143, 183, 255, 0.15);
  box-shadow: 0 0 18px rgba(143, 183, 255, 0.08);
  margin: 52px 0;
}

/* NEW: particles ABOVE overlay but BELOW text */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;

  /* 3 layers of glowing sky-blue particles */
  background-image: radial-gradient(
      2px 2px at 12% 22%,
      rgba(120, 200, 255, 0.95) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.5px 1.5px at 32% 68%,
      rgba(120, 200, 255, 0.75) 60%,
      transparent 62%
    ),
    radial-gradient(
      2.5px 2.5px at 72% 38%,
      rgba(180, 230, 255, 0.9) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.5px 1.5px at 88% 72%,
      rgba(120, 200, 255, 0.8) 60%,
      transparent 62%
    ),
    radial-gradient(
      2px 2px at 55% 18%,
      rgba(120, 200, 255, 0.85) 60%,
      transparent 62%
    ),
    radial-gradient(
      2px 2px at 18% 78%,
      rgba(120, 200, 255, 0.6) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.5px 1.5px at 44% 40%,
      rgba(180, 230, 255, 0.55) 60%,
      transparent 62%
    ),
    radial-gradient(
      2.5px 2.5px at 66% 82%,
      rgba(120, 200, 255, 0.65) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.25px 1.25px at 76% 12%,
      rgba(180, 230, 255, 0.5) 60%,
      transparent 62%
    ),
    radial-gradient(
      2px 2px at 92% 30%,
      rgba(120, 200, 255, 0.6) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.75px 1.75px at 8% 52%,
      rgba(120, 200, 255, 0.55) 60%,
      transparent 62%
    ),
    radial-gradient(
      2.25px 2.25px at 24% 10%,
      rgba(180, 230, 255, 0.6) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.5px 1.5px at 58% 58%,
      rgba(120, 200, 255, 0.5) 60%,
      transparent 62%
    ),
    radial-gradient(
      2.5px 2.5px at 80% 46%,
      rgba(180, 230, 255, 0.65) 60%,
      transparent 62%
    ),
    radial-gradient(
      1.25px 1.25px at 96% 88%,
      rgba(120, 200, 255, 0.5) 60%,
      transparent 62%
    );

  /* Glow effect */
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.65))
    drop-shadow(0 0 14px rgba(120, 200, 255, 0.35));

  animation: particlesFloat 18s linear infinite,
    particlesTwinkle 4.2s ease-in-out infinite;
  will-change: transform, opacity;
}

/* keep your text above particles */
.hero-inner {
  position: relative;
  z-index: 3;
}

/* floating drift */
@keyframes particlesFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2.5%, -3%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* subtle twinkle */
@keyframes particlesTwinkle {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-particles {
    animation: none !important;
  }
}




/* Hide hero on mobile */
@media (max-width: 740px) {
  .hero {
    display: none !important;
  }
}