/* CursivePlay — site stylesheet
   Warm paper, one accent, four-line rules. Nothing here ships a colour that
   competes with the ink on the sheet. */

:root {
  --bg: #f4efe4;
  --surface: #fffdf7;
  --text: #1f2a24;
  --muted: #5f6b62;
  --primary: #2f5d50;
  --primary-dark: #24463c;
  --accent: #c2562f;
  --line: rgba(31, 42, 36, .14);
  --line-soft: rgba(31, 42, 36, .08);
  --radius: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --font-head: Fraunces, Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Playwrite US Trad", Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------------- header */
.site-head {
  position: relative;
  background: rgba(255, 253, 247, .72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(1.1) blur(6px);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-family: var(--font-hand);
  font-size: 15px;
  line-height: 1;
  color: var(--primary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

.nav a {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--text); background: rgba(31, 42, 36, .05); }

/* the four rules of the practice sheet, reduced to a 4px band */
.rule-band {

  height: 5px;
  background:
    linear-gradient(to bottom,
      transparent 0,
      transparent 1px,
      rgba(31, 42, 36, .18) 1px,
      rgba(31, 42, 36, .18) 2px,
      transparent 2px,
      transparent 3px,
      rgba(31, 42, 36, .34) 3px,
      rgba(31, 42, 36, .34) 4px,
      transparent 4px);
}

/* ---------------------------------------------------------------- hero / desk */
.desk { padding-block: var(--space-7) var(--space-5); }

.desk-head { max-width: 760px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.desk-head h1,
.desk > .wrap > h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
}

.lede {
  margin: 0;
  max-width: 64ch;
  font-size: 18px;
  color: var(--muted);
}

.stage-wrap {
  margin-top: var(--space-6);
}

/* ---------------------------------------------------------------- prose */
.prose {
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--line-soft);
}

/* body copy sits in a 760px column, but its left edge lines up with the h1
   above it instead of drifting toward the middle of the page */
.prose .wrap,
.faq .wrap,
.letter-index .wrap { max-width: 1080px; }

.prose .wrap > h2,
.prose .wrap > h3,
.prose .wrap > p,
.prose .wrap > ol,
.prose .wrap > ul,
.prose .wrap > .letter-nav,
.faq .wrap > h2,
.faq .wrap > p,
.faq .wrap > details,
.letter-index .wrap > h2,
.letter-index .wrap > p { max-width: 760px; }

.prose h2 {
  margin: var(--space-7) 0 var(--space-3);
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.25;
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin: 0 0 var(--space-4); }

.prose strong { font-weight: 600; }

.prose a { font-weight: 500; }

/* numbered steps --------------------------------------------------- */
.num-list {
  counter-reset: step;
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.num-list li {
  position: relative;
  padding-left: 44px;
  margin: 0;
}

.num-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.num-list li strong {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.num-list li strong + * { color: var(--muted); }

/* mistakes --------------------------------------------------------- */
.mistakes {
  list-style: none;
  margin: 0 0 var(--space-5);

  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.mistakes li {
  padding: 12px 16px 12px 38px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.mistakes li strong {
  display: block;
  color: var(--text);
}

/* words to practise ------------------------------------------------- */
.word-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.word-row li {
  padding: 8px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-hand);
  font-size: 21px;
  line-height: 1.3;
  color: #3c4a42;
}

/* ---------------------------------------------------------------- letter index */
.letter-index { padding-block: var(--space-6) var(--space-7); border-top: 1px solid var(--line-soft); }

.letter-index h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(22px, 2.4vw, 27px);
}

.letter-index > .wrap > p { margin: 0 0 var(--space-5); color: var(--muted); }

.family { margin-top: var(--space-6); }

.family h2 { margin: 0 0 6px; font-size: 20px; }

.family p { margin: 0 0 var(--space-4); color: var(--muted); font-size: 15px; }

.letter-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.letter-grid a {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, color .15s, transform .15s;
}

.letter-grid a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------- nav between letters */
.letter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.letter-nav a { text-decoration: none; font-weight: 500; }
.letter-nav a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- faq */
.faq { padding-block: var(--space-6) var(--space-7); border-top: 1px solid var(--line-soft); }
.faq .wrap { max-width: 760px; }

.faq h2 { margin: 0 0 var(--space-4); font-size: clamp(22px, 2.4vw, 27px); }

.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 14px 0;
}

.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -1px;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fffdf7;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fffdf7; }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover { background: var(--surface); border-color: rgba(31, 42, 36, .3); color: var(--text); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
  font-size: 14px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }

/* ---------------------------------------------------------------- footer */
.site-foot {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 253, 247, .5);
  padding-block: var(--space-6);
  font-size: 14px;
  color: var(--muted);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.foot-brand {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.foot-note { margin: 0; max-width: 46ch; }

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- utilities */
.paper-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-5);
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .head-in { min-height: 56px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; font-size: 14px; }
  .nav { gap: 0; font-size: 13px; }
  .nav a { padding: 6px 7px; }
  .desk { padding-block: var(--space-6) var(--space-4); }
  .lede { font-size: 17px; }
  .num-list li { padding-left: 38px; }
  .letter-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); }
  .letter-grid a { font-size: 21px; }
  .word-row li { font-size: 19px; }
  .foot-in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- score grid */
