/* ================================================
   GUARDIANS IN THE GALE — Premium Stylesheet
   Author: Siddhant Kumar | Design: siddhant
   ================================================ */

/* ── TOKENS ──────────────────────────────────── */
:root {
  --navy:        #0a0e1a;
  --navy-mid:    #0d1526;
  --navy-light:  #111d35;
  --indigo:      #1a2545;
  --indigo-deep: #141c38;
  --blue-mist:   #1e2f50;
  --cream:       #f0e9d6;
  --cream-soft:  #e8dfc8;
  --cream-faint: #d4c9b0;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-bright: #f5d98b;
  --gold-dim:    #8a6a28;
  --white:       #ffffff;
  --text-body:   #c4b99a;
  --text-muted:  #8a8073;

  --font-display: 'Cinzel', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'EB Garamond', serif;
  --font-ui:      'Lato', sans-serif;

  --radius:      4px;
  --radius-lg:   8px;
  --transition:  0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s ease;

  --max-width:   1200px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

/* ── RESET / BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── CONTAINER ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* ── SECTION COMMON ───────────────────────────── */
.section {
  position: relative;
  padding-block: var(--section-pad);
  overflow: hidden;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 2.5rem;
  line-height: 1.15;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: var(--text-body);
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

/* ── REVEAL ANIMATIONS ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(201,168,76,0.25);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(201,168,76,0.45);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  font-size: 0.75rem;
}
.btn--outline:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  transition: background var(--transition-fast), padding var(--transition-fast);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-block: 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.nav__logo-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.nav__links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--transition-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition-fast);
}
.nav__link:hover { color: var(--gold-light); }
.nav__link:hover::after { width: 100%; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--cream);
  transition: all var(--transition-fast);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Cloud layers */
.hero__clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.06;
}
.hero__cloud--1 {
  width: 60vw; height: 30vh;
  background: radial-gradient(ellipse, #4a6fa5 0%, transparent 70%);
  top: 10%; left: -10%;
  animation: cloudDrift1 28s ease-in-out infinite alternate;
}
.hero__cloud--2 {
  width: 50vw; height: 25vh;
  background: radial-gradient(ellipse, #6a4fa0 0%, transparent 70%);
  top: 30%; right: -5%;
  animation: cloudDrift2 34s ease-in-out infinite alternate;
}
.hero__cloud--3 {
  width: 70vw; height: 20vh;
  background: radial-gradient(ellipse, #2a4a7a 0%, transparent 70%);
  bottom: 15%; left: 10%;
  animation: cloudDrift3 22s ease-in-out infinite alternate;
}

@keyframes cloudDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(5%,3%) scale(1.08); } }
@keyframes cloudDrift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-4%,5%) scale(1.12); } }
@keyframes cloudDrift3 { from { transform: translate(0,0); } to { transform: translate(3%,-2%) scale(1.05); } }

/* Silhouette */
.hero__silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20vh;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,14,26,0.9) 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0,200 L0,160 Q50,130 80,150 Q120,80 150,120 Q180,60 200,100 Q240,40 260,90 Q290,50 310,80 Q340,20 360,70 L380,60 Q400,30 420,65 Q450,10 480,50 Q510,20 540,60 Q570,15 600,55 Q630,25 660,65 Q690,30 720,70 Q750,40 780,75 Q810,50 840,85 Q870,60 900,90 Q930,70 960,100 Q990,80 1020,110 Q1060,90 1090,120 Q1120,105 1150,130 Q1170,140 1200,160 L1200,200 Z' fill='rgba(10,14,26,0.5)'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  padding-top: 6rem;
}

/* Book cover */
.hero__book-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-18px) rotate(0.5deg); }
}

.hero__book-frame {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(201,168,76,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero__book-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__book-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  background: linear-gradient(135deg, var(--indigo-deep), var(--blue-mist));
  color: var(--gold);
  text-align: center;
  padding: 2rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.hero__book-placeholder-icon { font-size: 2.5rem; opacity: 0.4; }

.hero__book-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.18) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Hero text */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero__title {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero__title-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-top: 0.6rem;
}

.hero__author {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.1em;
  color: var(--text-body);
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}
.hero__author span { color: var(--cream); }

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__scroll-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   ABOUT THE BOOK
============================================================ */
.about { background: var(--navy-mid); }

.about__deco {
  position: absolute;
  top: 0; right: 0;
  width: 40vw; height: 60vh;
  background: radial-gradient(ellipse at top right, rgba(26,37,69,0.7) 0%, transparent 70%);
  pointer-events: none;
}

.about__divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 3rem;
}

