:root {
  --aqua: #7bb5b7;
  --aqua-light: #9ac9ca;
  --ink: #121716;
  --paper: #f3efe5;
  --white: #fffdf8;
  --line-dark: rgba(18, 23, 22, 0.2);
  --line-light: rgba(255, 253, 248, 0.25);
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("fonts/dm-sans.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  display: flex;
  width: min(calc(100% - 64px), 1400px);
  height: 100px;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transform: translateX(-50%);
}

.author-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  font-family: "Newsreader", serif;
  font-size: 0.95rem;
  text-decoration: none;
}

.header-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link span {
  margin-left: 6px;
}

.header-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(56px, 8vw, 140px);
  align-items: center;
  overflow: hidden;
  padding: calc(150px + env(safe-area-inset-top, 0px)) max(32px, calc((100vw - 1400px) / 2)) 100px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 23, 22, 0.98), rgba(18, 23, 22, 0.93)),
    var(--ink);
}

.hero::before {
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(72vw, 1000px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
  filter: blur(2px);
  opacity: 0.85;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.kicker,
.section-label {
  margin: 0 0 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.kicker {
  color: var(--aqua-light);
}

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

h1 {
  max-width: 850px;
  margin-bottom: 36px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(4.75rem, 9.2vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.76;
  text-transform: uppercase;
}

h1 span {
  display: block;
  max-width: 100%;
}

.tagline {
  margin-bottom: 26px;
  color: rgba(255, 253, 248, 0.72);
  font-family: "Newsreader", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.release-date {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 38px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-date span {
  color: var(--aqua-light);
}

.release-date span::after {
  margin-left: 12px;
  color: rgba(255, 253, 248, 0.3);
  content: "•";
}

.button {
  display: inline-flex;
  min-height: 58px;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  background: var(--aqua-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-outline {
  border-color: var(--line-light);
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.cover-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 455px);
  margin-left: auto;
  place-items: center;
}

.book-cover {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 670 / 1024;
  box-shadow:
    0 45px 80px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 50%;
}

.orbit-one {
  width: 125%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 155%;
  aspect-ratio: 1;
}

.scroll-note {
  position: absolute;
  bottom: 34px;
  left: max(32px, calc((100vw - 1400px) / 2));
  margin: 0;
  color: rgba(255, 253, 248, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story {
  display: grid;
  width: min(calc(100% - 64px), 1240px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(56px, 10vw, 160px);
  margin: 0 auto;
  padding: 160px 0 180px;
}

.section-label {
  color: #4a7d7f;
}

h2 {
  margin-bottom: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.blurb {
  max-width: 670px;
}

.blurb p {
  margin-bottom: 28px;
  color: #4e5854;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.blurb .opening {
  color: var(--ink);
  font-family: "Newsreader", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.35;
}

.extract {
  display: grid;
  width: min(calc(100% - 64px), 1240px);
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(56px, 10vw, 160px);
  order: 3;
  margin: 0 auto;
  padding: 150px 0 170px;
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: 24px;
}

.extract-intro {
  position: sticky;
  top: 48px;
  align-self: start;
}

.chapter-copy {
  max-width: 700px;
}

.chapter-copy p {
  margin-bottom: 1.4em;
  color: #3f4844;
  font-family: "Newsreader", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.7;
}

.chapter-copy .chapter-opening {
  color: var(--ink);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.45;
}

.chapter-more {
  margin-top: 42px;
}

.chapter-more summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.chapter-more summary::-webkit-details-marker {
  display: none;
}

.summary-icon {
  color: #4a7d7f;
  font-size: 1.75rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.chapter-more[open] .summary-icon {
  transform: rotate(45deg);
}

.chapter-continuation {
  padding-top: 42px;
}

.extract-buy {
  margin-top: 48px;
}

.chapter-copy .inscription {
  margin: 48px 0;
  padding-left: 28px;
  border-left: 2px solid var(--aqua);
  color: var(--ink);
  font-style: italic;
}

.scene-break {
  margin: 64px 0;
  color: #4a7d7f;
  font-size: 0.7rem;
  letter-spacing: 1em;
  text-align: center;
}

.quote {
  position: relative;
  overflow: hidden;
  padding: 140px 32px;
  color: var(--white);
  background: var(--aqua);
  text-align: center;
}

.quote::before,
.quote::after {
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 50%;
  content: "";
}

.quote::before {
  top: -300px;
  left: -180px;
  width: 620px;
  height: 620px;
}

.quote::after {
  right: -220px;
  bottom: -340px;
  width: 720px;
  height: 720px;
}

.quote p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.quote em {
  color: var(--ink);
  font-weight: 500;
}

.preorder {
  display: flex;
  width: min(calc(100% - 64px), 1240px);
  align-items: flex-end;
  justify-content: space-between;
  order: 1;
  margin: 0 auto;
  padding: 150px 0;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(56px, 9vw, 140px);
  align-items: center;
  order: 2;
  padding: 120px max(32px, calc((100vw - 1240px) / 2));
  color: var(--white);
  background: var(--aqua);
}

.newsletter .section-label {
  color: var(--ink);
}

.newsletter h2 {
  max-width: 540px;
  margin-bottom: 28px;
}

.newsletter-copy > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(18, 23, 22, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.newsletter-form {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(18, 23, 22, 0.2);
  background: rgba(255, 253, 248, 0.14);
}

.newsletter-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.newsletter-fields input,
.newsletter-fields button {
  min-height: 58px;
  border-radius: 0;
  font: inherit;
}

.newsletter-fields input {
  min-width: 0;
  padding: 0 18px;
  border: 1px solid rgba(18, 23, 22, 0.35);
  border-right: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
}

.newsletter-fields input::placeholder {
  color: #7b827f;
}

.newsletter-fields input:focus {
  position: relative;
  z-index: 1;
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.newsletter-fields button {
  padding: 0 28px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.newsletter-fields button:hover {
  color: var(--ink);
  background: var(--white);
}

.newsletter-fields button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.newsletter-privacy,
.newsletter-success {
  margin: 14px 0 0;
  color: rgba(18, 23, 22, 0.68);
  font-size: 0.75rem;
  line-height: 1.5;
}

.newsletter-success {
  color: var(--ink);
  font-weight: 700;
}

.signup-response {
  display: none;
}

.author-bio {
  order: 4;
  padding: 140px 0;
  color: var(--white);
  background: var(--ink);
}

.author-bio-inner {
  display: grid;
  width: min(calc(100% - 64px), 1050px);
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(56px, 10vw, 130px);
  align-items: center;
  margin: 0 auto;
}

.author-portrait {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 180px 180px 8px 8px;
}

.author-portrait::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-light);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

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

.author-copy .section-label {
  color: var(--aqua-light);
}

.author-copy h2 {
  margin-bottom: 32px;
}

.author-copy > p:last-child {
  max-width: 630px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.72);
  font-family: "Newsreader", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.55;
}

.button-dark {
  flex-shrink: 0;
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  color: var(--ink);
  background: var(--aqua);
}

footer {
  display: flex;
  width: min(calc(100% - 64px), 1400px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line-dark);
  color: #68716d;
  font-size: 0.75rem;
}

footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: calc(150px + env(safe-area-inset-top, 0px));
  }

  .hero::before {
    top: auto;
    right: -40%;
    bottom: -5%;
    width: 130%;
  }

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

  .cover-stage {
    width: min(75%, 480px);
    margin: 50px auto 0;
  }

  .scroll-note {
    display: none;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 120px 0;
  }

  .extract {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 120px 0;
  }

  .extract-intro {
    position: static;
  }

  .newsletter {
    grid-template-columns: 1fr;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .author-bio {
    padding: 120px 0;
  }

  .author-bio-inner {
    gap: 64px;
  }

  .preorder {
    align-items: flex-start;
    flex-direction: column;
    gap: 56px;
    padding: 120px 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .story,
  .extract,
  .preorder,
  footer {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 84px;
    padding-top: 4px;
  }

  .hero {
    padding: calc(132px + env(safe-area-inset-top, 0px)) 20px 88px;
  }

  h1 {
    max-width: none;
    margin-bottom: 28px;
    font-size: clamp(2.7rem, 12.8vw, 4.2rem);
    letter-spacing: -0.06em;
    line-height: 0.84;
  }

  .cover-stage {
    width: min(78%, 320px);
    overflow: hidden;
  }

  .orbit-one,
  .orbit-two {
    width: 118%;
  }

  .story {
    gap: 48px;
    padding: 88px 0 96px;
  }

  .extract {
    gap: 48px;
    padding: 88px 0 104px;
  }

  .newsletter {
    gap: 48px;
    padding: 88px 20px;
  }

  .newsletter-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .newsletter-fields input {
    border-right: 1px solid rgba(18, 23, 22, 0.35);
  }

  .author-bio {
    padding: 96px 0;
  }

  .author-bio-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .author-portrait {
    width: min(78%, 340px);
  }

  .quote {
    padding: 96px 20px;
  }

  .preorder {
    padding: 96px 0;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .header-actions .header-link:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
