@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-style: normal;
  font-weight: 500 850;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #dbd4e8;
  --clover: #c7d7c7;
  --bloom: #e8c7b6;
  --hero: #eee3d5;
  --plum: #4e3654;
  --black: #141414;
  --white: #fff;
  --ink: #211e22;
  --muted: #585155;
  --paper: #f8f4ec;
  --paper2: #efebe2;
  --card: #fffcf6;
  --line: #d9cfc4;
  --focus: #67487e;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max-content: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 20px;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #1d1a20;
  --paper2: #26222a;
  --card: #29252e;
  --ink: #fffdf9;
  --muted: #c1c0b9;
  --line: #48463f;
  --focus: #d2bfe2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding: 32px 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.62 var(--sans); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; font-weight: 700; letter-spacing: -.038em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.65rem; }
h1 em, h2 em, h3 em { font-style: normal; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--bloom); color: var(--black); }
.eyebrow, .card-kicker {
  display: block;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.5;
  margin: 0 0 14px;
}
.eyebrow { color: var(--muted); }
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--black);
  color: white;
  z-index: 10;
}
.skip:focus { transform: translateY(0); }
.text-link {
  display: inline-flex;
  gap: .7em;
  align-items: baseline;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.45;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font: 700 .94rem/1.35 var(--sans);
  text-decoration: none;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { opacity: .85; }
.button.secondary { border-color: currentColor; }
.button.secondary:hover { background: var(--white); color: var(--black); }

/* Main navigation */
.site-header {
  padding: 15px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 76px;
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: inherit;
  font: 750 1rem/1.08 var(--sans);
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand svg {
  flex: none;
  width: 41px;
  height: 41px;
  color: var(--black);
  background: var(--sky);
  border-radius: 13px;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 29px);
}
.site-header nav a {
  font-weight: 650;
  font-size: .88rem;
  text-decoration: none;
  padding: 8px 0;
}
.site-header nav [aria-current], .site-header nav a:hover { text-decoration: underline; }
.header-tools { display: flex; align-items: center; gap: 15px; }
.search-link { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 650; text-decoration: none; }
.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 14px;
  background: transparent;
  font-size: .77rem;
  font-weight: 650;
  white-space: nowrap;
}

