/* ============ Reset & base ============ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, figure {
  margin: 0;
}

img {
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  min-height: 100vh;
}

::selection {
  background: rgba(var(--gold-rgb), .3);
}

:root {
  --bg: #0c0a08;
  --bg-alt: #100d0a;
  --ink: #d8d2c6;
  --ink-bright: #f0e9db;
  --ink-soft: #e4dccb;
  --ink-muted: #ece4d4;
  --gold: #d8a058;
  --gold-light: #e8b877;
  --gold-rgb: 216, 160, 88;
  --parchment-rgb: 216, 210, 198;
  --black-rgb: 12, 10, 8;
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-body: 'EB Garamond', Georgia, serif;
}

@keyframes torchflicker {
  0%, 100% { opacity: .85; }
  48% { opacity: 1; }
  52% { opacity: .8; }
  70% { opacity: .95; }
}

/* ============ Shared section header ============ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), .75);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 42px;
  color: var(--ink-muted);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(var(--black-rgb), .35) 0%,
    rgba(var(--black-rgb), .1) 35%,
    rgba(var(--black-rgb), .55) 70%,
    var(--bg) 100%);
}

.hero__content {
  position: relative;
  padding: 0 24px 84px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__sigil {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .45);
  box-shadow: 0 0 32px rgba(var(--gold-rgb), .25);
  margin-bottom: 28px;
}

.hero__kicker {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 2px 16px rgba(0, 0, 0, .6);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.02;
  margin: 0 0 22px;
  color: var(--ink-bright);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .8);
}

.hero__tagline {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  color: rgba(232, 222, 204, .85);
  margin: 0 0 36px;
  max-width: 560px;
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__divider-line {
  height: 1px;
  width: 52px;
  background: linear-gradient(to left, rgba(var(--gold-rgb), .6), transparent);
}

.hero__divider-line--right {
  background: linear-gradient(to right, rgba(var(--gold-rgb), .6), transparent);
}

.hero__status {
  font-size: 15px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  animation: torchflicker 4.5s ease-in-out infinite;
}

/* ============ The books ============ */
.books {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px 20px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.book-card {
  border: 1px solid rgba(var(--parchment-rgb), .12);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card--active {
  border-color: rgba(var(--gold-rgb), .35);
  background: linear-gradient(to bottom, rgba(var(--gold-rgb), .06), rgba(var(--gold-rgb), .015));
}

.book-card__number {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(var(--parchment-rgb), .5);
}

.book-card--active .book-card__number {
  color: var(--gold);
}

.book-card__title {
  font-family: var(--serif-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  color: rgba(240, 233, 219, .8);
}

.book-card--active .book-card__title {
  color: var(--ink-bright);
}

.book-card__desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(var(--parchment-rgb), .55);
}

.book-card--active .book-card__desc {
  color: rgba(var(--parchment-rgb), .75);
}

.book-card__status {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(var(--parchment-rgb), .4);
}

.book-card--active .book-card__status {
  color: var(--gold);
}

/* ============ Notify (pre-launch YouTube CTA) ============ */
.notify {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.notify__card {
  border: 1px solid rgba(var(--gold-rgb), .3);
  background: linear-gradient(to bottom, rgba(var(--gold-rgb), .05), rgba(var(--gold-rgb), .01));
  padding: 44px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.notify__lead {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--ink-soft);
}

.notify__lead em {
  color: var(--ink-bright);
}

.notify__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 14px 40px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  font-family: var(--serif-body);
  font-size: 16px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}

.notify__cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.notify__hint {
  font-size: 15px;
  color: rgba(var(--parchment-rgb), .55);
}

/* ============ Buy (shown once the book launches) ============ */
.buy {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.buy__card {
  border: 1px solid rgba(var(--gold-rgb), .5);
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--gold-rgb), .1), rgba(var(--gold-rgb), .02) 70%);
  padding: 52px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.buy__eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
}

.buy__title {
  font-family: var(--serif-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--ink-bright);
}

.buy__cta {
  display: inline-block;
  margin-top: 6px;
  padding: 16px 44px;
  border: 1px solid var(--gold);
  color: var(--bg);
  background: var(--gold);
  font-family: var(--serif-body);
  font-size: 17px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}

.buy__cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ============ Synopsis ============ */
.synopsis {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.synopsis__divider {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-bottom: 40px;
}

.synopsis__divider-line {
  height: 1px;
  width: 64px;
  background: rgba(var(--gold-rgb), .35);
}

.synopsis__dot {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: rgba(var(--gold-rgb), .6);
}

.synopsis__lead {
  font-family: var(--serif-display);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.synopsis__body {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(var(--parchment-rgb), .7);
}

/* ============ Gallery cards (characters + world) ============ */
.characters {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--parchment-rgb), .1);
}

.gallery-card__img {
  width: 100%;
  height: auto; /* the width/height attributes otherwise force 768px and defeat aspect-ratio */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.04);
}

/* Art-directed crop anchors — set to each subject's x-position in the artwork
   so a cover-crop of any shape stays framed on the character. */
.gallery-card__img--focus-left {
  object-position: 32% center;
}

.gallery-card__img--focus-right {
  object-position: 59% center;
}

.gallery-card__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 20px 16px;
  background: linear-gradient(to top, rgba(var(--black-rgb), .92), transparent);
  pointer-events: none;
}

.gallery-card__name {
  font-family: var(--serif-display);
  font-size: 25px;
  font-weight: 500;
  color: var(--ink-bright);
}

.gallery-card__role {
  font-size: 14.5px;
  font-style: italic;
  color: rgba(var(--gold-rgb), .85);
}

/* ============ World band ============ */
.world-band {
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt) 20%, var(--bg-alt) 80%, var(--bg));
  padding: 100px 0 110px;
}

.world-band__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Music ============ */
.music {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 24px;
}

.music__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.music__image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), .25);
}

.music__image img {
  width: 100%;
  height: auto; /* see .gallery-card__img */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.music__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.music__eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), .75);
}

.music__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 40px;
  color: var(--ink-muted);
  line-height: 1.1;
}

.music__text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(var(--parchment-rgb), .75);
}

.music__cta {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 36px;
  border: 1px solid rgba(var(--gold-rgb), .6);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
}

.music__cta:hover {
  background: rgba(var(--gold-rgb), .12);
  border-color: var(--gold);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid rgba(var(--parchment-rgb), .08);
  padding: 56px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.site-footer__sigil {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: .7;
}

.site-footer__title {
  font-family: var(--serif-display);
  font-size: 22px;
  color: var(--ink-soft);
}

.site-footer__link {
  font-size: 15px;
  letter-spacing: .08em;
  color: rgba(var(--gold-rgb), .8);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.site-footer__copy {
  font-size: 15px;
  color: rgba(var(--parchment-rgb), .5);
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .hero__status {
    animation: none;
  }

  .gallery-card__img {
    transition: none;
  }

  .gallery-card:hover .gallery-card__img {
    transform: none;
  }

  .notify__cta,
  .music__cta {
    transition: none;
  }
}
