:root {
  color-scheme: dark;
  --bg: #0d0f0f;
  --panel: #151817;
  --panel-strong: #1e2420;
  --text: #f4efe6;
  --muted: #c8bda8;
  --soft: #8f826c;
  --line: rgba(244, 239, 230, 0.16);
  --gold: #d7ad58;
  --gold-dark: #9f7330;
  --green: #3f6d5a;
  --green-dark: #14251f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(63, 109, 90, 0.26), transparent 34rem),
    linear-gradient(180deg, #0b0d0d 0%, var(--bg) 48%, #111411 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 2rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 15, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(215, 173, 88, 0.5);
  background: linear-gradient(145deg, rgba(215, 173, 88, 0.18), rgba(63, 109, 90, 0.22));
  color: var(--gold);
  font-size: 0.78rem;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

main {
  overflow: hidden;
}

.hero,
.intro,
.books-section,
.prequel-band,
.download-hero,
.return-band {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.58fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: min(760px, calc(100vh - 8rem));
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
}

h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.45rem;
}

.hero-text,
.download-copy p {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--gold);
  color: #16100a;
}

.button.secondary {
  border-color: rgba(215, 173, 88, 0.5);
  color: var(--gold);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-portrait {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.7rem;
}

.hero-portrait img {
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bio-copy p {
  color: var(--muted);
  font-size: 1.12rem;
}

.bio-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.book-card {
  min-width: 0;
}

.cover-link {
  display: block;
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 0.55rem;
  text-decoration: none;
}

.cover-link img {
  aspect-ratio: 1400 / 2157;
  width: 100%;
  object-fit: cover;
}

.book-card p {
  color: var(--muted);
}

.goodreads-link {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.prequel-band,
.return-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.prequel-band p,
.return-band p {
  max-width: 42rem;
  color: var(--muted);
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: min(760px, calc(100vh - 8rem));
}

.download-cover {
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 0.65rem;
}

.download-cover img {
  width: 100%;
}

.download-copy h1 {
  max-width: 10ch;
}

.download-copy .button {
  margin-top: 1rem;
}

.privacy-page {
  margin: 0 auto;
  max-width: 900px;
  min-height: calc(100vh - 11rem);
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}

.privacy-page h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.privacy-copy {
  max-width: 48rem;
}

.privacy-copy p {
  color: var(--muted);
  font-size: 1.12rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .prequel-band,
  .return-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .download-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-portrait {
    max-width: 22rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }

  .download-cover {
    max-width: 22rem;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.9rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }
}