/* Home */
.section, .hero, .section-wrap, .footer-inner, .breadcrumb, .lab-heading {
  max-width: calc(var(--max-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(42px, 6vw, 82px); }
.hero-band, .question-band, .library-band {
  color: var(--black);
  --ink: var(--black);
  --paper: var(--white);
  --muted: #393834;
  --focus: #67487e;
}
.hero-band {
  background: radial-gradient(ellipse at 78% 46%, #f9f2e9, transparent 55%), var(--hero);
  border-block: 1px solid #dcd1c5;
}
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  padding-block: clamp(28px, 4.5vw, 64px);
}
.hero h1 {
  font-size: clamp(3.8rem, 7.6vw, 7.2rem);
  line-height: 1.01;
  letter-spacing: -.046em;
  font-weight: 650;
  color: var(--plum);
  margin-bottom: 23px;
}
.hero-intro { font-size: clamp(1.08rem, 1.65vw, 1.4rem); max-width: 29ch; line-height: 1.46; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { border-radius: 12px; }
.hero-actions .primary { background: var(--plum); }
.hero-actions .secondary { color: var(--plum); }
.hero-illustration { display: block; width: 100%; height: auto; }
.first-listen { scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px 35px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; }
.section-heading > p { color: var(--muted); max-width: 42ch; margin: 0; }
.lab-caption { padding-top: 14px; }
.lab-caption p { font-size: .9rem; color: var(--muted); margin: 0; max-width: 72ch; }
.listening-workbench { scroll-margin-top: 12px; }
.workbench-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 11px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper2);
}
.workbench-modes a {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: .89rem;
  font-weight: 700;
  line-height: 1.25;
}
.workbench-modes a:hover { background: var(--card); }
.workbench-modes [aria-current='true'],
.workbench-modes [aria-current='true']:hover {
  background: var(--plum);
  color: var(--white);
}
.has-mode-switch .recorded-notes { margin-block-start: 0; }
@media (max-width: 530px) {
  .workbench-modes { width: 100%; }
  .workbench-modes a { justify-content: center; flex: 1; padding-inline: 8px; text-align: center; }
}
.recorded-notes {
  max-width: 100%;
  margin-block-start: clamp(26px, 4vw, 44px);
  padding: clamp(16px, 3.3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  scroll-margin-top: 15px;
}
.recorded-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 21px;
}
.recorded-header h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.recorded-header p { max-width: 58ch; margin: 0; color: var(--muted); font-size: .96rem; }
.recorded-note {
  flex: none;
  display: grid;
  min-width: 94px;
  justify-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--clover);
  color: var(--black);
}
.recorded-note strong { font: 700 1.45rem/1.12 var(--serif); }
.recorded-note span { font-size: .76rem; }
.recorded-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recorded-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 9px;
  padding: clamp(13px, 2vw, 22px);
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.recorded-choice label, .recorded-volume { font-size: .83rem; font-weight: 700; }
.recorded-choice select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--card);
}
.recorded-choice-info { flex: 1; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.recorded-choice-info p { margin: 0 0 6px; }
.recorded-choice-info a { color: var(--ink); }
.recorded-play { min-height: 43px; margin-top: 3px; }
.recorded-play[aria-pressed='true'] { background: var(--clover); color: var(--black); border-color: var(--black); }
.recorded-transport {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 19px;
  padding-block: 14px 10px;
}
.recorded-stop { min-height: 40px; padding-block: 7px; background: transparent; }
.recorded-stop:disabled { opacity: .52; cursor: default; }
.recorded-volume {
  display: grid;
  flex: 1 1 130px;
  max-width: 190px;
  gap: 2px;
  min-width: 0;
}
.recorded-volume span { display: flex; justify-content: space-between; gap: 10px; }
.recorded-volume input { margin: 0; min-height: 28px; width: 100%; accent-color: var(--focus); }
.recorded-progress { flex: 1 1 220px; min-width: 0; }
.recorded-progress p { margin: 0; color: var(--muted); font-size: .83rem; }
.recorded-progress progress { width: 100%; height: 8px; accent-color: var(--focus); }
.recorded-context { font-size: .84rem; color: var(--muted); }
.recorded-context > p { margin: 0 0 5px; }
.recorded-credits, .recorded-fallback { padding-block: 9px; }
.recorded-credits summary, .recorded-fallback summary { color: var(--ink); font-weight: 700; }
.recorded-credits p, .recorded-credits dl { margin: 10px 0 0; }
.recorded-credits dl > div { margin: 10px 0; padding-top: 7px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.recorded-credits dt { color: var(--ink); font-weight: 700; }
.recorded-credits dd { margin: 0; }
.recorded-fallback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 12px 20px;
  margin-top: 12px;
}
.recorded-fallback-list p { margin: 0; font-size: .86rem; }
.recorded-fallback audio { display: block; width: 100%; height: 44px; }
@media (max-width: 520px) {
  .recorded-header { flex-wrap: wrap; }
  .recorded-note { display: flex; align-items: center; gap: 7px; padding: 7px 10px; }
  .recorded-note strong { font-size: 1.1rem; }
  .recorded-comparison { grid-template-columns: 1fr; }
}
.question-band { background: #e5ebe0; }
.question-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.question-grid a {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--black);
  padding: clamp(20px, 2.5vw, 32px);
  text-decoration: none;
}
.question-grid a:hover { background: var(--white); }
.question-grid h3 { margin-bottom: 11px; max-width: 19ch; }
.question-grid p { margin-bottom: 20px; font-size: .94rem; }
.question-grid a > span { margin-top: auto; font-size: .9rem; font-weight: 750; }
.library-band { background: #f0ddd2; }
.library-callout { display: flex; gap: 25px; justify-content: space-between; align-items: center; }
.library-callout h2 { margin-bottom: 12px; }
.library-callout p { margin-bottom: 0; }
.library-callout > a { flex: none; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 44px; background: var(--paper); color: var(--ink); }
.footer-inner { display: grid; grid-template-columns: minmax(145px,.6fr) 1.4fr auto; gap: 28px; align-items: start; }
.footer-inner nav { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; font-weight: 550; }

/* Collections */
main[data-section='lessons'], main[data-section='labs'] { --banner: var(--sky); }
main[data-section='instruments'], main[data-section='journeys'] { --banner: var(--clover); }
main[data-section='compare'] { --banner: var(--bloom); }
.page-heading {
  padding: clamp(42px, 7vw, 90px) max(var(--gutter), calc((100vw - var(--max-content)) / 2));
  background: var(--banner, var(--sky));
  color: var(--black);
  --muted: #343331;
  --focus: #67487e;
}
.page-heading h1 { margin-bottom: 16px; }
.page-heading > p:last-child { margin: 0; max-width: 64ch; font-size: clamp(1rem, 1.45vw, 1.19rem); }
.page-heading > h1:last-child { margin-bottom: 0; }
main[data-section='instruments'] .page-heading { padding-block: clamp(30px, 4.5vw, 60px); }
main[data-section='instruments'] .article-heading {
  max-width: calc(var(--max-content) + var(--gutter) * 2);
  padding-block: clamp(22px, 3vw, 38px) clamp(18px, 2.2vw, 30px);
}
main[data-section='instruments'] .article-heading h1 { margin-bottom: 10px; }
main[data-section='instruments'] .article-meta { display: none; }
.index-section { padding-top: 32px; }
.filter-bar {
  display: flex;
  align-items: end;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-bar label { flex: 1; min-width: 110px; }
.filter-bar .search-field { flex: 2; }
.filter-bar label > span { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.filter-bar select, .filter-bar input {
  display: block;
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 11px;
}
.text-button { border: 0; min-height: 45px; padding: 8px; background: none; text-decoration: underline; font-size: .88rem; font-weight: 650; }
.result-count, [data-results] { color: var(--muted); font-size: .86rem; margin: 16px 0 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.entry-card:hover { border-color: var(--ink); }
.entry-copy { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2.45vw, 29px); }
.card-kicker { margin-bottom: 9px; color: var(--muted); }
.entry-card h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.45vw, 2rem); line-height: 1.18; }
.entry-card p { margin-bottom: 20px; font-size: .94rem; color: var(--muted); }
.card-link { margin-top: auto; display: flex; justify-content: space-between; font-size: .9rem; font-weight: 750; }
.entry-card:hover .card-link { text-decoration: underline; }
.entry-card[data-card-type='lab'] .entry-copy { border-top: 6px solid var(--sky); }
.entry-card[data-card-type='journey'] .entry-copy { border-top: 6px solid var(--clover); }
.entry-card[data-card-type='comparison'] .entry-copy { border-top: 6px solid var(--bloom); }
.empty-state { padding: 30px; background: var(--paper2); border-radius: var(--radius); }
.empty-state h2 { margin-bottom: 9px; }

.tone-sky { --image-tone: var(--sky); }
.tone-clover { --image-tone: var(--clover); }
.tone-bloom { --image-tone: var(--bloom); }
.instrument-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--image-tone, var(--sky));
  display: grid;
  place-items: center;
}
.instrument-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.instrument-feature {
  max-width: calc(var(--max-content) + var(--gutter) * 2);
  margin: 0 auto clamp(28px, 5vw, 60px);
  padding: 0 var(--gutter);
}
.instrument-feature figure {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 2vw, 28px);
}
.instrument-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--image-tone, var(--sky));
  border-radius: var(--radius);
}
.instrument-stage img { display: block; width: 100%; height: auto; }
.instrument-feature figcaption {
  align-content: center;
  margin: 0;
  max-width: none;
  padding: clamp(18px, 2.5vw, 35px);
  background: var(--paper2);
  border-radius: var(--radius);
  color: var(--ink);
}
.instrument-feature h2 { font-size: clamp(1.55rem,3.4vw,2.35rem); margin-bottom: 12px; }
.instrument-feature figcaption > p { margin-bottom: 16px; line-height: 1.55; color: var(--muted); }
.instrument-parts { display: grid; gap: 9px; margin: 0; }
.instrument-parts div { padding: 10px 0 0; border-top: 1px solid var(--line); }
.instrument-parts dt { margin-bottom: 4px; font-weight: 750; }
.instrument-parts dd { margin: 0; font-size: .88rem; line-height: 1.55; }

