/* Shared public-page typography: one alignment and spacing system. */
:root { --section-title-size:clamp(32px,4vw,56px); --copy-size:16px; --copy-leading:1.8; --heading-gap:24px; }
main { line-height:var(--copy-leading); }
main h1, main h2, main h3 { word-break:keep-all; overflow-wrap:break-word; letter-spacing:-.035em; }
.section-heading { grid-template-columns:54px minmax(0,1fr); column-gap:24px; row-gap:0; max-width:100%; }
.section-heading .section-number, .numbered-heading .section-number { grid-column:1; grid-row:1; font-size:36px; line-height:1; align-self:center; }
.section-heading .section-label { grid-column:2; margin:0; align-self:center; }
main .section-label, main .section-kicker { font-size:20px; line-height:1.5; font-weight:800; letter-spacing:.06em; word-break:keep-all; }
main .section-kicker::before { display:none; }
.section-heading h2, .numbered-heading h2 { grid-column:1 / -1; margin:var(--heading-gap) 0 0; font-size:var(--section-title-size); line-height:1.3; }
.section-heading > p:last-child:not(.section-label) { grid-column:1 / -1; margin:24px 0 0; font-size:var(--copy-size); line-height:var(--copy-leading); max-width:44em; }
.story-copy > p, .split-copy > p { margin:24px 0 0; font-size:var(--copy-size); line-height:var(--copy-leading); max-width:44em; }
#story .story-layout { grid-template-columns:1fr; gap:40px; }
#story .story-copy { width:100%; }
#story-title { max-width:none; text-wrap:balance; }
#story .story-media { width:100%; max-width:920px; }
.subpage-intro, .guide-intro, .faq-intro { max-width:920px; }
.subpage-intro h1, .guide-intro h1, .faq-intro h1, .split-copy h1,
.subpage-intro h2, .guide-next h2 { margin:24px 0 0; font-size:var(--section-title-size); line-height:1.3; }
.subpage-intro p, .guide-intro p, .faq-intro p, .lecture-case p, .faq-item p, .guide-next p { margin-top:24px; font-size:var(--copy-size); line-height:var(--copy-leading); max-width:44em; }
.lecture-case h3, .faq-item h2, .guide-questions strong { font-size:clamp(22px,2.4vw,30px); line-height:1.4; }
.lecture-case .case-date { font-size:13px; margin:0; }
.lecture-case .case-topic { margin-top:16px; }
.subpage, .guide-page, .faq-page { padding-block:clamp(64px,8vw,112px); }
.subpage-back, .faq-back { font-size:12px; }
.wide-copy .section-heading h2, .contact-panel .section-heading h2 { font-size:var(--section-title-size); margin-top:24px; line-height:1.3; }
@media(max-width:700px) {
 :root { --copy-size:15px; }
 .section-heading { grid-template-columns:42px minmax(0,1fr); column-gap:16px; }
 .section-heading .section-number, .numbered-heading .section-number { font-size:27px; }
 main .section-label, main .section-kicker { font-size:20px; }
 .section-heading h2, .numbered-heading h2 { font-size:var(--section-title-size); line-height:1.3; }
 #story .story-media { grid-template-columns:minmax(0,1fr); }
}

/* Homepage titles use two deliberate lines. */
#story-title { text-wrap:initial; }
.hero h1 { font-size:clamp(32px,4.4vw,64px); line-height:1.3; }

/* Larger S21 artwork with readable lettering inside the image. */
.s21-layout { grid-template-columns:minmax(260px,400px) minmax(0,1fr); gap:clamp(36px,5vw,72px); max-width:1040px; align-items:center; }
.s21-layout figure { width:100%; max-width:none; }
.s21-layout figure a, .s21-layout figure img { display:block; width:100%; }
.s21-layout figure img { height:auto; }
@media(max-width:700px) { .s21-layout { grid-template-columns:1fr; gap:32px; } .s21-layout figure { width:100%; max-width:340px; } }

/* Equal pill buttons for the homepage and its teaching inquiry. */
:root { --homepage-button-width:min(200px,calc((100vw - 48px) / 2)); }
.hero-actions .homepage-button { flex:0 0 var(--homepage-button-width); width:var(--homepage-button-width); min-height:48px; aspect-ratio:25 / 7; padding:0 16px; font-size:14px; font-weight:750; line-height:1.3; border-radius:999px; }
@media(min-width:961px) and (max-width:1160px) { :root { --homepage-button-width:min(200px,calc(20.5vw - 27.73px)); } }
.hero-actions .homepage-button.button-secondary { border-color:var(--orange); color:var(--orange-dark); background:transparent; }
