/* Pixel-aligned editorial tokens / controls compared with PMx Explain and MultiOmics. */
/* Source of truth: PMx Explain & MultiOmics use @fontsource-variable families.
 * Exact pinned Latin WOFF2 assets are bundled in CI under assets/fonts/.
 * @font-face changes browser fallback into the actual same variable fonts.
 */
@font-face{
 font-family:'Inter Variable';font-weight:100 900;font-style:normal;font-display:swap;
 src:url('./fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face{
 font-family:'Source Serif 4 Variable';font-weight:200 900;font-style:normal;font-display:swap;
 src:url('./fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
}
@font-face{
 font-family:'JetBrains Mono Variable';font-weight:100 800;font-style:normal;font-display:swap;
 src:url('./fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root{
 --font-heading:'Source Serif 4 Variable','Source Serif 4',Georgia,'Times New Roman',serif;
 --font-body:'Inter Variable',Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
 --font-mono:'JetBrains Mono Variable','JetBrains Mono',ui-monospace,Consolas,monospace;
 --text-xs:.75rem;--text-sm:.8125rem;--text-base:1.0625rem;--text-lg:clamp(1.125rem,.4vw + 1.05rem,1.25rem);
 --text-xl:clamp(1.3rem,.8vw + 1.15rem,1.6rem);--text-2xl:clamp(1.6rem,1.6vw + 1.25rem,2.1rem);
 --text-3xl:clamp(2rem,2.8vw + 1.4rem,2.9rem);--text-4xl:clamp(2.4rem,4.4vw + 1.5rem,3.9rem);
 --bg-primary:#fbfaf8;--bg-secondary:#f1eee9;--bg-tertiary:#fff;
 --text-primary:#14171a;--text-secondary:#4b5157;--text-muted:#666d73;
 --accent-pk:#a4441f;--accent-pk-vivid:#b85c38;--accent-ai:#1f4b8f;--accent-pd:#3d5a1e;
 --border-subtle:#e4dfd7;--border-strong:#b8b0a6;
 --disclaimer-bg:#21201e;--disclaimer-text:#f1ece5;--focus-ring:#a4441f;
 --maxw:1280px;--header-h:59px;--line-height-body:1.7;
 --space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-6:1.5rem;--space-8:2.5rem;--space-24:7rem;--radius:5px;
 color-scheme:light
}
@media(prefers-color-scheme:dark){
 :root:not([data-theme='light']){--bg-primary:#14161a;--bg-secondary:#1c1f24;--bg-tertiary:#1a1d22;
 --text-primary:#e8e6e1;--text-secondary:#a8adb3;--text-muted:#878d94;
 --accent-pk:#e8845c;--accent-pk-vivid:#f09a75;--accent-ai:#7aa8e6;--accent-pd:#9dbd6a;
 --border-subtle:#2a2e35;--border-strong:#4a5058;--disclaimer-bg:#0e1013;--disclaimer-text:#d6d3cd;--focus-ring:#e8845c;color-scheme:dark}
}
:root[data-theme='dark']{--bg-primary:#14161a;--bg-secondary:#1c1f24;--bg-tertiary:#1a1d22;
 --text-primary:#e8e6e1;--text-secondary:#a8adb3;--text-muted:#878d94;
 --accent-pk:#e8845c;--accent-pk-vivid:#f09a75;--accent-ai:#7aa8e6;--accent-pd:#9dbd6a;
 --border-subtle:#2a2e35;--border-strong:#4a5058;--disclaimer-bg:#0e1013;--disclaimer-text:#d6d3cd;--focus-ring:#e8845c;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font-body);font-size:var(--text-base);line-height:var(--line-height-body);background:var(--bg-primary);color:var(--text-primary);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--font-heading);font-weight:600;line-height:1.14;letter-spacing:-.012em;text-wrap:balance;color:var(--text-primary)}
h1{font-size:var(--text-4xl)}h2{font-size:var(--text-2xl)}h3{font-size:var(--text-xl)}
p{text-wrap:pretty}a{color:var(--accent-pk);text-underline-offset:.18em}
:where(a,button,summary):focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
button{font:inherit;cursor:pointer}
.skip-link{position:absolute;transform:translateY(-180%);padding:12px;background:var(--bg-tertiary);z-index:100}.skip-link:focus{transform:translateY(0)}
.app{min-height:100vh;display:flex;flex-direction:column}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;min-height:var(--header-h);position:sticky;top:0;z-index:50;background:var(--bg-primary);border-bottom:1px solid var(--border-subtle)}
@supports(backdrop-filter:blur(12px)){.site-header{background:color-mix(in srgb,var(--bg-primary) 85%,transparent);backdrop-filter:blur(14px)}}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text-primary);white-space:nowrap}
.mark{font-family:var(--font-heading);font-weight:900;color:var(--bg-primary);background:var(--accent-pk);width:34px;height:34px;border-radius:8px;display:grid;place-items:center;font-size:.95rem;letter-spacing:-.04em}
.word{font-family:var(--font-heading);font-weight:700;font-size:1.05rem;letter-spacing:-.02em}.word em{font-style:normal;color:var(--accent-pk)}
#site-nav{display:flex;gap:var(--space-1);align-items:center}.goal{position:relative;margin:0}
.goal summary{list-style:none;display:flex;align-items:center;gap:7px;padding:10px;font-size:13px;font-weight:600;cursor:pointer;color:var(--text-secondary);white-space:nowrap}
.goal summary::-webkit-details-marker{display:none}.goal summary.active{color:var(--accent-pk)}
.goal[open] summary,.goal summary:hover{background:var(--bg-secondary);color:var(--text-primary)}
.lucide-icon{flex-shrink:0;display:block}
.goal-links{position:absolute;top:100%;left:0;min-width:220px;display:flex;flex-direction:column;background:var(--bg-primary);border:1px solid var(--border-strong);padding:6px;box-shadow:0 8px 18px #0001}
.goal:last-of-type .goal-links{left:auto;right:0}
#site-nav a{display:block;text-decoration:none;color:var(--text-secondary);padding:var(--space-2) var(--space-3);border-radius:6px;font-weight:600;font-size:var(--text-sm);transition:background-color .2s ease,color .2s ease}
#site-nav a:hover{color:var(--text-primary);background:var(--bg-secondary)}
.tools{display:flex;align-items:center;gap:var(--space-2);margin-left:var(--space-2)}
.language-toggle{display:inline-flex;align-items:center;border:1px solid var(--border-subtle);border-radius:6px;overflow:hidden;background:var(--bg-tertiary)}
.language-toggle button{border:0;background:transparent;color:var(--text-secondary);cursor:pointer;font:inherit;font-family:var(--font-mono);font-size:var(--text-xs);font-weight:700;padding:var(--space-2) var(--space-3)}
.language-toggle button:hover{color:var(--text-primary);background:var(--bg-secondary)}
.language-toggle button.active{background:var(--text-primary);color:var(--bg-primary)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;background:transparent;border:1px solid var(--border-subtle);border-radius:var(--radius);color:var(--text-secondary);cursor:pointer;transition:color .18s ease,border-color .18s ease,background-color .18s ease}
.theme-toggle:hover{color:var(--accent-pk);border-color:var(--accent-pk);background:var(--bg-secondary)}
.theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.burger{display:none;flex-direction:column;gap:4px;background:none;border:none;padding:8px}.burger span{display:block;width:22px;height:2px;background:var(--text-primary)}
.page-shell{flex:1;width:100%;max-width:var(--maxw);margin:0 auto;padding:var(--space-8) var(--space-6) var(--space-24)}
.hero{max-width:900px;padding:88px 0 64px}.hero h1{font-weight:900;margin:14px 0 24px}.eyebrow{font-family:var(--font-mono);letter-spacing:.08em;font-size:var(--text-xs);text-transform:uppercase;color:var(--accent-pk);font-weight:700}
.lede{font-size:var(--text-lg);color:var(--text-secondary);max-width:72ch}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin:32px 0 12px}
.cta a,.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 24px;background:var(--text-primary);color:var(--bg-primary);font-size:var(--text-base);border:1px solid var(--text-primary);text-decoration:none;font-weight:600;border-radius:5px}
.cta .btn-outline{background:transparent;color:var(--text-primary);border-color:var(--border-strong)}
.hero-note,.note{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--text-muted)}
.objectives{border-block:1px solid var(--border-strong);padding:24px 0;margin:0 0 60px}.objectives h2{font-size:22px}
.objectives-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:14px 22px}
.objectives-grid a{padding:12px 0;border-bottom:2px solid var(--accent-pk);color:var(--text-primary);font-size:14px;text-decoration:none;font-weight:600}
.section{margin:54px 0}.section h2{margin:12px 0 26px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:var(--bg-tertiary);border:1px solid var(--border-subtle);border-radius:5px;padding:24px;display:flex;flex-direction:column;gap:8px;min-width:0}
.card h3{margin:8px 0 0}.card p{font-size:14px;line-height:1.65;color:var(--text-secondary);flex:1}
.card-kicker{text-transform:uppercase;font-size:var(--text-xs);font-family:var(--font-mono);color:var(--accent-pk);letter-spacing:.06em}
.card-link{border-top:1px solid var(--border-subtle);margin-top:14px;padding-top:12px;font-size:14px}
.resource-band{display:flex;align-items:center;gap:48px;justify-content:space-between;border-block:1px solid var(--border-subtle);padding:24px 0;margin-top:64px}
.resource-band h2{font-size:var(--text-xl)}.resource-band p{color:var(--text-secondary);max-width:68ch}.resource-band a{white-space:nowrap;font-weight:600}
.small-hero{padding:54px 0 36px;max-width:930px}.small-hero h1{font-size:var(--text-3xl)}
.evidence{border-top:1px solid var(--border-strong);padding-top:28px;max-width:980px}
.evidence p{max-width:78ch}.evidence>a{font-size:14px;font-weight:600}
.scientific-question,.conclusion-panel,.construction{margin:22px 0 54px;padding:28px;border:1px solid var(--border-subtle);border-left:4px solid var(--accent-pk);border-radius:8px;background:var(--bg-secondary)}
.scientific-question h2,.conclusion-panel h2,.construction h2{margin:8px 0 14px}.scientific-question p:last-child,.conclusion-panel p{max-width:82ch;color:var(--text-secondary)}
.evidence-step,.course-step{display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;align-items:start;padding:34px 0;border-top:1px solid var(--border-strong);max-width:1040px}
.evidence-step h2,.course-step h2{margin:0 0 14px}.evidence-step p,.course-step p{max-width:82ch}
.step-number{width:38px;height:38px;border:1px solid var(--border-strong);border-radius:50%;display:grid;place-items:center;font-family:var(--font-mono);font-weight:800;color:var(--accent-pk);background:var(--bg-tertiary)}
.takeaway,.method-note{margin:18px 0;padding:14px 16px;border-left:3px solid var(--accent-pk);background:var(--bg-secondary);display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
.takeaway span,.method-note span{color:var(--text-secondary)}
.decision-flow,.timeline,.validation-ladder,.representation-row,.course-map{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}
.decision-flow span,.timeline span,.validation-ladder span,.representation-row span,.course-map span{padding:9px 12px;border:1px solid var(--border-subtle);border-radius:6px;background:var(--bg-tertiary);font-size:var(--text-sm);font-weight:650}
.course-map{padding:14px 0 22px;border-bottom:1px solid var(--border-strong);margin-bottom:18px}.course-map b,.decision-flow b,.timeline b,.validation-ladder b{color:var(--text-muted)}
.do-dont,.decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.decision-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.do-dont>div,.decision-grid article{padding:16px;border:1px solid var(--border-subtle);border-radius:7px;background:var(--bg-tertiary)}
.do-dont>div:last-child{border-left:3px solid var(--accent-ai)}.do-dont p,.decision-grid p{margin:.4rem 0 0;color:var(--text-secondary);font-size:var(--text-sm)}
.checklist{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:18px 0}.checklist li{padding:10px 12px;border-left:3px solid var(--accent-pk);background:var(--bg-secondary)}
.status-pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--bg-tertiary);border:1px solid var(--border-strong);font-family:var(--font-mono);font-size:var(--text-xs);font-weight:800;color:var(--accent-pk);margin-bottom:8px}
table{width:100%;border-collapse:collapse;margin:24px 0;display:block;overflow-x:auto;white-space:nowrap;font-size:14px}
th{text-align:left;background:var(--bg-secondary);color:var(--text-primary)}th,td{padding:13px 18px;border-bottom:1px solid var(--border-subtle)}
.callout{border-left:3px solid var(--accent-pk);background:var(--bg-secondary);padding:12px 20px;margin:28px 0}
.ecosystem-figure{margin:24px 0 48px;padding:14px;border:1px solid var(--border-subtle);border-radius:8px;background:var(--bg-secondary)}
.ecosystem-figure img{display:block;width:100%;height:auto;border-radius:6px}
.ecosystem-figure figcaption{margin-top:10px;text-align:center;color:var(--text-secondary);font-size:var(--text-sm)}
.ecosystem-boundary{margin:24px 0 54px;padding:24px;border:1px solid var(--border-subtle);border-left:3px solid var(--accent-pk);border-radius:5px;background:var(--bg-secondary)}
.ecosystem-boundary h2{margin:8px 0 12px}
.ecosystem-boundary p:last-child{max-width:82ch;color:var(--text-secondary)}
.references{padding-left:24px;max-width:820px}.references li{padding:12px 6px;border-bottom:1px solid var(--border-subtle)}
.site-footer{border-top:1px solid var(--border-subtle);background:var(--bg-secondary);color:var(--text-secondary)}
.footer-shell{max-width:var(--maxw);margin:0 auto;padding:var(--space-8) var(--space-6);display:flex;justify-content:space-between;align-items:start;gap:32px}
.footer-shell strong{color:var(--text-primary)}.footer-shell p{font-size:14px}.footer-shell nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:24px}.footer-shell a{font-size:14px}
.disclaimer{text-align:center;padding:6px 16px;background:var(--disclaimer-bg);color:var(--disclaimer-text);font-family:var(--font-mono);font-size:var(--text-xs)}
@media(max-width:1100px){
 .burger{display:flex}
 #site-nav{position:absolute;top:100%;right:0;left:0;flex-direction:column;align-items:stretch;background:var(--bg-primary);border-bottom:1px solid var(--border-subtle);padding:12px 24px;display:none;max-height:calc(100dvh - var(--header-h));overflow-y:auto}
 #site-nav.open{display:flex}
 .goal-links,.goal:last-of-type .goal-links{position:static;min-width:0;box-shadow:none;border:0;border-left:2px solid var(--border-strong);margin-left:18px}
 .tools{margin:8px 0 0}
}
@media(max-width:760px){.page-shell{padding:28px 16px 80px}.site-header{padding:12px 16px}.hero{padding:38px 0 42px}.cards{grid-template-columns:1fr}.resource-band,.footer-shell{flex-direction:column;align-items:start;gap:16px}.resource-band a{white-space:normal}.footer-shell nav{justify-content:flex-start}.evidence-step,.course-step{grid-template-columns:1fr;gap:10px}.do-dont,.decision-grid,.checklist{grid-template-columns:1fr}.takeaway,.method-note{grid-template-columns:1fr;gap:5px}.scientific-question,.conclusion-panel,.construction{padding:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