/* Reading pages */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  padding-top: 22px;
  color: var(--muted);
  font-size: .81rem;
}
.breadcrumb > span:last-child { color: var(--ink); }
.article-heading { max-width: 1060px; margin-inline: auto; padding: clamp(33px, 4vw, 58px) var(--gutter) clamp(26px, 4vw, 50px); }
.article-heading h1, .lab-heading h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 5.7vw, 4.85rem); text-wrap: balance; }
.article-heading > p:not(.eyebrow), .lab-heading > p:not(.eyebrow) { font-size: clamp(1.04rem, 1.5vw, 1.26rem); line-height: 1.48; max-width: 55ch; }
.article-meta { font-size: .88rem; color: var(--muted); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(135px,185px) minmax(0,720px);
  gap: clamp(24px, 4vw, 58px);
  max-width: 1130px;
  margin-inline: auto;
  padding: 32px var(--gutter) 0;
  border-top: 1px solid var(--line);
}
.article-nav { align-self: start; position: sticky; top: 24px; font-size: .87rem; }
.article-nav a { display: block; line-height: 1.45; margin-bottom: 12px; text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }
.glossary-aside { border-top: 1px solid var(--line); padding-top: 14px; }
.prose, .lab-reading { font-size: 1.06rem; line-height: 1.78; min-width: 0; }
.prose h2, .lab-reading h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); margin-bottom: 16px; }
.prose section, .lab-reading > section { margin-bottom: 36px; }
.prose p { margin-bottom: 18px; overflow-wrap: anywhere; }
.section-cites { font-size: .82rem; color: var(--muted); }
.section-cites a { padding: 2px; }
.takeaway, .try-it {
  background: var(--paper2);
  padding: clamp(18px, 3vw, 29px);
  border-radius: 13px;
  margin: 26px 0;
}
.takeaway { border-left: 5px solid var(--bloom); }
.takeaway p:last-child { margin: 0; font-size: clamp(1.2rem,3vw,1.53rem); font-family: var(--serif); line-height: 1.35; }
.try-it { border-left: 5px solid var(--sky); }
.math-detail, .context-definitions details { border-block: 1px solid var(--line); padding: 13px 0; margin: 16px 0; }
.math-detail summary, .context-definitions summary { font-weight: 750; font-size: .96rem; }
.math-detail p, .context-definitions details p { font-size: .95rem; padding-top: 12px; }
.article-sources { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .93rem; }
.article-sources li { margin: 0 0 14px; }
.article-sources li span { display: block; color: var(--muted); font-size: .82rem; }
.article-sources :target { background: var(--paper2); outline: 3px solid var(--line); }
.related-section { border-top: 1px solid var(--line); margin-top: 35px; }
.notice, .lab-panel:not(.lab-instrument) { padding: 22px; background: var(--paper2); border-radius: 12px; }
.lab-heading { padding-block: clamp(21px, 2.6vw, 34px) 6px; }
.lab-heading .eyebrow { margin-bottom: 8px; }
.lab-heading h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); margin-bottom: 10px; }
.lab-heading > p:last-child { margin-bottom: 15px; font-size: clamp(1rem, 1.35vw, 1.16rem); max-width: 65ch; }
.lab-full { padding-top: 0; padding-bottom: 42px; }
.lab-reading, .standalone { max-width: 840px; padding: 20px var(--gutter); margin: 0 auto 44px; }
.lab-study-list { display: grid; gap: 10px; }
.lab-study {
  display: grid;
  grid-template-columns: clamp(70px, 18%, 118px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  text-decoration: none;
}
.lab-study .instrument-thumb { aspect-ratio: 8 / 5; border-radius: 7px; }
.lab-study h3 { margin: 0 0 5px; font-size: 1.15rem; }
.lab-study h3 span { font: 600 .85rem var(--sans); }
.lab-study p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.48; }
.lab-study:hover h3 { text-decoration: underline; }
.standalone h2 { margin-top: 24px; }
.about-brief { padding-block: 28px 0; margin-bottom: 30px; }
.about-brief h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin-bottom: 12px; }
.about-brief p { margin: 0; }
.standalone.wide { max-width: 1020px; }
.global-sound { display: none; }
body:has(.is-playing) .global-sound {
  display: block;
  position: fixed;
  z-index: 9;
  bottom: max(13px, env(safe-area-inset-bottom));
  right: 13px;
}
.global-sound button {
  background: var(--black); color: var(--white);
  border: 1px solid var(--white);
  border-radius: 100px;
  min-height: 43px;
  padding: 9px 14px;
  font-size: .84rem;
  box-shadow: 0 5px 15px #0003;
}

