/* ===== 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, 100vw);
  margin-inline: auto;

}
.section {
  padding: 64px 0;
  margin: 0 auto;
  justify-content: center;
align-content: center;
}
.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: #000;
  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: 100px;
  height: 100px;
  
  position: relative;
}
.brand .emblem::after {
  position: absolute;
}
.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: center;
}

.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);
  align-content: center;
  margin: 0 auto;
}

.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;
  }
}

/* ===== Gallery / Archive ===== */

/* Your HTML uses .wrap, but your site uses .container.
   This makes .wrap behave like .container so it aligns with everything else. */
.wrap{
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Section header (title + subtitle) */
.section__header{
  margin-bottom: 18px;
}
.section__title{
  margin: 0 0 6px;
}
.section__subtitle{
  margin: 0;
  color: var(--ink-200);
  max-width: 70ch;
}

/* Main layout: featured item + side cards */
.gallery{
  display: grid;
  gap: 24px;
  grid-template-columns: 1.8fr 1fr;
  align-items: center;
}

/* Featured artifact */
.gallery__main{
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(168,196,255,.18);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(168,196,255,.10);
}
.gallery__main img{
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
  justify-content: center;
}
.gallery__main figcaption{
  padding: 16px;
  color: var(--ink-200);
  font-size: 18px;
  line-height: 1.55;
}
.gallery__main figcaption strong{ color: var(--ink-100); }

/* Small “tag” pill */
.tag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(168,196,255,.22);
  background: rgba(143,183,255,.10);
  color: var(--ink-100);
  font-family: "Spectral", serif;
  font-size: 14px;
  letter-spacing: .02em;
}

/* Side column cards */
.gallery__side{
  display: grid;
  gap: 16px;
}
.mini-card{
  border-radius: var(--radius);
  border: 1px solid rgba(168,196,255,.18);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.mini-card h3{
  margin: 0 0 8px;
  font-size: 20px;
}
.mini-card p{
  margin: 0 0 12px;
  color: var(--ink-200);
  font-size: 18px;
}

/* “Sparkle” variant */
.mini-card--sparkle{
  position: relative;
  overflow: hidden;
}
.mini-card--sparkle::before{
  content:"";
  position:absolute; inset:-40%;
  background:
    radial-gradient(closest-side, rgba(168,196,255,.22), transparent 65%);
  filter: blur(2px);
  opacity: .9;
  transform: rotate(20deg);
  pointer-events:none;
}

/* Your HTML uses btn--small / btn--primary / btn--ghost.
   Map them onto your existing button system so they work immediately. */
.btn--small{ padding: 8px 14px; font-size: 16px; }
.btn--primary{ background: linear-gradient(90deg,#1a3360,#244b86); }
.btn--ghost{ background: transparent; }
.btn--ghost:hover{ background: rgba(255,255,255,.06); }

/* Responsive */
@media (max-width: 980px){
  .gallery{ grid-template-columns: 1fr; }
}
/* ===== Under Construction ===== */
.uc{
  display:grid;
  place-items:center;
}

.uc__panel{
  width:min(880px, 92vw);
  padding:28px 22px;
  border-radius:var(--radius);
  border:1px solid rgba(168,196,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:0 0 30px rgba(168,196,255,.10);
  position:relative;
  overflow:hidden;
animation: glow 1s ease-in-out infinite alternate;
}

.uc__panel::before{
  content:"";
  position:absolute; inset:-40%;
  background:
    radial-gradient(closest-side, rgba(143,183,255,.22), transparent 60%),
    radial-gradient(closest-side, rgba(168,196,255,.14), transparent 55%);
  filter:blur(14px);
  opacity:.8;
  transform:rotate(18deg);
  pointer-events:none;
}

.uc__badge{
  width:64px; height:64px;
  rgba(168,196,255,.55);
  box-shadow:0 0 18px rgba(168,196,255,.18);
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  background:rgba(6,16,28,.35);
}

.badge__banner {
width: 100%;
height: 100px;
background-color: #000;
overflow: hidden;
position: relative;
}

.uc__sigil{
  width:38px; height:38px;
  position:relative;
}



.uc__title{
  text-align:center;
  margin:4px 0 10px;
  text-shadow:0 0 18px rgba(168,196,255,.18);
}

.uc__text{
  text-align:center;
  margin:0 auto 16px;
  max-width:70ch;
  color:var(--ink-200);
  font-size:1.05rem;
}

.uc__cta{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}

.uc__divider{
  height:40px;
  margin:18px 0 14px;
  border-radius:999px;
  border:1px solid rgba(168,196,255,.14);
  background:
    linear-gradient(90deg,
      transparent,
      rgba(143,183,255,.18) 18%,
      rgba(232,238,247,.65) 50%,
      rgba(143,183,255,.18) 82%,
      transparent
    );
  opacity:.55;
  filter:blur(0.2px);
  position:relative;
  overflow:hidden;
}

.uc__divider::after{
  content:"";
  position:absolute; inset:-2px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(168,196,255,.10) 35%,
      rgba(232,238,247,.85) 50%,
      rgba(168,196,255,.10) 65%,
      transparent
    );
  transform:translateX(-60%);
  animation: ucSweep 2.8s linear infinite;
  opacity:.85;
}

@keyframes ucSweep{
  to{ transform:translateX(60%); }
}

.uc__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
  color:var(--ink-200);
  max-width:520px;
  margin-inline:auto;
  text-align:center;
  position:relative;
  z-index:1;
}

.uc__fineprint{
  margin:14px 0 0;
  text-align:center;
  font-size:.9rem;
  color:var(--ink-300);
  opacity:.85;
}

/* Responsive */
@media (max-width: 740px){
  .uc__panel{ padding:22px 16px; }
  .uc__text{ font-size:1rem; }
}
@keyframes glow {
  from {
    box-shadow: 
      0 0 10px #fff, 
      0 0 20px #fff, 
      0 0 30px teal, 
      0 0 40px teal;
  }
  to {
    box-shadow: 
      0 0 20px #fff, 
      0 0 30px cyan, 
      0 0 40px cyan, 
      0 0 50px cyan;
  }
}