/* York Sims, author site. Static design preview, not the production build. */
:root {
  --paper: #f4efe4;
  --paper-deep: #ebe3d4;
  --ink: #1d1a17;
  --ink-soft: #4a433c;
  --muted: #5e564d;
  --rule: #cbbfac;
  --accent: #a3261f;
  --accent-ink: #fbf7ef;
  --focus: #1d4ed8;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Masthead ---------- */
.masthead { padding-top: 22px; }
.dateline {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--ink); padding-bottom: 8px;
}
.nameplate {
  display: block; text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 15vw, 196px); line-height: .82; letter-spacing: -.01em;
  padding: 14px 0 8px;
}
.nameplate:hover { color: var(--ink); }
.nameplate .jr { font-size: .32em; letter-spacing: .02em; vertical-align: .9em; margin-left: .08em; }
.mast-nav {
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px;
  padding: 9px 0; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: 14px;
}
.mast-nav a { text-decoration: none; padding: 4px 0; }
.mast-nav a[aria-current="page"] { color: var(--accent); }
/* compact masthead on inner pages */
.masthead.compact .nameplate { font-size: clamp(44px, 8vw, 88px); padding: 10px 0 6px; }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; color: var(--accent); margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: .92; margin: 0; font-weight: 800; }
h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.005em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: 24px; letter-spacing: .01em; }
.dek { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-soft); max-width: 36ch; margin: 18px 0 0; }
.caption { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 8px; font-style: italic; }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }
.rule-thick { border: 0; border-top: 4px solid var(--ink); margin: 0; }

