:root {
  color-scheme: light;
  --paper: #f6eedd;
  --paper-light: #fbf4e6;
  --night: #2b2b30;
  --ink: #1f1c1a;
  --muted: #5a524a;
  --red: #b5432f;
  --red-dark: #8d3223;
  --rule: #b8a78d;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

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

body, h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 500 clamp(1rem, 0.94rem + 0.2vw, 1.125rem)/1.9 var(--gothic);
  overflow-wrap: anywhere;
}

img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:where(a, summary):focus-visible { outline: 2px solid var(--red-dark); outline-offset: 4px; }

h1, h2, h3 { font: 700 1em/1.35 var(--mincho); }
h2 { font-size: clamp(1.625rem, 3.05vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 2.2rem); }
.line { display: inline-block; white-space: nowrap; }
.keep-end { white-space: nowrap; }
/* The narrowest cells cannot hold a grouped ending without stranding the start. */
@media (max-width: 359px) { :is(td, th, dd) .keep-end { white-space: normal; } }
ul, ol { padding: 0; }

.prose { inline-size: 100%; max-inline-size: 680px; }
.prose > * + * { margin-block-start: 1.15em; }
.wide { max-inline-size: 880px; margin-inline: auto; }

.chapter {
  position: relative;
  isolation: isolate;
  padding: clamp(78px, 11.2vw, 164px) var(--gutter);
}

.chapter-inner { position: relative; }
.chapter + .chapter:not(.chapter-night) .chapter-inner::before {
  content: "";
  position: absolute;
  inset: -48px auto auto 0;
  inline-size: 49px;
  border-block-start: 1px solid var(--rule);
}
.chapter-heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2.4vw, 34px);
  margin-block-end: clamp(28px, 4vw, 53px);
}
.chapter-number {
  flex: none;
  writing-mode: vertical-rl;
  border-inline-start: 0;
  border-right: 1px solid var(--red);
  padding: 0.13em 0.63em 0.12em 0;
  font: 700 clamp(1rem, 1.5vw, 1.25rem)/1 var(--mincho);
  letter-spacing: 0.14em;
}

