:root {
  color-scheme: dark;
  --ink: #f8f3ea;
  --muted: #c9c0b4;
  --dim: #8e8579;
  --charcoal: #11110f;
  --black: #080807;
  --panel: #191815;
  --line: #363128;
  --gold: #d8ad55;
  --gold-soft: #f1d891;
  --clay: #a65d3c;
  --sage: #7d9477;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 70px;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(8, 8, 7, 0.76), rgba(8, 8, 7, 0.95)),
    url("assets/studio-bg.jpg") center top / 100% auto no-repeat,
    radial-gradient(circle at 20% 0%, rgba(216, 173, 85, 0.14), transparent 34rem),
    linear-gradient(180deg, #12110f 0%, #080807 44%, #11100e 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(8, 8, 7, 0.78);
  border-bottom: 1px solid rgba(248, 243, 234, 0.08);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-mark {
  align-items: center;
  display: flex;
  min-width: 142px;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  height: 34px;
  object-fit: contain;
  object-position: left center;
  width: 142px;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.9rem;
}

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

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 8vw, 96px);
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.75fr);
  min-height: calc(100vh - 69px);
  padding: clamp(48px, 7vw, 90px) clamp(18px, 5vw, 72px) 36px;
  position: relative;
}

.hero::after {
  background-image:
    linear-gradient(rgba(248, 243, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 243, 234, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.hero-copy,
.book-visual,
.section {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.65rem, 10vw, 9.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 24px;
  max-width: 10ch;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5.8vw, 5.7rem);
  line-height: 0.96;
  margin-bottom: 20px;
  max-width: 11ch;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-lede {
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  max-width: 620px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: #17110a;
}

.button-secondary {
  background: rgba(248, 243, 234, 0.06);
  border-color: rgba(248, 243, 234, 0.22);
  color: var(--ink);
}

.book-visual {
  min-height: 460px;
}

.hero-product-image {
  border-radius: var(--radius);
  filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.52));
  display: block;
  margin-inline: auto;
  max-width: min(680px, 100%);
  object-fit: contain;
  width: 85%;
}

.book-card {
  background: rgba(248, 243, 234, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  color: #17110a;
  display: grid;
  gap: 7px;
  max-width: 235px;
  padding: 18px;
  position: absolute;
  right: 4%;
  top: 70%;
}

.book-card span {
  color: #584d3f;
}

.section {
  padding: clamp(62px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.split-section,
.product-preview,
.sample-section,
.updates-section {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
}

.product-preview {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.78), rgba(8, 8, 7, 0.92)),
    radial-gradient(circle at 68% 30%, rgba(139, 59, 128, 0.22), transparent 28rem);
  border-block: 1px solid rgba(248, 243, 234, 0.1);
  grid-template-columns: minmax(260px, 0.52fr) minmax(600px, 1.48fr);
}

.preview-intro {
  align-self: start;
  position: sticky;
  top: 112px;
}

.sample-page-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-page-grid figure {
  margin: 0;
  min-width: 0;
}

.sample-page-grid img {
  aspect-ratio: 16 / 25;
  background: #080807;
  border: 1px solid rgba(248, 243, 234, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.44);
  display: block;
  object-fit: cover;
  width: 100%;
}

.sample-page-grid figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 9px;
}

.listen-section {
  background: #0c0c0b;
  border-bottom: 1px solid rgba(248, 243, 234, 0.1);
}

.listen-heading {
  align-items: end;
  display: grid;
  gap: clamp(24px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  margin-bottom: clamp(34px, 6vw, 64px);
}

.listen-heading h2 {
  margin-bottom: 0;
  max-width: 10ch;
}

.listen-heading > p {
  margin-bottom: 4px;
  max-width: 560px;
}

.player-list {
  border-top: 1px solid rgba(248, 243, 234, 0.16);
}

.audio-player {
  align-items: center;
  border-bottom: 1px solid rgba(248, 243, 234, 0.16);
  display: grid;
  gap: clamp(18px, 4vw, 42px);
  grid-template-columns: 54px minmax(0, 1fr);
  padding: clamp(24px, 4vw, 38px) 0;
}

.track-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

.track-main {
  min-width: 0;
}

.track-copy {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.track-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  margin-bottom: 0;
}

.track-label {
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.track-duration,
.time-readout {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.waveform {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(32, minmax(2px, 1fr));
  height: 54px;
  margin: 20px 0 16px;
  overflow: hidden;
}

.waveform span {
  background: rgba(248, 243, 234, 0.22);
  border-radius: 1px;
  height: var(--bar-height);
  min-height: 5px;
  transition: background 180ms ease;
}

.audio-player.is-playing .waveform span {
  animation: pulse-wave 1.25s ease-in-out infinite alternate;
  background: var(--gold);
}

.audio-player.is-playing .waveform span:nth-child(3n) {
  animation-delay: -0.45s;
}

.audio-player.is-playing .waveform span:nth-child(4n) {
  animation-delay: -0.8s;
}

.player-controls {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px 42px minmax(0, 1fr);
}

.play-button {
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  height: 44px;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
  width: 44px;
}

.play-button:hover {
  background: var(--gold-soft);
  transform: scale(1.04);
}

.play-button:focus-visible {
  outline: 3px solid rgba(241, 216, 145, 0.45);
  outline-offset: 3px;
}

.play-icon {
  border-bottom: 7px solid transparent;
  border-left: 11px solid #17110a;
  border-top: 7px solid transparent;
  display: block;
  margin-left: 3px;
}

.is-playing .play-icon {
  border: 0;
  border-left: 4px solid #17110a;
  border-right: 4px solid #17110a;
  height: 14px;
  margin-left: 0;
  width: 13px;
}

.time-readout {
  font-size: 0.83rem;
}

.seek-control {
  --progress: 0%;
  appearance: none;
  background: linear-gradient(
    90deg,
    var(--gold) 0 var(--progress),
    rgba(248, 243, 234, 0.18) var(--progress) 100%
  );
  border-radius: 2px;
  cursor: pointer;
  height: 4px;
  margin: 0;
  width: 100%;
}

.seek-control::-webkit-slider-thumb {
  appearance: none;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.seek-control::-moz-range-thumb {
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

@keyframes pulse-wave {
  from {
    opacity: 0.45;
    transform: scaleY(0.72);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

.feature-grid article {
  background: rgba(248, 243, 234, 0.055);
  border: 1px solid rgba(248, 243, 234, 0.1);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-grid p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.section-lede {
  max-width: 520px;
}

.proof-strip {
  background: #ece3d2;
  color: #15110d;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 0;
}

.proof-strip div {
  background: #f8f3ea;
  display: grid;
  min-height: 170px;
  place-content: center;
  text-align: center;
}

.proof-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1;
}

.proof-strip span {
  color: #5a5045;
  font-weight: 700;
}

.sample-section {
  background:
    linear-gradient(90deg, rgba(166, 93, 60, 0.12), transparent),
    var(--panel);
}

.sample-copy p,
.updates-section p,
.buy-section p {
  max-width: 680px;
}

.signup-form {
  align-self: start;
  background: rgba(8, 8, 7, 0.48);
  border: 1px solid rgba(248, 243, 234, 0.14);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
}

.signup-form label {
  display: grid;
  gap: 7px;
}

.signup-form span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.signup-form input {
  background: #151514;
  border: 1px solid rgba(248, 243, 234, 0.38);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
  width: 100%;
}

.signup-form input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(216, 173, 85, 0.2);
}

.signup-form button {
  width: 100%;
}

.form-note {
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.buy-section {
  align-items: center;
  border-block: 1px solid rgba(248, 243, 234, 0.1);
  display: flex;
  gap: 26px;
  justify-content: space-between;
}

.buy-section h2 {
  max-width: 12ch;
}

.purchase-action {
  align-items: flex-end;
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
}

.purchase-action span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.purchase-action strong {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  margin: 7px 0 18px;
}

.updates-section {
  background: #0d0d0c;
}

.compact-form {
  background: transparent;
}

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(248, 243, 234, 0.1);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
}

.site-footer span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .product-preview,
  .listen-heading,
  .sample-section,
  .updates-section {
    grid-template-columns: 1fr;
  }

  .preview-intro {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .book-visual {
    min-height: 480px;
  }

  .book-card {
    right: clamp(0px, 8vw, 60px);
  }

  .buy-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-action {
    align-items: start;
    justify-items: start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
    position: static;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.6rem);
  }

  .hero-actions,
  .hero-actions .button,
  .buy-section .button,
  .purchase-action .button {
    width: 100%;
  }

  .book-visual {
    min-height: auto;
  }

  .hero-product-image {
    min-height: 280px;
    object-fit: cover;
    object-position: 50% center;
  }

  .book-card {
    margin-top: 16px;
    max-width: none;
    position: static;
  }

  .feature-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .sample-page-grid {
    display: flex;
    gap: 14px;
    margin-inline: -18px;
    overflow-x: auto;
    padding: 4px 18px 20px;
    scroll-snap-type: x mandatory;
  }

  .sample-page-grid figure {
    flex: 0 0 min(76vw, 330px);
    scroll-snap-align: start;
  }

  .proof-strip div {
    min-height: 124px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .audio-player {
    gap: 12px;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .waveform {
    gap: 2px;
    height: 44px;
  }

  .track-copy h3 {
    font-size: 1.1rem;
  }
}

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

  .audio-player.is-playing .waveform span {
    animation: none;
  }
}
