@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Archivo Black;
  src: url('/archivo-black.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #151822;
  --card: #202535;
  --line: #3e475d;
  --ink: #f1f0eb;
  --muted: #b8c0d0;
  --blue: #bfc9ff;
  --yellow: #ffd27b;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 2%, #2a304a, transparent 46%),var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter,system-ui,sans-serif;
}
.shell { width: min(1160px,calc(100% - 68px)); margin-inline: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
button,input,textarea,select { font: inherit; color: inherit; }
button,input,textarea,select,a { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--yellow); }
[hidden] { display: none !important; }
.skip { position: absolute; top: -100px; left: 12px; padding: 8px; background: var(--card); }
.skip:focus { top: 12px; }
.masthead,.masthead nav,.panel-head,.section-head,.dialog-actions,.actions { display: flex; gap: 8px; align-items: center; }
.masthead { padding: 15px 0; justify-content: space-between; border-bottom: 1px solid var(--line); }
.masthead nav { flex-wrap: wrap; justify-content: flex-end; }
.masthead nav a { font-size: 12px; font-weight: 650; }
.brand { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 760; letter-spacing: -.04em; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--yellow); color: #222538; font: 800 13px var(--mono); border-radius: 7px; }
.intro { display: grid; grid-template-columns: 1fr 30%; align-items: end; gap: 14px 25px; padding: 35px 0 27px; }
.caption { margin: 0; color: var(--yellow); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.intro .caption { grid-column: 1/-1; }
.intro h1,.reading h1 { margin: 0; font: clamp(38px,5.5vw,76px)/.94 Archivo Black,Arial,sans-serif; letter-spacing: -.043em; }
h1 em { font-style: normal; color: var(--blue); }
.intro>p:last-child { margin: 0; max-width: 38ch; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.7fr); gap: 14px; align-items: start; }
.panel { min-width: 0; background: var(--card); padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.panel-head,.section-head { justify-content: space-between; }
.panel-head .caption { margin-bottom: 4px; }
h2,h3 { margin: 0; letter-spacing: -.035em; }
h2 { font-size: 18px; }
h3 { font-size: 17px; }
button { cursor: pointer; font-size: 12px; font-weight: 650; padding: 7px 10px; min-height: 34px; border-radius: 7px; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { cursor: default; opacity: .46; }
.primary { border: 1px solid var(--blue); color: #1a2038; background: var(--blue); }
.quiet { border: 1px solid #58647c; color: var(--ink); background: #293044; }
.danger,.error { color: #ffc3af; }
.timeline ol { list-style: none; padding: 0; margin: 10px 0; }
.timeline li { margin: 4px 0; }
.timeline-button { display: flex; width: 100%; gap: 9px; align-items: flex-start; text-align: left; padding: 8px; background: #252c3e; border: 1px solid #414c64; }
.timeline-button[aria-current=step] { background: #343d59; border-color: #9dadf5; }
.minute { flex: none; padding-top: 2px; color: var(--yellow); font: 10px var(--mono); }
.timeline-button strong { display: block; overflow-wrap: anywhere; }
.timeline-button small { display: block; color: var(--muted); }
.overview { background: #191e2c; padding: 9px; border-radius: 7px; }
.overview h3 { font-size: 14px; }
.overview p,.hint,.error,.notice { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.error { color: #ffc3af; }
.error:empty { display: none; }
.objective { margin: 6px 0 11px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.prompt { min-width: 0; border: 1px solid #596584; border-radius: 9px; padding: 11px; background: #282f45; overflow-wrap: anywhere; }
.prompt h3 { font-size: 21px; }
.prompt p:not(.caption),.expected p { margin: 3px 0; white-space: pre-line; font-size: 13px; }
.expected { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.expected summary { cursor: pointer; color: var(--blue); font-weight: 660; }
label { display: grid; min-width: 0; gap: 4px; margin-top: 10px; font-weight: 630; font-size: 12px; }
label small { color: var(--muted); font-weight: 440; }
input,textarea,select { width: 100%; min-width: 0; border: 1px solid #515e7b; background: #151a28; border-radius: 6px; padding: 8px 9px; font-size: 13px; }
textarea { resize: vertical; }
input::placeholder,textarea::placeholder { color: #a5adc0; }
.fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.actions,.dialog-actions { flex-wrap: wrap; margin-top: 9px; }
.dialog-actions { justify-content: flex-end; }
.exports { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: 17px; gap: 8px; }
.exports .actions { margin: 0; }
footer { padding: 20px 0; font-size: 11px; color: var(--muted); }
dialog { width: min(490px,calc(100% - 27px)); padding: 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--card); }
dialog::backdrop { background: #141723bb; }
.reading { max-width: 820px; padding-top: 40px; }
.reading h1 { font-size: clamp(42px,7.5vw,75px); margin-top: 9px; }
.reading .panel { margin-top: 14px; }
.reading .lead,.reading li,.reading p { color: var(--muted); }
.reading li { margin: 6px 0; }
.resource-link { display: inline-block; background: var(--blue); color: #1a2038; border-radius: 6px; font-weight: 670; padding: 6px 10px; font-size: 13px; text-decoration: none; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 34px); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
  .workspace,.intro { grid-template-columns: 1fr; gap: 10px; }
  .intro { padding: 25px 0 20px; }
  .intro>p:last-child { font-size: 14px; }
  .panel { padding: 11px; }
  .timeline ol { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px; }
  .timeline li { margin: 0; }
  .timeline-button { flex-direction: column; gap: 3px; }
}
