:root {
  --navy: #061521;
  --navy-2: #0b2435;
  --ink: #13202c;
  --muted: #64717e;
  --paper: #f8f6f0;
  --white: #ffffff;
  --red: #d21f2b;
  --red-dark: #a9141d;
  --gold: #c69643;
  --line: rgba(19, 32, 44, 0.14);
  --shadow: 0 24px 60px rgba(2, 12, 20, 0.28);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(6, 21, 33, 0.92);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(198, 150, 67, 0.75);
  color: var(--gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
}

.brand small {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav a,
.footer-links a {
  text-decoration: none;
}

.desktop-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--gold);
}

.header-cta,
.amazon-button,
.small-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  background: linear-gradient(180deg, #e52b36, var(--red-dark));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(210, 31, 43, 0.26);
  font-weight: 800;
  text-decoration: none;
}

.header-cta {
  padding: 0 18px;
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: var(--navy);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 21, 33, 0.78), rgba(6, 21, 33, 0.9) 44%, rgba(6, 21, 33, 0.72)),
    radial-gradient(circle at 18% 76%, rgba(198, 150, 67, 0.2), transparent 28%),
    linear-gradient(160deg, #07121d 0%, #0c2a3f 52%, #07121d 100%);
}

.hero-bg::after {
  position: absolute;
  right: -8vw;
  bottom: -1px;
  width: 70vw;
  height: 38vh;
  content: "";
  background:
    linear-gradient(to top, rgba(2, 9, 15, 0.9), transparent),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,0.08) 29px 31px, transparent 32px 54px);
  clip-path: polygon(0 84%, 6% 60%, 12% 70%, 16% 35%, 22% 62%, 28% 46%, 32% 75%, 38% 52%, 44% 66%, 50% 30%, 56% 70%, 64% 46%, 71% 76%, 76% 58%, 84% 68%, 92% 42%, 100% 68%, 100% 100%, 0 100%);
  opacity: 0.52;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 620px);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: min(1080px, calc(100% - 36px));
  min-height: 608px;
  margin: 0 auto;
  padding: 42px 0 58px;
}

.cover-stage {
  position: relative;
}

.cover-stage::before {
  position: absolute;
  inset: 5% -8% -5% 12%;
  content: "";
  background: rgba(0, 0, 0, 0.34);
  filter: blur(28px);
}

.cover-stage img {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.release-rank {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(40px, 5vw, 64px);
}

.hero-subtitle {
  max-width: 610px;
  margin: 22px 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}

.hero-copy > p:not(.release-rank, .hero-subtitle) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.amazon-button {
  gap: 12px;
  min-width: 238px;
  padding: 0 24px;
  font-size: 16px;
  text-transform: uppercase;
}

.amazon-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--white);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.text-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(6, 21, 33, 0.96), rgba(7, 31, 48, 0.98)),
    var(--navy);
  color: var(--white);
}

.section-heading {
  width: min(880px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p {
  max-width: 690px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.66);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(30px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(17, 31, 44, 0.08);
}

.book-feature h3,
.archive-item h3 {
  font-size: 26px;
}

.book-feature p,
.archive-item p,
.fiction-card small,
.footer p {
  color: var(--muted);
}

.gh-book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 22px 38px rgba(13, 27, 39, 0.22);
  background: var(--navy);
}

.small-amazon {
  min-height: 40px;
  margin-top: 6px;
  padding: 0 16px;
  font-size: 13px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.archive-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.archive-item img {
  width: 150px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

.archive-item a {
  color: var(--gold);
  font-weight: 800;
}

.fiction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.fiction-card {
  display: grid;
  gap: 10px;
  text-align: center;
  text-decoration: none;
}

.fiction-card:hover strong {
  color: var(--red);
}

.mini-cover {
  display: block;
  width: min(100%, 148px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 18px 30px rgba(13, 27, 39, 0.2);
  background: var(--navy);
}

.fiction-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.fiction-card small {
  font-size: 13px;
  line-height: 1.35;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 40px;
  padding: 46px clamp(18px, 4vw, 56px);
  background: #06111b;
  color: var(--white);
}

.footer h2 {
  font-size: 26px;
}

.footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  align-content: start;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
  }

  .desktop-nav {
    display: none;
  }

  .hero-inner,
  .feature-grid,
  .archive-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 42px;
  }

  .cover-stage {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .fiction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: grid;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    font-size: 40px;
  }

  .book-feature,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .gh-book-cover,
  .archive-item img {
    width: min(230px, 100%);
    margin: 0 auto;
  }
}
