@font-face{font-family:"Montserrat";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/montserrat-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url("./fonts/montserrat-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/montserrat-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/montserrat-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-034F,U+0350-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url("./fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-034F,U+0350-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-034F,U+0350-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-034F,U+0350-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Oxanium";font-style:normal;font-weight:500;font-display:swap;src:url("./fonts/oxanium-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD}
@font-face{font-family:"Oxanium";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/oxanium-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD}
@font-face{font-family:"Oxanium";font-style:normal;font-weight:500;font-display:swap;src:url("./fonts/oxanium-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-034F,U+0350-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Oxanium";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/oxanium-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-034F,U+0350-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root {
  color-scheme: dark;
  --ink: #05070a;
  --panel: #0d1420;
  --text: #f8fbff;
  --muted: #b1becf;
  --sky: #8fd3ff;
  --azure: #5e8bff;
  --iris: #7a5fff;
  --line: rgba(143, 211, 255, .24);
  --action: linear-gradient(135deg, #8fd3ff, #5e8bff 46%, #7a5fff);
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--text);
  background: #020305;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.65 Montserrat, system-ui, sans-serif; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { color: white; }
button, select, input, textarea { font: inherit; }
button, a, input, summary, select { touch-action: manipulation; }
button, .wdta-header .download {
  min-height: 43px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px;
  background: var(--action); color: #05070a; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 24px rgba(94,139,255,.17), inset 0 1px rgba(255,255,255,.3);
}
button:hover, .wdta-header .download:hover { filter: brightness(1.1); }
button:disabled { opacity: .64; cursor: wait; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 9; top: 8px; left: 8px; transform: translateY(-180%); background: var(--panel); padding: 10px 16px; }
.skip:focus { transform: none; }
.wdta-header {
  min-height: 76px; padding: 12px clamp(16px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(90deg, rgba(94,139,255,.06), transparent 34%, rgba(211,107,255,.05)), #020305;
  border-bottom: 1px solid rgba(216,231,241,.16);
}
.wdta-brand { display: inline-flex; align-items: center; gap: 2px; flex: none; text-decoration: none; }
.wdta-mark { width: 48px; height: 48px; object-fit: contain; }
.wdta-wordmark { width: clamp(132px, 12vw, 170px); height: auto; max-height: 32px; object-fit: contain; }
.wdta-header nav, .materials, .buttons, .lesson-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.wdta-header nav > a, .wdta-header .link { color: var(--text); text-decoration: none; font-size: .88rem; }
.wdta-header nav > a:not(.download):hover, .wdta-header .link:hover { text-decoration: underline; }
.wdta-header nav > .download { color: var(--ink); }
.wdta-header .link { background: transparent; border: 0; box-shadow: none; padding: 6px 0; font-weight: 500; }
.context { color: var(--sky); margin: 0 0 .65rem; font: 600 .78rem/1.5 Oxanium, Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
h1,h2,h3 { margin: 0; line-height: 1.12; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(25px,2.2vw,34px); }
h2 { font-size: clamp(32px,3.6vw,55px); }
h3 { font-size: clamp(22px,2.1vw,30px); margin: 0 0 16px; }
p { margin: .75em 0; }
small,.course-meta { color: var(--muted); }
.wdta-gate { min-height: 100svh; display: flex; flex-direction: column; background: #020305; }
.gate-layout { flex: 1; display: grid; place-items: center; padding: clamp(32px,6vw,88px) 20px; background: radial-gradient(ellipse at 75% 80%,rgba(94,91,204,.1),transparent 44%),url("./wdta-tlo.webp") center/cover,#020305; }
.gate-inner { width: min(100%, 690px); text-align: center; }
.gate-layout h1 { font-size: clamp(37px,5.3vw,74px); }
.gate-layout .gate-inner > div > p:last-child { color: #c5cfde; font-size: clamp(16px,1.4vw,20px); max-width: 56ch; margin: 18px auto 28px; }
.gate-layout form { max-width: 415px; margin: auto; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px,3vw,29px); background: linear-gradient(135deg,rgba(94,139,255,.07),transparent 64%),rgba(9,13,21,.94); }
.gate-layout form h2 { font-size: 23px; margin-bottom: 18px; }
.gate-layout form label, .work label { font-weight: 600; font-size: .9rem; }
.gate-layout input, .gate-layout button { width: 100%; }
.gate-layout input { margin: 6px 0 14px; }
.gate-layout [role=status]:empty { display: none; }
.wdta-gate footer { padding: 14px clamp(18px,5vw,56px); text-align: center; font-size: .8rem; border-top: 1px solid var(--line); }
.learning { max-width: 1450px; margin: auto; padding: clamp(30px,4vw,65px) clamp(18px,4.2vw,65px) 76px; display: grid; grid-template-columns: minmax(240px,295px) minmax(0,850px); gap: clamp(30px,5vw,80px); justify-content: center; }
.learning aside, .learning article { min-width: 0; }
.learning aside { align-self: start; }
.course-meta { font-size: .9rem; margin: 11px 0 24px; }
#syllabus summary { cursor: pointer; color: var(--muted); font-size: .8rem; font-weight: 600; margin-bottom: 7px; }
#lessons { display: grid; }
#lessons a, .intro-link { display: grid; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-bottom: 1px solid rgba(143,211,255,.15); color: #d7e0ed; text-decoration: none; font-size: .91rem; }
#lessons a { grid-template-columns: 18px 1fr; }
#lessons a span:first-child { color: var(--sky); font-family: Oxanium, monospace; }
#lessons a[aria-current], .intro-link[aria-current] { font-weight: 600; color: white; background: linear-gradient(90deg,rgba(94,139,255,.20),rgba(122,95,255,.06)); box-shadow: inset 3px 0 var(--sky); }
#lessons a:hover, .intro-link:hover { background-color: var(--panel); }
.overall { margin: 22px 0 0; font-size: .83rem; color: var(--muted); }
.overall label { color: var(--text); font-weight: 600; }
.overall p { margin: 4px 0; }
.overall progress { width: 100%; height: 6px; display: block; border: 0; margin: 8px 0; border-radius: 6px; background: #1a2436; accent-color: var(--azure); }
progress::-webkit-progress-bar { background: #1a2436; border-radius: 6px; }
progress::-webkit-progress-value { background: var(--action); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--azure); }
.lead { font-size: clamp(16px,1.25vw,20px); color: #c5cfde; margin: 12px 0 18px; }
#film { width: 100%; aspect-ratio: 16/10; display: block; background: black; border: 1px solid var(--line); border-radius: 10px; }
.materials { justify-content: space-between; margin: 10px 0 26px; font-size: .85rem; }
.work { border-top: 1px solid var(--line); margin: 25px 0 0; padding: 24px 0 0; }
.code-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-bar select { min-width: 0; max-width: 100%; flex: 1; }
select,input,textarea { border: 1px solid #485875; color: var(--text); background: #080e18; border-radius: 6px; padding: 9px 11px; }
.subtle, .copy { background: #101a2a; border: 1px solid #405879; color: var(--text); box-shadow: none; }
code, pre, #editor { font-family: ui-monospace, Consolas, 'Liberation Mono', monospace; }
.work pre, #editor, .book pre { background: #080d16; border: 1px solid var(--line); color: #e9f1fc; border-radius: 8px; padding: 14px 16px; font-size: .91rem; line-height: 1.58; tab-size: 4; }
.work pre, .book pre { overflow: auto; max-height: 390px; }
#editor { display: block; width: 100%; margin: 6px 0; resize: vertical; white-space: pre; overflow: auto; }
.buttons { margin-top: 16px; }
details { min-width: 0; }
summary { cursor: pointer; }
.challenge details,.setup-help { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.result-list { list-style: none; padding: 0; }
.result-list li { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--sky); }
.result-list li.missed { border-color: #ffa277; }
.result-list small { display: block; }
.repair-button { margin-top: 8px; text-align: left; }
.test-editor { position: relative; margin: 8px 0; }
.test-editor #editor, .test-editor #editor-highlights {
  box-sizing: border-box; margin: 0; padding: 14px; border: 1px solid transparent;
  font: 14px/1.6 "Courier New", monospace; letter-spacing: normal;
  tab-size: 4; white-space: pre; overflow-wrap: normal; word-break: normal;
}
.test-editor #editor { position: relative; width: 100%; background: transparent; resize: vertical; }
.test-editor #editor-highlights {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; color: transparent;
  max-height: none; background: #0b1421;
}
.test-editor #editor-highlights span { display: block; height: 1.6em; min-width: max-content; }
.test-editor #editor-highlights .corrected-line { background: #174e37; }
.corrected-input { background: #174e37 !important; border-color: #86efac !important; }
#undo-correction { margin: 12px 0; }
#correction-help { display: block; }
#status:empty,#result:empty { display: none; }
.score { font-size: 1.25rem; font-weight: 600; }
.lesson-footer { justify-content: flex-end; margin: 30px 0; }
#next { color: var(--ink); background: var(--action); border-radius: 8px; padding: 10px 16px; text-decoration: none; font-weight: 700; }
#kasa { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#amount { width: 72px; }
#quote { font-weight: 600; }
#expectations label { display: grid; grid-template-columns: 1fr minmax(140px,1.3fr); align-items: center; gap: 12px; margin: 12px 0; }
.runtime-frame { display: none; }
.setup p,.setup li { color: #cfdae7; }
.setup code,.book :is(p,li,td) code { background: #182334; color: #e0efff; padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.setup-steps { padding-left: 1.5em; }
.setup-steps li { padding: .25em 0 .5em .15em; }
.system-switch { display: flex; gap: 6px; flex-wrap: wrap; border: 0; padding: 0; margin: 23px 0 0; }
.system-switch legend { padding: 0 0 6px; color: var(--muted); font-size: .82rem; }
.system-switch label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; }
.system-switch input { accent-color: var(--azure); }
.system-switch label:has(input:checked) { border-color: var(--sky); background: #172640; }
.command { margin: 13px 0; }
.command h4 { margin: 0; font-size: .95rem; }
.command p { font-size: .86rem; color: var(--muted); margin: .25em 0; }
.command-source { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.command-source pre { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-source button { padding: 7px 12px; font-size: .84rem; }
.book main { max-width: 980px; margin: auto; padding: clamp(24px,5vw,64px) clamp(16px,4vw,48px) 75px; }
.book main h1 { font-size: clamp(35px,4.5vw,60px); margin-top: 28px; }
.book main h2 { font-size: clamp(26px,3vw,38px); margin: 2em 0 .6em; padding-top: 18px; border-top: 1px solid var(--line); }
.book main h3 { font-size: clamp(19px,2vw,25px); margin: 1.4em 0 .5em; }
.book main details { margin: 8px 0; }
.book main nav { display: grid; gap: 6px; }
.book table { display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; }
.book td,.book th { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.book th { background: var(--panel); }
.book video { width: 100%; aspect-ratio: 16/10; background: black; border: 1px solid var(--line); border-radius: 8px; }
.book pre { margin: .65em 0 .35em; }
.book .copy { margin-bottom: 8px; }
@media (max-width: 800px) {
  html { scroll-padding-top: 12px; }
  .learning { display: block; padding: 20px 16px 56px; }
  .learning aside { margin-bottom: 24px; }
  .learning aside h1 { font-size: 22px; }
  .course-meta { margin: 4px 0 10px; }
  .overall { margin-top: 10px; }
  .overall progress { max-width: 170px; }
  #lessons { grid-template-columns: 1fr 1fr; }
  #lessons a { font-size: .82rem; gap: 3px; padding: 7px; }
  .wdta-header { min-height: 60px; padding: 9px 15px; flex-wrap: wrap; gap: 8px 14px; }
  .wdta-mark { width: 37px; height: 37px; }
  .wdta-wordmark { width: 116px; }
  .wdta-header nav { gap: 6px 13px; }
  .wdta-course .master-back { display: none; }
  .wdta-header nav > a,.wdta-header .link { font-size: .82rem; }
  #expectations label { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 480px) {
  .command-source { grid-template-columns: 1fr; }
  .command-source button { justify-self: start; }
  .code-bar select { flex-basis: 75%; }
  .materials { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