.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: start; font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: start; }
th { font-weight: 750; }

.journey-content, .glossary {
  max-width: 920px;
  margin-inline: auto;
  padding: 26px var(--gutter) 60px;
}
.journey-progress { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; border-block: 1px solid var(--line); padding: 13px 0; color: var(--muted); font-size: .9rem; }
.journey-steps { padding: 0; margin: 0; list-style: none; }
.journey-steps li { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.step-number { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: var(--clover); color: var(--black); border-radius: 50%; font: 700 1rem var(--sans); }
.journey-steps h2 { margin-bottom: 10px; font-size: clamp(1.45rem,2.8vw,2.13rem); }
.journey-steps .eyebrow { margin-bottom: 7px; }
.step-done { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: .9rem; cursor: pointer; }
.step-done input { width: 18px; height: 18px; accent-color: var(--focus); }
.glossary dl > div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(105px, .45fr) 1fr; gap: 10px 25px; }
.glossary dl > div:target { background: var(--paper2); outline: 3px solid var(--line); }
.glossary dt { font: 700 1.4rem/1.3 var(--serif); }
.glossary dd { margin: 0; font-size: .97rem; }
.glossary dd p { margin-bottom: 7px; }
.source-register section { margin-bottom: 0; border-bottom: 1px solid var(--line); padding: 18px 0; overflow-wrap: anywhere; }
.source-register h3 { margin-bottom: 8px; }
.source-register dl { display: grid; grid-template-columns: minmax(100px,.4fr) 1fr; gap: 7px 16px; font-size: .9rem; }
.source-register dd { margin: 0; }
.source-register dt { font-weight: 750; }
.error-page .text-link { margin: 15px; }

