:root {
  color-scheme: dark;
  --ink: #0d0d0f;
  --ink-soft: #17191c;
  --paper: #f3ead8;
  --paper-muted: #cfc4ad;
  --ember: #a83a32;
  --gold: #d8a64d;
  --teal: #245c6b;
  --line: rgba(243, 234, 216, 0.16);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(13, 13, 15, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

nav a {
  color: var(--paper-muted);
  text-decoration: none;
}

nav .merch-link {
  text-transform: none;
}

nav a:focus-visible,
nav a:hover,
.brand:focus-visible,
.brand:hover {
  color: var(--paper);
  outline: none;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: end;
  padding: 124px clamp(20px, 5vw, 72px) clamp(52px, 9vh, 92px);
  background:
    linear-gradient(90deg, rgba(13, 13, 15, 0.92), rgba(13, 13, 15, 0.55) 48%, rgba(13, 13, 15, 0.22)),
    linear-gradient(0deg, rgba(13, 13, 15, 0.86), rgba(13, 13, 15, 0.08) 44%),
    url("assets/where-do-balloons-go-cover.jpg") center 30% / cover no-repeat;
}

.hero-copy {
  max-width: 780px;
}

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

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 13vw, 10.6rem);
  line-height: 0.86;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(1.12rem, 2vw, 1.65rem);
  line-height: 1.4;
}

.intro-band,
.books-section,
.catalogue-section,
.author-band,
.rights-section {
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.intro-band {
  background: var(--paper);
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 80px);
  max-width: 1160px;
}

.intro-grid p,
.author-copy p,
.rights-section p {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  line-height: 1.56;
}

.books-section {
  background:
    linear-gradient(180deg, var(--ink), var(--ink-soft) 58%, #101615);
}

.section-head {
  max-width: 1040px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1.22fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.book {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  background: rgba(243, 234, 216, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 70px var(--shadow);
}

.book img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #111;
}

.book-wide img {
  object-position: center 20%;
}

.book-copy {
  padding: clamp(22px, 3vw, 36px);
}

.book-copy p:last-child {
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: 1.03rem;
  line-height: 1.58;
}

.catalogue-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 74px);
  background: #111416;
  border-top: 1px solid var(--line);
}

.catalogue-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.catalogue-links a {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(243, 234, 216, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalogue-links a:focus-visible,
.catalogue-links a:hover {
  border-color: var(--gold);
  outline: none;
}

.catalogue-links span:first-child {
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.catalogue-links span:last-child {
  color: var(--paper-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-band {
  background:
    linear-gradient(90deg, rgba(36, 92, 107, 0.28), transparent 48%),
    var(--paper);
  color: var(--ink);
}

.author-shell {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 6vw, 84px);
  max-width: 1180px;
  align-items: start;
}

.author-band .kicker {
  color: var(--ember);
}

.author-copy {
  display: grid;
  gap: 22px;
}

.rights-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 74px);
  background: #111416;
  border-top: 1px solid var(--line);
}

.rights-section a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .hero {
    min-height: 82vh;
    padding-top: 146px;
    background:
      linear-gradient(180deg, rgba(13, 13, 15, 0.7), rgba(13, 13, 15, 0.9)),
      url("assets/where-do-balloons-go-cover.jpg") center top / cover no-repeat;
  }

  .intro-grid,
  .book-grid,
  .catalogue-section,
  .author-shell,
  .rights-section {
    grid-template-columns: 1fr;
  }

  .book img {
    aspect-ratio: 16 / 11;
  }

  .catalogue-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav {
    font-size: 0.72rem;
    gap: 10px;
  }

  h1 {
    font-size: clamp(3.2rem, 21vw, 5.5rem);
  }

  .hero-text,
  .intro-grid p,
  .author-copy p,
  .rights-section p {
    font-size: 1.02rem;
  }
}