/* the four weighted parts of the score: four short blocks instead of one
   seven-line paragraph, so the section reads as a summary, not a wall */
.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0;
  max-width: 760px;
}

.score-grid > div {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px;
}

.score-name {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--text);
}

.score-name em {
  font-style: normal;
  margin-left: 6px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.score-what {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.prose blockquote {
  margin: 0 0 var(--space-5);
  padding: 15px 20px;
  max-width: 760px;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: rgba(47, 93, 80, .10);
  color: var(--text);
}

.prose blockquote p:last-child { margin-bottom: 0; }

/* long-form column: centre it, otherwise on a 1440px screen the whole article
   sits against the left edge with half the page empty on the right */
.prose .wrap { max-width: 760px; }

.prose h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- mobile nav */
/* five links will not fit next to the brand on a 390px screen: put the nav on
   its own full-width row and let it scroll sideways instead of clipping */
@media (max-width: 700px) {
  .head-in {
    flex-wrap: wrap;
    row-gap: 2px;
    padding-block: 8px;
  }
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    white-space: nowrap;
    padding: 6px 9px;
  }
  .desk-head h1 { margin-bottom: 12px; font-size: 26px; }
  .desk-head .lede { font-size: 15px; margin-bottom: 12px; }
  .desk-hero-cta { margin-bottom: 14px; }
  .pd-label b { font-size: 19px; }
  .pd-label em { font-size: 13px; }
  .score-grid { grid-template-columns: 1fr; }
  /* shrink the nav text so all five links fit on one row instead of being
     clipped at the right edge */
  .nav { font-size: 12px; }
  .nav a { padding: 7px 6px; letter-spacing: -.01em; }
}


/* ---------------------------------------------------------------- printable sheets */
.sheets-head { padding-bottom: var(--space-5); }

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.sheet-hint { margin: 0; max-width: 46ch; font-size: 14px; color: var(--muted); }

.btn-print { min-height: 46px; padding-inline: 22px; font-weight: 600; }

.sheet-stack { display: grid; gap: var(--space-6); padding-bottom: var(--space-8); }

.sheet-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.sheet-cap { margin-bottom: var(--space-4); }

.sheet-no {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.sheet-cap h2 { margin: 6px 0 4px; font-size: 22px; }

.sheet-sub { margin: 0; font-size: 14px; color: var(--muted); }

.sheet-body { display: grid; gap: 2px; }

.alpha-body { grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* one row of the four-line sheet: top line, x-height, baseline, descender */
.fourline {
  display: flex;
  align-items: baseline;
  gap: 18px;
  height: 46px;
  padding: 0 8px;
  font-family: var(--font-hand);
  font-size: 27px;
  line-height: 46px;
  background-image:
    linear-gradient(to bottom, rgba(31, 42, 36, .20) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 42, 36, .10) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 42, 36, .34) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 42, 36, .10) 0 1px, transparent 1px);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 6px, 0 44%, 0 78%, 0 100%;
}