/* ---------- Buy block ---------- */
.buy { border-top: 4px solid var(--ink); padding-top: 14px; margin-top: 26px; max-width: 460px; }
.buy-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.buy-row .fmt { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; }
.buy-row .fmt small { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.price { font-variant-numeric: lining-nums tabular-nums; font-size: 22px; font-weight: 600; }
.btn {
  appearance: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  font-size: 15px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ship { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.preview-note { font-size: 14px; color: var(--accent); margin: 8px 0 0; min-height: 1.4em; }
.read-link { display: inline-block; margin-top: 18px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 17px; color: var(--accent); }

/* ---------- Cover object: rendered paperback photo (see mockup/render_book.py) ---------- */
.cover { position: relative; background: transparent; box-shadow: none; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.cover.york img { aspect-ratio: 6.375 / 9.25; }
/* Hover: the book turns to show its back cover (real photo of the same book, mirrored pose). */
.cover img.back { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.cover img:first-child { transition: opacity .45s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cover:hover img.back, .cover:focus-within img.back { opacity: 1; }
  .cover:hover img:first-child, .cover:focus-within img:first-child { opacity: 0; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .cover img, .cover img.back { transition: none; }
  .cover:hover img.back { opacity: 1; }
  .cover:hover img:first-child { opacity: 0; }
}

/* ---------- Home: lead story ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 8fr) 1px minmax(0, 3.4fr); gap: 0 clamp(20px, 3vw, 44px); padding: 34px var(--gutter) 48px; }
.lead > .vr { background: var(--ink); }
.lead-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.lead-main .cover { margin-top: -58px; z-index: 1; } /* crosses the masthead rule on purpose */
.also h2 { font-size: 22px; letter-spacing: .1em; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.also-item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.also-item:hover h3 { color: var(--accent); }
.also-item h3 { font-size: 22px; line-height: 1; }
.also-item p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--ink-soft); }
.also-item .price-line { font-size: 14px; color: var(--muted); margin-top: 6px; font-variant-numeric: lining-nums; }
.also .teams-note { margin-top: 22px; font-size: 15.5px; line-height: 1.45; }

/* ---------- Home: record section ---------- */
.record { background: var(--paper-deep); border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 44px 0 52px; }
.record-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.record-copy h2 { margin-bottom: 16px; }
.record-copy p { margin: 0 0 14px; max-width: 46ch; }
.box { width: 100%; border-collapse: collapse; margin: 20px 0 6px; font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
.box th, .box td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.box th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--ink); }
.clipping { background: #fbf8f1; padding: 8px; border: 1px solid var(--rule); transform: rotate(-1.2deg); }
.clipping.r { transform: rotate(1deg); }

/* ---------- Home: excerpt ---------- */
.excerpt { padding: 56px 0 64px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 2fr); gap: 24px; }
.excerpt .label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 8px; }
.excerpt blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.38; hanging-punctuation: first; }
.excerpt blockquote p { margin: 0 0 .8em; text-indent: -.42em; }
.excerpt blockquote p + p { text-indent: 0; }

/* ---------- Book pages ---------- */
.book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); padding: 40px 0 64px; align-items: start; }
.book-side { position: sticky; top: 20px; }
.book-head h1 { font-size: clamp(48px, 7vw, 104px); }
.subtitle { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-style: italic; margin: 14px 0 0; max-width: 32ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-variant-numeric: lining-nums; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.section-h { font-size: 15px; letter-spacing: .16em; font-weight: 700; color: var(--accent); margin: 44px 0 14px; }
.pull { margin: 36px 0; padding: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; font-style: italic; hanging-punctuation: first; max-width: 26ch; }
.pull p { margin: 0; text-indent: -.4em; }
.pull cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; }
.contents { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.contents li { break-inside: avoid; display: grid; grid-template-columns: 2.2em 1fr; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.contents .n { color: var(--muted); font-variant-numeric: oldstyle-nums; }
.contents .part { grid-template-columns: 1fr; border-bottom: 1px solid var(--ink); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; padding-top: 18px; color: var(--muted); }
.for-list { padding-left: 1.1em; margin: 0; }
.for-list li { margin-bottom: 8px; }

/* ---------- Shelf ---------- */
.shelf-head { padding: 40px 0 12px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: end; border-bottom: 4px solid var(--ink); }
.shelf-head p { margin: 0; color: var(--ink-soft); }
.shelf-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 44px); padding: 36px 0; border-bottom: 1px solid var(--ink); align-items: start; }
.shelf-item.featured { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); }
.shelf-item h2 a { text-decoration: none; }
.shelf-item .buy { margin-top: 0; }
.shelf-item p { margin: 12px 0 0; max-width: 44ch; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal:nth-child(2) { animation-delay: .12s; }
  .reveal:nth-child(3) { animation-delay: .24s; }
  .reveal:nth-child(4) { animation-delay: .36s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Reading page ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 5; }
@media (prefers-reduced-motion: reduce) { .progress { transition: none; } }
.reader { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.title-block { text-align: center; padding: 48px 0 30px; border-bottom: 1px solid var(--ink); }
.title-block .book-t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; }
.title-block .ch { font-style: italic; font-size: 20px; margin: 26px 0 6px; color: var(--muted); }
.title-block h1 { font-size: clamp(46px, 9vw, 84px); }
.title-block .note { font-size: 16px; color: var(--muted); margin: 20px auto 0; max-width: 40ch; }
.compact-buy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: 16px; }
.compact-buy .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.compact-buy .btn { font-size: 13px; padding: 8px 12px; }
.chapter { font-size: clamp(19px, 1.1vw + 14px, 21px); line-height: 1.68; padding: 34px 0 10px; }
.chapter p { margin: 0; text-indent: 1.4em; }
.chapter p.first, .chapter .orn + p, .chapter h2 + p { text-indent: 0; }
.chapter .orn { text-align: center; margin: 1.4em 0; letter-spacing: .6em; color: var(--muted); }
.chapter h2 { font-size: 30px; margin: 1.8em 0 .7em; text-align: center; }
.chapter p.close { margin-top: 1em; text-indent: 0; font-style: italic; }
.end-block { padding: 20px 0 60px; }
.end-block h2 { font-size: 36px; margin: 30px 0 4px; }
.form { display: grid; gap: 12px; max-width: 460px; margin-top: 16px; }
.form label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 17px; padding: 10px 12px; background: #fbf8f1; color: var(--ink);
  border: 1px solid var(--ink-soft); border-radius: 0; width: 100%;
}
.form .hp { position: absolute; left: -9999px; }
.form .small { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); padding: 40px 0 60px; }
.about .prose p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-weight: 900; font-size: 4.6em; line-height: .78; margin: .06em .08em 0 0; }
.photo-col { display: grid; gap: 28px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.small-photo { max-width: 200px; }

/* ---------- Teams ---------- */
.teams { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); padding: 40px 0 64px; }

