:root {
  color-scheme: dark;
  --ink: #11100e;
  --night: #17181b;
  --night-soft: #25272b;
  --paper: #f2eadc;
  --paper-dim: #d8cab3;
  --paper-muted: #b7ab99;
  --gold: #d6ae68;
  --ember: #9d4f2f;
  --sage: #80947f;
  --line: rgba(242, 234, 220, 0.18);
  --shadow: rgba(0, 0, 0, 0.46);
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.99) 0%, rgba(17, 16, 14, 0.82) 48%, rgba(17, 16, 14, 0.58) 100%),
    url("assets/cover.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, var(--ink));
  z-index: -1;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(214, 174, 104, 0.24), transparent 24rem),
    linear-gradient(180deg, rgba(17, 16, 14, 0.08), rgba(17, 16, 14, 0.82));
  z-index: -1;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  gap: 20px;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0;
  line-height: 1.15;
  text-decoration: none;
  color: var(--paper);
}

.release-pill {
  border: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(300px, 44%), 44%);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100svh - 96px);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.hero__copy {
  width: min(100%, 690px);
  min-width: 0;
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(4rem, 9.2vw, 8.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}

.dek {
  max-width: 34em;
  color: var(--paper-dim);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.78rem);
  line-height: 1.36;
  text-wrap: pretty;
}

.hero__copy .dek {
  max-width: none;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-family: inherit;
  padding: 13px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--paper);
  color: var(--ink);
}

.button--quiet {
  border-color: var(--line);
  color: var(--paper);
}

.button:focus-visible,
.text-link:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.book-stage {
  justify-self: end;
  width: min(420px, 100%);
  filter: drop-shadow(0 42px 38px var(--shadow));
  overflow: hidden;
}

.book-stage img {
  transform: rotate(-1.5deg);
  transform-origin: center;
}

.premise,
.themes,
.closing {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.premise {
  padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 72px);
}

.premise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 86px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.premise h2 {
  font-family: var(--serif);
  font-size: clamp(1.075rem, 2.3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.closing h2 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.premise__text {
  color: var(--paper-dim);
  font-size: clamp(1.04rem, 1.3vw, 1.16rem);
  line-height: 1.72;
  max-width: 38em;
}

.premise__text p + p {
  margin-top: 1.4em;
}

.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 22px 0 clamp(64px, 9vw, 96px);
}

.themes article {
  min-height: 220px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: clamp(24px, 3vw, 34px);
}

.themes span {
  display: block;
  margin-bottom: 34px;
  color: var(--ember);
  font-weight: 900;
}

.themes h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.12;
  text-wrap: balance;
}

.themes p,
.closing p {
  color: var(--paper-dim);
  line-height: 1.68;
}

.closing {
  display: grid;
  grid-template-columns: min(180px, 30%) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 76px) 0 clamp(68px, 10vw, 104px);
}

.closing > div {
  min-width: 0;
}

.closing img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 54px var(--shadow);
}

.closing h2 {
  max-width: 780px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.closing p {
  max-width: 40em;
  font-size: clamp(1.04rem, 1.3vw, 1.16rem);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 850;
  padding: 0;
  cursor: pointer;
  text-decoration-color: rgba(214, 174, 104, 0.44);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.soon-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  transform: translate(-50%, calc(-100% - 12px));
  border: 1px solid rgba(214, 174, 104, 0.5);
  background: rgba(17, 16, 14, 0.92);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 11px 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.soon-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 18px));
}

@media (max-width: 860px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(17, 16, 14, 0.92) 0%, rgba(17, 16, 14, 0.86) 42%, rgba(17, 16, 14, 0.98) 100%),
      url("assets/cover.png") 58% center / cover;
  }

  .masthead {
    padding-top: 20px;
  }

  .hero__content,
  .premise__grid,
  .closing {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 68px;
  }

  .book-stage {
    justify-self: center;
    width: min(340px, 76vw);
    order: -1;
    filter: drop-shadow(0 20px 12px var(--shadow));
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5.25rem);
    line-height: 0.98;
  }

  .dek {
    max-width: 32em;
    font-size: clamp(1.16rem, 4.5vw, 1.45rem);
    line-height: 1.42;
  }

  .hero__copy .dek {
    max-width: 100%;
    font-size: 1.05rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .premise h2,
  .closing h2 {
    font-size: clamp(2rem, 9.5vw, 3.8rem);
    line-height: 1.08;
  }

  .themes {
    grid-template-columns: 1fr;
  }

  .themes article {
    min-height: 0;
  }

  .themes span {
    margin-bottom: 22px;
  }

  .closing img {
    width: 150px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
    line-height: 1.64;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero__content,
  .masthead,
  .premise,
  .themes,
  .closing {
    width: calc(100% - 40px);
  }

  .button {
    width: 100%;
  }

  .premise {
    padding-top: 58px;
  }

  .release-pill {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

  .themes article {
    padding: 24px 0;
    background: transparent;
  }

  .closing img {
    width: min(156px, 44vw);
  }

  .book-stage {
    filter: drop-shadow(0 14px 8px var(--shadow));
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: clamp(2.6rem, 13vw, 3.25rem);
    line-height: 1.0;
  }

  .book-stage {
    width: min(260px, 76vw);
  }

  .dek {
    font-size: clamp(1.05rem, 4vw, 1.2rem);
  }

  .hero__copy .dek {
    font-size: 0.86rem;
  }

  .hero__copy {
    width: 100%;
  }
}
