/* Public learning site. Loaded after the existing lesson styles. */
:root {
  --paper: #faf7ef;
  --ink: #263c35;
  --muted: #59675d;
  --line: #d8dfd1;
  --white: #fffdf7;
  --mint: #dcebdc;
  --mint-ink: #285a43;
  --lilac: #ece4f4;
  --site-orange: #a34d24;
  --site-green: #285a43;
  --site-green-dark: #1f4937;
  --site-violet: #65517d;
  --site-shadow: 0 6px 0 #263c3508;
}

html { scroll-padding-top: 24px; }
body { background: var(--paper); color: var(--ink); }
.shell { width: calc(100% - 80px); max-width: 1220px; }
main { min-width: 0; }
button, input, select { accent-color: var(--site-green); }
button, select, input[type="search"], input[type="number"], input[type="range"] { min-height: 44px; }
a { text-decoration-skip-ink: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, video:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--site-orange);
  outline-offset: 4px;
}
.skip { border-radius: 10px; min-height: 44px; }
.skip:focus { top: 12px; }
.button {
  min-height: 52px;
  padding: 13px 20px;
  gap: 18px;
  border: 1px solid var(--site-green);
  border-radius: 14px;
  background: var(--site-green);
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  transition: background-color .18s, border-color .18s;
}
.button:hover { background: var(--site-green-dark); border-color: var(--site-green-dark); }
.button.secondary { background: var(--white); color: var(--site-green); border-color: #b8cbb8; }
.button.secondary:hover { background: #e7efdf; }
.button span { font-size: 21px; }

/* Navigation remains visible at every viewport width. */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; gap: 20px; padding-block: 15px; }
.brand { min-height: 48px; flex-shrink: 0; gap: 13px; }
.brand-symbol { color: var(--site-green); }
.brand-type { color: var(--ink); font-size: 16px; letter-spacing: 1.8px; }
.brand-type small { margin-top: 3px; font-size: 10px; letter-spacing: .2px; color: var(--muted); }
.header nav { display: flex; gap: 4px; justify-content: flex-end; min-width: 0; }
.header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 13px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.4; white-space: nowrap; transition: background-color .18s, border-color .18s; }
.header nav a:hover { background: #edf3e6; text-decoration: none; }
.header nav a[aria-current] { color: var(--site-green); background: #edf3e6; border-color: #cbd9c3; font-weight: 700; }
.header nav a[href="/london_map/"] { color: #5d655d; }

/* Shared public-page typography and section rhythm. */
.site-eyebrow { color: #596c56; font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 15px; }
.site-lead { font-size: 18px; line-height: 1.75; color: #506156; max-width: 58ch; margin: 0 0 27px; }
.site-section { padding-block: 66px; }
.site-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
.site-section-head h2, .site-method h2 { font-size: clamp(29px, 3.3vw, 43px); line-height: 1.16; font-weight: 650; letter-spacing: -1.35px; margin: 0; }
.site-section-head .site-eyebrow { margin-bottom: 11px; }
.site-section-head > p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0 0 3px; max-width: 38ch; }
.site-text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; color: var(--site-green); font-size: 14px; font-weight: 650; text-decoration-thickness: 1px; line-height: 1.5; }
.site-text-link > span { font-size: 20px; text-decoration: none; }
.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Home: an experiment on the table, then three clear subject routes. */
.site-hero { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 60px; padding-block: 65px 73px; }
.site-hero-copy { min-width: 0; }
.site-hero h1 { font-size: clamp(43px, 5.1vw, 70px); line-height: 1.08; letter-spacing: -2.8px; font-weight: 650; margin: 19px 0 23px; }
.site-hero h1 em, .site-page-intro h1 em { color: var(--site-green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.site-hero .site-lead { max-width: 41ch; font-size: 17px; }
.site-hero-caption { color: var(--muted); max-width: 44ch; font-size: 12px; line-height: 1.75; margin: 19px 0 0; }
.site-hero-art { display: block; min-width: 0; color: var(--ink); text-decoration: none; background: #f4ead7; border: 1px solid #d9d7c6; border-radius: 28px; box-shadow: 0 9px 0 #e9e4d4; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.site-hero-art:hover { border-color: #9eb49b; box-shadow: 0 9px 0 #e0e5d3; text-decoration: none; }
.site-art-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; padding: 19px 23px 14px; color: #566451; font-size: 11px; }
.site-art-heading > span:first-child { font-weight: 700; }
.site-hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.site-art-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 25px 24px; background: #fffbef; border-top: 1px solid #e0ddcb; }
.site-art-caption strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.45px; }
.site-art-caption div > span { display: block; font-size: 12px; color: #5c6956; margin-top: 9px; }
.site-round-arrow { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #b9cdb3; border-radius: 50%; background: #dfead4; color: var(--site-green); font-size: 25px; }
.site-topics { border-top: 1px solid var(--line); padding-top: 43px; }
.site-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site-topic { min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid #cdddc8; border-radius: 22px; background: #e8f0df; text-decoration: none; color: var(--ink); transition: border-color .18s, background-color .18s; }
.site-topic-feeds { background: #f9eadb; border-color: #e3d2bd; }
.site-topic-math { background: #ece5f3; border-color: #dad0e4; }
.site-topic:hover { border-color: #748d6a; background: #e0ecd6; text-decoration: none; }
.site-topic-feeds:hover { border-color: #b38b61; background: #f5e1ca; }
.site-topic-math:hover { border-color: #9e87b1; background: #e5daed; }
.site-topic-count { display: block; color: #58664f; font-size: 12px; margin-bottom: 20px; }
.site-topic h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.22; letter-spacing: -.6px; font-weight: 650; margin: 0 0 13px; }
.site-topic p { color: #526052; font-size: 14px; line-height: 1.75; margin: 0 0 25px; }
.site-topic-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 650; line-height: 1.5; margin-top: auto; padding-top: 14px; border-top: 1px solid #263c3526; }
.site-topic-link > span { font-size: 22px; }

/* The two feed models form one feature, with a shared qualification below. */
.site-feeds { background: #f0f0e5; border-block: 1px solid #dfe1d3; }
.site-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.site-feature { min-width: 0; display: flex; }
.site-feature-card { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid #d6decd; border-radius: 24px; text-decoration: none; overflow: hidden; color: var(--ink); box-shadow: var(--site-shadow); transition: border-color .18s, box-shadow .18s; }
.site-feature-card:hover { border-color: #98b18e; box-shadow: 0 8px 18px #263c350d; text-decoration: none; }
.site-feature-art { border-bottom: 1px solid #e0e5d8; background: #e8eddd; }
.site-feature-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.site-feature-copy { display: flex; flex-direction: column; padding: 26px 29px 24px; flex: 1; }
.site-feature-copy .site-eyebrow { font-size: 10px; margin-bottom: 10px; }
.site-feature-copy h3 { font-size: 26px; font-weight: 650; line-height: 1.3; letter-spacing: -.7px; margin: 0 0 13px; }
.site-feature-copy > p:not(.site-eyebrow) { font-size: 15px; color: #52604e; line-height: 1.75; margin: 0 0 22px; }
.site-feature-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 44px; margin-top: auto; font-size: 14px; font-weight: 650; color: var(--site-green); }
.site-feature-link > span { font-size: 24px; }
.site-model-note { max-width: 88ch; margin: 24px 0 0; padding-left: 15px; border-left: 3px solid #a7bba0; font-size: 13px; line-height: 1.8; color: #596650; }

.site-method { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; border-bottom: 1px solid var(--line); }
.site-method-intro > p:not(.site-eyebrow) { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 40ch; margin: 22px 0 14px; }
.site-method-steps { padding: 0; margin: 0; list-style: none; }
.site-method-steps li { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding-block: 19px; }
.site-method-steps li:first-child { padding-top: 0; }
.site-method-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.site-step-number { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #d9d0e2; background: #ede6f4; color: var(--site-violet); font-size: 14px; font-weight: 700; }
.site-method-steps h3 { font-size: 20px; letter-spacing: -.3px; margin: 2px 0 7px; font-weight: 650; }
.site-method-steps p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; max-width: 45ch; }
.site-more { padding-bottom: 80px; }
.site-more .site-section-head h2 { font-size: clamp(28px, 2.9vw, 38px); }
.site-more .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Catalog and existing lesson cards share the public site's material palette. */
.catalog-page { padding-top: 43px; }
.catalog-hero { gap: 44px; padding-bottom: 43px; }
.catalog-hero-art { transform: none; box-shadow: 0 8px 0 #e9e4d4; }
.catalog-hero h1 { font-weight: 650; color: var(--ink); }
.catalog-hero h1 em { color: var(--site-green); }
.catalog-eyebrow { color: #596c56; letter-spacing: .09em; font-size: 11px; }
.catalog-hero .lead { color: #506156; }
.art-sticker { transform: none; border: 0; background: transparent; margin: 18px 0 0 23px; padding: 0; font-weight: 650; }
.learning-route { background: #e8efdf; border-color: #d5dfcc; box-shadow: none; }
.learning-route nav a { min-height: 48px; }
.catalog-collection { position: relative; }
.catalog-collection .topic-anchor { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: 0; padding: 0; pointer-events: none; scroll-margin-top: 24px; }
.catalog-tools { border-top: 1px solid var(--line); padding-top: 22px; }
.topic-filters button { min-height: 44px; }
.topic-filters button[aria-pressed="true"] { background: var(--site-green); border-color: var(--site-green); }
.catalog-search input { background: var(--white); }
.card { box-shadow: var(--site-shadow); border-color: #d9dfd1; }
.card:hover, .card:focus-within { transform: none; box-shadow: 0 7px 20px #263c350d; }
.poster-link:hover img, .poster-link:focus-visible img { transform: none; }
.card-body { padding: 23px 22px 18px; }
.card h3 { font-weight: 650; font-size: 22px; color: var(--ink); }
.card-body .card-goal { color: #52604e; line-height: 1.75; }
.card-bottom { flex-wrap: wrap; }
.card-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--site-green); }
.card[data-topic="feeds"] .lesson-tag { color: #6b4a31; background: #fff0dfed; border-color: #e2ceb7; }
.card[data-topic="feeds"] .card-kicker { color: #715334; }
.catalog-pause-note { background: #ece5f3; }

/* Cosmetic lesson changes preserve the controls, model layout and focus mode. */
.lesson-intro h1 { color: var(--ink); }
.lesson-intro .back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 13px; }
.lesson-toolbar button { min-height: 44px; }
.lesson-guide { background: #eaf0df; }
.lesson-stage, .lesson-extra { background: var(--white); }
.play-controls { background: var(--white); }
.play-controls #play-toggle { background: var(--site-green); }
.play-controls #play-toggle:hover:not(:disabled) { background: var(--site-green-dark); }
.play-controls #play-toggle[aria-pressed="true"] { background: #815235; }
.lesson-finish { gap: 12px; }
.lesson-finish a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid #d2dccc; border-radius: 12px; background: #edf2e5; line-height: 1.5; }
.lesson-finish a:hover { background: #e2ecd7; }
.lesson-finish a:last-child { margin-left: auto; }
.focus-mode .lesson-intro .back-link { margin-bottom: 6px; }

/* About, contacts and other reading pages. */
.site-info { padding-bottom: 80px; }
.site-page-intro { padding-block: 55px 42px; }
.site-page-intro h1 { font-size: clamp(39px, 5vw, 63px); line-height: 1.13; letter-spacing: -2.2px; font-weight: 650; margin: 16px 0 23px; }
.site-page-intro .site-lead { margin-bottom: 0; max-width: 68ch; }
.site-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 76px; }
.site-prose { min-width: 0; max-width: 72ch; }
.site-prose > section { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 29px; }
.site-prose > section:last-child { margin-bottom: 0; }
.site-prose h2 { font-size: 27px; font-weight: 650; letter-spacing: -.65px; line-height: 1.3; margin: 0 0 18px; }
.site-prose p { font-size: 16px; line-height: 1.85; color: #4e6052; margin: 0 0 17px; }
.site-prose p:last-child { margin-bottom: 0; }
.site-prose .lesson-sources { padding-left: 21px; font-size: 13px; }
.site-prose .lesson-sources a { overflow-wrap: anywhere; }
.site-aside { border: 1px solid #dad2e4; border-radius: 23px; background: #ece5f3; padding: 29px 26px; }
.site-aside-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #d7cce0; border-radius: 17px; background: #fffafc; color: var(--site-violet); font-size: 35px; font-weight: 800; line-height: 1; letter-spacing: -4px; margin-bottom: 23px; }
.site-aside h2 { font-size: 24px; font-weight: 650; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 15px; }
.site-aside p { font-size: 14px; line-height: 1.8; color: #5d566b; margin-bottom: 20px; }
.site-aside .button { width: 100%; font-size: 14px; gap: 12px; }
.site-aside > .site-text-link { margin-top: 10px; }
.site-aside-bottom { margin-top: 19px; border-top: 1px solid #d6cce0; padding-top: 21px; }
.site-aside-bottom p { margin-bottom: 8px; font-size: 13px; }
.site-aside-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #5b4671; font-weight: 650; }
.site-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.site-contact-card { background: #e6eedb; border: 1px solid #d1dec4; border-radius: 24px; padding: 34px; }
.site-contact-card .site-eyebrow { margin-bottom: 18px; }
.site-mail { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; font-size: clamp(24px, 3vw, 36px); line-height: 1.35; font-weight: 600; letter-spacing: -1px; text-decoration: none; overflow-wrap: anywhere; margin-bottom: 25px; }
.site-mail span { font-size: 31px; }
.site-contact-card p { font-size: 15px; color: #52604e; line-height: 1.8; margin-bottom: 20px; }
.site-contact-card .site-contact-small { font-size: 13px; padding-top: 19px; border-top: 1px solid #cdd9c2; margin-bottom: 9px; }
.site-contact-card .site-text-link { font-size: 13px; }
.site-company { margin: 0; }
.site-company > div { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 21px; }
.site-company > div:last-child { margin-bottom: 0; }
.site-company dt { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.site-company dd { font-size: 16px; line-height: 1.75; margin: 0; }
.site-company a { display: inline-flex; align-items: center; min-height: 44px; }
.site-missing { display: grid; grid-template-columns: .72fr 1.28fr; gap: 65px; align-items: center; min-height: 65vh; padding-block: 75px 95px; }
.site-missing-mark { aspect-ratio: 1; display: grid; place-items: center; background: #e9e2f1; border: 1px solid #d7cce2; border-radius: 50%; color: #74618b; font-family: Georgia, "Times New Roman", serif; font-size: clamp(88px, 12vw, 156px); line-height: 1; letter-spacing: -9px; }
.site-missing h1 { font-size: clamp(38px, 4.7vw, 59px); line-height: 1.13; font-weight: 650; letter-spacing: -1.9px; margin: 15px 0 22px; }
.site-missing .site-lead { font-size: 17px; max-width: 47ch; }

/* Existing archive prose is kept intact; only its reading layout changes. */
.page-section.narrow { max-width: 860px; }
.page-section.narrow > h1, .archive h1 { font-size: clamp(35px, 4.5vw, 56px); line-height: 1.15; font-weight: 650; letter-spacing: -1.8px; }
.page-section.narrow > h2 { font-size: 28px; font-weight: 650; letter-spacing: -.7px; }
.page-section.narrow > p, .archive .prose p { line-height: 1.85; }
.page-section .lead { color: #526152; }
.archive .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 19px; }
.archive .eyebrow, .page-section > .eyebrow { color: #596c56; }
.archive .meta { padding-bottom: 19px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.archive .lede { color: #526152; font-size: 18px; line-height: 1.8; margin-bottom: 32px; }
.archive .prose h2 { font-size: 27px; font-weight: 650; letter-spacing: -.65px; line-height: 1.3; margin: 31px 0 15px; }
.archive .prose p { color: #4e6052; margin-bottom: 21px; }
.archive .related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; padding: 25px; border: 1px solid #d7dfcd; border-radius: 19px; background: #eaf0df; margin-top: 38px; }
.archive .related p { margin: 8px 0 0; line-height: 1.7; }
.archive .related a { display: inline-flex; align-items: center; min-height: 44px; }
.archive-links { border: 1px solid #d9dfd1; border-radius: 19px; overflow: hidden; background: var(--white); }
.archive-links li { padding: 0; border-top: 1px solid var(--line); }
.archive-links li:first-child { border-top: 0; }
.archive-links a { display: flex; align-items: center; min-height: 70px; padding: 18px 24px; font-size: 16px; line-height: 1.65; }
.archive-links a:hover { background: #edf2e5; }
.page-section .lesson-sources { font-size: 14px; line-height: 1.8; }
.page-section .lesson-sources a { overflow-wrap: anywhere; }

.footer { background: #273f33; color: #f8f7ee; border-top: 1px solid #203c2e; padding-block: 42px 20px; }
.footer-grid { grid-template-columns: 1.25fr 1fr; gap: 45px; }
.footer-wordmark { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; min-height: 44px; color: #f8f7ee; font-size: 16px; letter-spacing: 1.5px; }
.footer-wordmark span { margin: 0; color: #d4dfcf; font-size: 9px; letter-spacing: .6px; }
.footer-grid p { color: #d8e0d2; font-size: 13px; margin: 9px 0 12px; }
.footer .legal { color: #f0f4e9; font-size: 13px; }
.footer .legal p { margin: 5px 0; }
.footer .legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { border-color: #4d6251; margin-top: 27px; padding-top: 13px; color: #d2ddcc; font-size: 11px; align-items: center; }
.footer-bottom > div { gap: 4px 22px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:focus-visible { outline-color: #f1bb7d; }

@media (min-width: 901px) {
  .site-aside { position: sticky; top: 24px; }
}
@media (max-width: 1080px) {
  .shell { width: calc(100% - 56px); }
  .header nav a { padding-inline: 10px; font-size: 13px; }
  .site-hero { gap: 35px; }
  .site-hero h1 { font-size: 55px; letter-spacing: -2.2px; }
  .site-hero .site-lead { font-size: 16px; }
  .site-hero .site-actions { gap: 12px 18px; }
  .site-art-caption { padding: 20px; }
  .site-art-caption strong { font-size: 18px; }
  .site-topic { padding: 23px; }
  .site-feature-copy { padding: 24px; }
  .site-method { gap: 50px; }
  .site-about-grid { gap: 44px; grid-template-columns: minmax(0, 1fr) 280px; }
  .site-contact-grid { gap: 45px; }
}
@media (max-width: 860px) {
  .header-inner { min-height: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .header nav { width: 100%; justify-content: flex-start; gap: 5px; }
  .header nav a { padding-inline: 14px; }
  .site-hero { gap: 26px; padding-block: 45px 57px; }
  .site-hero h1 { font-size: 46px; }
  .site-hero .site-actions { align-items: flex-start; flex-direction: column; gap: 6px; }
  .site-art-heading { font-size: 10px; padding-inline: 18px; }
  .site-art-caption { align-items: flex-start; padding: 19px; }
  .site-art-caption strong { font-size: 17px; }
  .site-round-arrow { flex-basis: 36px; height: 36px; width: 36px; font-size: 22px; }
  .site-section { padding-block: 47px; }
  .site-section-head { gap: 22px; }
  .site-section-head > p { font-size: 13px; }
  .site-topic-grid { gap: 14px; }
  .site-topic { padding: 20px; }
  .site-topic h3 { font-size: 21px; }
  .site-topic p { font-size: 13px; }
  .site-topic-link { font-size: 12px; }
  .site-topic-count { margin-bottom: 16px; }
  .site-feature-grid { gap: 20px; }
  .site-feature-copy { padding: 21px; }
  .site-feature-copy h3 { font-size: 23px; }
  .site-feature-copy > p:not(.site-eyebrow) { font-size: 14px; }
  .site-method { gap: 35px; }
  .site-more .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-page-intro { padding-block: 42px 35px; }
  .site-page-intro .site-lead { font-size: 17px; }
  .site-about-grid { grid-template-columns: minmax(0, 1fr); gap: 37px; }
  .site-aside { max-width: 550px; }
  .site-aside .button { width: auto; }
  .site-aside > .site-text-link { display: flex; }
  .site-contact-grid { gap: 30px; }
  .site-contact-card { padding: 27px; }
  .site-missing { gap: 40px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .brand-symbol { font-size: 38px; width: 38px; }
  .brand-symbol span { font-size: 33px; }
  .brand-type { font-size: 14px; }
  .brand-type small { font-size: 10px; }
  .site-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 35px 47px; }
  .site-hero h1 { font-size: clamp(42px, 10vw, 60px); letter-spacing: -1.8px; }
  .site-hero .site-lead { font-size: 17px; max-width: 45ch; }
  .site-hero .site-actions { flex-direction: row; align-items: center; gap: 8px 20px; }
  .site-hero-art { max-width: 560px; border-radius: 23px; }
  .site-art-heading { padding: 17px 21px 12px; font-size: 11px; }
  .site-art-caption { align-items: center; padding: 20px 22px 22px; }
  .site-art-caption strong { font-size: 19px; }
  .site-art-caption strong br { display: none; }
  .site-round-arrow { flex-basis: 42px; width: 42px; height: 42px; }
  .site-section { padding-block: 38px; }
  .site-section-head { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 24px; }
  .site-section-head h2, .site-method h2 { font-size: 32px; letter-spacing: -.8px; }
  .site-section-head > p { font-size: 14px; max-width: 45ch; }
  .site-section-head > p br { display: none; }
  .site-topic-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-topic { padding: 23px; }
  .site-topic h3 { font-size: 25px; }
  .site-topic p { font-size: 14px; max-width: 52ch; margin-bottom: 18px; }
  .site-topic-count { margin-bottom: 12px; }
  .site-topic-link { font-size: 13px; }
  .site-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .site-feature-copy { padding: 23px; }
  .site-feature-copy h3 { font-size: 25px; }
  .site-feature-copy > p:not(.site-eyebrow) { font-size: 15px; }
  .site-model-note { margin-top: 21px; }
  .site-method { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .site-method-intro > p:not(.site-eyebrow) { max-width: 49ch; margin-top: 19px; }
  .site-method-steps p { max-width: 52ch; }
  .site-more { padding-bottom: 48px; }
  .site-more .site-section-head h2 { font-size: 30px; }
  .site-more .site-section-head h2 br { display: none; }
  .site-info { padding-bottom: 49px; }
  .site-page-intro { padding-block: 36px 30px; }
  .site-page-intro h1 { font-size: clamp(37px, 8vw, 51px); letter-spacing: -1.4px; }
  .site-page-intro .site-lead { font-size: 16px; }
  .site-prose h2 { font-size: 25px; }
  .site-prose p { font-size: 15px; }
  .site-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .site-contact-card { padding: 26px; }
  .site-mail { font-size: 31px; }
  .site-missing { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 37px 55px; gap: 30px; }
  .site-missing-mark { width: 155px; font-size: 74px; letter-spacing: -5px; }
  .site-missing h1 { font-size: 42px; }
  .site-missing .site-lead { font-size: 16px; }
  .lesson-finish { flex-direction: column; align-items: stretch; }
  .lesson-finish a:last-child { margin-left: 0; }
  .archive .related { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
  .archive-links a { min-height: 68px; padding: 16px 20px; font-size: 15px; }
  .page-section.narrow > h1, .archive h1 { font-size: 38px; letter-spacing: -1.2px; }
  .archive .lede { font-size: 17px; }
  .archive .prose h2 { font-size: 25px; }
  .footer { padding-top: 30px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer .legal { justify-self: start; }
  .footer-bottom { align-items: flex-start; gap: 8px; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 11px; padding-block: 12px; }
  .header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .header nav a { min-width: 0; white-space: normal; min-height: 44px; padding: 9px 8px; font-size: 13px; }
  .site-eyebrow { font-size: 10px; letter-spacing: .08em; }
  .site-hero h1 { margin-top: 16px; font-size: 43px; }
  .site-hero .site-lead { font-size: 16px; }
  .site-hero .site-actions { gap: 8px 18px; }
  .site-hero .button { padding-inline: 16px; font-size: 14px; }
  .site-hero .site-text-link { font-size: 13px; }
  .site-art-heading { padding-inline: 17px; font-size: 10px; }
  .site-art-caption { padding: 18px; gap: 13px; }
  .site-art-caption strong { font-size: 17px; }
  .site-art-caption div > span { font-size: 11px; }
  .site-round-arrow { flex-basis: 36px; width: 36px; height: 36px; font-size: 22px; }
  .site-section-head h2, .site-method h2 { font-size: 29px; }
  .site-topic { padding: 21px; }
  .site-feature-copy { padding: 21px; }
  .site-feature-copy h3 { font-size: 23px; }
  .site-feature-copy > p:not(.site-eyebrow) { font-size: 14px; }
  .site-more .cards { grid-template-columns: minmax(0, 1fr); }
  .site-more .site-section-head h2 { font-size: 28px; }
  .card-body { padding: 21px 20px 16px; }
  .card h3 { font-size: 23px; }
  .card-bottom { flex-wrap: wrap; gap: 3px 12px; }
  .site-page-intro h1 { font-size: 38px; }
  .site-prose h2 { font-size: 24px; }
  .site-aside { padding: 24px; }
  .site-contact-card { padding: 23px; }
  .site-mail { font-size: 27px; letter-spacing: -.7px; gap: 10px; }
  .site-mail span { font-size: 26px; }
  .site-company dd { font-size: 15px; }
  .site-missing h1 { font-size: 38px; }
  .page-section.narrow > h1, .archive h1 { font-size: 33px; }
  .page-section.narrow > h2, .archive .prose h2 { font-size: 24px; }
  .footer-wordmark { align-items: flex-start; flex-direction: column; gap: 5px; line-height: 1.5; }
  .footer-bottom > div { gap: 2px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .header, .footer { display: none; }
  .shell { width: 100%; }
  .site-hero, .site-about-grid, .site-contact-grid, .site-missing { display: block; }
  .site-hero-art, .site-topic, .site-feature, .card { break-inside: avoid; box-shadow: none; }
  .site-aside { position: static; margin-top: 25px; }
  .site-section { padding-block: 25px; }
  .site-feeds { background: transparent; }
  .site-more .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-missing-mark { display: none; }
}
