:root {
  --ink: #f7f4ea;
  --muted: #c9c1da;
  --paper: #ffffff;
  --space: #120d22;
  --space-2: #20163b;
  --line: rgba(255, 255, 255, 0.16);
  --gold: #ffce00;
  --cyan: #58d6ff;
  --rose: #e85a8f;
  --card: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --rail: 1440px;
  --hero-measure: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--gold);
  color: #16110a;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(18, 13, 34, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  text-decoration: none;
}

.brand img {
  width: 174px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 206, 0, 0.55);
  border-radius: 6px;
  background: var(--gold);
  color: #16110a;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 206, 0, 0.2);
}

.button.secondary,
.text-link {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 96px clamp(20px, 5vw, 72px) 70px;
  background:
    linear-gradient(90deg, rgba(18, 13, 34, 0.95) 0%, rgba(18, 13, 34, 0.78) 44%, rgba(18, 13, 34, 0.32) 100%),
    url("hero-publishing.jpg") center right / cover no-repeat;
}

.hero.compact {
  min-height: 56vh;
}

.hero-content {
  width: min(var(--hero-measure), 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 7rem);
  max-width: var(--hero-measure);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin: 0;
}

.lede {
  max-width: 920px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.band {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.band > .section-head,
.band > .grid,
.band > .book-grid,
.band > .actions,
.band > .terms {
  width: min(var(--rail), 100%);
  margin-left: auto;
  margin-right: auto;
}

.band.alt {
  background: #f5f0e4;
  color: #171022;
}

.band.deep {
  background: #0c0c14;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.alt .section-head p,
.alt .muted,
.alt .card p,
.alt .list p {
  color: #4b415e;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.choice {
  position: relative;
}

.choice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--gold);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card.pad {
  padding: clamp(22px, 3vw, 34px);
}

.alt .card {
  border-color: rgba(23, 16, 34, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(34, 27, 48, 0.12);
}

.package {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
}

.package.featured {
  border-color: rgba(255, 206, 0, 0.55);
}

.price {
  color: var(--gold);
  font-size: 2.4rem;
  font-weight: 820;
}

.list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.alt .list li {
  border-top-color: rgba(23, 16, 34, 0.12);
}

.list strong {
  display: block;
  margin-bottom: 3px;
}

.muted {
  color: var(--muted);
}

.quote {
  padding-left: 24px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.alt .quote {
  color: #171022;
}

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

.book {
  display: grid;
  gap: 18px;
  align-content: start;
}

.book-cover {
  aspect-ratio: 5 / 8;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #0a0911;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover.wide {
  aspect-ratio: 4 / 3;
}

.placeholder-cover {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 206, 0, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 214, 255, 0.18), transparent 40%),
    linear-gradient(315deg, rgba(232, 90, 143, 0.18), transparent 42%),
    #141024;
  color: var(--ink);
  text-align: center;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 206, 0, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-actions .text-link {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.92rem;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 780;
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(var(--rail), 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 206, 0, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 206, 0, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.08);
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.cta-band .actions {
  margin-top: 0;
}

.terms {
  display: grid;
  gap: 28px;
  max-width: 1120px;
}

.terms section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.terms h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 44px clamp(20px, 5vw, 72px);
  background: #08070d;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

  .nav {
    flex-wrap: wrap;
  }

  .section-head,
  .grid.two,
  .grid.three,
  .grid.four,
  .book-grid,
  .cta-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
    background-position: center;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 146px;
  }

  .nav {
    gap: 12px 16px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 3rem;
  }

  .actions,
  .book-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link {
    width: 100%;
  }
}
