:root {
  --font-text: "Newsreader", Georgia, serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --paper: #f7f7f4;
  --paper-bright: #fdfdfc;
  --paper-deep: #eeeeeb;
  --ink: #202020;
  --ink-soft: #373737;
  --muted: #686864;
  --line: #cecec8;
  --line-dark: #a9a9a3;
  --accent: #55575a;
  --offset: #d7d7d2;
  --dark: #222324;
  --dark-panel: #2c2d2e;
  --dark-line: #4b4c4d;
  --dark-text: #f3f3f0;
  --dark-muted: #b9bab7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 10px 16px; color: var(--paper-bright); background: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, .93);
  backdrop-filter: blur(14px);
}
.header-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-family: var(--font-display); font-size: 15px; font-weight: 620; letter-spacing: .055em; line-height: 1.2; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.wordmark-logo { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 32px); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav a { padding: 5px 0; border-bottom: 1px solid transparent; text-decoration: none; }
.site-header nav a:hover { border-bottom-color: var(--ink); }
.site-header .nav-download { padding: 9px 13px; border: 1px solid var(--ink); }
.site-header .nav-download:hover { color: var(--paper-bright); background: var(--ink); }

.hero { padding: 108px 0 88px; }
.eyebrow, .card-kicker { margin: 0 0 24px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; }
.hero h1 { max-width: 1080px; margin: 0; font-family: var(--font-display); font-size: clamp(66px, 9.2vw, 132px); font-weight: 470; letter-spacing: -.05em; line-height: .91; }
.hero h1 em, .section-heading h2 em, .summary-copy h2 em { color: #676767; font-weight: 350; }
.hero-meta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.hero-author { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 29px); font-weight: 560; }
.hero-author a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.edition-note { margin: 0; color: var(--muted); font-style: italic; }
.hero-question { max-width: 800px; margin: 32px 0 0; color: var(--muted); font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 25px); font-style: italic; line-height: 1.45; }
.hero-stats { max-width: 610px; margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 17px 24px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 560; line-height: 1.1; }
.stat span { color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.button { min-height: 53px; padding: 13px 25px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-family: var(--font-display); font-size: 13px; font-weight: 650; letter-spacing: .1em; line-height: 1.25; text-align: center; text-decoration: none; text-transform: uppercase; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line-dark); }
.button-dark { color: var(--paper-bright); background: var(--ink); }
.button-light { background: var(--paper-bright); }
.button-quiet { border-color: var(--line-dark); }
.button svg { flex: 0 0 auto; }
.star-count { padding-left: 9px; border-left: 1px solid currentColor; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; }

