:root {
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: #193b33;
  background: #eff3eb;
  --muted: #465f55;
  --accent: #275d47;
  --line: #cddbcf;
  --surface: #fbfcf8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, main:focus-visible { outline: 3px solid #358065; outline-offset: 3px; }
.shell { width: min(100% - 2 * clamp(14px, 5vw, 64px), 1136px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; left: 10px; top: 8px; padding: 8px 12px; background: white; translate: 0 -150%; }
.skip-link:focus { translate: 0 0; }
.site-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; }
.bar-inner a { display: inline-flex; align-items: center; gap: .32em; min-height: 44px; text-decoration: none; }
.brand { color: #213f34; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 790; letter-spacing: -.055em; }
.brand span { margin-left: -.32em; color: #52745e; }
.mission-link { font-size: .88rem; font-weight: 730; }
.mission-link:hover { text-decoration: underline; }
.intro { padding-block: clamp(25px, 6vw, 64px) clamp(21px, 4vw, 43px); border-bottom: 1px solid var(--line); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1 { max-width: 20ch; color: #173a32; font-family: Georgia, serif; font-size: clamp(2rem, 5.2vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.dek { max-width: 65ch; margin-top: .8em; color: var(--muted); font-size: clamp(1rem, 1.85vw, 1.2rem); line-height: 1.55; }
.article-grid { display: grid; grid-template-columns: minmax(160px, 210px) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); padding-top: clamp(17px, 3.5vw, 36px); align-items: start; }
.contents { position: sticky; top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.contents h2 { margin: 0 8px 3px; font-size: .89rem; letter-spacing: normal; font-family: inherit; font-weight: 800; }
.contents ul { list-style: none; padding: 0; margin: 0; }
.contents a { display: flex; align-items: center; min-height: 44px; padding: 5px 8px; border-radius: 5px; font-size: .82rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.contents a:hover { background: #e5eee3; text-decoration: underline; }
.chapters { min-width: 0; line-height: 1.66; }
.chapters section { scroll-margin-top: 14px; }
.chapters section + section { margin-top: clamp(30px, 5vw, 60px); padding-top: clamp(24px, 4vw, 42px); border-top: 1px solid var(--line); }
h2 { color: #193b33; font-family: Georgia, serif; font-size: clamp(1.65rem, 3.3vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.chapters p, .components dd { color: var(--muted); }
.lead { margin-top: .55em; max-width: 72ch; }
figure { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
figure img { display: block; width: 100%; height: auto; background: #dce8d8; }
figcaption { padding: 9px 12px; font-size: .83rem; line-height: 1.4; color: var(--muted); }
figcaption span { color: #2e5a49; font-weight: 780; padding-right: .4em; }
.wide-photo { margin-top: 16px; }
.flow { margin-top: 15px; padding: 11px 14px; background: #e2eee4; border-left: 3px solid #5c9475; border-radius: 5px; line-height: 1.5; font-size: .92rem; }
.flow > strong { display: block; }
.flow ul { padding-left: 1.2em; margin: 5px 0 0; }
.flow li + li { margin-top: 4px; }
.components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 21px; margin-block: 11px 16px; }
.components div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.components dt { font-weight: 800; line-height: 1.3; }
.components dd { margin-top: 4px; font-size: .93rem; line-height: 1.55; }
.components [id] { scroll-margin-top: 14px; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 19px); }
.lab-example { margin-top: 16px; padding: 12px 15px 4px; border: 1px solid #bfd3c3; border-radius: 8px; background: var(--surface); }
.lab-example h3 { font-size: 1.07rem; }
.lab-example p { margin-top: 3px; font-size: .92rem; line-height: 1.54; }
.lab-example a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 770; font-size: .89rem; }
.source-links { margin-top: 11px; font-size: .82rem; }
.comparison { width: 100%; border-collapse: collapse; margin-block: 14px 16px; background: var(--surface); text-align: left; line-height: 1.42; font-size: .9rem; }
.comparison th, .comparison td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.comparison thead th { background: #e1ece0; }
.footer { padding-block: 26px 34px; margin-top: 26px; border-top: 1px solid var(--line); font-size: .87rem; font-weight: 730; }

@media (max-width: 690px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contents { position: static; }
  .contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 490px) {
  .components, .photo-pair { grid-template-columns: minmax(0, 1fr); }
  .contents { padding: 8px; }
  .contents a { padding-inline: 6px; }
  .comparison { font-size: .77rem; }
  .comparison th, .comparison td { padding: 6px; overflow-wrap: anywhere; }
  .comparison th:first-child { width: 5.5em; white-space: nowrap; }
}