.about__body {
  max-width: 780px;
}

.about__body p {
  margin-bottom: 1.8rem;
  color: var(--text-body);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.about__lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important;
  color: var(--cream) !important;
  font-style: italic;
}

.about__quote {
  margin-top: 3rem;
  padding: 2rem 0 2rem 2rem;
  border-left: 2px solid var(--gold-dim);
}

.about__quote blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--gold-light);
  line-height: 1.7;
}

/* ============================================================
   FEATURED BOOK
============================================================ */
.featured {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--indigo-deep) 100%);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.featured__cover-wrap {
  display: flex;
  justify-content: center;
}

.featured__cover-frame {
  position: relative;
  width: min(300px, 75vw);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: visible;
  animation: bookFloat 7s ease-in-out infinite 1s;
}

.featured__cover-img,
.featured__cover-placeholder {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,168,76,0.18);
}

.featured__cover-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--indigo-deep), var(--blue-mist));
  color: var(--gold-dim);
  font-size: 1.5rem;
  height: 100%;
}

.featured__cover-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 65%);
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
}

.featured__info { display: flex; flex-direction: column; gap: 1rem; }

.featured__tagline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
}

.featured__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gold-light);
  margin-top: -0.4rem;
}

.featured__author {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.featured__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.featured__details li {
  display: flex;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-body);
}

.featured__detail-label {
  color: var(--text-muted);
  min-width: 70px;
  letter-spacing: 0.06em;
}

.featured__desc {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.9;
}

/* ============================================================
   DEDICATION
============================================================ */
.dedication {
  background: var(--navy);
  text-align: center;
}

.dedication__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(26,37,69,0.6) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(201,168,76,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.dedication__container { max-width: 680px; }

.dedication__ornament {
  font-size: 1.2rem;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 2rem;
  letter-spacing: 0.5em;
}

.dedication__body {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 2;
  color: var(--cream-soft);
  font-style: italic;
}

.dedication__body p { margin-bottom: 1.5rem; }

.dedication__final {
  font-family: var(--font-display) !important;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem) !important;
  font-style: normal !important;
  color: var(--gold-light) !important;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}

/* ============================================================
   PREFACE
============================================================ */
.preface { background: var(--navy-mid); }

.preface__divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 3rem;
}

.preface__pull-quote {
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  background: rgba(201,168,76,0.03);
  text-align: center;
}

.preface__pull-quote blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--gold-light);
  line-height: 1.7;
  max-width: 700px;
  margin-inline: auto;
}

.preface__body {
  max-width: 780px;
}

.preface__body p {
  margin-bottom: 1.8rem;
  color: var(--text-body);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

/* ============================================================
   ACKNOWLEDGEMENTS
============================================================ */
.acknowledgements {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}

.ack__divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 3rem;
}

.ack__body {
  max-width: 780px;
}

.ack__body p {
  margin-bottom: 1.8rem;
  color: var(--text-body);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

/* ============================================================
   POEMS PREVIEW
============================================================ */
.poems {
  background: var(--navy);
  position: relative;
}

.poems__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,37,69,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.poems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.poem-card {
  background: linear-gradient(145deg, rgba(26,37,69,0.6) 0%, rgba(14,22,40,0.8) 100%);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.poem-card:hover {
  border-color: rgba(201,168,76,0.28);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(201,168,76,0.06);
}

.poem-card:hover::before { opacity: 1; }

.poem-card__number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 0.7rem;
}

.poem-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.poem-card__divider {
  width: 30px; height: 1px;
  background: var(--gold-dim);
  margin-bottom: 1.2rem;
  opacity: 0.5;
}

.poem-card__excerpt {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.poem-card__tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  padding: 0.25rem 0.7rem;
}

/* ============================================================
   REVIEWS / CAROUSEL
============================================================ */
.reviews {
  background: var(--navy-mid);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel__slide {
  min-width: 100%;
  padding: 0.5rem;
}

.review-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  background: linear-gradient(145deg, rgba(26,37,69,0.5) 0%, rgba(14,22,40,0.7) 100%);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 860px;
  margin-inline: auto;
}

.review-card__img-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  flex-shrink: 0;
  background: var(--indigo);
}

.review-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.review-card__stars {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.review-card__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--cream-soft);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.review-card__name {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold-light);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}

.carousel__btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

.carousel__dots {
  display: flex;
  gap: 0.7rem;
}

.carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(201,168,76,0.25);
  border: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel__dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ============================================================
   GALLERY