.marker {
  --highlight: rgba(181, 67, 47, 0.19);
  background-image: linear-gradient(to top, var(--highlight), var(--highlight));
  background-position: 0 92%;
  background-repeat: no-repeat;
  background-size: 100% 0.45em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.marker.ready { background-size: 0 0.45em; transition: background-size 650ms ease-out; }
.marker.ready.in-view { background-size: 100% 0.45em; }

.wash-section::before, .wash-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.wash-section::before {
  inset: 0;
  background: url("../assets/wash.webp") center top / cover no-repeat;
  opacity: 0.72;
  mask-image: linear-gradient(black 50%, transparent);
}
.wash-section::after {
  inset: 2% auto auto max(0px, calc((100% - 1290px) / 2));
  inline-size: clamp(106px, 23vw, 325px);
  aspect-ratio: 2 / 3;
  background: url("../assets/flowers.webp") center / contain no-repeat;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at center, black 29%, transparent 75%);
}
.paper-art {
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse 68% 69% at center, black 60%, transparent 93%);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 24px var(--gutter) 32px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "book" "action";
  justify-items: center;
  align-items: center;
  /* 780px keeps the right-page lead on the paper on short screens. */
  max-inline-size: min(960px, max(780px, calc((100svh - 240px) * 1.5)));
  margin-inline: auto;
}
.hero-label {
  grid-area: label;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 35px);
  margin: 0 0 16px;
  text-align: center;
  font: 700 clamp(1rem, 0.82rem + 0.43vw, 1.25rem)/1.55 var(--mincho);
}
.hero-label::before, .hero-label::after {
  content: "";
  inline-size: clamp(0px, 9vw, 110px);
  border-block-start: 1px solid var(--rule);
}
.hero-book {
  grid-area: book;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  container-type: inline-size;
  overflow: clip;
  inline-size: 100%;
  aspect-ratio: 3 / 2;
}
.hero-spread {
  position: absolute;
  z-index: -1;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, black 1.15% 98.85%, transparent),
    linear-gradient(transparent, black 2% 96%, transparent);
  mask-composite: intersect;
}
.hero-book h1 {
  position: absolute;
  font-size: clamp(1.5rem, 3.05vw, 2.7rem);
  font-size: clamp(1.5rem, 3.95cqw, 2.7rem);
  line-height: 1.4;
  letter-spacing: 0.013em;
  inset: 49% auto auto 26.3%;
  translate: -50% -50%;
  text-align: center;
  z-index: 1;
}
.hero-book h1 .line { display: block; }
.hero-book h1 :is(.h1-main, .h1-sub) { display: block; }
.hero-book h1 .h1-sub { margin-block-start: 1.1em; padding-block-start: 0.9em; border-block-start: 1px solid var(--rule); font-size: 0.68em; line-height: 1.65; }
.hero-book h1 .key { font-style: normal; color: var(--red); }
.hero-book h1 .fall { display: inline-block; }
.hero-lead {
  grid-area: book;
  z-index: 1;
  justify-self: end;
  inline-size: 38.5%;
  margin-inline-end: 5.8%;
  margin-block-end: 1.3%;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.95;
  line-break: strict;
  text-wrap: pretty;
}
.hero-lead p + p { margin-block-start: 0.95em; }
.hero-action { grid-area: action; margin-block-start: 7px; }
.cta-group { inline-size: min(100%, 550px); margin-inline: auto; text-align: center; }
.hero-action { inline-size: min(100%, 680px); }
.ribbon {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.7vw, 36px);
  inline-size: min(100%, 550px);
  min-block-size: 70px;
  padding: 15px clamp(12px, 4vw, 34px);
  border: 1px solid var(--red-dark);
  border-radius: 0;
  background:
    repeating-linear-gradient(3deg, #fff0 0 2px, #3c100b13 2px 3px),
    repeating-linear-gradient(93deg, #fff0 0 2px, #fff1 2px 3px),
    var(--red);
  box-shadow: 0 3px 0 #76281940, 0 7px 12px #3b21091f;
  color: var(--paper-light);
  font: 700 clamp(1.1rem, 2.3vw, 1.56rem)/1.45 var(--mincho);
  text-decoration: none;
}
.ribbon::before {
  content: "";
  position: absolute;
  inset: 5px 3px;
  border-block: 1px solid #f2d3a7a0;
  pointer-events: none;
}
.ribbon::after {
  content: "";
  flex: none;
  inline-size: 0.45em;
  block-size: 0.45em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  rotate: 45deg;
}
.ribbon:hover { background-color: var(--red-dark); }
.ribbon:focus-visible { outline: 2px solid var(--paper-light); outline-offset: 2px; box-shadow: 0 0 0 6px var(--red-dark); }
.cta-group > p { margin-block-start: 10px; font-size: 1rem; }

.concerns { padding-block-start: clamp(70px, 9vw, 130px); }
.concerns::after { inset-inline: auto max(0px, calc((100% - 1300px) / 2)); }
/* One shared ground line makes the narrow books read as a single shelf. */
.concerns-layout, .curriculum-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.spines { list-style: none; }
.shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  inline-size: max-content;
  max-inline-size: 100%;
  margin-inline: auto;
  padding-inline: 8px;
  border-block-end: 1px solid #786b5666;
  box-shadow: 0 5px 5px -4px #30201040;
}
.shelf > li { flex: none; }
.spine {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  block-size: var(--book-height, 320px);
  aspect-ratio: var(--book-ratio, 1 / 4.8);
  color: #fbf4e6;
}
.spine img {
  position: absolute;
  inset: 0;
  z-index: -1;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  filter: brightness(var(--cloth-light, 1));
}
.spine strong {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-break: strict;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
  font: 700 18px/1.15 var(--mincho);
  letter-spacing: 0;
}
.tcy { text-combine-upright: all; }
.concerns-spines li:nth-child(1) { --book-height: 320px; }
.concerns-spines li:nth-child(2) { --book-height: 336px; }
.concerns-spines li:nth-child(2) .spine { color: var(--ink); }
.concerns-spines li:nth-child(3) { --book-height: 340px; }
.concerns-spines li:nth-child(4) { --book-height: 328px; }
.shelf-notes { list-style: none; }
.shelf-notes > li { position: relative; padding-inline-start: 20px; }
.shelf-notes > li + li { margin-block-start: 22px; }
.shelf-notes > li::before {
  content: "";
  position: absolute;
  inset: 0.55em auto auto 0;
  inline-size: 7px;
  block-size: 12px;
  background: var(--note-cloth, #9e3b2b);
}
.concerns-notes > li:nth-child(2) { --note-cloth: #cdbfa5; }
.concerns-notes > li:nth-child(3), .month-notes > li:nth-child(2) { --note-cloth: #34343a; }
.concerns-notes > li:nth-child(4), .month-notes > li:nth-child(3) { --note-cloth: #4a5b78; }
.shelf-notes h3 { font: 700 19px/1.6 var(--mincho); line-break: strict; word-break: keep-all; overflow-wrap: normal; }
.shelf-notes p { margin-block-start: 5px; font-size: 1rem; line-height: 1.8; }

.concerns-close {
  margin: clamp(50px, 8vw, 102px) auto 0;
  text-align: center;
}
.concerns-close > p { max-inline-size: 555px; margin-inline: auto; }

.about, .outcomes, .material { padding-block: clamp(80px, 9vw, 130px); }
.about { background: #ffffff25; }
.about-layout, .material-layout, .instructor-layout {
  display: grid;
  gap: clamp(22px, 4.4vw, 58px);
  align-items: center;
}
.about-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.about-layout .paper-art { inline-size: 100%; }
.definitions {
  border-block-start: 1px solid var(--rule);
  line-height: 1.75;
}
.definitions > div {
  display: grid;
  grid-template-columns: minmax(90px, 29%) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  border-block-end: 1px solid var(--rule);
  padding-block: 11px;
}
.definitions dt {
  align-self: start;
  padding: 0.16em 0.5em;
  background: var(--red-dark);
  color: var(--paper-light);
  font-weight: 700;
  line-height: 1.45;
}

.outcomes { background: #00000003; }
.book-table-wrap {
  position: relative;
  isolation: isolate;
  border: 1px solid #a56849;
  border-radius: 2.1% 2.1% 1.5% 1.5%;
  background:
    linear-gradient(90deg, #bd997d56 0%, transparent 3% 46%, #ba94753d 49.7%, #a87a5952 50%, #fff6e255 50.3%, transparent 54% 97%, #bd997d56),
    var(--paper-light);
  box-shadow: 0 3px var(--paper-light), 0 5px #c5a588, 0 7px var(--paper-light), 0 9px #9b6650, 0 14px 20px #4b29152b;
  padding: 14px clamp(5px, 1.8vw, 24px) 20px;
}
.book-table-wrap::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: url("../assets/fv-book.webp") center / 103% 106%;
  mix-blend-mode: multiply;
  opacity: 0.23;
}
table { inline-size: 100%; border-collapse: collapse; font-size: clamp(1rem, 1.3vw, 1.125rem); }
table th, table td { text-align: start; vertical-align: top; }
.book-table { table-layout: fixed; }
.book-table th, .book-table td { padding: 12px clamp(8px, 2.6vw, 32px); }
.book-table tbody tr + tr { border-top: 1px dotted var(--rule); }
.book-table th {
  color: var(--red-dark);
  font: 700 clamp(1.125rem, 2.5vw, 1.65rem)/1.4 var(--mincho);
  border-block-end: 1px solid var(--rule);
}

.material-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.text-list { list-style: none; }
.text-list li { padding-inline-start: 1.15em; position: relative; }
.text-list li + li { margin-block-start: 0.35em; }
.text-list li::before {
  content: "";
  position: absolute;
  inset: 0.88em auto auto 0;
  inline-size: 0.45em;
  border-top: 1px solid var(--red);
}

.chapter-night {
  --rule: #e7dbc4;
  background-color: var(--night);
  color: var(--paper-light);
}
.chapter-night::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/night-dust.webp") center top / min(100%, 1080px) auto no-repeat;
  mask-image: radial-gradient(ellipse at 50% 28%, black 28%, transparent 75%);
  opacity: 0.65;
  pointer-events: none;
}
.chapter-night .chapter-inner > * { position: relative; }
.chapter-night .marker { --highlight: #e28c7049; }
.chapter-night .chapter-number { border-color: #dc8a71; }
.trial .chapter-inner { max-inline-size: 800px; }
.trial .prose { max-inline-size: none; }
.trial .cta-group { margin-block-start: clamp(34px, 5vw, 65px); }

.facts thead { background: #ad99701c; }
.facts :is(th, td) {
  padding: 10px clamp(9px, 2vw, 20px);
  border-block: 1px solid var(--rule);
  line-height: 1.65;
}
.facts tbody th { inline-size: 29%; font-weight: 700; }
.trial .facts thead { background: #fbf4e615; }
.trial .facts tbody th { inline-size: 24%; }
.trial .facts :is(th, td) { border-color: #aaa09088; }

.month-spines li:nth-child(1) { --book-height: 320px; }
.month-spines li:nth-child(2) { --book-height: 336px; }
.month-spines li:nth-child(3) { --book-height: 352px; }
.month-spines .spine strong { font-size: 20px; }
.month-label { writing-mode: horizontal-tb; }

.pricing, .comparison { padding-block: clamp(82px, 8vw, 120px); }
.pricing { background: #fff7ebba; }
.cost { vertical-align: middle; }
.price-number {
  font: 700 clamp(1.4rem, 4.3vw, 3.7rem)/1.2 var(--mincho);
  letter-spacing: -0.025em;
}
.price-unit { white-space: nowrap; font-size: 0.9em; }
.folded::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  inline-size: clamp(56px, 9vw, 132px);
  aspect-ratio: 1.35;
  background: linear-gradient(140deg, transparent 49%, #c6a787 50%, #fff6e4 62%, #e4cfb1 73%, #d7bb96 75%, #e9d5b9 79%);
  clip-path: polygon(100% 0,100% 100%,0 100%);
  pointer-events: none;
}

.comparison .prose { margin-block-end: 28px; }
.comparison-table { table-layout: fixed; }
.comparison-label { inline-size: 23%; }
.comparison-option { inline-size: 38.5%; }
.comparison-table :is(th,td) {
  border: 1px solid var(--rule);
  padding: 10px clamp(5px, 1.7vw, 22px);
  vertical-align: middle;
  line-height: 1.5;
}
.comparison-table tbody th { padding-inline: clamp(6px, 1.15vw, 18px); }
.comparison-table thead th { background: #e0cab045; font-weight: 700; }
.comparison-table tr > :nth-child(2) { background: #b5432f0c; }
.comparison-table .price-number { font-size: clamp(1.25rem, 3.1vw, 2.5rem); }
.price-term { display: block; font-size: 0.85em; font-weight: 700; line-height: 1.6; color: var(--red-dark); }
.price-next { display: block; margin-block-start: 6px; }
.comparison-range { white-space: nowrap; }

.instructor-copy { margin-block-end: 27px; }
.instructor-name { font: 700 1.55em/1.3 var(--mincho); }
.instructor-layout { grid-template-columns: minmax(0, 0.71fr) minmax(0, 2.29fr); gap: 20px; }
.published { min-inline-size: 0; margin-block-start: 24px; }
.published-image { position: relative; }
.published-image img { inline-size: 100%; }
.rank-flag {
  position: absolute;
  inset-block-start: -11px;
  padding: 0.05em 0.5em 0.17em;
  transform: translateX(-50%);
  border: 1px solid var(--paper-light);
  background: var(--red-dark);
  font: 700 1rem/1.35 var(--mincho);
  white-space: nowrap;
}
.rank-flag-green { inset-inline-start: 61.7%; }
.rank-flag-orange { inset-inline-start: 87%; }
.rank-captions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  padding-block: 9px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
}
.rank-captions p { display: grid; align-content: start; gap: 5px; padding: 0 3px; }
.rank-captions p + p { border-inline-start: 1px solid #b9a98f70; }
.rank-captions strong { font: 700 clamp(1.1rem, 1.5vw, 1.3rem)/1.3 var(--mincho); }
.rank-captions .rank-result { font-size: clamp(1rem, 1.35vw, 1.2rem); }
.rank-captions small { color: #ddd0bd; font-size: 0.875rem; }
.rank-pair { grid-column: span 2; }

.definitions dt, .facts tbody th, .comparison-table th { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.prose p, .table-note { text-wrap: pretty; }
.faq-list summary > span { text-wrap: balance; word-break: auto-phrase; }

.table-note { margin-block-start: 22px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.outcomes-close, .comparison-close, .curriculum-close { margin-block-start: 28px; }
.curriculum-close { margin-block-start: clamp(36px, 5vw, 60px); margin-inline: auto; }
.support { margin-block-start: clamp(36px, 5vw, 56px); padding-block-start: 22px; border-block-start: 1px solid var(--red); }
.support h3, .instructor-more h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.support-price { font: 700 1.25em/1.6 var(--mincho); }
.instructor-more { margin-block-start: 40px; }
.instructor-more > * + h3 { margin-block-start: 2em; }
.book-link-note { margin-inline-start: 0.6em; font-size: 0.85em; }
.instructor-more a:focus-visible { outline-color: var(--paper-light); }

.faq { background: #fff7eb56; }
.faq-list details { border-block-end: 1px solid var(--rule); }
.faq-list details:first-child { border-block-start: 1px solid var(--rule); }
.faq-list details + details { margin-block-start: 0; }
.faq-list summary {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  min-block-size: 51px;
  padding-block: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "";
  order: 1;
  flex: 1 0 0.8em;
  border-block-end: 1px dotted var(--muted);
  opacity: 0.65;
}
.faq-list summary::after {
  content: "";
  order: 2;
  flex: 0 0 1rem;
  inline-size: 1rem;
  block-size: 1rem;
  align-self: center;
  background:
    linear-gradient(var(--red-dark), var(--red-dark)) center / 75% 1px no-repeat,
    linear-gradient(var(--red-dark), var(--red-dark)) center / 1px 75% no-repeat;
}
.faq-list [open] > summary::after { background-size: 75% 1px, 0 0; }
.faq-list details > p { margin-block: 0 14px; padding-inline-end: 1.75em; }

.closing { padding-block-end: clamp(70px, 9vw, 125px); text-align: center; }
.closing::after { inset: 12% max(0px, calc((100% - 1280px) / 2)) auto auto; }
.closing .chapter-inner::before { display: none; }
.closing h2 { font-size: clamp(1.7rem, 4.2vw, 3.6rem); margin-block-end: 0.5em; }
.closing .prose { margin-inline: auto; }
.rika-offer {
  inline-size: min(100%, 480px);
  margin: 10px auto 0;
  mask-image: none;
}
.site-footer {
  border-block-start: 1px solid var(--rule);
  padding: 28px var(--gutter) 32px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: center;
}
.site-footer small { font-size: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon { transition: background-color 180ms, scale 180ms; transform-origin: left; }
  .ribbon:hover { scale: 1.018 1; }

  .spines.animated .spine { translate: 0 24px; opacity: 0; }
  .spines.animated.in-view .spine { animation: shelve 790ms cubic-bezier(.2,.7,.25,1) forwards; }
  .spines.animated.in-view li:nth-child(2) .spine { animation-delay: 90ms; }
  .spines.animated.in-view li:nth-child(3) .spine { animation-delay: 180ms; }
  .spines.animated.in-view li:nth-child(4) .spine { animation-delay: 270ms; }
  @keyframes shelve { to { translate: 0 0; opacity: 1; } }

  .hero-book h1 .fall {
    animation: flutter-down 1500ms cubic-bezier(.3,.5,.4,1) calc(250ms + var(--i) * 170ms) both;
  }
  @keyframes flutter-down {
    0% { opacity: 0; translate: -10px -1.9em; rotate: -24deg; }
    25% { opacity: 0.85; translate: 11px -1.25em; rotate: 16deg; }
    50% { translate: -7px -0.6em; rotate: -9deg; }
    75% { translate: 3px -0.12em; rotate: 4deg; }
    100% { opacity: 1; translate: 0 0; rotate: 0deg; }
  }
  .hero-lead p {
    animation: ink-rise 1100ms cubic-bezier(.25,.6,.3,1) 1500ms both;
  }
  .hero-lead p + p { animation-delay: 2250ms; }
  @keyframes ink-rise {
    from { opacity: 0; filter: blur(5px); translate: 0 6px; }
    55% { filter: blur(1px); }
    to { opacity: 1; filter: blur(0); translate: 0 0; }
  }
}

@media (max-width: 900px) {
  .concerns-layout, .curriculum-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .shelf-notes { max-inline-size: 550px; margin-inline: auto; }
  .hero-layout { max-inline-size: 690px; grid-template-areas: "book" "label" "action" "lead"; }
  .hero { padding-inline: clamp(12px, 3.5vw, 42px); }
  .hero-book { aspect-ratio: 3 / 2; max-inline-size: 690px; }
  .hero-book h1 {
    inset-inline-start: 50%;
    inline-size: max-content;
    font-size: clamp(1.145rem, 5.4vw, 2.65rem);
    font-size: clamp(1.145rem, 5.81cqw, 2.65rem);
    line-height: 1.35;
    letter-spacing: 0;
    text-shadow: 0 1px 0 #fff8ec;
  }
  .hero-book h1 .h1-sub { margin-block-start: 0.65em; padding-block-start: 0.55em; font-size: 0.74em; line-height: 1.5; }
  .hero-label { margin: 14px 0 0; }
  .hero-label::before, .hero-label::after { display: none; }
  .hero-action { margin-block-start: 16px; }
  .hero-lead {
    grid-area: lead;
    justify-self: center;
    inline-size: min(100%, 550px);
    margin: 27px 0 0;
    padding-inline: 8px;
  }
}

@media (max-width: 640px) {
  .chapter { --gutter: 20px; }
  h2 { font-size: clamp(1.05rem, 5.5vw, 2.1rem); }
  /* Long headings stay on two lines by shrinking, per DESIGN.md. */
  #chapter-2, #chapter-5 { font-size: min(5.5vw, calc((100vw - 80px) * 0.062)); }
  #chapter-8 { font-size: min(5.5vw, calc((100vw - 80px) * 0.071)); }
  #chapter-9 { font-size: min(5.5vw, calc((100vw - 80px) * 0.0565)); }
  .chapter + .chapter:not(.chapter-night) .chapter-inner::before { inset-block-start: -39px; }
  .chapter-heading { margin-block-end: 26px; }
  .chapter-number { padding-inline: 0.13em; padding-right: 0.52em; }
  .ribbon { min-block-size: 62px; font-size: clamp(1rem, 4.5vw, 1.42rem); }
  .hero-label { font-size: 1rem; }
  .hero .cta-group { inline-size: min(100%, 400px); }
  .hero-action > p { padding-inline: 9px; }

  .concerns-close h3 { font-size: clamp(1rem, 5.1vw, 2.05rem); }
  .concerns-spines .spine strong { font-size: 16px; }
  .shelf { gap: 5px; padding-inline: 3px; }
  .concerns-spines li:nth-child(1) { --book-height: 300px; }
  .concerns-spines li:nth-child(2) { --book-height: 315px; }
  .concerns-spines li:nth-child(3) { --book-height: 320px; }
  .concerns-spines li:nth-child(4) { --book-height: 308px; }

  .about-layout, .material-layout, .instructor-layout { grid-template-columns: minmax(0,1fr); }
  .about-layout .paper-art, .material-layout .paper-art {
    inline-size: min(100%, 370px);
    justify-self: center;
  }
  .price-table :is(th,td) { padding-inline: 8px; }
  .trial .facts tbody th { inline-size: 32%; }
  .book-link-note { display: block; margin-inline-start: 0; }
  .price-table tbody th { inline-size: 38%; }
  .comparison-table :is(th,td) { padding-inline: 6px; }
  .comparison-table .price-number { font-size: clamp(1.2rem, 6vw, 1.9rem); }
  .comparison-table .comparison-range { font-size: clamp(1rem, 5.15vw, 1.9rem); }
  .instructor-layout { gap: 0; }
  .rika-standing { inline-size: min(57%, 260px); justify-self: center; }
  .rank-captions .rank-result { font-size: clamp(0.8rem, 4vw, 1.1rem); }
  .rank-result .line:last-child { font-size: 1.12rem; }
  .closing h2 { font-size: clamp(1.35rem, 6.9vw, 2.4rem); }
  .faq-list summary { gap: 0.45em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marker.ready { background-size: 100% 0.45em; }
}
