:root { color-scheme: light; --ink: #172b3a; --muted: #42586a; --navy: #183c58; --paper: #f7f9fa; --line: #bdcbd4; --accent: #12666a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, -apple-system, sans-serif; }
main { width: min(100%, 1140px); margin: auto; padding: 36px 28px 48px; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; margin: .3em 0 .45em; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; }
p { max-width: 76ch; }
.lab-back { display: inline-block; font-size: .95rem; font-weight: 650; margin-bottom: 1rem; }
.lab-eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.lead { font-size: 1.2rem; max-width: 58ch; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.wordmark { font-size: 1.1rem; font-weight: 750; color: var(--navy); }
.masthead span:last-child { color: var(--muted); font-size: .9rem; }
.hero { padding: 36px 0 28px; }
.hero p:last-child { color: var(--muted); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lesson-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.lesson-card svg { width: 44px; height: 44px; color: var(--accent); margin: 12px 0; }
.lesson-card h2 { margin: .6rem 0; font-size: 1.45rem; }
.lesson-card p { margin: .5rem 0 1.25rem; }
.lesson-card .open { margin-top: auto; display: block; padding: 12px 14px; background: var(--navy); color: white; text-align: center; border-radius: 6px; font-weight: 650; text-decoration: none; }
.open:hover { background: #255575; }
.scope { border-left: 4px solid var(--accent); background: #edf4f5; padding: 14px 22px; margin-top: 28px; }
.scope h2 { margin: .3rem 0; font-size: 1.2rem; }
.lab-footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: .9rem; }
.skip-link { position: absolute; left: -10000px; top: 8px; }
.skip-link:focus { position: fixed; left: 12px; z-index: 10; background: white; padding: 12px; }
:focus-visible { outline: 3px solid #a85513; outline-offset: 4px; }
/* Packaged demos retain their tested controls and script, with a shared shell. */
body:has(#session-form) { padding: 24px 16px; }
body:has(#session-form) main { width: min(100%, 860px); max-width: 860px; }
body:has(#session-form) h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
body:has(#requests-text) main { max-width: 980px; }
body:has(#requests-text) h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
input, textarea, button { font: inherit; }
button, input { min-height: 44px; }
@media (max-width: 760px) { .lesson-grid { grid-template-columns: 1fr; } main { padding: 20px 18px 32px; } .hero { padding-top: 24px; } .masthead { flex-wrap: wrap; } .lesson-card { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .masthead, .lab-back, .skip-link { display: none; } body { background: white; } main { max-width: none; padding: 0; } .lesson-grid { display: block; } .lesson-card { break-inside: avoid; margin-bottom: 1rem; } }