============================================================ */
.gallery { background: var(--navy); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--indigo-deep);
  aspect-ratio: 4/3;
}

.gallery__item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }

.gallery__img-wrap {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  min-height: 160px;
}

.gallery__img-wrap--empty {
  background: linear-gradient(135deg, var(--indigo-deep), var(--blue-mist));
}

.gallery__img-wrap--empty::after {
  content: 'Image Placeholder';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.gallery__item:hover .gallery__img { transform: scale(1.06); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery__overlay span {
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 300;
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,8,16,0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox__img-wrap {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.lightbox__img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--cream);
  font-size: 1.2rem;
  padding: 0.8rem;
  transition: color var(--transition-fast);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--gold-light); background: rgba(0,0,0,0.7); }

/* ============================================================
   AUTHOR
============================================================ */
.author { background: var(--indigo-deep); }

.author__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,37,69,0.7) 0%, transparent 70%);
  pointer-events: none;
}

.author__container { position: relative; z-index: 1; }

.author__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.author__portrait-frame {
  position: relative;
  width: min(220px, 55vw);
  height: min(280px, 70vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  flex-shrink: 0;
}

.author__portrait {
  width: 100%; height: 100%;
  object-fit: cover;
}

.author__portrait-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo), var(--blue-mist));
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}

.author__portrait-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  z-index: -1;
}

.author__bio { display: flex; flex-direction: column; gap: 1.2rem; }

.author__bio-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
}

.author__bio p {
  color: var(--text-body);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
}

.author__visit-btn { margin-top: 1rem; align-self: flex-start; }

/* ============================================================
   CONTACT
============================================================ */
.contact {
  background: var(--navy-mid);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(201,168,76,0.4);
  background: rgba(255,255,255,0.05);
}

.contact__success {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.contact__info { padding-top: 1rem; }
.contact__info-block { margin-bottom: 2.5rem; }

.contact__info-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-bottom: 1rem;
}

.contact__info-block p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact__social { display: flex; flex-direction: column; gap: 0.8rem; }

.contact__social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.contact__social-link:hover { color: var(--gold-light); }

.contact__social-icon {
  font-size: 1rem;
  color: var(--gold-dim);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.1);
  position: relative;
  overflow: hidden;
}

.footer__stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(201,168,76,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(201,168,76,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 30%, rgba(201,168,76,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(201,168,76,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 15%, rgba(201,168,76,0.3) 0%, transparent 100%);
  pointer-events: none;
}

.footer__container {
  padding-block: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.footer__brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer__book-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--cream);
}

.footer__book-sub {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.footer__author-name {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 2rem;
  margin-bottom: 2.5rem;
}

.footer__nav a {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__nav a:hover { color: var(--gold-light); }

.footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.15), transparent);
  margin-bottom: 2rem;
}

.footer__copy {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold-dim);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__book-wrap { order: -1; }
  .hero__tagline { border-left: none; padding-left: 0; text-align: center; }
  .hero__cta { justify-content: center; }

  .featured__grid { grid-template-columns: 1fr; text-align: center; }
  .featured__cover-wrap { margin-inline: auto; }
  .featured__details li { justify-content: center; }

  .author__grid { grid-template-columns: 1fr; text-align: center; }
  .author__portrait-frame { margin-inline: auto; }
  .author__visit-btn { align-self: center; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1) { grid-row: span 1; aspect-ratio: 4/3; }

  .contact__grid { grid-template-columns: 1fr; }

  .review-card { grid-template-columns: 1fr; }
  .review-card__img-wrap { margin-inline: auto; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(3rem, 8vw, 5rem); }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 85vw);
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem 2.5rem;
    transform: translateX(110%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid rgba(201,168,76,0.12);
  }

  .nav__links.open { transform: translateX(0); }

  .nav__link {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  .nav__hamburger { display: flex; z-index: 1001; }

  .nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

  .gallery__grid { grid-template-columns: 1fr 1fr; }

  .poems__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; text-align: center; max-width: 260px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .carousel__btn { display: none; }
  .review-card { padding: 1.5rem; }
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

.footer__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* Centers the image(s) in the lightbox */
.lightbox__img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh; /* Fills the whole screen height */
  padding: 20px; 
  box-sizing: border-box;
  gap: 20px; /* Adds space if two images are side-by-side */
}

/* Forces the image to fit the screen */
.lightbox__img {
  max-width: 100%;
  max-height: 90vh; /* Prevents it from being taller than the screen */
  width: auto;
  height: auto;
  object-fit: contain; /* Keeps the aspect ratio perfect */
}