.fourline .ink { color: var(--text); }
.fourline .ghost { color: rgba(31, 42, 36, .30); letter-spacing: .14em; }

/* ---------------------------------------------------------------- alphabet strip */
.alphabet { padding-block: var(--space-6) var(--space-7); border-top: 1px solid var(--line-soft); }

.alphabet h2 { margin: 0 0 var(--space-2); font-size: clamp(22px, 2.4vw, 27px); }

.alphabet > .wrap > p { max-width: 760px; margin: 0 0 var(--space-5); color: var(--muted); }

.alphabet .alpha-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.alphabet-links { display: flex; flex-wrap: wrap; gap: var(--space-4); font-weight: 500; }

/* ---------------------------------------------------------------- the sheet tool */
.stage-wrap .pd-tools .pd-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fffdf7;
  font-weight: 600;
  min-height: 42px;
  padding-inline: 18px;
}

.stage-wrap .pd-tools .pd-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ---------------------------------------------------------------- printing */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  html, body { background: #fff; color: #111; font-size: 11pt; }
  .site-head, .site-foot, .no-print, .sheets-head, .faq, .prose, .letter-index, .alphabet { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .sheet-stack { display: block; padding: 0; }
  .sheet-page {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 10mm;
    break-inside: avoid;
    break-after: page;
    page-break-after: always;
  }
  .sheet-page:last-child { break-after: auto; page-break-after: auto; margin-bottom: 0; }
  .sheet-cap h2 { font-size: 14pt; }
  .sheet-sub { font-size: 9pt; }
  .fourline { height: 12mm; line-height: 12mm; font-size: 18pt; break-inside: avoid; }
  .alpha-body { column-gap: 10mm; }
  a { color: #111; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 700px) {
  .head-in { flex-wrap: wrap; justify-content: flex-start; gap: 2px; padding-block: 8px; min-height: 0; }
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 9px; }
  .stage-wrap { margin-top: var(--space-5); }
  .stage-wrap .pd-top { flex-wrap: wrap; gap: 10px; }
  .stage-wrap .pd-tools { flex-wrap: wrap; width: 100%; }
  .stage-wrap .pd-tools button { flex: 1 1 auto; min-height: 40px; }
  .alpha-body { grid-template-columns: 1fr; }
  .sheet-page { padding: var(--space-4); }
  .fourline { height: 42px; line-height: 42px; font-size: 24px; }
}


/* ---------------------------------------------------------------- hero entry */
.desk-hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 22px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fffdf7;
  font-weight: 600;
  text-decoration: none;
}

.btn-hero:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fffdf7; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.btn-ghost:hover { border-color: rgba(31, 42, 36, .3); color: var(--text); }

@media (max-width: 700px) {
  .desk { padding-block: var(--space-5) var(--space-4); }
  .desk-head h1 { font-size: 29px; line-height: 1.15; }
  .desk .lede { font-size: 16.5px; }
  .desk-hero-cta { margin-top: var(--space-4); }
  .btn-hero, .btn-ghost { width: 100%; }
}



/* ---------------------------------------------------------------- alphabet page */
.case-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.case-cell {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  padding: 12px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-hand);
}

.case-cell .cap { font-size: 30px; color: var(--text); }
.case-cell .low { font-size: 25px; color: var(--text); opacity: .38; }

.cap-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  padding: 0;
}

.cap-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cap-glyph {
  font-family: var(--font-hand);
  font-size: 56px;
  line-height: 1;
  text-align: center;
  color: var(--text);
}

.cap-item p { margin: 0 0 6px; color: var(--muted); }
.cap-item .cap-pair { margin: 0; font-size: 14px; }

@media (max-width: 700px) {
  .case-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .case-cell { gap: 10px; }
  .case-cell .cap { font-size: 25px; }
  .case-cell .low { font-size: 21px; }
  .cap-item { grid-template-columns: 56px 1fr; gap: var(--space-3); padding: var(--space-3); }
  .cap-glyph { font-size: 40px; }
}



/* ---------------------------------------------------------------- alphabet page: layout fixes */
.desk-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; }
.fam-grid { align-items: start; }
.case-cell .low { opacity: .45; }

