html {
  --color-bg: oklch(0.16 0.005 45);
  --color-text: oklch(0.94 0.016 85);
  --color-muted: oklch(0.76 0.015 70);
  --color-accent: oklch(0.59 0.21 28);
  --color-stage: oklch(0.52 0.19 28);
  --color-border: oklch(0.36 0.008 45);
  --font-family-heading: 'Unbounded', sans-serif;
  --font-family-body: 'Public Sans', sans-serif;
  --space-small: 16px;
  --space-medium: 32px;
  --space-large: 64px;
  --font-size-body: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-family-body); font-size: var(--font-size-body); line-height: 1.6; font-synthesis: none; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--color-text); outline-offset: 6px; }
::selection { background: var(--color-accent); color: var(--color-text); }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 0.7em 1em; background: var(--color-text); color: var(--color-bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 96px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-medium); border-bottom: 1px solid var(--color-border); }
.wordmark { font-family: var(--font-family-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; }
.wordmark > span:first-child, .wordmark-period { color: var(--color-accent); }
nav { display: flex; gap: 40px; align-items: center; font-size: 0.875rem; font-weight: 600; }
nav a { padding: 0.5em 0; }
nav a:hover { text-decoration: underline; }
.nav-buy { display: flex; gap: 24px; }

.hero { display: grid; grid-template-areas: 'copy cover'; grid-template-columns: 1.12fr 1fr; min-height: 740px; }
.hero-copy { grid-area: copy; padding: 48px 7% 48px 9%; display: flex; flex-direction: column; align-items: flex-start; }
.release { margin: 0 0 32px; color: var(--color-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.release span { margin: 0 12px; color: var(--color-accent); }
h1, h2 { font-family: var(--font-family-heading); text-wrap: balance; }
h1 { font-size: clamp(3.75rem, 7.2vw, 6rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.04em; margin: 0 0 24px; }
h1 > span { color: var(--color-accent); }
h1 .title-period { color: var(--color-text); }
.subtitle { max-width: 25ch; font-size: clamp(1.125rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.4; margin: 0 0 20px; }
.intro { color: var(--color-muted); max-width: 43ch; margin: 0; font-size: 0.9375rem; }
.purchase { width: 100%; margin-top: 36px; }
.purchase-label { font-size: 0.75rem; margin: 0 0 12px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-button { min-height: 54px; padding: 0.9em 1.1em; display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 0.8125rem; font-weight: 700; border: 1px solid var(--color-text); transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.buy-button svg { flex: 0 0 17px; width: 17px; height: 17px; }
.primary { background: var(--color-text); color: var(--color-bg); }
.primary:hover { background: var(--color-muted); }
.secondary:hover { background: var(--color-text); color: var(--color-bg); }
.buy-button:hover svg { transform: translate(1px, -1px); }
.format { color: var(--color-muted); font-size: 0.6875rem; margin: 16px 0 0; }
.format span { margin: 0 7px; }

.cover-stage { grid-area: cover; background: var(--color-stage); position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: 52px 40px 72px; }
.cover-stage::before { content: ''; position: absolute; inset: 20px; border: 1px solid oklch(0.67 0.15 28); z-index: -1; }
.stage-type { position: absolute; top: 15%; left: 50%; transform: translateX(-50%) rotate(-90deg); font-family: var(--font-family-heading); font-weight: 900; font-size: clamp(8rem, 17vw, 18rem); color: oklch(0.47 0.17 28); letter-spacing: -0.04em; z-index: -1; user-select: none; }
.book-object { width: min(100%, 340px); margin: 0; transform: rotate(4deg); position: relative; box-shadow: 18px 24px 38px oklch(0.18 0.06 28 / 0.45); animation: book-arrival 900ms cubic-bezier(0.2, 0, 0, 1) both; }
.book-object::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-left: 5px solid oklch(0.1 0.005 45 / 0.45); box-shadow: inset 9px 0 8px oklch(0.1 0.005 45 / 0.2); }
.book-cover { display: block; width: 100%; height: auto; aspect-ratio: 667 / 1000; }
.stage-caption { position: absolute; left: 40px; right: 40px; bottom: 37px; display: flex; justify-content: space-between; gap: 16px; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.story { display: grid; grid-template-areas: 'heading prose'; grid-template-columns: 1fr 1fr; gap: var(--space-large); padding: 80px 7%; border-top: 1px solid var(--color-border); }
h2 { grid-area: heading; font-size: clamp(1.75rem, 3vw, 2.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.035em; margin: 0; }
.story-copy { grid-area: prose; max-width: 52ch; }
.story-copy p { margin: 0 0 20px; color: var(--color-muted); }
.story-copy p:first-child { color: var(--color-text); font-size: 1.125rem; }
.text-link { display: inline-flex; gap: 32px; padding: 0.25em 0; border-bottom: 1px solid var(--color-text); font-size: 0.875rem; font-weight: 600; }
.text-link:hover { color: var(--color-muted); }
.site-footer { border-top: 1px solid var(--color-border); padding: 28px 5%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; color: var(--color-muted); font-size: 0.6875rem; }
.site-footer > span:first-child { color: var(--color-text); font-weight: 600; letter-spacing: 0.04em; }
.site-footer span span { margin: 0 8px; }
.site-footer a:hover { text-decoration: underline; color: var(--color-text); }

@keyframes book-arrival { from { transform: translateY(20px) rotate(0deg); } to { transform: translateY(0) rotate(4deg); } }

@media (min-width: 1600px) {
  .hero-copy { padding-left: max(9%, calc((100vw - 1400px) / 2)); }
  .hero { min-height: 800px; }
  .book-object { width: 380px; }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1.15fr 1fr; min-height: 720px; }
  .hero-copy { padding: 40px 7%; }
  .cover-stage { padding: 48px 32px 80px; }
  .stage-caption { flex-direction: column; align-items: center; gap: 4px; bottom: 32px; }
  .buy-links { flex-direction: column; align-items: stretch; }
  .buy-button { max-width: 320px; }
  .story { gap: 32px; padding: 64px 5%; }
}

@media (max-width: 680px) {
  .site-header { min-height: 76px; padding: 0 6%; gap: 16px; }
  .wordmark { font-size: 0.9375rem; }
  nav { gap: 20px; font-size: 0.75rem; }
  .nav-buy { gap: 8px; }
  .hero { grid-template-areas: 'copy' 'cover'; grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 7% 40px; }
  .release { font-size: 0.625rem; margin-bottom: 24px; }
  .release span { margin: 0 6px; }
  h1 { font-size: clamp(4rem, 15vw, 6rem); }
  .subtitle { font-size: 1.375rem; }
  .intro { max-width: 42ch; }
  .purchase { margin-top: 28px; }
  .buy-button { max-width: none; font-size: 0.875rem; }
  .cover-stage { min-height: 600px; padding: 56px 48px 88px; }
  .book-object { width: min(100%, 290px); }
  .stage-type { font-size: 12rem; }
  .stage-caption { flex-direction: row; font-size: 0.5625rem; left: 32px; right: 32px; }
  .story { grid-template-areas: 'heading' 'prose'; grid-template-columns: 1fr; padding: 48px 7%; gap: 24px; }
  .site-footer { padding: 24px 7%; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book-object { animation: none; }
  .buy-button { transition: none; }
}
