@font-face{font-family:Newsreader;src:url('./fonts/newsreader.ttf') format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:Inter;src:url('./fonts/inter.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('./fonts/jetbrains-mono.ttf') format('truetype');font-style:normal;font-weight:100 800;font-display:swap}
:root{--bg:#F5F1EB;--surface:#FFFFFF;--text:#1A1714;--body:#3D3A35;--muted:#6B6760;--accent:#A84420;--accent-bg:#FDF1EB;--border:#DDD9D0;--control-border:#8B8277;--subtle:#EDEAE3;--blue:#2563A8;--blue-bg:#EAF1FA;--green:#24663F;--green-bg:#EAF5EF;--red:#A82B2B;--red-bg:#FAEBEB;--code:#1A1714;--code-text:#F2EEE7;--shadow:rgba(26,23,20,.18);--serif:Newsreader,Georgia,serif;--sans:Inter,system-ui,sans-serif;--mono:'JetBrains Mono',monospace;color-scheme:light;scrollbar-color:var(--muted) var(--bg);scrollbar-width:auto;scrollbar-gutter:stable}
[data-theme=dark]{--bg:#14110D;--surface:#1A1611;--text:#F2EEE7;--body:#D8D2C8;--muted:#B3AA9C;--accent:#F09D73;--accent-bg:#2C1E14;--border:#4B4134;--control-border:#8C8172;--subtle:#211C16;--blue:#8CBDFA;--blue-bg:#142233;--green:#7BE1AC;--green-bg:#14241B;--red:#FFA1A1;--red-bg:#2E1717;--code:#0E0B08;--code-text:#F2EEE7;--shadow:rgba(0,0,0,.45);color-scheme:dark}
*{box-sizing:border-box}body{margin:0;font:18px/1.7 var(--sans);font-optical-sizing:auto;color:var(--body);background:var(--bg)}button,input,select,textarea{font:inherit}a{color:var(--accent);text-underline-offset:4px}a:hover{text-decoration-thickness:2px}button,a,summary,select{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:active{transform:translateY(1px)}:focus-visible{outline:3px solid var(--blue);outline-offset:4px}a,button,input,select,summary,textarea{scroll-margin-top:100px}h1,h2,h3,h4{color:var(--text);line-height:1.14;font-weight:500}h1,h2{font-family:var(--serif);font-weight:400}h1{font-size:clamp(2.5rem,4.5vw,4rem);letter-spacing:-.025em;margin:12px 0 24px;max-width:17ch}h2{font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.02em;margin:0 0 20px}h3{font-size:1.25rem;line-height:1.35;margin:0 0 12px;font-weight:600}p{margin:0 0 20px}ul,ol{padding-left:1.4em}li{margin-bottom:10px}code,pre{font-family:var(--mono)}pre{background:var(--code);color:var(--code-text);padding:24px;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;max-width:100%;margin:16px 0 24px}code{font-size:.88em}button,.button{border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);padding:10px 16px;min-height:44px;line-height:1.4;text-decoration:none;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{border-color:var(--accent);background:var(--accent-bg)}button[aria-pressed=true]{border-color:var(--blue);color:var(--blue);background:var(--blue-bg)}.primary{background:var(--accent);border-color:var(--accent);color:var(--surface)}[data-theme=dark] .primary{color:var(--bg)}.primary:hover{background:var(--text);color:var(--bg)}[hidden]{display:none!important}.skip{position:absolute;left:20px;top:-100px;z-index:100;background:var(--surface);padding:12px}.skip:focus{top:10px}.site-header{border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:10}.header-inner{max-width:1240px;margin:auto;padding:12px 28px;display:flex;align-items:center;gap:24px;justify-content:space-between;flex-wrap:wrap}.nav-brand{font-family:var(--serif);font-size:22px;color:var(--text);text-decoration:none;white-space:nowrap}.header-links{display:flex;align-items:center;gap:22px;font-size:14px;flex-wrap:wrap}.header-links a{color:var(--body);text-decoration:none}.header-links a[aria-current=page]{color:var(--accent);text-decoration:underline}.header-links button{padding:6px 10px;font-size:12px;min-height:36px}.wrap{max-width:1200px;margin:auto;padding:0 28px}.breadcrumbs{font-size:12px;padding-top:24px;color:var(--muted);display:flex;gap:9px;flex-wrap:wrap}.breadcrumbs a{color:var(--muted)}.hero{padding:56px 0 40px}.eyebrow,.meta,.tag,.section-label{font-family:var(--mono);font-size:12px;line-height:1.5;letter-spacing:.025em;color:var(--muted)}.eyebrow{color:var(--accent);margin:0 0 12px}.deck{max-width:66ch;font-size:20px;line-height:1.6}.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}.hero-grid h1{font-size:clamp(2.5rem,4.1vw,3.75rem)}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:24px 0}.stat-line{font-family:var(--mono);font-size:12px;color:var(--muted);border-top:1px solid var(--border);padding-top:16px}.section{margin:44px 0 60px;scroll-margin-top:100px}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:24px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:24px;position:relative}.card .tag{display:block;font-family:var(--sans);font-size:13px;letter-spacing:0;line-height:1.5;margin-bottom:14px}.card h3 a{color:var(--text);text-decoration:none}.card h3 a:hover{color:var(--accent);text-decoration:underline}.card p{font-size:16px;line-height:1.65;margin-bottom:20px}.card > a:last-child{margin-top:auto;align-self:flex-start;font-size:15px;line-height:1.5}.card-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;margin-top:auto;padding-top:4px}.card-bottom .meta{font-family:var(--sans);font-size:13px;letter-spacing:0}.card-bottom button{padding:7px 10px;min-height:38px;font-size:12px}.task-link{display:block;min-width:0;color:var(--text);text-decoration:none;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:22px 24px}.task-link:hover{color:var(--accent);border-color:var(--accent);background:var(--accent-bg)}.task-link strong{display:block;font-family:var(--serif);font-size:25px;line-height:1.3;font-weight:400;margin-bottom:8px;text-wrap:pretty}.task-link > span{display:block;font-size:15px;line-height:1.6;color:var(--muted)}.task-arrow{white-space:nowrap;font-family:var(--sans);font-size:18px;color:var(--accent)}.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.filters{border:1px solid var(--border);padding:20px;border-radius:12px;background:var(--surface);margin:24px 0}.search-row{display:flex;gap:10px;align-items:end}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.search-field{flex:1}.field label{font-size:13px;font-weight:600}.field input,.field select{border:1px solid var(--border);border-radius:6px;padding:12px;background:var(--bg);color:var(--text);width:100%;min-height:46px}.filter-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.result-line{display:flex;gap:20px;justify-content:space-between;margin:20px 0;font-size:14px;color:var(--muted)}.result-line button{border:0;background:none;padding:0;min-height:32px;color:var(--accent)}.no-results,.callout{padding:22px;background:var(--accent-bg);border-left:3px solid var(--accent);border-radius:0 8px 8px 0;margin:24px 0}.callout p:last-child{margin:0}.callout small{font-size:14px}.article-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:58px;align-items:start}.contents{position:sticky;top:94px;font-size:13px;margin-top:32px}.contents summary{font-family:var(--mono);font-size:12px;color:var(--muted);padding:12px 0}.contents a{display:block;color:var(--body);padding:7px 0;text-decoration:none}.contents a:hover{color:var(--accent);text-decoration:underline}.reading{max-width:760px;min-width:0}.reading h1{max-width:22ch;font-size:clamp(2.6rem,4.5vw,4rem)}.reading .section{margin-top:52px}.reading .hero{padding-top:36px}.anchor{color:inherit;text-decoration:none}.anchor:hover{text-decoration:underline}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.info-panel{border-top:2px solid var(--border);padding-top:18px}.info-panel h3{font-size:15px}.info-panel li{font-size:15px}.example{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);margin:24px 0}.example-label{padding:14px 22px;border-bottom:1px solid var(--border);font-family:var(--mono);font-size:11px;color:var(--muted)}.example-body{padding:24px}.example-body pre{margin:0}.example-body h3{font-size:15px}.before{color:var(--muted);font-size:16px;white-space:pre-wrap}.example-notes{padding:0 24px 20px;font-size:14px}.example-notes li{margin-bottom:7px}.switcher{border:1px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden}.switcher-head{padding:16px 22px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}.switcher-head p{margin:0}.switcher-head > a{flex-shrink:0;white-space:nowrap;font-size:14px}.view-buttons{display:flex;gap:6px;flex-wrap:wrap;padding:16px 20px;background:var(--subtle)}.view-buttons button{font-size:12px;padding:8px 12px;min-height:40px}.view-panel{padding:24px;min-height:280px}.view-panel h3{font-family:var(--serif);font-size:28px;line-height:1.2;font-weight:400}.view-panel > .small{font-size:16px;line-height:1.65}.view-panel pre{font-size:14px;padding:18px}.view-panel pre code{font-size:inherit}.view-limit{border-top:1px solid var(--border);margin-top:24px;padding-top:16px;font-size:13px;color:var(--muted)}.diagram{width:100%;height:auto;max-height:280px;color:var(--text);display:block}.diagram rect{fill:var(--bg);stroke:var(--border);stroke-width:1.5}.diagram line,.diagram path{stroke:var(--blue);stroke-width:2;fill:none}.diagram text{fill:var(--text);font-family:var(--sans);font-size:14px}.diagram .edge-label{fill:var(--muted);font-size:11px}.diagram-text{font-size:13px;margin-top:12px;color:var(--muted)}.drill{border:1px solid var(--border);border-radius:12px;padding:24px;background:var(--surface);margin:24px 0}.drill h3{font-size:18px;line-height:1.5}.drill-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.drill fieldset{border:0;padding:0;margin:18px 0}.drill legend{font-size:14px;color:var(--muted);margin-bottom:12px}.choice{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:6px;padding:12px 14px;margin:10px 0;font-size:15px;cursor:pointer}.choice:hover{border-color:var(--blue)}.choice input{margin-top:6px;accent-color:var(--blue);flex-shrink:0}.drill textarea{width:100%;min-height:130px;resize:none;border:1px solid var(--border);border-radius:6px;padding:14px;background:var(--bg);color:var(--text);font-size:16px}.drill details{border-top:1px solid var(--border);margin-top:18px;padding-top:14px;font-size:15px}.drill summary{font-weight:600;padding:5px 0}.drill details p{margin:14px 0}.feedback{border-left:3px solid var(--blue);background:var(--blue-bg);padding:16px;font-size:15px}.feedback[data-outcome=correct]{border-color:var(--green);background:var(--green-bg)}.feedback[data-outcome=review],.feedback[data-outcome=missing]{border-color:var(--red);background:var(--red-bg)}.attempt{color:var(--muted);font-size:11px;font-family:var(--mono)}.table-wrap{overflow-x:auto;scrollbar-color:var(--muted) var(--subtle);margin:24px 0}table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6}th,td{border:1px solid var(--border);padding:13px;text-align:left;vertical-align:top}th{background:var(--subtle);font-weight:650;color:var(--text)}td{background:var(--surface)}.sources{font-size:15px}.sources li{overflow-wrap:anywhere}.sources a{display:inline-block;padding:3px 0}.muted{color:var(--muted)}.small{font-size:14px}.storage-note{font-size:13px;border:1px solid var(--border);padding:12px;margin-top:16px}.status{font-size:13px;min-height:26px;color:var(--muted)}.site-footer{border-top:1px solid var(--border);margin-top:72px;padding:30px 0;font-size:13px;color:var(--muted)}.footer-inner{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}.footer-inner p{margin:0}.footer-links{display:flex;gap:18px;flex-wrap:wrap}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;max-width:480px;width:calc(100% - 40px);padding:28px;box-shadow:0 20px 80px var(--shadow)}dialog::backdrop{background:rgba(0,0,0,.5)}.danger{color:var(--red);border-color:var(--red)}.notice{font-size:14px}.learn-index .card p{max-width:60ch}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-thumb{background:var(--muted);border:3px solid var(--bg);border-radius:8px}::-webkit-scrollbar-track{background:var(--bg)}@media(forced-colors:active){:focus-visible{outline:3px solid Highlight}button[aria-pressed=true]{outline:2px solid Highlight}}@media(max-width:900px){.hero-grid{gap:28px}.three{grid-template-columns:1fr 1fr}.article-layout{gap:28px;grid-template-columns:170px minmax(0,1fr)}}@media(max-width:760px){body{font-size:17px}.wrap{padding:0 20px}.header-inner{padding:12px 20px;gap:8px}.header-links{gap:15px;font-size:13px}.header-links button{min-height:36px}.site-header{position:relative}.hero-grid,.grid,.three,.task-grid,.info-grid,.article-layout{grid-template-columns:1fr}.hero{padding-top:36px}.hero-grid{gap:10px}.hero h1{max-width:18ch;font-size:2.5rem}.contents{position:static;margin:12px 0 0}.contents details{border:1px solid var(--border);border-radius:6px;padding:0 14px}.contents a{padding:9px 0}.reading .hero{padding-top:16px}.deck{font-size:18px}.filter-row{grid-template-columns:1fr}.search-row{flex-wrap:wrap}.search-field{flex-basis:100%}.view-panel{padding:20px;min-height:240px}.switcher-head{align-items:flex-start}.section-head{display:block}.card{padding:22px}.task-link{padding:20px}.task-link strong{font-size:24px}.drill{padding:20px}.view-buttons{padding:12px;gap:6px}.view-buttons button{flex:1 1 0;min-width:0;padding:8px 6px;min-height:44px}.footer-inner{display:block}.footer-links{margin-top:16px}.table-wrap{max-width:100%}h1{overflow-wrap:anywhere}.actions{gap:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media print{.site-header,.breadcrumbs,.contents,.actions,.view-buttons,form,.filters,.drill textarea,.site-footer,.js-only,.status,.storage-note,button,.skip{display:none!important}.wrap{max-width:none;padding:0}.article-layout,.hero-grid,.grid,.info-grid{display:block}.reading{max-width:none}body{color:#111;background:white;font:11pt/1.5 Georgia,serif}h1{font-size:30pt}h2{font-size:22pt}.view-panel[hidden]{display:block!important}.view-panel{min-height:0;break-inside:avoid;border-top:1px solid #999}.drill details:not([open])>*:not(summary){display:block!important}.drill details{content-visibility:visible}.drill,.example,.card{break-inside:avoid;background:white}.drill .choices-print{display:block}.section{margin:24px 0}pre{background:#eee;color:#111;border:1px solid #ccc}.switcher{overflow:visible}a{color:#111}.table-wrap{overflow:visible}.feedback{display:none!important}details{display:block}.hero{padding:20px 0}}

.js-only{display:none!important}.enhanced .js-only{display:inline-flex!important}.enhanced p.js-only{display:block!important}.enhanced .view-buttons.js-only{display:flex!important}.enhanced .js-only[hidden]{display:none!important}#saved-list{display:none}.enhanced #saved-list{display:grid}@media print{.enhanced .js-only{display:none!important}details::details-content{display:block!important;content-visibility:visible!important}}

@media(max-width:760px){.header-links{display:grid;grid-template-columns:repeat(5,auto) 40px;width:100%;gap:10px;font-size:12px}.header-links button{font-size:0;min-height:40px;padding:6px}.header-links button::after{content:'◐';font-size:20px}.header-links a{min-height:40px;display:flex;align-items:center}.header-inner{gap:0}}@media print{.enhanced .view-buttons.js-only{display:none!important}}

.diagram polygon{fill:var(--surface);stroke:var(--blue);stroke-width:2}.diagram circle{fill:var(--text);stroke:var(--text)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

button,.button,.field input,.field select,.drill textarea,.choice{border-color:var(--control-border)}button[aria-pressed=true]{border-color:var(--blue)}.primary{border-color:var(--accent)}.danger{border-color:var(--red)}