/* ---------- Colophon ---------- */
.colophon { border-top: 4px solid var(--ink); margin-top: 0; padding: 22px 0 40px; font-size: 15px; color: var(--ink-soft); }
.colophon .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 24px; }
.colophon p { margin: 0 0 8px; max-width: 60ch; }
.colophon .sig { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--ink); }
.colophon .fine { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .lead { grid-template-columns: 1fr; }
  .lead > .vr { display: none; }
  .also { margin-top: 36px; }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .record-copy { grid-column: 1 / -1; }
  .excerpt { grid-template-columns: 1fr; }
  .book, .about, .teams { grid-template-columns: 1fr; }
  .book-side { position: static; max-width: 420px; }
  .shelf-item, .shelf-item.featured { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .shelf-item .buy { grid-column: 1 / -1; }
  .shelf-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .dateline { justify-content: center; text-align: center; }
  .dateline span:nth-child(3) { display: none; }
  .lead-main { grid-template-columns: 1fr; }
  .lead-main .cover { margin-top: -20px; max-width: 280px; }
  .record-grid { grid-template-columns: 1fr; }
  .contents { columns: 1; }
  .shelf-item, .shelf-item.featured { grid-template-columns: 1fr; }
  .shelf-item .cover { max-width: 220px; }
  .colophon .cols { grid-template-columns: 1fr; }
  .buy-row { grid-template-columns: 1fr auto; }
  .buy-row .btn { grid-column: 1 / -1; text-align: center; }
  .mast-nav { gap: 2px 18px; font-size: 13px; }
  .photo-pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pass 2: less template, more book ---------- */
h1, h2 { font-family: var(--font-body); text-transform: none; font-weight: 600; letter-spacing: -.015em; line-height: 1.04; }
h1 { font-size: clamp(40px, 5.2vw, 72px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
.book-head h1, .shelf-item h2, .also-item h3, .title-block .book-t {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0; line-height: .92; font-weight: 800;
}
.book-head h1 { font-size: clamp(52px, 7vw, 104px); }
.shelf-item h2 { font-size: clamp(34px, 4vw, 54px); }
.shelf-head h1 { font-size: clamp(40px, 5vw, 64px); }
.title-block h1 { font-size: clamp(40px, 7vw, 66px); font-style: italic; font-weight: 400; }
.also h2 { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; }
.byline { font-style: italic; color: var(--muted); margin: 0 0 10px; font-size: 18px; }
.section-h { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 24px; font-weight: 600; margin: 44px 0 12px; border-top: 1px solid var(--ink); padding-top: 12px; }
.book-head + .prose { margin-top: 30px; }
.read-link { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.read-link:hover { color: var(--accent); }
.clipping, .clipping.r { transform: none; background: none; border: 0; padding: 0; }
.excerpt .label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-style: italic; font-size: 16px; font-weight: 400; }
.title-block .ch { font-style: normal; font-size: 15px; letter-spacing: .02em; }
.btn { letter-spacing: .06em; }
.colophon .sig { letter-spacing: .04em; }
.masthead { padding-top: 14px; }
.nameplate { border-top: 4px solid var(--ink); }
.excerpt blockquote p { text-indent: -.42em; }
.excerpt blockquote p + p { text-indent: 0; }

/* Rounded pill buttons (York's call) */
.btn { border-radius: 999px; padding: 11px 22px; }
.compact-buy .btn { padding: 8px 16px; }

/* Cover sits below the nav rule, no overlap */
.lead-main .cover { margin-top: 0; }
@media (max-width: 640px) { .lead-main .cover { margin-top: 0; } }

/* Pass 3: chapter-one label sits above the quote, not in its own column */
.excerpt { display: block; max-width: 760px; margin-left: auto; margin-right: auto; }
.excerpt .label { border-top: 0; padding-top: 0; margin: 0 0 14px; }

/* Coach's Guide block on the teams page */
.guide { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 3px solid var(--ink, #1b1a17); align-items: start; }
.guide img { width: 100%; height: auto; display: block; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.guide h2 { margin: 0 0 8px; }
.guide p { margin: 0 0 14px; }
.guide .btn { display: inline-block; text-decoration: none; }
@media (max-width: 480px) { .guide { grid-template-columns: minmax(0, 88px) minmax(0, 1fr); gap: 14px; } }

.coaches { padding: 8px 0 72px; }
.coaches .guide { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); max-width: 860px; gap: 28px; }
.coaches .label { margin: 0 0 6px; }
@media (max-width: 480px) { .coaches .guide { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); gap: 16px; } }

.years { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.years .label { margin: 0 0 14px; }
.years-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.years-row figure { margin: 0; }
.years-row img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
@media (max-width: 900px) { .years-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .years-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.clip-link { display: block; color: inherit; text-decoration: none; }
.clip-link .clipping { transition: transform .2s ease, box-shadow .2s ease; }
.clip-link:hover .clipping, .clip-link:focus-visible .clipping { transform: rotate(0deg) translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.papers { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }
.papers .label { margin: 0 0 14px; }
.papers-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.paper { display: flex; flex-direction: column; gap: 8px; background: #fbf8f1; border: 1px solid var(--rule); padding: 16px 16px 14px; color: var(--ink, #1b1a17); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.paper:nth-child(odd) { transform: rotate(-.6deg); } .paper:nth-child(even) { transform: rotate(.5deg); }
.paper:hover, .paper:focus-visible { transform: rotate(0) translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.paper-src { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.paper-h { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.15; font-weight: 700; }
.paper-lede { font-size: 15px; line-height: 1.45; font-style: italic; }
.paper-go { margin-top: auto; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; opacity: 0; transition: opacity .2s ease; }
.paper:hover .paper-go, .paper:focus-visible .paper-go { opacity: 1; }
@media (hover: none) { .paper-go { opacity: 1; } }
@media (max-width: 900px) { .papers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .papers-row { grid-template-columns: minmax(0, 1fr); } .paper, .paper:nth-child(odd), .paper:nth-child(even) { transform: none; } }

.takeaways { margin: 4px 0 18px; padding-left: 20px; font-size: 17px; line-height: 1.45; }
.takeaways li { margin-bottom: 6px; }
.after-excerpt { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 460px; }
.archive-more { display: none; margin-top: 18px; }
.about-archive { margin-top: 56px; }
@media (max-width: 560px) {
  .home-archive .years-row figure:nth-child(n+3) { display: none; }
  .home-archive .papers-row .paper:nth-child(n+4) { display: none; }
  .archive-more { display: block; }
}

/* ---------- Type hierarchy pass (Nov 8) ---------- */
:root { --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
body { line-height: 1.6; }
.nameplate { font-size: clamp(48px, 10.5vw, 140px); }
.masthead.compact .nameplate { font-size: clamp(38px, 6vw, 66px); }
.mast-nav { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 16px; gap: 4px 26px; }
.dateline { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; }
.btn { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 16px; padding: 12px 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.compact-buy .btn { font-size: 15px; padding: 10px 14px; }
.buy-row .fmt { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 17px; }
.buy-row .fmt small { font-family: var(--font-ui); font-size: 16px; }
.ship, .preview-note, .caption, .form .small, .also-item .price-line { font-size: 16px; }
.also-item p, .also .teams-note { font-size: 17px; line-height: 1.5; }
.form label { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 16px; }
.facts, .box th, .contents .part, .pull cite, .colophon .sig { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; }
.facts { font-size: 15px; }
.colophon .fine { font-size: 14px; }

/* featured book gets the full width; Also by York sits below it */
.lead { grid-template-columns: 1fr; }
.lead > .vr { display: none; }
.lead-main { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.lead-main h1 { max-width: 16ch; }
.lead-main .dek { max-width: 46ch; }
.lead-main .buy { max-width: 560px; }
.also { margin-top: 48px; border-top: 1px solid var(--ink); padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: start; }
.also h2 { grid-column: 1 / -1; border-bottom: 0; }
.also-item { grid-row: span 2; }
.archive-more { display: block; margin-top: 18px; }
@media (max-width: 760px) {
  .lead-main { grid-template-columns: 1fr; }
  .also { grid-template-columns: 1fr; }
  .also-item { grid-row: auto; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .mast-nav { font-size: 16px; gap: 2px 18px; }
}
.takeaways { font-size: 18px; line-height: 1.5; max-width: 46ch; }
@media print {
  .mast-nav, .compact-buy, .end-block, .progress, .colophon, .skip, .title-block .note { display: none !important; }
  body { background: #fff; }
  @page { margin: 0.8in; }
}

/* Open section rhythm: whitespace replaces decorative newspaper rules. */
.dateline, .nameplate, .mast-nav,
.buy, .also, .also h2, .also-item,
.record, .excerpt .label, .facts,
.section-h, .shelf-head, .shelf-item,
.title-block, .compact-buy, .colophon,
.guide, .years, .papers, .after-excerpt,
.contents li, .contents .part {
  border: 0;
}
.rule, .rule-thick { border: 0; }
.masthead { padding-top: 28px; }
.mast-nav { padding: 16px 0; }
.lead { padding-top: 40px; padding-bottom: 64px; }
.also { margin-top: 64px; padding-top: 0; }
.buy { padding-top: 0; }
.buy-row:last-child { border-bottom: 0; }
.record { padding-top: 64px; padding-bottom: 64px; }
.excerpt { padding-top: 72px; padding-bottom: 72px; }
.guide { padding-top: 0; }
.coaches { padding-top: 56px; padding-bottom: 80px; }
.colophon { background: var(--paper-deep); padding-top: 36px; padding-bottom: 36px; }
.section-h { padding-top: 0; }
.shelf-item { padding-top: 48px; padding-bottom: 48px; }
.contents .part { padding-top: 24px; padding-bottom: 10px; }
@media (max-width: 640px) {
  .masthead { padding-top: 20px; }
  .lead { padding-top: 24px; padding-bottom: 48px; }
  .also { margin-top: 44px; }
  .record, .excerpt { padding-top: 48px; padding-bottom: 48px; }
  .coaches { padding-top: 40px; padding-bottom: 56px; }
}

/* Introduce the book before presenting purchase options. */
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.intro-actions .read-link { margin-top: 0; }
.book-outcomes, .purchase-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; padding-top: 48px; padding-bottom: 64px; }
.book-outcomes p, .purchase-section p { max-width: 44ch; }
.book-outcomes .label { margin-top: 0; color: var(--muted); }
.book-outcomes .takeaways { margin-top: 0; padding-left: 22px; }
.book-outcomes li { margin-bottom: 18px; }
.purchase-section { scroll-margin-top: 32px; }
.purchase-section .buy { margin-top: 0; width: 100%; max-width: none; }
.more-books .also { margin-top: 16px; }
@media (max-width: 760px) {
  .book-outcomes, .purchase-section { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 40px; }
}

/* A composed basketball archive: story, featured yearbook, supporting record. */
.record-story .record-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.record-story .record-copy { grid-column: auto; }
.yearbook-feature { margin: 0; }
.yearbook-link { display: block; background: #fff; box-shadow: 0 8px 24px rgba(29,26,23,.12); }
.yearbook-link img { width: 100%; height: auto; }
.yearbook-feature .caption { margin-top: 14px; }
.yearbook-feature .caption strong { font-style: normal; font-weight: 600; color: var(--ink); }
.record-support { display: grid; gap: 64px; }
.record-support .caption { margin-top: 12px; }
.record-support .clip-link:hover .clipping { transform: none; box-shadow: none; }
.record-story .archive-more { margin-top: 28px; }
@media (max-width: 980px) {
  .record-story .record-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .record-story .record-copy { grid-column: 1 / -1; }
  .record-story .record-copy p { max-width: 64ch; }
  .record-story .box { max-width: 360px; }
}
@media (max-width: 600px) {
  .record-story .record-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .record-story .record-copy { grid-column: auto; }
  .record-support { gap: 48px; }
}

/* Roster portrait with the same caption treatment as the archive images. */
.record-headshot { display: block; margin: -24px 0 0; }
.record-headshot img { width: 180px; max-width: 100%; height: auto; margin-inline: auto; }
.record-headshot .caption { margin-top: 12px; text-align: center; }
@media (max-width: 600px) { .record-headshot { margin-top: -12px; } }


/* ---------- Mobile pass (Nov 8) ---------- */
/* Section rules like .book and .about zeroed the side padding that .wrap sets.
   On narrow screens that put text against the glass. Restore it everywhere. */
.wrap.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
/* Tap targets: 44px for the menu, 40px+ for text links and compact buttons. */
.mast-nav { padding: 2px 0; }
.mast-nav a { padding: 10px 2px; }
.read-link { padding: 6px 0; }
.compact-buy .btn { padding: 11px 14px; }
.colophon .fine a { display: inline-block; padding: 6px 0; }
/* Small type: nothing under 14px, footer links at 16px. */
.colophon .fine, .colophon .fine a { font-size: 16px; }
.colophon p.fine:last-child { font-size: 14px; }
.box th { font-size: 13px; }
.contents .part { font-size: 14px; }
.pull cite { font-size: 15px; }
.paper-src { font-size: 13px; }
.paper-go { font-size: 15px; }
/* The roster headshot source is 143px wide; keep it near that so it stays sharp. */
.record-headshot img { width: 140px; }
@media (max-width: 560px) {
  .about .prose p:first-of-type::first-letter { font-size: 3.4em; }
}

/* Career photographs retain their original portrait and team-photo framing. */
.playing-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.playing-photos figure { margin: 0; }
.playing-action { width: 100%; }
.playing-photos img { width: 100%; height: auto; }
.playing-photos .caption { text-align: left; }

.playing-high-school { width: min(100%, 260px); justify-self: center; }

/* Rupp Arena action photo in the home archive column. */
.record-action { margin: 0; }
.record-action img { width: 100%; height: auto; display: block; }
.record-action .caption { margin-top: 12px; }
/* On phones the covers sit in a single column; center them. */
@media (max-width: 760px) {
  .lead-main .cover, .shelf-item .cover, .shelf-item.featured .cover { margin-left: auto; margin-right: auto; }
}

/* ---------- Read page: the book opens onto page 1 (CSS only) ---------- */
@view-transition { navigation: auto; }
.lead-main .cover img:first-child { view-transition-name: lead-book; }
.opening .face.front img { view-transition-name: lead-book; }
::view-transition-group(lead-book) { animation-duration: .5s; }

.opening { --pg-w: clamp(230px, 36vw, 340px); --pg-h: calc(var(--pg-w) * 1.5); --ease: cubic-bezier(.66, 0, .3, 1);
  --pg: #fbf7ee; padding: 26px 0 8px; overflow: hidden; text-align: center; }
.opening-label, .opening-cue { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.opening-cue { margin: 26px 0 0; opacity: 0; animation: cue-in .6s ease 2.3s forwards; }
.book3d { position: relative; width: calc(var(--pg-w) * 2); height: var(--pg-h); margin: 0 auto; perspective: 2400px;
  transform: translateX(calc(var(--pg-w) * -.5)); animation: center-book 1.7s var(--ease) .8s forwards; }
.book3d .page.right { position: absolute; left: 50%; top: 0; width: var(--pg-w); height: 100%; text-align: left;
  background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(0,0,0,.04) 7%, rgba(0,0,0,0) 14%), var(--pg);
  border-radius: 1px 6px 6px 1px; padding: 9% 8% 10%; font-size: clamp(13px, 1.1vw + 6px, 15.5px); line-height: 1.5; color: var(--ink);
  box-shadow: 1px 1px 0 #d8cfbd, 2px 2px 0 var(--pg), 3px 3px 0 #d8cfbd, 4px 4px 0 var(--pg), 5px 5px 0 #d8cfbd, 6px 6px 0 var(--pg), 7px 7px 0 #d8cfbd, 12px 16px 30px rgba(29,26,23,.22); }
.page.right .book-t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .75em; margin: 0; color: var(--muted); }
.page.right .ch { font-style: italic; margin: 1.6em 0 .3em; color: var(--muted); }
.page.right h1 { font-size: clamp(22px, 2.2vw + 10px, 34px); line-height: .95; margin: 0 0 1.2em; }
.page.right p.first { margin: 0; text-indent: 0; }
.page.right .pg-num { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; font-size: .8em; color: var(--muted); font-variant-numeric: lining-nums; }
.book-cover { position: absolute; left: 50%; top: 0; width: var(--pg-w); height: 100%; transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(0deg); animation: open-cover 1.7s var(--ease) .8s forwards; }
.book-cover .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 1px 6px 6px 1px; }
.face.front img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 10px 14px 34px rgba(29,26,23,.28); }
.face.front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,0,0,.12) 4%, rgba(0,0,0,0) 10%, rgba(255,255,255,0) 85%, rgba(255,255,255,.08)); }
.face.inside { transform: rotateY(180deg); background: linear-gradient(270deg, rgba(0,0,0,.14), rgba(0,0,0,.03) 8%, rgba(0,0,0,0) 15%), var(--pg); display: grid; place-items: center; text-align: center; padding: 12%; }
.half-title .ht-t { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 2.4vw + 8px, 38px); line-height: .9; margin: 0 0 .8em; }
.half-title .ht-s { font-style: italic; font-size: clamp(12px, 1vw + 5px, 15px); margin: 0 0 2.2em; color: var(--muted); max-width: 20ch; }
.half-title .ht-a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(11px, .8vw + 5px, 13px); margin: 0; }
@keyframes open-cover { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
@keyframes center-book { from { transform: translateX(calc(var(--pg-w) * -.5)); } to { transform: translateX(0); } }
@keyframes cue-in { to { opacity: 1; } }
.opening + .reader .compact-buy { margin-top: 10px; border-top: 1px solid var(--ink); }
@media (max-width: 640px) {
  .opening { --pg-w: min(80vw, 320px); }
  .book3d { width: var(--pg-w); transform: none; animation: none; }
  .book3d .page.right, .book-cover { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .book3d, .book-cover, .opening-cue { animation: none; }
  .book3d { transform: none; } .book-cover { transform: rotateY(-180deg); } .opening-cue { opacity: 1; }
}
