:root {
  --ink: #0a1721;
  --navy: #10283f;
  --ridge: #1f4d3b;
  --evergreen: #17372d;
  --paper: #f5efe3;
  --vellum: #fff9ed;
  --mist: #d7dfd8;
  --gold: #c7a24a;
  --ember: #c95838;
  --line: rgba(16, 40, 63, 0.16);
  --shadow: 0 24px 70px rgba(10, 23, 33, 0.18);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The .new-release/.featured-titles full-bleed bands below use 100vw to
     break out of the centered .section container. 100vw is measured
     against the viewport including the scrollbar gutter, so on any
     desktop browser that reserves scrollbar space it's a few pixels wider
     than the page's real width - that's what was producing the bottom
     scrollbar. Clipping horizontal overflow at the root is the standard
     fix for this specific, understood side effect of the 100vw full-bleed
     technique (see the ::before rules around line ~300 below); it is not
     masking a layout bug elsewhere. */
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(245, 239, 227, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.home-banner {
  position: sticky;
  top: var(--header-height);
  z-index: -1;
  width: 100%;
  aspect-ratio: 2560 / 1100;
  max-height: 100vh;
  background-color: var(--ink);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-statement {
  background:
    linear-gradient(135deg, rgba(201, 88, 56, 0.12), transparent 36%),
    var(--navy);
  color: white;
}

.statement-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}

.statement-inner h1 {
  margin-bottom: 34px;
  font-size: clamp(2.25rem, 6vw, 5.7rem);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) center / cover no-repeat;
  content: "";
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 27, 0.78), rgba(7, 17, 27, 0.38) 52%, rgba(7, 17, 27, 0.16)),
    linear-gradient(0deg, rgba(7, 17, 27, 0.8), rgba(7, 17, 27, 0.06) 52%);
  content: "";
}

.hero-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 72px;
  color: white;
}

.mark {
  width: 110px;
  height: 110px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow);
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  font-size: clamp(3rem, 8vw, 7.6rem);
}

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

h3 {
  font-size: 1.55rem;
}

.hero p {
  max-width: 720px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.button.secondary {
  margin-left: 12px;
  background: transparent;
  color: white;
}

.button.small {
  min-height: 40px;
  padding-inline: 18px;
}

.text-link {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 118px) 0;
}

.section.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.lede {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 1.18rem;
  color: rgba(10, 23, 33, 0.75);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.new-release {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 54px);
}

.new-release::before,
.featured-titles::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--paper);
}

.featured-titles {
  position: relative;
  padding-top: clamp(28px, 4vw, 54px);
}

.universe-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.universe-copy .lede {
  margin-bottom: 28px;
}

.universe-logo {
  justify-self: end;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 35% 20%, rgba(199, 162, 74, 0.32), transparent 34%),
    linear-gradient(145deg, var(--ink), var(--navy));
  box-shadow: var(--shadow);
}

.universe-logo img {
  width: min(100%, 320px);
  height: auto;
}

.release-copy .lede {
  margin-bottom: 28px;
}

.release-audio {
  grid-column: 1 / -1;
  margin-top: 8px;
  text-align: center;
}

.release-cover {
  justify-self: end;
  width: min(100%, 340px);
  padding: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 88, 56, 0.3), transparent 34%),
    linear-gradient(145deg, var(--navy), var(--evergreen));
  box-shadow: var(--shadow);
}

.release-cover img {
  width: 100%;
  aspect-ratio: 2 / 3.05;
  object-fit: cover;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.feature-book,
.book-card,
.about-panel,
.quote-panel {
  background: var(--vellum);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(10, 23, 33, 0.08);
}

.feature-book {
  display: grid;
  grid-template-rows: auto 1fr;
}

.feature-book .cover-link {
  padding: 22px 22px 0;
  background: linear-gradient(145deg, var(--navy), var(--evergreen));
}

.feature-book img {
  width: min(78%, 280px);
  aspect-ratio: 2 / 3.05;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.feature-book div {
  padding: 24px;
}

.feature-book p:last-of-type {
  color: rgba(10, 23, 33, 0.74);
}

.band {
  background: var(--navy);
  color: white;
}

.band .section {
  padding-block: clamp(56px, 8vw, 94px);
}

.band p {
  color: rgba(255, 255, 255, 0.78);
}

.youtube-strip {
  border-top: 1px solid rgba(16, 40, 63, 0.12);
  background: var(--vellum);
}

.youtube-strip-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.youtube-strip p {
  margin: 0;
  color: rgba(10, 23, 33, 0.82);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.mini-stat {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}

.mini-stat strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 23vh;
  display: grid;
  place-items: center start;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.page-hero .section {
  padding-block: 48px 48px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 5.7rem);
}

.books-hero {
  min-height: 15.5vh;
  background: var(--navy);
}

.books-hero .section {
  padding-block: 32px 32px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1.02;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.about-panel,
.quote-panel {
  padding: clamp(24px, 4vw, 42px);
}

.quote-panel {
  border-left: 6px solid var(--gold);
}

.quote-panel p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--vellum);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter.is-active,
.filter:hover {
  background: var(--navy);
  color: white;
}

.book-list {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.book-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 42px);
  padding: clamp(20px, 4vw, 34px);
  scroll-margin-top: 92px;
}

.book-cover {
  align-self: start;
  background: linear-gradient(145deg, var(--navy), var(--evergreen));
  padding: 16px;
}

.book-cover img {
  width: 100%;
  aspect-ratio: 2 / 3.05;
  object-fit: cover;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--ridge);
  font-weight: 800;
}

.book-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.book-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.book-meta dt {
  color: rgba(10, 23, 33, 0.54);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.source-note {
  color: rgba(10, 23, 33, 0.54);
  font-size: 0.9rem;
}

.site-footer {
  padding: 42px clamp(18px, 4vw, 58px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.legal-page .about-panel {
  max-width: 860px;
}

.legal-page h2 {
  margin-top: 30px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 30px rgba(10, 23, 33, 0.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0;
}

.cookie-banner-inner p {
  margin: 0;
  max-width: 760px;
  font-size: 0.94rem;
}

.cookie-banner-inner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .button {
    flex: 1;
  }

  .youtube-strip-inner {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 880px) {
  .site-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 78vh;
  }

  .section.split,
  .new-release,
  .universe-feature,
  .feature-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .release-cover {
    justify-self: start;
  }

  .universe-logo {
    justify-self: start;
  }

  .book-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .book-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand span {
    max-width: 220px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .button.secondary {
    margin: 12px 0 0;
  }

  .book-card {
    grid-template-columns: 1fr;
  }

  .book-cover {
    width: min(230px, 100%);
  }
}
