:root {
  --paper: #f3eee4;
  --ink: #161310;
  --muted: #5c564e;
  --rule: #b7aea0;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", "PMingLiU", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
html.present { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 40;
}
.skip:focus { left: 12px; }

/* Running header: always say where you are. Thin, typographic, not a product bar. */
.where {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 8px 0 9px;
}
.where-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: end;
}
.where-course {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.where-course a { text-decoration: none; }
.where-course a:hover { text-decoration: underline; }
.where-lesson {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  justify-self: end;
}
.where-title {
  margin: 0;
  grid-column: 1;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}
.where-nav {
  grid-column: 2;
  justify-self: end;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.where-nav a, .where-nav button {
  appearance: none; -webkit-appearance: none;
  border: 0; background: none; padding: 0;
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--ink); cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.where-nav span { margin: 0 0.45em; color: var(--rule); font-weight: 400; }
html.present .where-nav button[data-toggle] { font-weight: 800; }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.poster { padding-top: 16px; }

.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lead {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.45;
  font-weight: 600;
  max-width: 22em;
}
.tools {
  margin: 20px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}
.tools .lab {
  display: inline-block;
  margin-right: 0.8em;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.tools .item + .item::before {
  content: "｜";
  margin: 0 0.55em;
  color: var(--muted);
  font-weight: 400;
}

.toc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 0;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--ink);
}
.toc-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 800;
}
.toc-head .count {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.toc {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid;
  grid-template-columns: 2.6em 8px minmax(0, 1fr);
  align-items: baseline;
  gap: 0 10px;
  padding: 11px 0;
  text-decoration: none;
  color: inherit;
}
.toc a:hover .name { text-decoration: underline; }
.toc .num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
}
.toc .rule {
  width: 1px;
  height: 1em;
  background: var(--ink);
  align-self: center;
}
.toc .name {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-price {
  margin: 14px 0 4px;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-price small { font-size: 0.42em; font-weight: 800; margin-right: 2px; letter-spacing: 0; }
.hero-open { font-size: clamp(1.15rem, 3vw, 1.45rem); letter-spacing: -0.01em; margin-top: 12px; }
.price-block {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 3px double var(--ink);
}
.price-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.price {
  margin: 2px 0 10px;
  font-size: clamp(3.6rem, 11vw, 5.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.price small { font-size: 0.4em; font-weight: 800; margin-right: 2px; letter-spacing: 0; }
.price-open { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; }
.promise, .buy-note {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  max-width: 28em;
}
.buy-note { color: var(--muted); font-weight: 500; }
.home-foot, .page-foot {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}
.home-foot p, .page-foot p { margin: 0 0 6px; }
.home-foot a { color: inherit; }

/* Site catalog of courses */
.site-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.site-list li { border-bottom: 1px solid var(--ink); }
.site-list a {
  display: block;
  padding: 22px 0 20px;
  text-decoration: none;
  color: inherit;
}
.site-list a:hover .course-name { text-decoration: underline; }
.course-name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}
.course-line { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; max-width: 32em; }
.course-price { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em; }

/* Lesson script */
.lesson-h {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.outcome, .then {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}
.outcome { padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
h2.cue {
  margin: 28px 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.lesson p { margin: 0 0 12px; }
.lesson ol, .lesson ul { margin: 0 0 14px; padding-left: 1.3em; }
.lesson li { margin: 0 0 8px; }
.lesson li:last-child { margin-bottom: 0; }
blockquote.quote {
  margin: 10px 0 8px;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--ink);
  background: none;
}
blockquote.quote p { margin: 0 0 6px; }
.cite { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.cite a { color: inherit; }
.go {
  margin: 36px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
}
.go a { text-decoration: none; }
.go a:hover { text-decoration: underline; }
.back { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.back a { color: var(--muted); }

html.present body { font-size: 20.5px; }
html.present h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
html.present .lesson-h { font-size: clamp(1.85rem, 3.6vw, 2.5rem); }
html.present .toc .name { font-size: 1.12rem; }
html.present .lead { font-size: 1.28rem; }
html.present .where-title { font-size: 1.18rem; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .page { padding: 20px 18px 64px; }
  .where-inner { padding: 0 18px; }
  .where-title { font-size: 1rem; }
  .toc a { padding: 11px 0; }
  .price { font-size: 3.4rem; }
  html.present body { font-size: 18.5px; }
}
@media print {
  .where { position: static; }
  .where-nav, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page { max-width: none; padding: 0; }
  a { text-decoration: none; }
}
