@font-face {
  font-family: LabSans;
  src: local("Arial");
  font-display: swap;
}
:root {
  --paper: #e9e7dc;
  --ink: #151512;
  --accent: #e94720;
  --muted: #69685e;
  --line: #c3c1b6;
  --white: #f5f3eb;
  --green: #326645;
  --sans: LabSans, Arial, Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  border: 0;
  border-radius: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a:hover {
  color: var(--accent);
}
button:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.045em;
}
p + p {
  margin-top: 16px;
}
small {
  font-size: 12px;
}
button svg {
  pointer-events: none;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.orange {
  color: var(--accent);
}
.micro {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.site-header {
  display: flex;
  align-items: center;
  padding: 30px 5.1%;
  gap: 56px;
  min-height: 146px;
}
.brand {
  text-decoration: none;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.075em;
  font-weight: 800;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.brand-description {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.edition {
  margin-left: auto;
  font-size: 10px;
  text-align: right;
  line-height: 1.9;
}
.status-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1.4fr;
  border-block: 1px solid var(--ink);
}
.strip-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  border-right: 1px solid var(--ink);
  background: none;
  font-size: 10px;
  min-height: 51px;
}
.strip-cell:first-child {
  padding-left: 19%;
}
.strip-cell:last-child {
  border-right: 0;
}
.storage-state {
  justify-content: center;
  letter-spacing: 0.04em;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 20px 5.1%;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
}
.main-nav a {
  white-space: nowrap;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.main-nav a.active {
  border-bottom-color: var(--ink);
}
.main-nav a span {
  margin-right: 10px;
  color: var(--muted);
}
.nav-help {
  margin-left: auto;
  font: inherit;
  background: none;
  color: var(--muted);
  padding: 0;
}
.site-footer {
  padding: 30px 5.1%;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  color: var(--muted);
}
.site-footer a {
  text-decoration: none;
}
main {
  min-height: 65vh;
}
main:focus {
  outline: none;
}
.page {
  padding: 0 5.1% 70px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.hero {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  border-bottom: 1px solid var(--ink);
  min-height: 490px;
}
.hero-copy {
  padding: 36px 36px 38px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: clamp(70px, 7.5vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  margin: 28px 0 24px;
  max-width: 700px;
}
.hero h1 .orange {
  display: inline;
}
.hero-desc {
  font-size: 17px;
  max-width: 360px;
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.hero-art {
  border-left: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(#15151207 1px, transparent 1px),
    linear-gradient(90deg, #15151207 1px, transparent 1px);
  background-size: 36px 36px;
  overflow: hidden;
}
.specimen-top,
.specimen-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
  color: var(--muted);
  font-size: 9px;
}
.specimen-top:before {
  content: "+";
  position: absolute;
  left: -5px;
  top: 43px;
  font-size: 22px;
}
.specimen-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}
.specimen-word {
  font-size: clamp(90px, 11.8vw, 190px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  transform: rotate(-8deg);
  position: relative;
}
.specimen-word .orange {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.specimen-circle {
  position: absolute;
  inset: 4% 14%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-27deg);
}
.specimen-axis {
  height: 1px;
  background: var(--accent);
  position: absolute;
  left: 5%;
  right: 5%;
  top: 54%;
  opacity: 0.5;
}
.specimen-label {
  position: absolute;
  right: 5%;
  bottom: 14%;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 8px;
  transform: rotate(-8deg);
  background: var(--paper);
  font-size: 10px;
}
.specimen-foot {
  margin: 0 28px 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.specimen-foot p {
  font-size: 14px;
  max-width: 245px;
  line-height: 1.45;
}
.specimen-foot span {
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}
.language-bar {
  display: flex;
  align-items: center;
  padding: 24px 0;
  gap: 32px;
  border-bottom: 1px solid var(--ink);
}
.language-bar > p {
  font-size: 10px;
}
.language-buttons {
  display: flex;
  gap: 6px;
}
.language-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 13px;
}
.language-button b {
  font: 11px var(--mono);
  color: var(--muted);
}
.language-button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.language-button.selected b {
  color: var(--accent);
}
.language-bar .micro {
  margin-left: auto;
  font-size: 10px;
  max-width: 240px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 34px 0 24px;
  gap: 20px;
}
.section-heading h2 {
  font-size: 40px;
  letter-spacing: -0.045em;
}
.section-heading .mono {
  color: var(--muted);
  font-size: 10px;
}
.continue-panel {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  background: var(--ink);
  color: var(--paper);
  padding: 28px 30px;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.continue-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent);
}
.continue-panel h3 {
  font-size: 26px;
  letter-spacing: -0.035em;
  margin: 8px 0;
}
.continue-panel .mono {
  color: #b3b1a7;
  font-size: 9px;
}
.continue-panel p {
  font-size: 13px;
  color: #b3b1a7;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 21px;
  background: transparent;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--mono);
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.primary:hover {
  background: #ce3511;
  border-color: #ce3511;
}
.button.dark {
  background: var(--ink);
  color: var(--paper);
}
.button.dark:hover {
  background: #363630;
}
.button.light {
  color: var(--paper);
  border-color: #66665c;
}
.button.light:hover {
  border-color: var(--paper);
}
.button.small {
  padding: 9px 13px;
  font-size: 10px;
  gap: 13px;
}
.button.wide {
  width: 100%;
}
.button span {
  font-size: 19px;
  line-height: 1;
}
.module-filters {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.filter {
  background: none;
  padding: 0 0 5px;
  font-size: 11px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}
.filter.active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.module-card {
  min-width: 0;
  min-height: 244px;
  padding: 22px 24px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  transition: background 0.16s;
}
.module-card:hover {
  background: #f4f1e7;
  color: var(--ink);
}
.module-card:hover .card-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}
.module-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}
.module-card-head .number {
  color: var(--accent);
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-card h3 {
  font-size: 25px;
  line-height: 1.13;
  max-width: 290px;
  margin: 28px 0 12px;
  letter-spacing: -0.035em;
}
.module-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.module-card-bottom {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.task-dots {
  display: flex;
  gap: 5px;
}
.task-dots i {
  width: 17px;
  height: 3px;
  background: #c5c3b8;
}
.task-dots i.passed {
  background: var(--green);
}
.task-dots i.submitted {
  background: var(--accent);
}
.card-arrow {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.16s;
}
.map-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
  margin-top: 46px;
}
.map-note h2 {
  font-size: clamp(36px, 4.2vw, 60px);
  padding: 10px 40px 40px 0;
}
.map-note > div {
  border-left: 1px solid var(--line);
  padding: 14px 0 38px 40px;
}
.map-note p {
  font-size: 16px;
  max-width: 500px;
}
.map-note .mono {
  margin: 25px 0 12px;
  color: var(--muted);
  font-size: 10px;
}
.page-title {
  padding: 40px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  border-bottom: 1px solid var(--ink);
}
.page-title h1 {
  font-size: clamp(40px, 5vw, 70px);
  max-width: 900px;
  margin: 16px 0 0;
  letter-spacing: -0.055em;
}
.page-title p {
  font-size: 15px;
  max-width: 350px;
}
.breadcrumb {
  font-size: 10px;
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: none;
}
.lab-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 40px;
  padding-top: 30px;
}
.lab-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}
.sidebar-title {
  font-size: 9px;
  color: var(--muted);
  padding-bottom: 14px;
}
.task-nav {
  display: flex;
  flex-direction: column;
}
.task-nav a {
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  padding: 13px 8px 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.task-nav a .mono {
  color: var(--muted);
  font-size: 10px;
  padding-top: 2px;
  white-space: nowrap;
}
.task-nav a.active {
  color: var(--accent);
}
.sidebar-meter {
  margin-top: 25px;
}
.meter {
  height: 3px;
  background: var(--line);
  margin: 10px 0;
}
.meter > i {
  height: 100%;
  background: var(--accent);
  display: block;
  transition: width 0.3s;
}
.sidebar-meter .mono {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}
.sidebar-controls {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.sidebar-disclaimer {
  font-size: 11px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.lab-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 25px;
}
.lab-intro > div {
  padding: 4px 27px 25px 0;
}
.lab-intro > div + div {
  border-left: 1px solid var(--line);
  padding: 4px 0 25px 27px;
}
.lab-intro h2 {
  font-size: 22px;
  margin: 10px 0 14px;
  letter-spacing: -0.025em;
}
.lab-intro p {
  font-size: 14px;
  line-height: 1.65;
}
.lab-intro .mono {
  font-size: 9px;
  color: var(--muted);
}
.theory {
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.theory summary {
  padding: 15px 18px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.theory summary::after {
  content: "+";
  color: var(--accent);
}
.theory[open] summary::after {
  content: "−";
}
.theory-body {
  padding: 2px 20px 20px;
  font-size: 14px;
  line-height: 1.7;
}
.term-chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.term-chip {
  background: none;
  border-bottom: 1px dotted var(--ink);
  font: 11px var(--mono);
  padding: 3px 0;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.sources-list li {
  margin-top: 8px;
  font-size: 12px;
}
.task-card {
  border-top: 1px solid var(--ink);
  padding: 25px 0 34px;
  scroll-margin-top: 24px;
}
.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 13px;
  font-size: 9px;
  color: var(--muted);
}
.task-status {
  color: var(--muted);
}
.task-status.passed {
  color: var(--green);
}
.task-status.submitted {
  color: var(--accent);
}
.task-status.failed {
  color: #a5361c;
}
.task-card h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 15px;
  letter-spacing: -0.035em;
}
.task-prompt {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.7;
  max-width: 840px;
}
.task-input {
  margin-top: 20px;
}
.options {
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.option:has(input:checked) {
  border-color: var(--ink);
  background: #f2efe5;
}
.option input {
  accent-color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.input-label {
  display: block;
  font-size: 11px;
  font-family: var(--mono);
  margin-bottom: 7px;
  color: var(--muted);
}
input[type="text"],
input[type="number"],
input[type="search"],
textarea,
select {
  border: 1px solid #aaa89d;
  background: var(--white);
  padding: 12px 14px;
  width: 100%;
  border-radius: 0;
  min-width: 0;
}
textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: #7b796e;
  font-size: 12px;
}
.code-input {
  font-family: var(--mono);
  font-size: 13px;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hint-button {
  background: none;
  padding: 0;
  border-bottom: 1px dotted var(--muted);
  font-size: 12px;
  color: var(--muted);
}
.hint-content {
  border-left: 2px solid var(--accent);
  padding: 10px 16px;
  font-size: 13px;
  margin-top: 15px;
  background: #e0ddd0;
  white-space: pre-wrap;
}
.feedback {
  margin-top: 16px;
  padding: 15px 18px;
  border-left: 3px solid var(--green);
  background: #dde5d9;
  font-size: 13px;
  line-height: 1.6;
}
.feedback.failed {
  background: #e9dbce;
  border-color: #b43c21;
}
.feedback.submitted {
  background: #e4dfcb;
  border-color: #a77820;
}
.attempt-meta {
  font-size: 9px;
  margin-top: 12px;
  color: var(--muted);
}
.history {
  font-size: 11px;
  margin-top: 12px;
}
.history summary {
  cursor: pointer;
  color: var(--muted);
}
.history ol {
  padding-left: 20px;
  margin-bottom: 0;
}
.history li {
  padding: 6px 0;
}
.history pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #dfddd1;
  padding: 10px;
  font-family: var(--mono);
  font-size: 11px;
  max-height: 200px;
  overflow: auto;
}
.task-card.passed h2:after {
  content: " ↗";
  color: var(--green);
  font-size: 18px;
}
.lab-end {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--ink);
  padding: 24px 0;
}
.lab-end p {
  font-size: 14px;
}
.lab-end .mono {
  font-size: 10px;
  color: var(--muted);
}
.tool {
  margin-top: 20px;
  border: 1px solid var(--ink);
  overflow: hidden;
  min-width: 0;
}
.tool-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  background: #dfddd1;
  gap: 10px;
}
.tool-body {
  padding: 18px;
}
.tool p {
  font-size: 12px;
  line-height: 1.65;
}
.tool-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.8 var(--mono);
  padding: 16px;
  background: #dedccf;
}
.tool-code mark {
  background: #f8c3a8;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
}
.regex-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 15px;
}
.regex-fields.single {
  grid-template-columns: 1fr;
}
.target-list {
  font: 12px var(--mono);
  margin-bottom: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tool-result {
  margin-top: 14px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal {
  background: var(--ink);
  color: #e9e7dc;
  font-family: var(--mono);
  font-size: 12px;
}
.terminal .tool-head {
  background: #25251f;
  border-color: #55554c;
  color: #bbb9ac;
}
.terminal-log {
  padding: 16px 18px 2px;
  min-height: 100px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.8;
}
.terminal-log .command {
  color: #eaa186;
}
.terminal-log .terminal-error {
  color: #f4a487;
}
.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 10px;
}
.terminal-input-row span {
  color: #ec845d;
}
.terminal-input-row input {
  background: transparent;
  border: 0;
  color: #e9e7dc;
  padding: 6px 0;
  font: 12px var(--mono);
  outline-offset: 2px;
}
.terminal-input-row button {
  background: #33332c;
  color: #e9e7dc;
  font: 10px var(--mono);
  padding: 8px 10px;
}
.unicode-rows {
  display: grid;
  gap: 14px;
}
.unicode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.unicode-row strong {
  font-size: 24px;
  min-width: 90px;
}
.point {
  border: 1px solid var(--line);
  padding: 7px;
  text-align: center;
  min-width: 49px;
  font: 9px var(--mono);
}
.point b {
  display: block;
  font: 20px var(--sans);
  margin-bottom: 4px;
}
.unicode-normalized {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
}
.wave-canvas {
  width: 100%;
  height: 130px;
  display: block;
  background: #dedccf;
}
.wave-label {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  padding: 6px 0 14px;
  color: var(--muted);
}
.wave-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.interval-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.audio-controls audio {
  max-width: 100%;
  height: 34px;
  width: 300px;
}
.signal-timeline {
  display: flex;
  height: 35px;
  background: #d9d6c8;
  margin: 12px 0;
  font: 11px var(--mono);
}
.signal-timeline > span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--paper);
}
.signal-timeline .segment-b {
  background: var(--accent);
  color: white;
}
.wer-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wer-readout {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 16px;
}
.wer-readout strong {
  font-size: 34px;
  letter-spacing: -0.04em;
}
.alignment {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.alignment span {
  padding: 5px 8px;
  background: #d8ded2;
  font: 11px var(--mono);
}
.alignment span.error {
  background: #e9cbb8;
}
.git-editor {
  padding: 15px 18px 0;
}
.git-editor textarea {
  background: #25251f;
  color: var(--paper);
  border-color: #55554c;
  min-height: 80px;
  font: 12px/1.7 var(--mono);
}
.git-editor label {
  color: #aaa99c;
}
.portfolio-rubric {
  margin: 18px 0;
  padding: 17px 20px;
  background: #dfddcf;
  font-size: 13px;
}
.portfolio-rubric p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.portfolio-rubric ul {
  margin: 0;
  padding-left: 18px;
}
.portfolio-rubric li + li {
  margin-top: 6px;
}
.portfolio-fields {
  display: grid;
  gap: 16px;
}
.confirm-label {
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.confirm-label input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.treasure-trigger {
  color: var(--accent);
  background: none;
  font: 17px var(--mono);
  padding: 2px 6px;
  vertical-align: baseline;
  border: 1px dashed transparent;
}
.treasure-trigger:hover {
  border-color: var(--accent);
}
.treasure-clue {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0;
}
.treasure-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 25px;
  margin: 20px 0;
}
.treasure-panel h3 {
  font-size: 28px;
  margin: 10px 0 17px;
}
.treasure-panel .option {
  border-color: #65655b;
}
.treasure-panel .option:has(input:checked) {
  background: #35352d;
}
.treasure-panel .feedback {
  color: var(--ink);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}
.stat-block {
  padding: 28px 20px 27px 0;
  border-right: 1px solid var(--line);
}
.stat-block + .stat-block {
  padding-left: 25px;
}
.stat-block:last-child {
  border-right: 0;
}
.stat-block strong {
  font-size: 60px;
  letter-spacing: -0.06em;
  line-height: 1.1;
  display: block;
}
.stat-block .mono {
  color: var(--muted);
  font-size: 9px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 45px;
  margin-top: 38px;
}
.portfolio-grid h2 {
  font-size: 30px;
  margin-bottom: 25px;
}
.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.report-row h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.report-row .mono {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.report-actions {
  display: flex;
  gap: 6px;
}
.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.badge {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.badge.unlocked {
  color: var(--ink);
  background: #e1e0cf;
}
.badge > span {
  font-size: 32px;
  line-height: 1.2;
  color: #8c8b80;
  font-family: var(--mono);
}
.badge.unlocked > span {
  color: var(--accent);
}
.badge h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.badge p {
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.5;
}
.backup-panel {
  padding: 25px 0;
  border-top: 1px solid var(--ink);
  margin-top: 35px;
}
.backup-panel h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.backup-panel p {
  font-size: 13px;
}
.backup-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.local-notice {
  margin-top: 25px;
  border-left: 2px solid var(--accent);
  padding-left: 15px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.assessment {
  margin-top: 35px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
}
.assessment h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.assessment p {
  font-size: 13px;
}
.assessment-lines {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.assessment-line {
  display: flex;
  gap: 16px;
  font-size: 13px;
  align-items: baseline;
}
.assessment-line b {
  font: 24px var(--mono);
  color: var(--accent);
  min-width: 55px;
}
.reference-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-top: 30px;
}
.reference-search {
  position: relative;
  margin-bottom: 24px;
}
.reference-search input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  font-size: 20px;
}
.glossary-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  scroll-margin-top: 25px;
}
.glossary-item h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.glossary-item p {
  font-size: 14px;
}
.glossary-item > a {
  font: 10px var(--mono);
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
}
.reference-sources h2 {
  font-size: 27px;
  margin-bottom: 25px;
}
.source-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.source-item a {
  font-size: 14px;
  font-weight: 700;
}
.source-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.empty {
  padding: 50px 0;
  font-size: 18px;
}
.empty h2 {
  font-size: 40px;
  margin-bottom: 18px;
}
.empty p {
  max-width: 550px;
  margin-bottom: 25px;
}
.empty-grid {
  margin: 35px 0;
  max-width: 600px;
}
.section-complete {
  padding: 24px;
  background: #dedfcd;
  margin: 15px 0 25px;
}
.section-complete h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.section-complete p {
  font-size: 13px;
}
.section-complete .button {
  margin-top: 16px;
}
.no-results {
  padding: 30px 0;
  font-size: 14px;
  color: var(--muted);
}
dialog {
  width: min(650px, calc(100% - 32px));
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #151512a8;
  backdrop-filter: blur(4px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: var(--muted);
  padding-bottom: 22px;
}
.icon-button {
  background: none;
  font-size: 28px;
  line-height: 1;
  padding: 0 3px;
  color: var(--ink);
}
dialog h2 {
  font-size: 49px;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}
dialog p {
  font-size: 14px;
  line-height: 1.7;
}
.language-choices {
  border: 0;
  padding: 0;
  margin: 25px 0;
  display: grid;
  gap: 9px;
}
.language-choices label {
  cursor: pointer;
}
.language-choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.language-choices span {
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 17px;
}
.language-choices small {
  margin-left: auto;
  color: var(--muted);
}
.language-choices b {
  font: 12px var(--mono);
  color: var(--muted);
}
.language-choices input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.language-choices input:checked + span b {
  color: var(--accent);
}
.language-choices input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.profile-fields {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 15px;
  margin-bottom: 24px;
}
.profile-fields label {
  font-size: 11px;
}
.profile-fields input {
  margin-top: 7px;
}
dialog .micro {
  font-size: 10px;
  margin-top: 17px;
}
dialog ul,
dialog ol {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}
dialog li + li {
  margin-top: 8px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 25px);
  background: var(--ink);
  border: 1px solid #77766d;
  padding: 15px 25px;
  color: var(--paper);
  z-index: 200;
  max-width: calc(100% - 30px);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript {
  padding: 30px;
  color: #a52d12;
}
.storage-warning {
  background: #e9d8c4;
  padding: 15px 5%;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
}
@media (min-width: 1600px) {
  .site-header,
  .main-nav,
  .site-footer {
    padding-inline: max(5.1%, calc((100vw - 1480px) / 2));
  }
  .page {
    max-width: 1480px;
    margin: auto;
    padding-inline: 35px;
  }
  .hero h1 {
    font-size: 122px;
  }
}
@media (max-width: 1100px) {
  .brand {
    font-size: 52px;
  }
  .site-header {
    gap: 30px;
  }
  .brand-description {
    font-size: 17px;
    padding-left: 25px;
  }
  .edition {
    font-size: 8px;
  }
  .strip-cell {
    padding-inline: 14px;
    font-size: 9px;
  }
  .strip-cell:first-child {
    padding-left: 12%;
  }
  .main-nav {
    gap: 25px;
    font-size: 10px;
  }
  .hero {
    min-height: 450px;
  }
  .hero h1 {
    font-size: 86px;
  }
  .language-bar {
    gap: 18px;
  }
  .language-button {
    padding: 10px 13px;
    gap: 7px;
  }
  .language-bar .micro {
    max-width: 180px;
  }
  .lab-layout {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 28px;
  }
  .module-card h3 {
    font-size: 23px;
  }
  .portfolio-grid {
    gap: 28px;
  }
  .report-actions {
    flex-direction: column;
  }
  .reference-layout {
    gap: 35px;
  }
  .tool-body {
    padding: 14px;
  }
}
@media (max-width: 800px) {
  .site-header {
    min-height: 120px;
    padding-block: 25px;
    gap: 30px;
  }
  .edition {
    display: none;
  }
  .status-strip {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
  .storage-state {
    display: none;
  }
  .strip-cell:nth-child(3) {
    border-right: 0;
  }
  .strip-cell:first-child {
    padding-left: 12%;
  }
  .main-nav {
    gap: 23px;
    overflow-x: auto;
    padding-block: 16px;
  }
  .nav-help {
    display: none;
  }
  .main-nav a span {
    margin-right: 5px;
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
    min-height: 410px;
  }
  .hero-copy {
    padding-top: 27px;
    padding-right: 20px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .specimen-word {
    font-size: 120px;
  }
  .specimen-foot p {
    font-size: 12px;
  }
  .specimen-top,
  .specimen-bottom {
    padding-inline: 18px;
    font-size: 8px;
  }
  .specimen-foot {
    margin-inline: 18px;
  }
  .language-bar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .language-bar .micro {
    display: none;
  }
  .section-heading h2 {
    font-size: 33px;
  }
  .continue-panel {
    grid-template-columns: 65px 1fr;
    padding: 23px;
    gap: 18px;
  }
  .continue-panel > .button {
    grid-column: 2;
    justify-self: start;
  }
  .continue-panel h3 {
    font-size: 23px;
  }
  .continue-number {
    font-size: 55px;
    align-self: start;
    margin-top: 12px;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .module-card {
    min-height: 230px;
  }
  .map-note h2 {
    font-size: 39px;
  }
  .map-note > div {
    padding-left: 25px;
  }
  .lab-layout {
    display: block;
  }
  .lab-sidebar {
    position: static;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 20px;
  }
  .task-nav {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
  }
  .task-nav a {
    border: 1px solid var(--line);
    padding: 9px 11px;
    min-width: 150px;
    font-size: 11px;
  }
  .task-nav a .mono {
    display: none;
  }
  .sidebar-title {
    padding-bottom: 10px;
  }
  .sidebar-meter {
    display: none;
  }
  .sidebar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .sidebar-disclaimer {
    font-size: 10px;
  }
  .lab-intro {
    grid-template-columns: 1fr 1fr;
  }
  .page-title {
    align-items: flex-start;
  }
  .page-title h1 {
    font-size: 45px;
  }
  .page-title > p {
    display: none;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .report-actions {
    flex-direction: row;
  }
  .stats-grid strong {
    font-size: 46px;
  }
  .reference-layout {
    grid-template-columns: 1fr;
  }
  .site-footer span {
    max-width: 240px;
    text-align: center;
  }
  .tool-head {
    font-size: 8px;
  }
  .reference-sources {
    margin-top: 20px;
  }
}
@media (max-width: 500px) {
  body {
    font-size: 14px;
  }
  .site-header {
    padding-block: 24px;
    gap: 16px;
    min-height: 100px;
  }
  .brand {
    font-size: clamp(32px, 10.7vw, 42px);
  }
  .brand-description {
    font-size: 11px;
    padding-left: 16px;
  }
  .status-strip {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
  }
  .strip-cell {
    padding: 12px 8px;
    gap: 5px;
    min-height: 43px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }
  .strip-cell:first-child {
    padding-left: 12px;
  }
  .main-nav {
    gap: 23px;
    padding-inline: 5.1%;
    font-size: 9px;
  }
  .main-nav a {
    display: flex;
    gap: 6px;
  }
  .main-nav a span {
    margin: 0;
  }
  .page {
    padding-bottom: 40px;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    padding: 26px 0 29px;
  }
  .hero h1 {
    font-size: clamp(68px, 19vw, 95px);
    margin: 25px 0 23px;
    line-height: 0.96;
    letter-spacing: -0.065em;
  }
  .hero-desc {
    max-width: 300px;
    font-size: 14px;
  }
  .hero-art {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 245px;
    max-height: 265px;
  }
  .specimen-main {
    min-height: 145px;
  }
  .specimen-word {
    font-size: 122px;
  }
  .specimen-top {
    padding: 15px 18px;
  }
  .specimen-circle {
    inset: 0 25%;
  }
  .specimen-axis {
    left: 15%;
    right: 15%;
  }
  .specimen-label {
    right: 15%;
    bottom: 7%;
  }
  .specimen-foot {
    margin-bottom: 17px;
    padding-top: 12px;
  }
  .specimen-foot p {
    max-width: 220px;
    font-size: 11px;
  }
  .specimen-foot span {
    font-size: 25px;
  }
  .language-bar > p {
    width: 100%;
  }
  .language-buttons {
    width: 100%;
    gap: 5px;
  }
  .language-button {
    padding: 10px 9px;
    gap: 6px;
    flex: 1;
    justify-content: center;
    font-size: 11px;
  }
  .language-button b {
    font-size: 9px;
  }
  .section-heading {
    padding-top: 30px;
    align-items: baseline;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .section-heading .mono {
    font-size: 8px;
    max-width: 95px;
    text-align: right;
  }
  .continue-panel {
    padding: 20px;
    grid-template-columns: 45px 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }
  .continue-panel h3 {
    font-size: 21px;
    line-height: 1.12;
  }
  .continue-panel p {
    font-size: 11px;
  }
  .continue-number {
    font-size: 43px;
    margin-top: 16px;
  }
  .continue-panel .button {
    font-size: 10px;
    padding: 11px 15px;
  }
  .continue-panel .mono {
    font-size: 8px;
  }
  .module-filters {
    gap: 17px;
  }
  .filter {
    font-size: 10px;
  }
  .module-card {
    padding: 17px 14px;
    min-height: 220px;
  }
  .module-card h3 {
    font-size: 21px;
    margin-top: 24px;
    line-height: 1.12;
    overflow-wrap: break-word;
  }
  .module-card-head {
    font-size: 8px;
  }
  .module-card p {
    font-size: 11px;
  }
  .module-card-head .category {
    display: none;
  }
  .task-dots {
    gap: 4px;
  }
  .task-dots i {
    width: 12px;
  }
  .card-arrow {
    font-size: 21px;
  }
  .map-note {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .map-note h2 {
    font-size: 44px;
    padding-bottom: 25px;
  }
  .map-note > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .map-note p {
    font-size: 14px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 23px;
    font-size: 8px;
  }
  .site-footer span {
    order: 3;
    max-width: none;
    width: 100%;
    text-align: left;
  }
  .site-footer a:last-child {
    margin-left: auto;
  }
  .page-title {
    padding: 28px 0 25px;
  }
  .page-title h1 {
    font-size: 39px;
    line-height: 1.07;
  }
  .page-title .mono {
    font-size: 9px;
  }
  .lab-layout {
    padding-top: 20px;
  }
  .lab-intro {
    display: block;
  }
  .lab-intro > div {
    padding: 0 0 23px;
  }
  .lab-intro > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 24px;
  }
  .lab-intro h2 {
    font-size: 22px;
  }
  .lab-intro p {
    font-size: 13px;
  }
  .task-card h2 {
    font-size: 26px;
    line-height: 1.13;
  }
  .task-prompt {
    font-size: 13px;
  }
  .task-top {
    font-size: 8px;
    align-items: flex-start;
  }
  .task-actions {
    gap: 20px;
  }
  .task-actions .button {
    padding: 13px 16px;
    font-size: 11px;
  }
  .option {
    font-size: 13px;
    padding: 12px;
  }
  .tool-head {
    letter-spacing: 0.04em;
  }
  .regex-fields,
  .wer-pair,
  .wave-pair {
    grid-template-columns: 1fr;
  }
  .wave-canvas {
    height: 110px;
  }
  .interval-fields {
    gap: 7px;
  }
  .interval-fields input {
    padding: 10px 8px;
  }
  .input-label {
    font-size: 10px;
  }
  .terminal-log {
    padding: 12px 12px 0;
    font-size: 10px;
  }
  .terminal-input-row {
    padding: 12px;
    gap: 7px;
  }
  .terminal-input-row input {
    font-size: 11px;
  }
  .terminal-input-row button {
    font-size: 9px;
  }
  .tool-code {
    font-size: 11px;
    padding: 12px;
  }
  .lab-end {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-block:nth-child(2) {
    border-right: 0;
  }
  .stat-block {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-block:nth-child(3) {
    padding-left: 0;
  }
  .stat-block:nth-child(3),
  .stat-block:nth-child(4) {
    border-bottom: 0;
  }
  .stat-block strong {
    font-size: 49px;
  }
  .stat-block .mono {
    font-size: 8px;
  }
  .report-row {
    gap: 12px;
  }
  .report-row h3 {
    font-size: 15px;
    line-height: 1.3;
  }
  .report-row .mono {
    font-size: 8px;
  }
  .report-actions {
    flex-direction: column;
    flex-shrink: 0;
  }
  .report-actions .button {
    font-size: 9px;
    padding: 7px 9px;
  }
  .portfolio-grid h2 {
    font-size: 27px;
  }
  .badge h3 {
    font-size: 16px;
    line-height: 1.2;
  }
  .backup-actions .button {
    font-size: 10px;
    gap: 12px;
  }
  .reference-search input {
    font-size: 18px;
  }
  .glossary-item h2 {
    font-size: 22px;
  }
  dialog {
    padding: 23px;
    max-height: 92vh;
  }
  dialog h2 {
    font-size: 40px;
  }
  .dialog-top {
    font-size: 8px;
    gap: 10px;
  }
  .language-choices span {
    font-size: 15px;
    padding: 12px 14px;
    gap: 20px;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .toast {
    font-size: 10px;
    width: max-content;
    padding: 13px 18px;
  }
  .treasure-panel {
    padding: 18px;
  }
  .unicode-row {
    gap: 6px;
  }
  .point {
    min-width: 42px;
    padding: 6px 4px;
    font-size: 8px;
  }
  .unicode-row strong {
    width: 100%;
    font-size: 22px;
  }
  .audio-controls audio {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .status-strip,
  .main-nav,
  .site-footer,
  .task-actions,
  .sidebar-controls,
  .nav-help,
  .toast {
    display: none;
  }
  .page {
    padding: 0;
  }
  .lab-layout {
    display: block;
  }
  .lab-sidebar {
    display: none;
  }
  body {
    background: white;
  }
  .task-card {
    break-inside: avoid;
  }
  .hero-art {
    display: none;
  }
}