@media (min-width: 900px) {
  .case-grid { grid-template-columns: repeat(13, 1fr); gap: 8px; }
  .case-cell { gap: 6px; padding: 10px 4px 12px; }
  .case-cell .cap { font-size: 24px; }
  .case-cell .low { font-size: 21px; }
}

@media (max-width: 800px) {
  .fam-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-head .nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
  .site-head .nav a { font-size: 14px; }
  .site-head .nav a[href="/privacy"] { display: none; }
  .cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .cta-row .btn { width: auto; }
  .desk-head h1 { font-size: 30px; }
}



/* ---------------------------------------------------------------- mobile: header and hero */
@media (max-width: 640px) {
  .site-head .head-in { flex-wrap: wrap; row-gap: 6px; }
  .site-head .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; justify-content: flex-start; gap: 16px; scrollbar-width: none; }
  .site-head .nav::-webkit-scrollbar { display: none; }
  .desk-head h1 { font-size: 28px; line-height: 1.2; }
  .desk-head .lede { font-size: 16px; line-height: 1.55; }
}



/* ---------------------------------------------------------------- button and letter sizing */
.cta-row { gap: 16px; }
.cta-row .btn { padding: 12px 24px; }
@media (min-width: 900px) { .case-cell .cap { font-size: 26px; } }



/* ---------------------------------------------------------------- final polish */
.fam-grid .family {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.fam-grid .family h2 { margin-top: 0; }

@media (max-width: 640px) {
  .site-head .nav {
    -webkit-mask-image: linear-gradient(to right, #000 88%, rgba(0, 0, 0, .25));
    mask-image: linear-gradient(to right, #000 88%, rgba(0, 0, 0, .25));
  }
  .fam-grid .family { padding: var(--space-4); }
}



/* ---------------------------------------------------------------- capital list on wide screens */
@media (min-width: 900px) {
  .cap-list { grid-template-columns: 1fr 1fr; }
}



/* ---------------------------------------------------------------- hero first screen
   2026-11-22: 手机端引导层文字压在练习纸上、电脑端 Start practising 落在首屏之外 */

/* 电脑端：把写字台压窄，画布高度从 580 降到 450，整块工具和 Start practising 回到首屏内 */
@media (min-width: 1024px) {
  .desk { padding-block: 24px 20px; }
  .desk-head h1 { font-size: clamp(30px, 3.2vw, 42px); }
  .desk .stage-wrap { max-width: 760px; margin: 20px auto 0; }
  /* 按钮不再贴在画布底部，紧跟在文案下面，画布多高都落在首屏内 */
  .stage-wrap .pd-cover { justify-content: flex-start; gap: 18px; padding-top: 26px; }
  .stage-wrap .pd-cover-t { font-size: clamp(18px, 1.7vw, 26px); }
}

/* 引导层：一层压暗渐变，文字落在白色练习纸上也能读 */
.stage-wrap .pd-cover {
  background: linear-gradient(180deg, rgba(22, 14, 4, .74) 0%, rgba(22, 14, 4, .12) 46%, rgba(22, 14, 4, .74) 100%);
}

.stage-wrap .pd-cover-t {
  text-shadow: 0 2px 16px rgba(16, 9, 2, .9), 0 0 3px rgba(16, 9, 2, .55);
}

.stage-wrap .pd-cover-s {
  text-shadow: 0 1px 12px rgba(16, 9, 2, .95), 0 0 3px rgba(16, 9, 2, .5);
}

/* 主按钮换成暖橙，跟深色桌面拉开对比 */
.stage-wrap .pd-start {
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(24, 14, 4, .42);
}

.stage-wrap .pd-start:hover { background: #a5461f; }

/* 手机：390px 宽时画布只有 192px 高，两层引导文字必然盖住练习纸和示范字母，只留按钮 */
@media (max-width: 768px) {
  .stage-wrap .pd-cover { justify-content: flex-end; padding: 10px 12px 14px; }
  .stage-wrap .pd-cover-copy { display: none; }
  .stage-wrap .pd-start { font-size: 15px; padding: 11px 28px; }
}