.summary { padding: 100px 0 112px; display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: clamp(48px, 7vw, 90px); align-items: center; }
.book-cover { position: relative; margin: 0; }
.book-cover::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0; background: var(--offset); }
.book-cover > a { position: relative; z-index: 1; display: block; }
.book-cover img { width: 100%; border: 1px solid var(--ink); box-shadow: 0 24px 48px rgba(32, 32, 32, .17); }
.book-cover figcaption { position: relative; z-index: 1; margin-top: 28px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.summary-copy h2 { margin: 0 0 27px; font-family: var(--font-display); font-size: clamp(48px, 6vw, 72px); font-weight: 520; letter-spacing: -.035em; line-height: 1.02; }
.summary-copy p { max-width: 690px; margin: 0 0 20px; font-size: clamp(20px, 2vw, 24px); line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.text-link span { border-bottom: 1px solid var(--ink); }
.text-link:hover span { border-bottom-color: transparent; }

.numbered-section { padding: 106px 0; }
.section-heading { margin-bottom: 50px; display: flex; align-items: center; gap: 24px; }
.section-number { width: 60px; height: 70px; flex: 0 0 auto; display: grid; place-items: center; color: var(--paper-bright); background: var(--accent); box-shadow: 7px 7px 0 var(--offset); font-family: var(--font-display); font-size: 39px; font-weight: 560; transform: rotate(-3deg); }
.section-heading h2 { max-width: 950px; margin: 0; font-family: var(--font-display); font-size: clamp(44px, 6vw, 70px); font-weight: 470; letter-spacing: -.035em; line-height: 1.04; }
.section-intro { max-width: 810px; margin: -16px 0 46px 84px; color: var(--ink-soft); font-size: 22px; line-height: 1.58; }
.chapter-list { border-top: 1px solid var(--line-dark); }
.chapter-list article { padding: 28px 10px; display: grid; grid-template-columns: 82px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.chapter-list article > span { padding-top: 7px; color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.chapter-list h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 29px; font-weight: 560; line-height: 1.18; }
.chapter-list p { max-width: 780px; margin: 0; color: var(--muted); }
.chapter-list .featured-chapter { padding-inline: 23px; border-left: 5px solid var(--accent); background: var(--paper-deep); }
.chapter-tag { display: inline-block; margin-top: 16px; padding: 5px 9px; border: 1px solid var(--line-dark); color: var(--accent); font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.preview-section { padding: 108px 0 118px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.book-preview { overflow: hidden; border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 12px 14px 0 var(--offset); }
.preview-header { padding: 28px 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.preview-header h3 { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 560; line-height: 1.15; }
.preview-header p { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.preview-frame { padding: 20px; background: #e4e4e0; }
.preview-pdf { width: 100%; height: 720px; display: block; border: 1px solid var(--line-dark); background: #fff; }
.preview-pdf p { padding: 24px; }
.purchase-panel { padding: 27px 32px 31px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--ink); }
.purchase-panel p { max-width: 430px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.purchase-panel .actions { flex: 0 0 auto; margin: 0; }
.purchase-panel .button { padding-inline: 18px; font-size: 11px; }

.author-section { padding: 116px 0 122px; color: var(--dark-text); background: var(--dark); }
.author-section .eyebrow, .author-section .card-kicker { color: var(--dark-muted); }
.author-section .section-heading h2 { color: var(--dark-text); }
.author-section .section-heading h2 em { color: #c6c6c2; }
.author-section .section-number { color: var(--ink); background: #d8d8d3; box-shadow: 7px 7px 0 #484849; }
.author-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(42px, 7vw, 78px); align-items: start; }
.author-portrait { margin: 0; padding: 7px; background: var(--paper-bright); box-shadow: 12px 14px 0 #454647; }
.author-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; filter: grayscale(1) contrast(1.05); }
.author-portrait figcaption { padding: 12px 4px 5px; color: var(--ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.author-copy h3 { margin: 0 0 19px; font-family: var(--font-display); font-size: clamp(38px, 4vw, 50px); font-weight: 520; line-height: 1.05; }
.author-copy > p:not(.card-kicker) { max-width: 710px; margin: 0; color: #d4d5d1; font-size: 20px; line-height: 1.62; }
.author-copy a:not(.button) { text-underline-offset: 4px; }
.author-copy .actions { margin-top: 30px; }
.author-copy .button { border-color: #8b8c89; color: var(--dark-text); }
.author-copy .button:hover { box-shadow: 5px 5px 0 #5c5d5e; }
.author-message { margin-top: 70px; padding-top: 39px; border-top: 1px solid var(--dark-line); }
.author-message blockquote { max-width: 920px; margin: 0 0 20px; padding-left: 26px; border-left: 4px solid #a4a5a2; color: var(--dark-text); font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-style: italic; line-height: 1.4; }
.author-message cite, .testimonial cite { color: var(--dark-muted); font-family: var(--font-mono); font-size: 10px; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.testimonial { max-width: 940px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0 0 25px; font-family: var(--font-display); font-size: clamp(29px, 4.3vw, 45px); font-style: italic; font-weight: 400; line-height: 1.35; }
.testimonial cite { color: var(--muted); }

.site-footer { padding: 55px 0 25px; border-top: 1px solid var(--line); background: #e9e9e5; }
.footer-grid { display: grid; grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(125px, 1fr)); gap: 36px; }
.footer-brand .wordmark { font-size: 13px; white-space: normal; }
.footer-desc { max-width: 310px; margin: 19px 0 12px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.footer-email { font-size: 16px; text-underline-offset: 4px; }
.footer-col h2 { margin: 0 0 15px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; list-style: none; }
.footer-links a { font-size: 16px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links svg { display: inline-block; margin-right: 6px; vertical-align: -2px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-underline-offset: 3px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-badge { padding: 3px 8px; border: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

.legal-main { padding: 82px 0 105px; }
.legal-container { max-width: 820px; }
.back-link { display: inline-flex; gap: 9px; margin-bottom: 49px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.legal-header { margin-bottom: 43px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.legal-header .eyebrow { margin-bottom: 20px; }
.legal-header h1 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(50px, 7vw, 76px); font-weight: 480; letter-spacing: -.04em; line-height: 1.05; }
.legal-header p { margin: 0; color: var(--muted); font-family: var(--font-display); font-size: 23px; font-style: italic; }
.legal-content h2 { margin: 37px 0 11px; font-family: var(--font-display); font-size: 27px; font-weight: 580; line-height: 1.25; }
.legal-content p { margin: 0 0 17px; color: var(--ink-soft); font-size: 19px; }
.legal-content a { text-underline-offset: 4px; }
.legal-content .last-updated { margin-top: 47px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 980px) {
  .summary { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 48px; }
  .purchase-panel { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header nav a:not(.nav-download) { display: none; }
  .hero { padding-top: 80px; }
  .summary { grid-template-columns: 1fr; gap: 62px; }
  .book-cover { width: min(430px, calc(100% - 18px)); margin-inline: auto; }
  .summary-copy { max-width: 720px; }
  .section-intro { margin-left: 0; }
  .author-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 42px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .shell { width: min(100% - 30px, 1120px); }
  .header-wrap { min-height: 64px; gap: 14px; }
  .wordmark { max-width: 190px; font-size: 11px; white-space: normal; }
  .site-header .wordmark { line-height: 1.3; }
  .wordmark-logo { width: 35px; height: 35px; }
  .site-header .nav-download { padding: 8px 9px; font-size: 9px; }
  .hero { padding: 68px 0 64px; }
  .hero h1 { font-size: clamp(51px, 16vw, 78px); }
  .hero-meta { display: block; margin-top: 34px; }
  .edition-note { margin-top: 7px; }
  .hero-question { font-size: 20px; }
  .hero-stats { width: 100%; }
  .stat { padding: 14px 12px; }
  .stat:first-child { padding-left: 0; }
  .stat strong { font-size: 29px; }
  .stat span { font-size: 8px; }
  .actions { align-items: stretch; }
  .actions .button { flex: 1 1 auto; }
  .summary, .numbered-section, .preview-section, .author-section { padding-top: 76px; padding-bottom: 80px; }
  .summary-copy h2 { font-size: 48px; }
  .summary-copy p { font-size: 20px; }
  .section-heading { align-items: flex-start; gap: 16px; margin-bottom: 39px; }
  .section-number { width: 47px; height: 56px; font-size: 31px; }
  .section-heading h2 { font-size: 40px; }
  .section-intro { margin-top: -10px; font-size: 20px; }
  .chapter-list article { grid-template-columns: 47px 1fr; gap: 13px; padding: 24px 5px; }
  .chapter-list .featured-chapter { padding-inline: 15px; }
  .chapter-list h3 { font-size: 25px; }
  .preview-header { padding: 24px 22px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .preview-header h3 { font-size: 28px; }
  .preview-frame { padding: 10px; }
  .preview-pdf { height: 560px; }
  .purchase-panel { padding: 25px 22px; }
  .purchase-panel .actions { width: 100%; }
  .author-layout { grid-template-columns: 1fr; }
  .author-portrait { width: 225px; }
  .author-message { margin-top: 53px; }
  .author-message blockquote { padding-left: 19px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 31px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .legal-main { padding: 59px 0 77px; }
  .back-link { margin-bottom: 39px; }
  .legal-header h1 { font-size: 50px; }
}

@media (max-width: 390px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .button { padding-inline: 17px; }
}

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