:root {
  --paper: #efe5cc;
  --paper-light: #f8f1df;
  --ink: #171714;
  --rust: #b94f2d;
  --gold: #d49a29;
  --teal: #486f68;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: 106px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 26px/1 var(--serif);
}
.brand em { display: block; font: 500 10px/1.5 var(--sans); letter-spacing: .34em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.brand-spark { fill: var(--rust); stroke: none; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); font-size: 13px; }
.site-nav a { text-decoration: none; position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  border-bottom: 1px solid; transition: right .25s ease;
}
.site-nav a:hover::after { right: 0; }
.nav-cta { border: 1px solid; padding: 12px 17px; transition: .2s ease; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-button { display: none; background: none; border: 0; padding: 10px; }

.hero {
  min-height: min(920px, 100vh);
  padding: 145px clamp(24px, 8vw, 130px) 75px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; width: 500px; height: 500px; right: -240px; top: -180px;
  border: 1px solid rgba(23,23,20,.13); border-radius: 50%;
}
.hero-copy { z-index: 2; padding-bottom: 20px; }
.eyebrow {
  margin: 0 0 26px;
  display: flex; align-items: center; gap: 11px;
  font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow span { width: 31px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
h1 { margin: 0; font-size: clamp(72px, 8vw, 132px); line-height: .78; }
h1 i, h2 i { color: var(--rust); font-weight: 400; }
.hero-deck { margin: 42px 0 33px; font: 21px/1.55 var(--serif); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 185px; padding: 17px 20px; text-decoration: none; font-size: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 5px 7px 0 var(--rust); }
.button-dark { background: var(--ink); color: var(--paper-light); }
.text-link { font-size: 12px; font-weight: 600; text-decoration: none; border-bottom: 1px solid; padding-bottom: 5px; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-art { min-height: 650px; display: grid; place-items: center; position: relative; }
.book { position: relative; z-index: 2; width: min(365px, 31vw); aspect-ratio: .72; perspective: 1200px; filter: drop-shadow(25px 30px 23px rgba(32,23,12,.27)); transform: rotate(2deg); }
.book-cover {
  position: absolute; inset: 0 13px 0 0; overflow: hidden;
  background: #dbceb1; border: 7px solid #1d1c17;
  transform: rotateY(-8deg); transform-origin: left;
}
.book-cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 12px 0 16px rgba(0,0,0,.24); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03); }
.cover-copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: #f4ead5; padding: 34px 20px 25px; text-shadow: 0 2px 8px #000; }
.cover-copy small { font: 9px var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.cover-copy strong { margin-top: 10px; font: 38px/.88 var(--serif); }
.cover-copy span { margin-top: auto; font: 8px var(--sans); letter-spacing: .23em; text-transform: uppercase; }
.book-pages { position: absolute; right: 0; top: 10px; bottom: 10px; width: 22px; background: repeating-linear-gradient(90deg, #bba985 0 1px, #f0e4c8 1px 3px); transform: skewY(-12deg); transform-origin: left; }
.orbit { position: absolute; border: 1px solid rgba(23,23,20,.16); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; }
.orbit-two { width: 620px; height: 270px; transform: rotate(-16deg); }
.art-note { position: absolute; right: 0; bottom: 45px; font: italic 14px/1.4 var(--serif); transform: rotate(4deg); }
.art-note::before { content: "↖"; position: absolute; left: -35px; top: -20px; font-size: 23px; }
.hero-scroll { position: absolute; left: clamp(24px, 5vw, 76px); bottom: 28px; display: flex; align-items: center; gap: 16px; transform: rotate(-90deg); transform-origin: left; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll i { display: block; width: 45px; border-top: 1px solid; }

.marquee { overflow: hidden; padding: 20px 0 17px; color: var(--paper-light); background: var(--rust); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(-1deg) scale(1.02); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 33px; animation: marquee 25s linear infinite; font: 24px var(--serif); }
.marquee i { font-size: 12px; font-style: normal; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

.story-section { position: relative; background: var(--ink); color: var(--paper-light); padding: 120px clamp(24px, 8vw, 130px) 140px; overflow: hidden; }
.section-number { padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 10vw, 160px); align-items: center; padding-top: 85px; }
.story-copy h2, .about-copy h2, .buy-card h2 { font-size: clamp(52px, 6vw, 94px); line-height: .92; margin: 0 0 42px; }
.story-copy > p:not(.eyebrow) { max-width: 570px; color: rgba(248,241,223,.72); font: 16px/1.8 var(--sans); }
.story-copy > p em { color: white; font-family: var(--serif); font-size: 18px; }
.book-facts { display: flex; gap: 55px; margin-top: 50px; }
.book-facts div { border-left: 1px solid var(--rust); padding-left: 14px; }
.book-facts dt { color: rgba(255,255,255,.45); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.book-facts dd { margin: 5px 0 0; font: 17px var(--serif); }
.story-quote { position: relative; margin: 0; padding: 85px 20px; text-align: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.story-quote p { font: 29px/1.35 var(--serif); }
.story-quote cite { font: 9px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.quote-mark { position: absolute; top: 9px; left: 50%; font: 72px var(--serif); color: var(--rust); transform: translateX(-50%); }
.ink-line { position: absolute; width: 450px; height: 120px; right: -90px; bottom: -30px; border-top: 2px solid rgba(239,229,204,.2); border-radius: 50%; transform: rotate(-8deg); }

.about-section { padding: 150px clamp(24px, 10vw, 160px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(60px, 11vw, 180px); }
.about-image { position: relative; max-width: 490px; height: 610px; overflow: visible; }
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: saturate(.72) contrast(1.05); }
.about-image::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--ink); z-index: -1; }
.about-image span { position: absolute; right: -45px; top: 65px; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: var(--rust); color: white; text-align: center; font: 11px/1.3 var(--sans); letter-spacing: .15em; transform: rotate(9deg); }
.about-copy { max-width: 630px; }
.about-copy > p:not(.eyebrow) { font: 16px/1.8 var(--sans); max-width: 530px; }
.about-copy .text-link { display: inline-block; margin-top: 20px; }

.buy-section { padding: 65px clamp(24px, 8vw, 130px) 120px; }
.buy-card { padding: clamp(45px, 7vw, 100px); background: var(--teal); color: var(--paper-light); text-align: center; position: relative; overflow: hidden; }
.buy-card::before, .buy-card::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.buy-card::before { top: -130px; left: -90px; }
.buy-card::after { bottom: -150px; right: -70px; }
.buy-card .eyebrow { justify-content: center; }
.buy-card h2 { margin-bottom: 22px; }
.buy-card > p { max-width: 620px; margin: 0 auto 35px; font: 18px/1.6 var(--serif); }
.signup-form { max-width: 620px; margin: auto; display: flex; border-bottom: 1px solid var(--paper-light); position: relative; z-index: 1; }
.signup-form input { flex: 1; min-width: 0; padding: 16px 5px; color: white; border: 0; outline: 0; background: transparent; font: 14px var(--sans); }
.signup-form input::placeholder { color: rgba(255,255,255,.65); }
.signup-form button { padding: 16px 5px 16px 24px; border: 0; color: white; background: transparent; font: 600 12px var(--sans); cursor: pointer; }
.buy-card small { display: block; margin-top: 18px; color: rgba(255,255,255,.55); font-size: 9px; }
.form-message { min-height: 18px; margin: 12px auto 0 !important; font: 12px var(--sans) !important; }
.edition-actions { position: relative; z-index: 1; max-width: 850px; margin: 0 auto 38px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.42); }
.edition-link { min-height: 125px; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; text-decoration: none; border-right: 1px solid rgba(255,255,255,.28); transition: background .2s ease, color .2s ease; }
.edition-link:last-child { border-right: 0; }
.edition-link:hover, .primary-edition { background: var(--paper-light); color: var(--ink); }
.edition-link span { font: 22px var(--serif); }
.edition-link small { margin-top: 8px; color: inherit; opacity: .65; }
.edition-link b { margin-top: auto; align-self: flex-end; font-weight: 400; }
.audio-preview { position: relative; z-index: 1; max-width: 850px; margin: auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 25px; background: rgba(23,23,20,.18); text-align: left; }
.audio-preview div { display: flex; flex-direction: column; }
.audio-preview strong { font: 17px var(--serif); }
.audio-preview span { margin-top: 4px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.audio-preview audio { width: min(420px, 60%); height: 38px; }

.site-footer { padding: 25px clamp(24px, 5vw, 76px) 30px; background: var(--paper-light); }
.footer-top { min-height: 190px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid rgba(23,23,20,.25); }
.footer-top p { justify-self: center; font: 18px/1.45 var(--serif); }
.footer-email { justify-self: end; font-size: 12px; text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 25px; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.footer-bottom a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal[data-delay="1"] { transition-delay: .16s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { height: 82px; }
  .menu-button { display: block; position: relative; z-index: 2; }
  .menu-button span:not(.sr-only) { display: block; width: 25px; margin: 6px 0; border-top: 1px solid; transition: .2s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; padding: 110px 30px 50px; background: var(--paper-light); flex-direction: column; justify-content: center; font: 34px var(--serif); transform: translateY(-100%); transition: transform .4s ease; }
  .site-nav.is-open { transform: translateY(0); }
  .nav-cta { font: 13px var(--sans); margin-top: 15px; }
  .hero { min-height: auto; padding-top: 125px; grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  h1 { font-size: clamp(68px, 17vw, 110px); }
  .hero-art { min-height: 590px; }
  .book { width: min(330px, 70vw); }
  .orbit-one { width: 430px; height: 430px; }
  .orbit-two { width: 500px; }
  .art-note, .hero-scroll { display: none; }
  .story-grid, .about-section { grid-template-columns: 1fr; }
  .story-quote { max-width: 520px; width: 100%; margin: auto; }
  .about-image { margin: auto; width: min(450px, 85vw); height: 540px; }
  .about-copy { margin: auto; }
}

@media (max-width: 600px) {
  .brand { font-size: 22px; }
  .brand-mark { width: 32px; }
  .hero { padding-inline: 20px; }
  .hero-deck { font-size: 18px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-art { min-height: 515px; }
  .book { width: min(290px, 77vw); }
  .cover-copy strong { font-size: 30px; }
  .orbit-one { width: 350px; height: 350px; }
  .orbit-two { width: 390px; }
  .story-section { padding-block: 90px; }
  .story-grid { padding-top: 60px; }
  .book-facts { gap: 20px; justify-content: space-between; }
  .book-facts dd { font-size: 14px; }
  .story-quote p { font-size: 22px; }
  .about-section { padding-block: 100px; }
  .about-image { height: 430px; }
  .about-image span { right: -15px; }
  .buy-section { padding: 20px 0 70px; }
  .buy-card { padding-inline: 24px; }
  .signup-form { flex-direction: column; border: 0; gap: 12px; }
  .signup-form input { border-bottom: 1px solid; }
  .signup-form button { color: var(--ink); background: var(--paper-light); }
  .edition-actions { grid-template-columns: 1fr; }
  .edition-link { min-height: 100px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .edition-link:last-child { border-bottom: 0; }
  .audio-preview { flex-direction: column; align-items: stretch; }
  .audio-preview audio { width: 100%; }
  .footer-top { padding: 50px 0; grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-top p, .footer-email { justify-self: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
