:root {
  color-scheme: dark;
  --black: #090b09;
  --panel: #111812;
  --line: #34483a;
  --green: #a8f77e;
  --text: #e2f4df;
  --muted: #afc6ae;
  --gold: #ffe087;
  font-family: ui-monospace, "DejaVu Sans Mono", Consolas, monospace;
  background: var(--black);
  color: var(--text);
  font-size: 100%;
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: #e0ffca; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
:target { scroll-margin-top: 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.45rem, 4vw, 2.25rem); }
h3 { font-size: 1.16rem; }
ol, ul { padding-inline-start: 1.7rem; }
li + li { margin-top: .55rem; }
.wrap { width: min(74rem, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--black); transform: translateY(-200%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); background: #0c110d; }
.mast-inner, .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; }
.mast-inner { padding-block: .85rem; }
.mast nav, .controls, .pager { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.mast nav { gap: .1rem 1.1rem; }
.mast nav a, .brand, .back { display: inline-flex; align-items: center; min-height: 44px; }
.mast nav a { color: var(--muted); }
.mast nav a[aria-current], .mast nav a:hover, .brand strong { color: var(--green); }
.brand { gap: .45em; color: var(--text); font-size: 1.2rem; text-decoration: none; min-width: 0; }
.brand-icon, .module-icon { display: inline-grid; place-items: center; border: 1px solid #466149; background: #1b2919; color: var(--green); border-radius: .4rem; }
.brand-icon { flex: none; width: 2.2rem; height: 2.2rem; }
.hero { padding: clamp(2.7rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1, .intro h1 { font-size: clamp(2.35rem, 6.3vw, 5rem); letter-spacing: -.065em; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--green); font-style: normal; }
.eyebrow { color: var(--green); font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.lede { max-width: 53ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero .controls { margin-top: 1.7rem; }
.mascot { margin: 0; overflow: hidden; border-radius: .9rem; border: 1px solid #456245; background: #101a11; }
.mascot img { width: 100%; height: auto; display: block; aspect-ratio: 10 / 7; object-fit: cover; }
.mascot figcaption { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-top: 1px solid #456245; }
.mascot figcaption strong { color: var(--green); }
.mascot figcaption span, .section-head p, .card p, .card-meta { color: var(--muted); }
button, input { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: .4rem; border: 1px solid var(--green); border-radius: .45rem; background: var(--green); color: #112010; padding: .55rem .9rem; cursor: pointer; font-weight: 700; text-decoration: none; }
button:hover, .button:hover { background: #defacb; color: #112010; }
.outline { background: transparent; color: var(--green); border-color: #6c8e67; }
input[type="search"], input:not([type]) { display: block; width: 100%; max-width: 36rem; min-height: 44px; padding: .6rem .8rem; border: 1px solid #718a72; border-radius: .4rem; background: #080e09; color: var(--text); }
input::placeholder { color: var(--muted); opacity: 1; }
.module-section { border-top: 1px solid var(--line); padding-top: 2rem; }
.section-head h2 { margin-bottom: .3rem; }
#progress { color: var(--green); }
.search { padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; margin-bottom: 1.2rem; background: var(--panel); }
.search input, #terminal-form input { margin-block: .35rem; }
#search-status, .feedback { min-height: 1.6em; margin: .35rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding: 0; list-style: none; }
.cards li { margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; padding: 1.15rem; display: flex; align-items: flex-start; flex-direction: column; }
.card-meta { display: flex; gap: .7rem; align-items: center; font-size: .82rem; margin-bottom: .95rem; }
.module-icon { width: 2.3rem; height: 2.3rem; flex: none; font-size: 1rem; }
.card h3 { margin-bottom: .65rem; }
.card p { margin-bottom: .65rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.badge { display: inline-block; padding: .2rem .55rem; color: var(--gold); background: #292510; border: 1px solid #7f692c; border-radius: .35rem; margin-top: .4rem; }
.intro { padding: 2.75rem 0 1.25rem; max-width: 60rem; }
.intro h1 { font-size: clamp(2rem, 6vw, 3.9rem); }
.back { margin-top: .75rem; }
.back + .intro { padding-top: 1rem; }
.lesson { max-width: 53rem; }
.lesson > section, .worksheet { margin-bottom: 1rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.lesson h3 { margin: 1.25rem 0 .4rem; color: var(--green); }
.lesson h2 { margin-bottom: 1rem; }
.lesson p:last-child { margin-bottom: 0; }
.tip, .terminal { padding: 1rem; border: 1px solid var(--line); border-left: .23rem solid var(--green); background: #0a110b; }
.tip strong { color: var(--green); }
.tip p { margin: .35rem 0 0; }
pre { overflow: auto; max-width: 100%; background: #090e0a; color: var(--green); padding: 1rem; border-radius: .35rem; border: 1px solid var(--line); }
pre, code { font: inherit; }
#terminal-log { max-height: 16rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#terminal-form .controls { gap: .5rem; }
#command { flex: 1 1 12rem; }
.choice { margin-top: 1rem; }
.choice button { margin: 0 .25rem .4rem 0; }
.choice p { min-height: 1.6em; }
fieldset { min-inline-size: 0; border: 1px solid var(--line); border-radius: .45rem; margin: 0 0 1rem; padding: .8rem; }
legend { padding-inline: .35rem; font-weight: 700; }
.option { min-height: 44px; padding: .5rem 0; display: flex; gap: .6rem; align-items: baseline; cursor: pointer; }
.option input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--green); transform: translateY(.17em); }
.feedback { color: var(--gold); }
.pager { justify-content: space-between; }
.terms { max-width: 51rem; }
.terms > div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--green); font-weight: 700; }
dd { margin-inline-start: 0; }
.worksheet { max-width: 55rem; }
.worksheet-menu { margin-bottom: 1.5rem; }
.worksheet a { display: inline-block; padding: .65rem; }
.answer-space { height: 4rem; border-bottom: 1px dotted #758876; }
.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.25rem 0; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 58rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .hero, .cards { grid-template-columns: 1fr; } .mascot { max-width: 32rem; } }
@media print {
  :root { color-scheme: light; background: white; color: black; font-size: 11pt; }
  .skip, .mast, .footer, .worksheet-menu, .worksheet button, .worksheet a, body:has(.worksheet) .intro { display: none !important; }
  .wrap { width: 100%; }
  .worksheet { background: white; color: black; border: 0; padding: 0; margin: 0; max-width: none; break-inside: avoid; }
  .worksheet + .worksheet { break-before: page; }
  body[data-print-sheet] .worksheet:not(.print-selected) { display: none; }
  body[data-print-sheet] .worksheet { break-before: auto; }
  .answer-space { height: 6rem; }
}
