:root {
  --ink: #111214;
  --ink-soft: #202124;
  --paper: #efebe3;
  --paper-deep: #e3ded4;
  --white: #f8f6f1;
  --muted: #66655f;
  --silver: #a3a4a3;
  --line: rgba(17, 18, 20, 0.18);
  --line-light: rgba(255, 255, 255, 0.2);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--ink); color: var(--white); }

.sr-only {
  position: absolute !important; 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; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-160%);
  padding: 0.7rem 1rem; background: var(--ink); color: var(--white);
}
.skip-link:focus { transform: none; }
.progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 2px; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  min-height: 72px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, min-height 180ms ease;
}
.site-header.is-scrolled {
  min-height: 62px; background: rgba(239, 235, 227, 0.94);
  border-color: var(--line); backdrop-filter: blur(16px);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 500 0.82rem var(--serif); letter-spacing: 0.17em; text-decoration: none;
}
.wordmark-star { font-size: 0.72rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.7vw, 2.6rem); }
.site-nav a {
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.09em;
  text-transform: uppercase; text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { padding: 0.6rem 0.9rem; border: 1px solid var(--line); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 9px; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; background: var(--ink); margin: 7px 0; }

.section { padding: clamp(5rem, 9vw, 9rem) var(--pad); }
.eyebrow, .section-number {
  margin: 0 0 1.2rem; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.section-number {
  width: min(100%, var(--max)); margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  padding-bottom: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--line);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.hero { padding: clamp(7.5rem, 12vw, 10.5rem) var(--pad) clamp(5rem, 8vw, 8rem); }
.hero-intro { width: min(100%, 1040px); margin: 0 auto 3.5rem; text-align: center; }
.hero-intro .eyebrow { color: var(--muted); }
.hero h1 {
  margin: 0; font-size: clamp(3.3rem, 6.6vw, 7rem); line-height: 0.98; letter-spacing: -0.042em;
}
.hero h1 em { color: #56575a; font-weight: 400; }
.hero-deck {
  max-width: 660px; margin: 1.7rem auto 0;
  font: 400 clamp(1.25rem, 2.1vw, 1.85rem)/1.4 var(--serif); color: #464641;
}
.hero-photo {
  position: relative; width: min(100%, 1460px); aspect-ratio: 16 / 9; margin: 0 auto;
  overflow: hidden; background: #b79b8f; border: 1px solid rgba(17, 18, 20, 0.08);
  box-shadow: 0 26px 72px rgba(34, 29, 22, 0.13), 0 1px 0 rgba(255, 255, 255, 0.42) inset;
}
.hero-product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.studio-set { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-object {
  position: absolute; z-index: 3; left: 50%; bottom: 22.8%;
  height: 70%; aspect-ratio: 2 / 3; margin: 0;
  transform: translateX(-50%) perspective(1800px) rotateY(-3deg);
  transform-style: preserve-3d;
}
.book-front { position: absolute; inset: 0; z-index: 2; box-shadow: 18px 18px 34px rgba(0, 0, 0, 0.31); }
.book-front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,0.1), transparent 18%, transparent 82%, rgba(255,255,255,0.04));
}
.book-front img, .book-spine img { width: 100%; height: 100%; object-fit: cover; }
.book-spine {
  position: absolute; z-index: 1; left: -6.5%; top: 0; width: 6.9%; height: 100%; overflow: hidden;
  transform-origin: right center; transform: rotateY(-74deg); background: #111;
  box-shadow: -5px 7px 15px rgba(0,0,0,0.28);
}
.book-pages {
  position: absolute; z-index: 0; top: 0.8%; right: -1.5%; width: 2%; height: 98.6%;
  background: repeating-linear-gradient(90deg, #d9d5cb 0 1px, #aaa79f 1px 2px);
}
.book-shadow {
  position: absolute; z-index: 2; left: 50%; bottom: 20.5%; width: 31%; height: 4%;
  transform: translateX(-50%); border-radius: 50%;
  background: rgba(0,0,0,0.42); filter: blur(17px);
}
.hero-footer { width: min(100%, 880px); margin: 3rem auto 0; text-align: center; }
.hero-footer > p { margin: 0 auto; font: italic 400 clamp(1.2rem, 2vw, 1.6rem)/1.55 var(--serif); color: #4c4b47; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem; border: 1px solid var(--ink);
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 160ms ease, color 160ms ease;
}
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #343538; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: rgba(17,18,20,0.06); }
.button-inverse { border-color: var(--white); background: var(--white); color: var(--ink); }

.thesis { background: var(--white); }
.thesis-copy, .thesis-detail, .book-facts { width: min(100%, var(--max)); margin-inline: auto; }
.thesis-copy { text-align: center; }
.thesis-copy h2, .section-heading h2, .readers-intro h2, .organisations-intro h2, .availability-intro h2, .updates h2 {
  margin: 0; font-size: clamp(3rem, 5.7vw, 6.2rem); line-height: 1.02; letter-spacing: -0.035em;
}
.thesis-copy > p {
  max-width: 820px; margin: 2rem auto 0; font: 400 clamp(1.25rem, 2vw, 1.7rem)/1.55 var(--serif); color: #484844;
}
.thesis-detail {
  max-width: 800px; margin-top: 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  color: var(--muted); font-size: 0.92rem;
}
.book-facts {
  margin-top: 4.5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line);
}
.book-facts div { padding: 1.3rem 1rem; border-right: 1px solid var(--line); }
.book-facts div:first-child { padding-left: 0; }
.book-facts div:last-child { border: 0; }
.book-facts dt { color: var(--muted); font-size: 0.61rem; letter-spacing: 0.12em; text-transform: uppercase; }
.book-facts dd { margin: 0.35rem 0 0; font-family: var(--serif); }

.jacket { background: #17181b; color: var(--white); }
.section-heading { width: min(100%, var(--max)); margin: 0 auto 4rem; text-align: center; }
.section-heading .eyebrow { color: var(--silver); }
.section-heading h2 { font-size: clamp(3rem, 5vw, 5.6rem); }
.jacket-display {
  width: min(100%, 1180px); margin: 0 auto; padding: clamp(0.65rem, 1.2vw, 1rem);
  background: #242529; border: 1px solid var(--line-light);
}
.jacket-display img {
  display: block; width: 100%; height: auto; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

.readers { background: var(--paper); }
.readers-intro, .reader-list { width: min(100%, var(--max)); margin-inline: auto; }
.readers-intro { max-width: 900px; text-align: center; }
.readers-intro h2 { font-size: clamp(3rem, 5vw, 5.6rem); }
.readers-intro p { max-width: 680px; margin: 1.7rem auto 0; color: var(--muted); }
.reader-list { margin-top: 5rem; border-top: 1px solid var(--line); }
.reader-row {
  min-height: 130px; display: grid; grid-template-columns: 0.12fr 0.34fr 0.54fr;
  gap: 2rem; align-items: center; border-bottom: 1px solid var(--line);
}
.reader-row > span { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.12em; }
.reader-row h3 { margin: 0; font-size: clamp(1.65rem, 2.6vw, 2.5rem); }
.reader-row p { margin: 0; color: var(--muted); }

.reading { background: var(--white); }
.quotation { width: min(100%, var(--max)); margin-inline: auto; }
.quotation-light { position: relative; text-align: center; }
.quotation blockquote { margin: 0; font-family: var(--serif); text-wrap: balance; }
.quotation-light blockquote { font-size: clamp(2.4rem, 4.8vw, 5.1rem); line-height: 1.09; letter-spacing: -0.03em; }
.quotation-light footer { margin-top: 1.6rem; color: var(--muted); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; }
.quotation-light footer cite { font-family: var(--serif); letter-spacing: 0; text-transform: none; }
.quotation-light > p { max-width: 600px; margin: 2rem auto 0; color: var(--muted); }
.quotation-dark { margin-top: clamp(6rem, 11vw, 10rem); padding: clamp(2.5rem, 7vw, 6rem); background: var(--ink); color: var(--white); text-align: center; }
.quotation-dark .eyebrow { color: var(--silver); }
.quotation-dark blockquote { max-width: 900px; margin-inline: auto; font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.14; }

.organisations { background: var(--paper-deep); }
.organisations-intro, .organisation-uses, .enquiry-form { width: min(100%, 900px); margin-inline: auto; }
.organisations-intro { text-align: center; }
.organisations-intro h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.organisations-intro > p:last-child { max-width: 680px; margin: 1.7rem auto 0; color: var(--muted); }
.organisation-uses { margin-top: 4rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.organisation-uses li { display: grid; grid-template-columns: 54px 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); }
.organisation-uses span { color: var(--muted); font: 600 0.6rem var(--sans); letter-spacing: 0.1em; }
.enquiry-form { margin-top: 5rem; padding: clamp(2rem, 5vw, 4rem); background: var(--white); border: 1px solid rgba(17,18,20,0.12); }
.form-heading { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.form-heading h3 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); }
.form-heading > p:last-child { color: var(--muted); font-size: 0.82rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.enquiry-form label, .updates-form label { display: grid; gap: 0.42rem; margin-bottom: 1rem; }
.enquiry-form label > span, .updates-form label > span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.enquiry-form input:not([type="checkbox"]), .enquiry-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid #aaa8a2; border-radius: 0;
  padding: 0.75rem 0.1rem; background: transparent; color: var(--ink); outline: none;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.consent-line { grid-template-columns: auto 1fr !important; align-items: start; gap: 0.65rem !important; margin: 1.4rem 0 !important; }
.consent-line input { margin: 0.23rem 0 0; accent-color: var(--ink); }
.consent-line span { font-size: 0.7rem !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1.5; text-transform: none !important; }
.honeypot { position: absolute; left: -9999px; }

.availability { background: var(--white); }
.availability-intro, .edition-list { width: min(100%, var(--max)); margin-inline: auto; }
.availability-intro { max-width: 850px; text-align: center; }
.availability-intro h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.availability-intro > p:last-child { max-width: 650px; margin: 1.6rem auto 0; color: var(--muted); }
.edition-list { margin-top: 4.5rem; border-top: 1px solid var(--line); }
.edition-row { display: grid; grid-template-columns: 0.3fr 0.34fr 0.36fr; align-items: center; gap: 1.25rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.edition-format, .retailer-slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.edition-price { display: grid; grid-template-columns: max-content max-content; align-items: baseline; gap: 1rem; white-space: nowrap; }
.price-token { display: inline-block; white-space: nowrap; }
.price-token span { margin-left: 0.35rem; color: var(--muted); font: 600 0.6rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.edition-format span { font: 400 2rem var(--serif); }
.edition-format small, .edition-price small, .retailer-slot small { color: var(--muted); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.edition-price strong { font: 400 1.5rem var(--serif); }
.retailer-slot { justify-content: space-between; padding: 1rem 1.1rem; border: 1px solid var(--line); text-decoration: none; }
.retailer-slot span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.retailer-slot:hover { border-color: var(--ink); }

.updates {
  padding-block: clamp(7.5rem, 11vw, 11rem);
  background: var(--ink); color: var(--white); text-align: center;
}
.updates > * { width: min(100%, 860px); margin-inline: auto; }
.updates-heading {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.updates-heading .eyebrow {
  width: 100%; margin: 0 auto clamp(2.6rem, 4.5vw, 3.6rem);
  color: var(--silver); text-align: center;
}
.updates-heading h2 {
  width: 100%; max-width: 820px; margin: 0 auto;
  font-size: clamp(3rem, 5vw, 5.3rem); line-height: 1.03;
  text-align: center; text-wrap: balance;
}
.updates-heading .updates-intro {
  width: 100%; max-width: 620px;
  margin: clamp(2.7rem, 4.8vw, 3.8rem) auto 0;
  color: #aaa9a5; text-align: center;
}
.updates-form { margin-top: clamp(5rem, 8vw, 7rem); text-align: left; }
.updates-fields { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: end; }
.updates-fields label { margin: 0; }
.updates-form input[type="email"] {
  width: 100%; min-height: 46px; padding: 0.7rem; border: 1px solid var(--line-light);
  border-radius: 0; background: transparent; color: var(--white); outline: none;
}
.updates-form input[type="email"]:focus { border-color: var(--white); }
.updates .consent-line input { accent-color: var(--white); }

.site-footer {
  padding: 3.5rem var(--pad) 2rem; display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 3rem; align-items: center; background: var(--paper); border-top: 1px solid var(--line);
}
.publisher-mark { display: flex; align-items: center; gap: 0.8rem; }
.publisher-mark img { width: 44px; height: auto; filter: invert(1); }
.publisher-mark div { display: grid; font-family: var(--serif); line-height: 1.05; }
.publisher-mark strong { font-size: 1.1rem; font-weight: 400; }
.publisher-mark span { color: var(--muted); font-size: 0.75rem; }
.footer-statement { margin: 0; color: var(--muted); font: italic 400 0.95rem var(--serif); }
.site-footer nav { display: flex; gap: 1.25rem; font-size: 0.7rem; }
.copyright { grid-column: 1 / -1; margin: 1.8rem 0 0; color: #77756f; font-size: 0.64rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.legal-page, .message-page { min-height: 100vh; padding-top: 7rem; }
.legal-hero, .legal-content, .message-card { width: min(calc(100% - 2 * var(--pad)), 900px); margin-inline: auto; }
.legal-hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); }
.legal-hero h1, .message-card h1 { margin: 0; font: 400 clamp(3.4rem, 7vw, 6.5rem)/1 var(--serif); }
.legal-content { padding: 3.5rem 0 7rem; color: #4f4e49; }
.legal-content h2 { margin-top: 2.8rem; color: var(--ink); font: 400 2rem var(--serif); }
.legal-note { padding: 1rem 1.2rem; border-left: 2px solid var(--ink); background: rgba(17,18,20,0.04); }
.message-page { display: grid; place-items: center; padding: var(--pad); }
.message-card { text-align: center; }
.message-card .star { font-size: 1.3rem; }
.message-card p { max-width: 42rem; margin: 2rem auto; color: var(--muted); font: 400 1.25rem var(--serif); }

@media (max-width: 900px) {
  .book-facts { grid-template-columns: 1fr 1fr; }
  .book-facts div:nth-child(2) { border-right: 0; }
  .book-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .reader-row { grid-template-columns: 0.1fr 0.4fr 0.5fr; }
  .edition-row { grid-template-columns: 1fr 1fr; }
  .retailer-slot { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { min-height: 64px; }
  .menu-toggle { display: block; position: relative; z-index: 40; }
  .site-nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; min-height: 100vh;
    z-index: 30; padding: 8rem var(--pad) 3rem; overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 1.35rem;
    background: var(--paper); transform: translateX(100%); transition: transform 220ms ease;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { font: 400 2rem var(--serif); letter-spacing: 0; text-transform: none; }
  .site-nav .nav-cta { padding: 0; border: 0; }
  .hero { padding-top: 7.7rem; }
  .hero h1 { font-size: clamp(3.1rem, 13vw, 5.2rem); }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-product-photo { object-position: center; }
  .book-object { height: 61%; bottom: 20%; }
  .book-shadow { width: 53%; bottom: 19%; }
  .hero-footer { margin-top: 2.2rem; }
  .thesis-detail, .field-grid, .updates-fields { grid-template-columns: 1fr; gap: 0.7rem; }
  .book-facts { grid-template-columns: 1fr; }
  .book-facts div { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .book-facts div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .reader-row { grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.5rem 0; }
  .reader-row p { grid-column: 2; }
  .quotation-dark { width: calc(100% + 2 * var(--pad)); margin-left: calc(-1 * var(--pad)); }
  .edition-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .retailer-slot { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; gap: 1.8rem; }
  .site-footer nav { grid-column: 1; flex-wrap: wrap; }
}

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