@media (max-width: 920px) {
  .site-header { gap: 15px; }
  .site-header nav { gap: 14px; }
  .header-tools { gap: 11px; }
  .search-link span { display: none; }
  .hero { gap: 16px; }
  .hero-actions .button { padding-inline: 15px; font-size: .87rem; }
}

@media (max-width: 740px) {
  .site-header { grid-template-columns: 1fr auto; gap: 8px; padding-block: 11px 7px; }
  .site-header nav { order: 3; grid-column: 1 / -1; justify-content: space-between; gap: 2px 9px; border-top: 1px solid var(--line); }
  .site-header nav a { min-height: 39px; display: grid; place-items: center; font-size: .83rem; }
  .search-link span { display: inline; }
  .hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .hero-intro { margin-bottom: 17px; }
  .section-heading { align-items: start; flex-wrap: wrap; margin-bottom: 18px; }
  .card-grid, .question-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .instrument-feature figure { grid-template-columns: 1fr; }
  .instrument-feature figcaption { padding: 20px; }
  .question-grid > :last-child { grid-column: 1 / -1; min-height: auto; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-library { grid-column: 2; }
  .article-layout { display: block; }
  .article-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 17px; padding: 0 0 16px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
  .article-nav .eyebrow { flex-basis: 100%; margin-bottom: 0; }
  .article-nav a { margin-bottom: 0; }
  .glossary-aside { border: 0; padding: 0; }
}

@media (max-width: 530px) {
  .search-link span { display: none; }
  .search-link { min-width: 34px; min-height: 40px; justify-content: center; }
  .hero { grid-template-columns: 1fr; padding-block: 31px 24px; gap: 1px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.15rem); margin-bottom: 13px; }
  .hero-illustration { width: 75%; margin: 7px auto -3px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 43px; }
  .filter-bar { flex-wrap: wrap; gap: 8px 12px; }
  .filter-bar .search-field { flex-basis: 100%; }
  .filter-bar label { min-width: 98px; }
  .card-grid, .question-grid { grid-template-columns: 1fr; }
  .question-grid a { min-height: 0; }
  .library-callout { align-items: start; flex-direction: column; gap: 15px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-library { grid-column: auto; }
  .glossary dl > div { grid-template-columns: 1fr; }
  .source-register dl { display: block; }
  .source-register dd { margin-bottom: 7px; }
  .table-scroll { margin-inline: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
