:root {
  --paper: #F5F2EC;
  --ink: #252322;
  --warm-black: #1A1214;
  --red: #AA2B30;
  --cta: #90282B;
  --cta-hover: #631D20;
  --gold: #D4A782;
  --red-on-dark: #E0464C;
  --stone: #E9E3DB;
  --muted: #6D625E;
  --rule: #D6CFC6;
  --rule-strong: #B8A69A;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 35, 34, .07) 1px, transparent 0);
  background-size: 28px 28px;
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 3px solid #B44B42; outline-offset: 4px; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h2, h3, .subtitle { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
cite { font-style: italic; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 12px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--red); text-decoration: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button:hover { text-decoration: none; }
.arrow { flex: none; transition: transform .15s; }
.button:hover .arrow { transform: translate(2px, -2px); }
.nav-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; background: var(--ink); color: var(--paper); }
.nav-cta:hover { background: var(--cta); }
.primary { background: var(--cta); color: #fff; }
.primary:hover { background: var(--cta-hover); }
.secondary { border-color: var(--ink); color: var(--ink); }
.secondary:hover { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }
.light:hover { background: var(--gold); }

/* Labels */
.eyebrow, .label, .mono-num, .release, .toc-num, .case-sport, dt, .footer {
  font-family: var(--mono);
}
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.label .num { color: var(--red); font-weight: 600; }
.mono-num { display: block; font-size: 11px; letter-spacing: .1em; color: var(--red); margin-bottom: 14px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--red); }
h1 {
  margin: 22px 0 20px;
  font-size: clamp(58px, 8.6vw, 116px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.055em;
}
h1 span { color: var(--red); }
.subtitle {
  max-width: 22ch;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.hero-lede { max-width: 40ch; margin-top: 18px; font-size: 17px; line-height: 1.5; }
.byline { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.release { margin-top: 16px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.cover {
  width: min(100%, 380px);
  justify-self: center;
}
.cover img { width: 100%; box-shadow: 10px 18px 34px rgba(57, 36, 28, .28); }

/* Concept strip */
.concept-strip { border-block: 1px solid var(--rule); background: var(--stone); }
.concepts {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 16px;
  font: 13px/1.5 var(--mono);
  color: #79534E;
}
.concepts span { display: inline-flex; align-items: center; gap: 10px; }
.concepts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
h2 {
  max-width: 22ch;
  margin: 20px 0 28px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.04em;
}
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.section p { max-width: 62ch; color: var(--muted); }

/* Premise */
.premise { background: var(--warm-black); color: var(--paper); overflow: hidden; }
.premise-inner { position: relative; isolation: isolate; }
.premise .label, .engine .label { color: #CDBFB5; }
.premise .label .num { color: var(--red-on-dark); }
.engine .label .num { color: var(--gold); }
.premise .label::before { background: var(--red-on-dark); }
.engine .label::before { background: var(--gold); }
.premise h2 em { font-style: normal; color: var(--red-on-dark); }
.premise-copy { display: grid; gap: 18px; max-width: 62ch; }
.premise .lede { color: var(--paper); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; letter-spacing: -.01em; }
.premise p, .engine p { color: #DED0C7; }
.linework {
  position: absolute;
  right: 0;
  bottom: -40px;
  z-index: -1;
  width: 42%;
  color: var(--red-on-dark);
  opacity: .28;
  pointer-events: none;
}

/* Inside the book */
.learn { max-width: 820px; margin-top: 40px; border-top: 1px solid var(--ink); }
.learn li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.learn .mono-num { margin: 0; padding-top: 6px; }
.section .learn p { color: var(--ink); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.45; letter-spacing: -.01em; }

/* Contents */
.contents-section { border-top: 1px solid var(--rule); }
.contents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contents-intro h2 { margin-bottom: 24px; }
.audience-title {
  margin: 36px 0 12px;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.toc { border-top: 1px solid var(--ink); }
.toc li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.toc-num { padding-top: 4px; font-size: 12px; letter-spacing: .04em; color: var(--red); }
.toc-title { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.case {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.case-sport {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--rule-strong);
  color: #79534E;
}

/* Authors */
.authors { background: var(--stone); border-block: 1px solid var(--rule); }
.authors h2 + p { margin-bottom: 8px; }
.author-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.author-grid li { border-top: 1px solid var(--ink); padding-top: 20px; }
.author-grid h3 { margin-bottom: 8px; }
.author-grid p { font-size: 14px; line-height: 1.55; }

/* Order */
.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}
.order h2 { margin-bottom: 0; }
.details { border-top: 1px solid var(--ink); }
.details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.details dt { padding-top: 3px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details dd { font-size: 15px; line-height: 1.5; }

/* Engine */
.engine { background: var(--ink); color: var(--paper); }
.engine .button { margin-top: 30px; }

/* Footer */
.footer { background: var(--ink); color: #B9ADA6; font-size: 12px; line-height: 1.5; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid #3D3937;
}

@media (max-width: 960px) {
  .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents-grid, .order { grid-template-columns: 1fr; }
  .order { align-items: start; }
}

@media (max-width: 760px) {
  :root { --header: 60px; }
  .wrap { width: calc(100% - 48px); }
  .brand { font-size: 16px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 32px 56px; }
  h1 { margin: 16px 0 14px; font-size: clamp(52px, 15vw, 80px); }
  .subtitle { font-size: 22px; }
  .byline { margin-top: 12px; font-size: 14px; }
  .actions { margin-top: 22px; gap: 10px; }
  .actions .button { flex: 1 1 220px; }
  .cover { width: min(70%, 280px); }
  .concepts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-lede { margin-top: 14px; font-size: 16px; }
  .learn { margin-top: 28px; }
  .learn li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; padding: 16px 0; }
  .linework { width: 80%; opacity: .12; }
  .toc li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .toc-title { font-size: 17px; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 15px; gap: 8px; }
  .nav-cta { padding-inline: 12px; }
  .author-grid { grid-template-columns: 1fr; gap: 24px; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
