/* Type system v1 (2026-10-14). One self-hosted serif for English headings and the wordmark
   (Newsreader, variable opsz + wght, Latin subset, OFL); body stays the existing Noto Sans family.
   One scale for the three content sections (section 2, section 3, ending) so they read as a set.
   Loaded last; only typography and spacing here, no colours or art. */

:root {
  --serif: 'AM Serif', Georgia, 'Times New Roman', serif;
  --t-h2: clamp(36px, 3.1vw, 48px);
  --t-h2-cjk: clamp(30px, 2.5vw, 38px);
  --t-lead: 18px;
  --t-item: 16px;
  --t-small: 15px;
  --t-eyebrow: 13px;
  --c-eyebrow: #6b7a5c;
  --c-lead: #3d4f43;
  --c-item: #234b3b;
  --c-muted: #56665a;
  --sec-pad: clamp(104px, 9vw, 148px);
  --copy-w: 30rem;
}

/* ---------- wordmark and hero ---------- */
.brand, .home-footer .brand { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
:root:lang(en) .hero h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.03em; }
:root[data-reference="true"] .hero h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.028em; line-height: .98; top: 21.6%; width: 46%; font-size: 6.55cqw; }
/* the reference layout fixes the button at 69% of the hero: title and intro move up to leave
   a clear gap above it for the four-line intro */
:root[data-reference="true"] .hero .intro { top: 47.4%; width: 34.5%; font-size: 1.7cqw; line-height: 1.5; }

/* ---------- section headings: one face, one size ---------- */
:root:lang(en) .free-reading h2,
:root:lang(en) .qimen-dawn h2,
:root:lang(en) .ending-day h2 {
  font-family: var(--serif); font-weight: 450; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.022em;
  font-variation-settings: 'opsz' 60; max-width: 15ch; margin: 0 0 20px; text-wrap: balance;
}
:root:not(:lang(en)) .free-reading h2,
:root:not(:lang(en)) .qimen-dawn h2,
:root:not(:lang(en)) .ending-day h2 {
  font-family: var(--font); font-weight: 600; font-size: var(--t-h2-cjk); line-height: 1.42; letter-spacing: 0; max-width: 14em; margin: 0 0 20px;
}

/* eyebrow: a quiet label above the heading */
.free-reading .reading-eyebrow, .qimen-dawn .qd-eyebrow { font-size: var(--t-eyebrow); font-weight: 600; color: var(--c-eyebrow); margin: 0 0 14px; }
:root:lang(en) .free-reading .reading-eyebrow, :root:lang(en) .qimen-dawn .qd-eyebrow { text-transform: uppercase; letter-spacing: .1em; }

/* lead */
.free-reading .reading-lead, .qimen-dawn .qd-lead, .ending-day p {
  font-size: var(--t-lead); line-height: 1.7; color: var(--c-lead); max-width: var(--copy-w); margin: 0 0 32px;
}
.free-reading .reading-intro { margin: 0; }
.free-reading .reading-intro .reading-lead { margin-bottom: 32px; }

/* the three-point lists */
.free-reading .reading-details { display: grid; gap: 20px; max-width: var(--copy-w); }
.qimen-dawn .qd-points { gap: 20px; margin: 0 0 36px; max-width: var(--copy-w); }
.free-reading .reading-benefit h3, .qimen-dawn .qd-points h3 { font-size: var(--t-item); font-weight: 600; line-height: 1.5; color: var(--c-item); margin: 0 0 3px; }
.free-reading .reading-benefit p, .qimen-dawn .qd-points p { font-size: var(--t-small); line-height: 1.7; color: var(--c-muted); }
.free-reading .reading-actions { margin-top: 36px; }

/* ---------- section rhythm: the same breathing room around every section ---------- */
.free-reading { padding-block: var(--sec-pad); }
.qimen-dawn { padding-block: calc(var(--sec-pad) * .6) var(--sec-pad); }
.ending-day { padding-block: calc(var(--sec-pad) * .6) calc(var(--sec-pad) * .9); }
.free-reading .reading-copy { padding-top: 0; align-self: center; }
.qimen-dawn .qd-copy, .ending-day .ed-copy { align-self: center; }

/* ---------- tablets and phones: stacked and centred ---------- */
@media (max-width: 1100px) {
  :root { --sec-pad: 88px; }
  .free-reading h2, .qimen-dawn h2, .ending-day h2 { margin-inline: auto !important; }
  .free-reading .reading-lead, .qimen-dawn .qd-lead, .ending-day p, .free-reading .reading-details, .qimen-dawn .qd-points { margin-inline: auto; }
}
@media (max-width: 600px) {
  :root { --sec-pad: 68px; --t-h2: clamp(32px, 8.6vw, 40px); --t-h2-cjk: clamp(27px, 7.4vw, 32px); --t-lead: 16.5px; }
  .free-reading .reading-details, .qimen-dawn .qd-points { gap: 22px; }
}
