:root {
  --ink: #151515;
  --paper: #fffef8;
  --white: #ffffff;
  --muted: #5c5c57;
  --line: #d8d6ca;
  --soft-line: #ebe9de;
  --yellow: #f4c542;
  --yellow-soft: #fff4bd;
  --green: #147d64;
  --green-soft: #e2f4ed;
  --blue: #2257b5;
  --blue-soft: #e9effb;
  --red: #c93d32;
  --red-soft: #fde9e5;
  --violet: #6946a4;
  --shadow: 6px 6px 0 rgba(21, 21, 21, 0.12);
  --content: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

body::before {
  background: var(--yellow);
  content: "";
  display: block;
  height: 5px;
  width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #163d82;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: 4.5rem;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.8rem;
  letter-spacing: 0;
  margin-bottom: 1.15rem;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

.container {
  margin: 0 auto;
  max-width: var(--content);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  background: var(--ink);
  color: var(--white);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: -5rem;
  z-index: 1000;
}

.skip-link:focus {
  color: var(--white);
  top: 1rem;
}

.site-header {
  background: rgba(255, 254, 248, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: inline-flex;
  font-size: 0.65rem;
  gap: 0.08rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  transform: rotate(-2deg);
  width: 50px;
}

.brand-mark b {
  font-size: 0.88rem;
}

.brand-words {
  display: grid;
  line-height: 1.08;
}

.brand-words strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.brand-words small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.28rem;
  text-transform: uppercase;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 0.15rem;
}

.nav-link,
.nav-dropdown > summary {
  border-bottom: 2px solid transparent;
  color: var(--ink);
  cursor: pointer;
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  list-style: none;
  padding: 0.7rem 0.58rem 0.55rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown > summary::-webkit-details-marker,
.mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: " +";
  font-weight: 400;
}

.nav-link:hover,
.nav-dropdown > summary:hover,
.nav-link.is-active,
.nav-dropdown.is-active > summary {
  border-color: var(--yellow);
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  left: 0;
  min-width: 280px;
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 0.4rem);
}

.nav-dropdown-menu a {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: space-between;
  padding: 0.7rem;
  text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--yellow-soft);
  color: var(--ink);
}

.nav-dropdown-menu span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav > summary {
  align-items: center;
  border: 2px solid var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.5rem;
  list-style: none;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
}

.mobile-nav > summary span,
.mobile-nav > summary span::before,
.mobile-nav > summary span::after {
  background: var(--ink);
  display: block;
  height: 2px;
  position: relative;
  width: 16px;
}

.mobile-nav > summary span::before,
.mobile-nav > summary span::after {
  content: "";
  left: 0;
  position: absolute;
}

.mobile-nav > summary span::before {
  top: -5px;
}

.mobile-nav > summary span::after {
  top: 5px;
}

.mobile-nav nav {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  min-width: min(330px, calc(100vw - 3rem));
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
}

.mobile-nav nav a {
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
  font-weight: 750;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
}

.mobile-nav nav a:last-child {
  border-bottom: 0;
}

.mobile-nav nav a:hover,
.mobile-nav nav a:focus {
  background: var(--yellow-soft);
}

.mobile-nav .mobile-subnav {
  color: var(--muted);
  font-size: 0.88rem;
  padding-left: 1.5rem;
}

.button {
  align-items: center;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.05rem;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: var(--yellow);
  color: var(--ink);
}

.button-small {
  font-size: 0.86rem;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  color: var(--ink);
  font-weight: 850;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

.eyebrow {
  align-items: center;
  color: var(--green);
  display: flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 0.55rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: currentColor;
  content: "";
  height: 3px;
  width: 26px;
}

.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  position: relative;
}

.hero::after,
.page-hero::after {
  background-image:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  height: 170px;
  opacity: 0.65;
  position: absolute;
  right: -25px;
  top: 0;
  width: 280px;
  z-index: -1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.hero-copy {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 720px;
}

.hero-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.hero-note::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

.build-board {
  aspect-ratio: 1 / 1;
  background-color: var(--white);
  background-image:
    linear-gradient(#e7e5d9 1px, transparent 1px),
    linear-gradient(90deg, #e7e5d9 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
  max-width: 460px;
  padding: 2rem;
  position: relative;
  transform: rotate(1deg);
}

.board-label {
  background: var(--ink);
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  left: 1rem;
  padding: 0.35rem 0.55rem;
  position: absolute;
  top: 1rem;
}

.board-coordinates {
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  position: absolute;
  right: 1rem;
  top: 1.15rem;
}

.code-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 3.3rem;
}

.code-block {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(21, 21, 21, 0.15);
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.72rem 0.8rem;
  position: relative;
  width: 86%;
}

.code-block:nth-child(1) {
  background: var(--yellow);
}

.code-block:nth-child(2) {
  background: var(--blue-soft);
  margin-left: 10%;
}

.code-block:nth-child(3) {
  background: var(--green-soft);
  margin-left: 5%;
  width: 92%;
}

.code-block:nth-child(4) {
  background: var(--red-soft);
  margin-left: 14%;
  width: 78%;
}

.code-block:nth-child(5) {
  background: var(--white);
  border-style: dashed;
  width: 68%;
}

.circuit-line {
  border-bottom: 3px solid var(--green);
  border-right: 3px solid var(--green);
  bottom: 1.9rem;
  height: 52px;
  position: absolute;
  right: 1.9rem;
  width: 90px;
}

.circuit-line::before,
.circuit-line::after {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 15px;
  position: absolute;
  width: 15px;
}

.circuit-line::before {
  left: -7px;
  top: -7px;
}

.circuit-line::after {
  bottom: -8px;
  right: -8px;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-ink {
  background: var(--ink);
  color: var(--white);
}

.section-ink .eyebrow,
.section-ink .section-intro,
.section-ink .muted {
  color: #d5d3c9;
}

.section-yellow {
  background: var(--yellow-soft);
  border-bottom: 1px solid #dfca6a;
  border-top: 1px solid #dfca6a;
}

.section-blue {
  background: var(--blue-soft);
}

.section-header {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2.4rem;
}

.section-header > div {
  max-width: 760px;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-intro,
.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 760px;
}

.verb-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, 1fr);
}

.verb {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 1.3rem 0.9rem;
  text-align: center;
}

.verb strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.verb span {
  color: var(--muted);
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  margin-top: 0.25rem;
}

.program-grid,
.project-grid,
.feature-grid,
.principle-grid,
.faq-grid {
  display: grid;
  gap: 1.25rem;
}

.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card,
.project-card,
.feature-card,
.principle-card,
.contact-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 1.5rem;
}

.program-card {
  border-top: 5px solid var(--green);
  display: flex;
  flex-direction: column;
}

.program-card-later {
  border-top-color: var(--muted);
}

.program-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  margin-top: 0.9rem;
}

.program-card > p,
.project-card > p,
.feature-card > p,
.principle-card > p,
.info-card > p {
  color: var(--muted);
}

.card-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.program-index,
.project-program {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.6rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-active {
  background: var(--green-soft);
  color: #075b47;
}

.status-later {
  background: #eeeeea;
  color: #51514d;
}

.status-lab {
  background: var(--yellow-soft);
  color: #6e5500;
}

.status-demo {
  background: var(--blue-soft);
  color: #1c478f;
}

.program-facts {
  border-bottom: 1px solid var(--soft-line);
  border-top: 1px solid var(--soft-line);
  margin: 0.4rem 0 1.2rem;
}

.program-facts div {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 108px 1fr;
  padding: 0.65rem 0;
}

.program-facts div + div {
  border-top: 1px solid var(--soft-line);
}

.program-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-facts dd {
  font-size: 0.9rem;
  margin: 0;
}

.program-card .text-link {
  margin-top: auto;
}

.school-lab-grid,
.two-column,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-panel {
  border: 2px solid var(--ink);
  padding: 2rem;
  position: relative;
}

.comparison-panel:first-child {
  background: var(--white);
}

.comparison-panel:last-child {
  background: var(--yellow);
  transform: translateY(1.5rem);
}

.comparison-panel .panel-number {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.comparison-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-top: 1rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  border-left: 4px solid var(--yellow);
  display: flex;
  flex-direction: column;
  min-height: 275px;
}

.project-card:nth-child(3n + 2) {
  border-left-color: var(--green);
}

.project-card:nth-child(3n) {
  border-left-color: var(--red);
}

.project-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin-top: 1.1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: auto 0 0;
  padding: 1rem 0 0;
}

.tag-list li {
  background: #f1f0ea;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #4b4b47;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.4rem;
}

.parent-callout {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 2.5rem;
}

.parent-callout blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0;
}

.parent-callout p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.location-strip {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr auto;
}

.map-pin {
  align-items: center;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  color: var(--white);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 800;
  height: 88px;
  justify-content: center;
  transform: rotate(-45deg);
  width: 88px;
}

.map-pin span {
  transform: rotate(45deg);
}

.cta-band {
  background: var(--green);
  color: var(--white);
  padding: 4rem 0;
}

.cta-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
}

.cta-grid h2 {
  margin-bottom: 0.5rem;
}

.cta-grid p {
  color: #def2eb;
  margin: 0;
  max-width: 720px;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 4.5rem 0 3.8rem;
  position: relative;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero .lead {
  margin-bottom: 1.5rem;
}

.page-hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.status-panel {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.status-panel h2 {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  margin: 1rem 0 0.55rem;
  text-transform: uppercase;
}

.status-panel p {
  color: var(--muted);
  font-size: 0.92rem;
}

.pathway {
  counter-reset: pathway;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.pathway li {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: pathway;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 86px;
  padding: 0.7rem;
  position: relative;
  text-align: center;
}

.pathway li::before {
  color: var(--green);
  content: "0" counter(pathway);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  left: 0.4rem;
  position: absolute;
  top: 0.3rem;
}

.pathway li + li::after {
  background: var(--yellow);
  border: 1px solid var(--ink);
  content: "";
  height: 10px;
  left: -6px;
  position: absolute;
  top: calc(50% - 5px);
  transform: rotate(45deg);
  width: 10px;
}

.direction-path {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.direction-step {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.3rem;
  position: relative;
}

.direction-step + .direction-step::before {
  background: var(--yellow);
  border: 2px solid var(--ink);
  content: ">";
  font-size: 0.75rem;
  font-weight: 900;
  height: 24px;
  left: -13px;
  line-height: 19px;
  position: absolute;
  text-align: center;
  top: calc(50% - 12px);
  width: 24px;
  z-index: 2;
}

.direction-step strong,
.direction-step span {
  display: block;
}

.direction-step span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.topic-path {
  counter-reset: topic;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.topic-path li {
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: topic;
  font-weight: 800;
  min-height: 92px;
  padding: 1.8rem 0.8rem 0.7rem;
  position: relative;
}

.topic-path li::before {
  color: var(--green);
  content: counter(topic, decimal-leading-zero);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  left: 0.8rem;
  position: absolute;
  top: 0.55rem;
}

.class-rhythm {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.class-rhythm li {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 38px 1fr;
  padding-bottom: 0.9rem;
}

.class-rhythm span {
  align-items: center;
  background: var(--yellow);
  border: 1px solid var(--ink);
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.class-rhythm strong,
.class-rhythm small {
  display: block;
}

.class-rhythm small {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3,
.info-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.feature-code {
  color: var(--green);
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.sense-diagram {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem 0;
}

.sense-diagram div {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 1.5rem 1rem;
  position: relative;
  text-align: center;
}

.sense-diagram div + div::before {
  color: var(--green);
  content: "->";
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 900;
  left: -1.25rem;
  position: absolute;
  top: calc(50% - 0.8rem);
}

.sense-diagram strong,
.sense-diagram span {
  display: block;
}

.sense-diagram strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.sense-diagram span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.project-section + .project-section {
  border-top: 1px solid var(--line);
}

.project-section .section-header {
  margin-bottom: 1.75rem;
}

.project-count {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.lab-list {
  columns: 2;
  gap: 2.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.lab-list li {
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  padding: 0.75rem 0 0.75rem 1.8rem;
  position: relative;
}

.lab-list li::before {
  color: var(--green);
  content: "+";
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 900;
  left: 0.3rem;
  position: absolute;
}

.not-this {
  background: var(--red-soft);
  border-left: 5px solid var(--red);
  padding: 1.4rem;
}

.not-this strong {
  display: block;
  margin-bottom: 0.35rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.faq-grid summary {
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 800;
  list-style-position: inside;
  padding: 1.2rem;
}

.faq-grid details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  color: var(--muted);
  padding: 1.1rem 1.2rem 1.3rem;
}

.principle-grid {
  counter-reset: principle;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle-card {
  counter-increment: principle;
  padding-left: 4.5rem;
  position: relative;
}

.principle-card::before {
  color: var(--green);
  content: counter(principle, decimal-leading-zero);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  left: 1.4rem;
  position: absolute;
  top: 1.55rem;
}

.principle-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.manifesto-line {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.35;
  margin: 2.5rem 0 0;
  padding: 2rem 0;
}

.contact-card {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-card h2 {
  font-size: 2rem;
}

.contact-detail {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 90px 1fr;
  padding: 0.9rem 0;
}

.contact-detail span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail strong {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.message-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.message-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
}

.message-list li::before {
  color: var(--green);
  content: ">";
  font-family: "Courier New", monospace;
  font-weight: 900;
  left: 0;
  position: absolute;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 1.2fr 0.7fr;
}

.footer-brand {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  color: #bdbcb4;
  font-size: 0.88rem;
  margin: 0.45rem 0 0;
}

.site-footer nav {
  display: grid;
  gap: 0.3rem;
}

.site-footer nav a {
  color: var(--white);
  font-size: 0.88rem;
  text-decoration-color: #66655f;
}

.muted {
  color: var(--muted);
}

.mono-note {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.project-card h3 a {
  color: var(--ink);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

.project-card-linked {
  border-color: #b8b5a8;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.08);
}

.project-card-meta {
  border-top: 1px solid var(--soft-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.project-card-meta span,
.preview-note {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.project-card-link {
  margin-top: 0.85rem;
}

.preview-note {
  border-top: 1px dashed var(--line);
  display: block;
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.library-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.5rem;
}

.library-key span {
  color: var(--muted);
  font-size: 0.82rem;
}

.library-key b {
  color: var(--ink);
  font-family: "Courier New", monospace;
  margin-right: 0.3rem;
  text-transform: uppercase;
}

.breadcrumbs {
  margin-bottom: 2.4rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.breadcrumbs li + li::before {
  color: var(--green);
  content: ">";
  margin-right: 0.35rem;
}

.breadcrumbs a {
  color: var(--ink);
}

.curriculum-hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 4.5rem;
}

.curriculum-hero-grid {
  align-items: start;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.curriculum-hero h1 {
  max-width: 880px;
}

.curriculum-hero .tag-list {
  margin-top: 0;
  max-width: 760px;
  padding-top: 0.4rem;
}

.core-idea-panel,
.curriculum-meta {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  margin: 0;
  padding: 1.5rem;
}

.core-idea-panel > p {
  color: var(--muted);
}

.core-idea-panel > p strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.core-idea-panel .core-question {
  border-top: 1px solid var(--line);
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
}

.curriculum-meta div {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 105px 1fr;
  padding: 0.65rem 0;
}

.curriculum-meta div + div {
  border-top: 1px solid var(--soft-line);
}

.curriculum-meta dt {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.curriculum-meta dd {
  font-size: 0.92rem;
  font-weight: 750;
  margin: 0;
}

.curriculum-meta a {
  color: var(--ink);
}

.coordinate-section {
  align-items: center;
}

.coordinate-section code,
.theory-table code,
.pseudo-block-grid code {
  font-family: "Courier New", monospace;
}

.coordinate-key {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.coordinate-key li {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.point-swatch {
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-block;
  height: 13px;
  width: 13px;
}

.point-a-swatch,
.point-a b {
  background: var(--red);
}

.point-b-swatch,
.point-b b {
  background: var(--blue);
}

.point-c-swatch,
.point-c b {
  background: var(--violet);
}

.point-d-swatch,
.point-d b {
  background: var(--green);
}

.coordinate-figure {
  margin: 0;
}

.coordinate-plane {
  aspect-ratio: 1 / 1;
  background-color: var(--white);
  background-image:
    linear-gradient(#eceae0 1px, transparent 1px),
    linear-gradient(90deg, #eceae0 1px, transparent 1px);
  background-size: 10% 10%;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  overflow: hidden;
  position: relative;
}

.coordinate-figure figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}

.coordinate-plane .axis {
  background: var(--ink);
  position: absolute;
  z-index: 1;
}

.coordinate-plane .axis-x {
  height: 2px;
  left: 3%;
  right: 3%;
  top: 50%;
}

.coordinate-plane .axis-y {
  bottom: 3%;
  left: 50%;
  top: 3%;
  width: 2px;
}

.axis-label {
  background: var(--white);
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.1rem 0.25rem;
  position: absolute;
  z-index: 2;
}

.axis-positive-x {
  right: 2%;
  top: calc(50% + 7px);
}

.axis-negative-x {
  left: 2%;
  top: calc(50% + 7px);
}

.axis-positive-y {
  left: calc(50% + 7px);
  top: 2%;
}

.axis-negative-y {
  bottom: 2%;
  left: calc(50% + 7px);
}

.coordinate-point {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  position: absolute;
  z-index: 3;
}

.coordinate-point b {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.coordinate-point small {
  background: var(--white);
  border: 1px solid var(--line);
  font-family: "Courier New", monospace;
  font-size: 0.61rem;
  font-weight: 700;
  padding: 0.15rem 0.25rem;
  white-space: nowrap;
}

.point-origin {
  left: 50%;
  top: 50%;
  transform: translate(-13px, -13px);
}

.point-origin b {
  background: var(--yellow);
  color: var(--ink);
}

.point-a {
  left: 12%;
  top: 18%;
}

.point-b {
  right: 7%;
  top: 15%;
}

.point-c {
  bottom: 17%;
  left: 14%;
}

.point-d {
  bottom: 20%;
  right: 5%;
}

.concept-grid,
.mistake-grid,
.program-appearance-grid {
  display: grid;
  gap: 1rem;
}

.concept-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.concept-card,
.mistake-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
}

.concept-card h3,
.mistake-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.concept-card p,
.mistake-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.kernel-list {
  margin: 0;
}

.kernel-list div {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.kernel-list dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.kernel-list dd {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.program-appearance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.appearance-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 180px;
  padding: 1.3rem;
  text-decoration: none;
}

.appearance-card:hover,
.appearance-card:focus {
  border-color: var(--ink);
  color: var(--ink);
}

.appearance-card .status-badge {
  align-self: flex-start;
}

.appearance-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.appearance-card > span:last-child {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: auto;
}

.mistake-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mistake-card {
  border-left: 4px solid var(--red);
}

.parent-explanation {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.parent-explanation h2 {
  font-size: 2.1rem;
  margin: 0;
}

.parent-explanation > p {
  color: #e3e1d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.5;
}

.parent-explanation-light {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.parent-explanation-light > p {
  color: var(--muted);
}

.related-content h2 {
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  min-height: 155px;
  padding: 1.2rem;
  text-decoration: none;
}

.related-card:hover,
.related-card:focus {
  border-color: var(--ink);
  color: var(--ink);
}

.related-card > span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.related-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0.55rem 0;
}

.related-card small {
  color: var(--muted);
}

.related-card b {
  align-self: end;
  color: var(--green);
  justify-self: end;
}

.story-panel {
  max-width: 900px;
}

.story-panel h2 {
  max-width: 680px;
}

.story-panel > p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.5;
  max-width: 850px;
}

.lesson-timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.lesson-timeline li {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 130px 1fr;
  padding: 1.2rem 0;
}

.lesson-timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.lesson-timeline time {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 900;
}

.lesson-timeline h3 {
  margin-bottom: 0.3rem;
}

.lesson-timeline p {
  color: var(--muted);
}

.check-list,
.test-list,
.demonstrate-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.check-list li,
.test-list li,
.demonstrate-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.65rem 1.7rem;
  position: relative;
}

.check-list li::before,
.demonstrate-list li::before {
  color: var(--green);
  content: "[+]";
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  left: 0;
  position: absolute;
}

.test-list li::before {
  color: var(--red);
  content: "?";
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  left: 0.35rem;
  position: absolute;
}

.theory-table {
  background: var(--white);
  border: 1px solid var(--line);
}

.theory-table > div {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 1fr) auto 0.8fr;
  padding: 0.75rem 0.9rem;
}

.theory-table > div + div {
  border-top: 1px solid var(--soft-line);
}

.theory-table code {
  font-size: 0.82rem;
  font-weight: 700;
}

.theory-table > div > span {
  color: var(--green);
  font-weight: 900;
}

.theory-table strong {
  font-size: 0.88rem;
}

.theory-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.guided-preview,
.lab-brief {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr auto;
}

.checkpoint-grid {
  counter-reset: checkpoint;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.checkpoint-grid li {
  background: #252522;
  border: 1px solid #44443e;
  counter-increment: checkpoint;
  min-height: 170px;
  padding: 3.2rem 1rem 1rem;
  position: relative;
}

.checkpoint-grid li::before {
  color: var(--yellow);
  content: "CHECK 0" counter(checkpoint);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  left: 1rem;
  position: absolute;
  top: 1rem;
}

.challenge-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.challenge-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 1.4rem;
}

.challenge-card > span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 900;
}

.challenge-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  margin-top: 0.75rem;
}

.challenge-card ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.challenge-2 {
  box-shadow: 5px 5px 0 var(--green);
}

.challenge-3 {
  background: var(--yellow-soft);
  box-shadow: 5px 5px 0 var(--yellow);
}

.question-list {
  counter-reset: question;
  list-style: none;
  margin: 0;
  padding: 0;
}

.question-list li {
  border-bottom: 1px solid #d2bd5a;
  counter-increment: question;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  padding: 0.65rem 0 0.65rem 2.5rem;
  position: relative;
}

.question-list li::before {
  content: "0" counter(question);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0.9rem;
}

.topic-path .topic-complete {
  border: 2px solid var(--green);
  box-shadow: 3px 3px 0 var(--yellow);
}

.topic-path .topic-complete a {
  color: var(--ink);
  display: block;
}

.topic-path .topic-complete span {
  color: var(--green);
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.curriculum-package {
  border-bottom: 1px solid var(--line);
}

.curriculum-package-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  min-height: 150px;
  padding: 1.2rem;
  text-decoration: none;
}

.package-card:hover,
.package-card:focus {
  border-color: var(--ink);
  color: var(--ink);
}

.package-card > span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.package-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0.55rem 0;
}

.package-card small {
  color: var(--muted);
}

.package-lesson {
  border-left-color: var(--blue);
}

.concept-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.concept-chip-list li {
  background: var(--yellow-soft);
  border: 1px solid #d1b749;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.6rem;
}

.build-steps {
  counter-reset: none;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.build-step-card {
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 52px 1fr 0.9fr;
  padding: 1.2rem;
}

.build-step-number {
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: flex;
  font-family: "Courier New", monospace;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.build-step-main h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.build-step-main p,
.build-step-checks p {
  color: var(--muted);
  font-size: 0.9rem;
}

.build-step-checks {
  border-left: 1px solid var(--line);
  padding-left: 1.2rem;
}

.build-step-checks span {
  color: var(--green);
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.pseudo-block-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.pseudo-block-grid pre {
  background: var(--ink);
  border-left: 5px solid var(--yellow);
  color: var(--white);
  margin: 0;
  overflow-x: auto;
  padding: 1.2rem;
  white-space: pre-wrap;
}

.numbered-build-list {
  counter-reset: lab-build;
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.numbered-build-list li {
  border-bottom: 1px solid var(--line);
  counter-increment: lab-build;
  padding: 0.7rem 0 0.7rem 2.6rem;
  position: relative;
}

.numbered-build-list li::before {
  color: var(--green);
  content: counter(lab-build, decimal-leading-zero);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0.85rem;
}

.challenge-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-card-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 145px;
  padding: 1.1rem;
}

.challenge-card-grid span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 900;
}

.challenge-card-grid p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  margin-top: 0.75rem;
}

.boss-panel {
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  max-width: 900px;
  padding: 2rem;
}

.boss-panel p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 760px;
}

.demonstrate-list {
  margin-top: 0;
}

.section-ink .demonstrate-list li {
  border-color: #44443e;
}

.lab-project-examples .mono-note {
  margin-top: 1.25rem;
}

.lab-project-examples .mono-note a {
  color: var(--ink);
}

/* Version 1 curriculum and publishing system */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.footer-grid-expanded {
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1fr;
}

.site-footer strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.footer-email,
.footer-science a {
  color: var(--yellow);
  display: inline-block;
  margin-top: 0.65rem;
}

.footer-science {
  border-left: 1px solid #42423e;
  padding-left: 1.4rem;
}

.program-grid-later .program-card {
  background: #f3f2ed;
}

.idea-translation-grid,
.library-grid,
.kernel-grid,
.example-grid,
.program-connection-grid,
.theory-example-grid,
.preview-system-grid,
.build-learn-grid,
.challenge-level-grid,
.improvement-grid,
.lab-pair-grid,
.blog-grid,
.gallery-grid,
.privacy-grid {
  display: grid;
  gap: 1rem;
}

.idea-translation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.idea-translation-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  padding: 1.15rem;
}

.idea-translation-grid strong,
.idea-translation-grid span {
  display: block;
}

.idea-translation-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.idea-translation-grid span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  margin-top: 0.7rem;
  text-transform: uppercase;
}

.curriculum-route {
  counter-reset: curriculum-route;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.curriculum-route li {
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: curriculum-route;
  min-height: 104px;
  position: relative;
}

.curriculum-route li::before {
  color: var(--green);
  content: counter(curriculum-route, decimal-leading-zero);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 900;
  left: 0.9rem;
  position: absolute;
  top: 0.8rem;
}

.curriculum-route li > a,
.curriculum-route li > span {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 2.1rem 1rem 1rem;
  text-decoration: none;
}

.curriculum-route li > a:hover {
  background: var(--yellow-soft);
}

.curriculum-route strong,
.curriculum-route small,
.curriculum-route li > a > span {
  display: block;
}

.curriculum-route strong {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.curriculum-route small,
.curriculum-route li > a > span {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.64rem;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.curriculum-route .route-complete {
  border: 2px solid var(--green);
  box-shadow: 3px 3px 0 var(--yellow);
  z-index: 1;
}

.filter-links,
.category-nav,
.difficulty-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.project-link-list {
  border-top: 1px solid currentColor;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0.7rem 0 0;
}

.project-link-list li {
  padding: 0.25rem 0;
}

.project-link-list a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.difficulty-browse {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.difficulty-browse article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 1.1rem;
}

.difficulty-browse strong,
.difficulty-browse span {
  display: block;
}

.difficulty-browse strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.difficulty-browse span {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.difficulty-browse ul {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0.6rem 0 0;
}

.difficulty-browse li {
  margin: 0.35rem 0;
}

.difficulty-browse a {
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-links a,
.category-nav a,
.difficulty-key span {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
}

.filter-links a:hover,
.category-nav a:hover {
  background: var(--yellow);
}

.category-nav a span {
  color: var(--green);
  font-family: "Courier New", monospace;
  margin-left: 0.25rem;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-card,
.blog-card,
.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.35rem;
}

.library-card h3,
.blog-card h3,
.gallery-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin-top: 0.85rem;
}

.library-card h3 a,
.blog-card h3 a,
.gallery-card h3 a {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

.library-card > p,
.blog-card > p,
.gallery-card > p {
  color: var(--muted);
}

.library-card .text-link,
.blog-card .text-link {
  margin-top: auto;
}

.library-kind,
.blog-card > span,
.gallery-label {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.connection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: auto 0 1rem;
}

.connection-list span {
  background: var(--blue-soft);
  border-radius: 3px;
  color: #173f84;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.4rem;
}

.lesson-library-card > p:first-of-type {
  font-size: 0.82rem;
}

.lesson-library-card > p:last-of-type {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.metadata-strip {
  background: var(--white);
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.2rem 0 0;
}

.metadata-strip div {
  min-width: 0;
  padding: 0.9rem 1rem;
}

.metadata-strip div + div {
  border-left: 1px solid var(--line);
}

.metadata-strip dt {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metadata-strip dd {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.project-mission {
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--yellow);
  color: var(--white);
  padding: 1.5rem;
}

.project-mission p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.45;
  margin: 0.85rem 0 0;
}

.project-hero-later .project-mission {
  background: #3e3e3a;
  box-shadow: 7px 7px 0 #a6a59d;
}

.coordinate-figure {
  margin: 2rem auto 0;
  max-width: 720px;
}

.coordinate-plane .origin,
.coordinate-plane .plot-point {
  position: absolute;
  z-index: 3;
}

.coordinate-plane .origin {
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 900;
  left: 50%;
  padding: 0.25rem 0.4rem;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.coordinate-plane .plot-point {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.plot-point b {
  align-items: center;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.plot-point small {
  background: var(--white);
  border: 1px solid var(--line);
  font-family: "Courier New", monospace;
  font-size: 0.61rem;
  font-weight: 800;
  padding: 0.15rem 0.25rem;
  white-space: nowrap;
}

.plot-point.point-a { right: 12%; top: 18%; }
.plot-point.point-b { left: 10%; top: 22%; }
.plot-point.point-c { bottom: 18%; left: 13%; }
.plot-point.point-d { bottom: 20%; right: 8%; }
.plot-point.point-b b { background: var(--blue); }
.plot-point.point-c b { background: var(--violet); }
.plot-point.point-d b { background: var(--green); }

.kernel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kernel-grid article,
.example-grid article,
.program-connection-grid article,
.preview-system-grid article,
.build-learn-grid article,
.privacy-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
}

.kernel-grid h3,
.example-grid h3,
.program-connection-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.kernel-grid p,
.example-grid p,
.program-connection-grid p,
.preview-system-grid p,
.privacy-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

.example-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.example-grid article > span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
}

.program-connection-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-connection-grid .status-badge {
  margin-bottom: 1rem;
}

.program-connection-grid h3 a {
  color: var(--ink);
}

.mistake-grid article {
  background: #252522;
  border: 1px solid #484842;
  border-left: 4px solid var(--red);
  padding: 1.15rem;
}

.mistake-grid article > span {
  color: var(--yellow);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.mistake-grid article h3 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  margin-top: 0.55rem;
}

.mistake-grid article p {
  color: #d7d5cc;
  font-size: 0.9rem;
}

.theory-example-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theory-example-grid article {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.8fr);
  padding: 0.9rem;
}

.theory-example-grid code {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.theory-example-grid article > span {
  color: var(--green);
  font-weight: 900;
}

.theory-example-grid p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.preview-system-grid,
.build-learn-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-system-grid strong,
.build-learn-grid h3,
.privacy-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.concept-list,
.plain-list,
.warning-list,
.improvement-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.concept-list li,
.plain-list li,
.warning-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0 0.55rem 1.4rem;
  position: relative;
}

.concept-list li::before,
.plain-list li::before,
.warning-list li::before {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
  left: 0;
  position: absolute;
}

.concept-list li::before { color: var(--blue); content: "::"; }
.plain-list li::before { color: var(--green); content: ">"; }
.warning-list li::before { color: var(--red); content: "!"; }

.build-step-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.build-step-list .build-step-card {
  grid-template-columns: 54px minmax(0, 1fr);
}

.step-number {
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: flex;
  font-family: "Courier New", monospace;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.build-step-card > div > h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.build-step-card dl {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 0;
}

.build-step-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.build-step-card dt {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.build-step-card dd {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.25rem 0 0;
}

.checkpoint-grid li > span {
  display: none;
}

.challenge-level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-level-grid article {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  min-height: 180px;
  padding: 1.35rem;
}

.challenge-level-grid article > span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 900;
}

.challenge-level-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  margin-top: 0.8rem;
}

.challenge-level-grid ul {
  color: var(--muted);
  padding-left: 1.15rem;
}

.improvement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.improvement-grid li {
  background: var(--white);
  border: 1px solid #d2bd5a;
  border-left: 4px solid var(--green);
  padding: 1rem;
}

.lab-pair-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-pair-grid > article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  padding: 1.35rem;
}

.lab-pair-grid > article > span {
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-pair-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  margin-top: 0.8rem;
}

.lab-pair-grid p {
  color: var(--muted);
}

.lab-pair-grid article > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  padding-top: 0.8rem;
}

.lab-pair-grid a {
  font-weight: 800;
}

.law-list {
  counter-reset: school-law;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.law-list li {
  background: #252522;
  border: 1px solid #44443e;
  counter-increment: school-law;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  padding: 1.2rem 1.2rem 1.2rem 3.8rem;
  position: relative;
}

.law-list li::before {
  color: var(--yellow);
  content: counter(school-law, decimal-leading-zero);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  left: 1.2rem;
  position: absolute;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  border-top: 4px solid var(--blue);
  min-height: 255px;
}

.article-header {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 4rem;
}

.article-header h1 {
  font-size: 4rem;
}

.article-byline {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 4rem;
  grid-template-columns: 230px minmax(0, 720px);
  justify-content: center;
  padding-bottom: 6rem;
  padding-top: 4rem;
}

.article-aside {
  border-left: 4px solid var(--yellow);
  padding-left: 1rem;
  position: sticky;
  top: 110px;
}

.article-aside > strong {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.article-aside ol {
  font-size: 0.82rem;
  padding-left: 1.2rem;
}

.article-aside li {
  margin: 0.55rem 0;
}

.article-intro {
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.55;
  padding-bottom: 2rem;
}

.article-body > section {
  padding-top: 2.5rem;
}

.article-body h2 {
  font-size: 2.1rem;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-related-links {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  border-top: 5px solid var(--yellow);
}

.gallery-card dl {
  border-top: 1px solid var(--line);
  margin: auto 0 0;
  padding-top: 1rem;
}

.gallery-card dl div {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 90px 1fr;
}

.gallery-card dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-card dd {
  font-size: 0.82rem;
  margin: 0;
}

.privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  background: repeating-linear-gradient(-45deg, var(--white), var(--white) 12px, #f5f4ed 12px, #f5f4ed 24px);
  border: 2px dashed var(--muted);
  padding: 2rem;
  text-align: center;
}

.empty-state strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0.7rem auto 0;
  max-width: 700px;
}

.publication-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publication-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.publication-card img,
.publication-hero-image img {
  display: block;
  height: auto;
  width: 100%;
}

.publication-card img {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
  object-fit: cover;
}

.publication-hero-image {
  margin-bottom: 0;
  margin-top: -2rem;
}

.publication-hero-image img {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.publication-body {
  padding-bottom: 5rem;
  padding-top: 3rem;
}

.publication-body > section {
  padding-top: 1rem;
}

.publication-body > section + section {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 2.5rem;
}

.publication-body p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.publication-link-list {
  list-style: none;
  padding: 0;
}

.publication-link-list a {
  border-bottom: 1px solid var(--line);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.publication-cta {
  margin-top: 2.5rem;
}

.not-found-page {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px);
  background-size: 34px 34px;
  padding: 6rem 0;
}

.not-found-grid {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.not-found-diagram {
  align-content: center;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  display: grid;
  font-family: "Courier New", monospace;
  justify-items: center;
  padding: 2rem;
  position: relative;
}

.not-found-diagram::before,
.not-found-diagram::after {
  background: var(--red);
  content: "";
  height: 3px;
  position: absolute;
  top: 50%;
  transform: rotate(45deg);
  width: 55%;
}

.not-found-diagram::after {
  transform: rotate(-45deg);
}

.not-found-diagram strong,
.not-found-diagram span {
  background: var(--white);
  padding: 0.2rem;
  position: relative;
  z-index: 1;
}

.project-contents {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.project-contents strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-contents ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-contents a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.pigeon-preview-grid {
  align-items: center;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.project-artwork,
.system-sketch {
  margin: 0;
}

.project-artwork img,
.system-sketch img {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  height: auto;
  width: 100%;
}

.project-artwork figcaption,
.system-sketch figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.85rem;
}

.system-sketch {
  margin: 1.5rem auto 2.5rem;
  max-width: 960px;
}

.system-flow {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.system-flow li {
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  padding: 1rem;
}

.download-panel {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.11);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem;
}

.download-card > div {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.download-type {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-card > div strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  white-space: nowrap;
}

.download-card p {
  flex-grow: 1;
}

.download-card .button {
  align-self: stretch;
  text-align: center;
}

.download-card small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
  margin-top: 0.9rem;
  overflow-wrap: anywhere;
}

.system-index {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.system-index a {
  align-items: center;
  background: #2b2b28;
  border: 1px solid #44443f;
  color: var(--white);
  display: flex;
  font-weight: 750;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.system-index a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.system-index span {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
}

.teacher-checkpoint-panel {
  background: var(--yellow);
  border: 2px solid var(--white);
  color: var(--ink);
  padding: 1.5rem;
}

.teacher-checkpoint-panel ul {
  columns: 2;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.teacher-checkpoint-panel li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
  padding-right: 1.2rem;
}

.scratch-code-section {
  scroll-margin-top: 80px;
}

.scratch-section-heading {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 62px minmax(0, 1fr);
  margin-bottom: 2.2rem;
}

.scratch-section-heading > span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--yellow);
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  transform: rotate(-3deg);
  width: 56px;
}

.scratch-section-heading h2 {
  margin-bottom: 0.55rem;
}

.scratch-explanation-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 1.5rem;
}

.scratch-explanation-grid > div {
  border-top: 3px solid var(--ink);
  min-width: 0;
  padding-top: 1rem;
}

.system-pseudocode,
.scratch-source-copy pre,
pre.scratchblocks {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

.system-pseudocode {
  background: var(--ink);
  color: #f8f1cf;
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 0;
  overflow-x: auto;
  padding: 1.1rem;
}

.scratch-script-list {
  display: grid;
  gap: 1rem;
}

.scratch-script-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 1.15rem;
}

.scratch-script-meta {
  align-items: baseline;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
}

.scratch-script-meta strong {
  color: var(--violet);
}

.scratch-script-meta span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.scratchblocks-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.4rem 0 0.8rem;
}

pre.scratchblocks {
  background: #f6f4ea;
  border-left: 4px solid var(--violet);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  min-width: max-content;
  padding: 1rem;
}

.scratchblocks-ready .scratchblocks-scroll svg {
  display: block;
  max-width: none;
}

.scratch-source-copy {
  border-top: 1px dashed var(--line);
  margin-top: 0.8rem;
  padding-top: 0.7rem;
}

.scratch-source-copy summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.scratch-source-copy pre {
  background: #f6f4ea;
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0.8rem 0 0;
  overflow-x: auto;
  padding: 1rem;
}

.build-checks {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.build-checks div {
  background: var(--ink);
  color: var(--white);
  padding: 1rem;
}

.build-checks dt {
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.build-checks dd {
  font-size: 0.87rem;
  margin: 0;
}

.production-checklist {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.production-checklist li {
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.2rem 1fr;
  padding: 0.85rem;
}

.production-checklist span {
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1.2;
}

.debugging-guide {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.debugging-guide h3 {
  grid-column: 1 / -1;
}

.debugging-guide article {
  background: var(--red-soft);
  border-top: 4px solid var(--red);
  font-size: 0.84rem;
  padding: 1rem;
}

.debugging-guide strong {
  display: block;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.pilot-challenge-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pilot-challenge-grid article {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.1);
  padding: 1.35rem;
}

.pilot-challenge-grid article:nth-child(2) {
  transform: rotate(0.7deg);
}

.pilot-challenge-grid article:nth-child(3) {
  background: var(--ink);
  color: var(--white);
  transform: rotate(-0.5deg);
}

.pilot-challenge-grid span {
  color: var(--red);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.pilot-challenge-grid article:nth-child(3) span {
  color: var(--yellow);
}

.project-production-note {
  border-bottom: 1px solid var(--line);
}

.trademark-note {
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  font-size: 0.88rem;
  padding-left: 1rem;
}

/* Visual Integration Pass 1
   Shared, content-driven instruments for the working-laboratory layer. */

[id] {
  scroll-margin-top: 6.5rem;
}

.hero::before {
  background-image: radial-gradient(rgba(21, 21, 21, 0.18) 1px, transparent 1.5px);
  background-size: 7px 7px;
  bottom: 1.4rem;
  content: "";
  height: 82px;
  left: max(0px, calc((100% - var(--content)) / 2 - 34px));
  opacity: 0.42;
  position: absolute;
  transform: rotate(-2deg);
  width: 132px;
  z-index: -1;
}

.hero-status-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.25rem 0 1.15rem;
}

.hero-status-line span {
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.38rem 0.5rem;
}

.hero-status-line span:first-child {
  background: var(--yellow);
}

.hero-status-line span:last-child {
  border-color: var(--green);
  color: #075b47;
}

.build-board {
  isolation: isolate;
}

.build-board::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(21, 21, 21, 0.13) 0,
    rgba(21, 21, 21, 0.13) 2px,
    transparent 2px,
    transparent 6px
  );
  border: 1px solid var(--ink);
  bottom: 5.25rem;
  content: "";
  height: 28px;
  position: absolute;
  right: -11px;
  transform: rotate(-3deg);
  width: 56px;
  z-index: -1;
}

.board-state {
  bottom: 1.1rem;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 900;
  left: 4.25rem;
  letter-spacing: 0.04em;
  position: absolute;
}

.board-mascot {
  bottom: -28px;
  filter: drop-shadow(4px 4px 0 rgba(21, 21, 21, 0.18));
  height: 82px;
  left: -30px;
  object-fit: contain;
  position: absolute;
  transform: rotate(-5deg);
  width: 82px;
  z-index: 3;
}

.section-trace {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.section-trace::before {
  color: rgba(21, 21, 21, 0.37);
  content: "TRACE: INPUT / RULE / OUTPUT";
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  position: absolute;
  right: max(1rem, calc((100% - var(--content)) / 2));
  top: 1.1rem;
}

.section-trace::after {
  border-left: 2px solid rgba(20, 125, 100, 0.3);
  border-top: 2px solid rgba(20, 125, 100, 0.3);
  content: "";
  height: 54px;
  position: absolute;
  right: max(-18px, calc((100% - var(--content)) / 2 - 52px));
  top: 2rem;
  width: 96px;
  z-index: -1;
}

.section-trace-output::before {
  color: rgba(255, 255, 255, 0.48);
  content: "OUTPUT: PROJECT / DEMONSTRATE";
}

.section-trace-output::after {
  border-color: rgba(244, 197, 66, 0.46);
}

.section-trace-notes::before {
  content: "NOTES: ASK / CHECK / EXPLAIN";
}

.lab-transition {
  align-items: center;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto minmax(48px, 1fr) minmax(220px, 1.5fr) auto;
  margin: 2.2rem 0 0;
  min-height: 82px;
  padding: 0.75rem 1rem;
  position: relative;
}

.lab-transition::before {
  background: var(--yellow);
  border: 1px solid var(--ink);
  content: "";
  height: 14px;
  left: 42%;
  opacity: 0.72;
  position: absolute;
  top: -8px;
  transform: rotate(2deg);
  width: 72px;
}

.lab-transition-code,
.lab-transition-arrow {
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 900;
}

.lab-transition-code {
  background: var(--ink);
  color: var(--white);
  padding: 0.38rem 0.48rem;
}

.lab-transition-line {
  border-top: 2px solid var(--green);
  min-width: 48px;
  position: relative;
}

.lab-transition-line::before,
.lab-transition-line::after {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 11px;
  position: absolute;
  top: -6px;
  width: 11px;
}

.lab-transition-line::before {
  left: 0;
}

.lab-transition-line::after {
  right: 0;
}

.lab-transition p {
  margin: 0;
}

.lab-transition strong,
.lab-transition small {
  display: block;
}

.lab-transition strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.lab-transition small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.18rem;
}

.lab-transition-arrow {
  color: var(--green);
  font-size: 1rem;
}

.lab-transition-mascot {
  grid-template-columns: 66px auto minmax(48px, 1fr) minmax(220px, 1.5fr) auto;
}

.lab-transition-mascot img {
  filter: drop-shadow(3px 3px 0 rgba(21, 21, 21, 0.14));
  height: 66px;
  object-fit: contain;
  transform: rotate(3deg);
  width: 66px;
}

.program-card,
.project-card,
.library-card,
.blog-card {
  --card-accent: var(--green);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(21, 21, 21, 0.1);
  position: relative;
}

.program-card {
  border-top: 5px solid var(--card-accent);
}

.program-card-scratch,
.project-card-scratch,
.topic-library-card-scratch {
  --card-accent: var(--yellow);
}

.program-card-robotics,
.project-card-robotics,
.topic-library-card-robotics {
  --card-accent: var(--green);
}

.program-card-roblox,
.project-card-roblox {
  --card-accent: var(--blue);
}

.program-card-ai,
.project-card-ai {
  --card-accent: var(--violet);
}

.program-card-later,
.project-card-later {
  border-style: dashed;
}

.program-instrument {
  align-items: center;
  background-color: color-mix(in srgb, var(--card-accent) 13%, var(--white));
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid var(--ink);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto auto minmax(38px, 1fr) auto;
  margin: 0 0 0.85rem;
  min-height: 54px;
  overflow: hidden;
  padding: 0.55rem;
}

.program-instrument span,
.program-instrument b,
.program-instrument em {
  font-family: "Courier New", monospace;
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 900;
}

.program-instrument span {
  background: var(--ink);
  color: var(--white);
  padding: 0.28rem 0.36rem;
}

.program-instrument b {
  color: var(--card-accent);
}

.program-instrument i {
  border-top: 2px solid var(--card-accent);
  min-width: 24px;
  position: relative;
}

.program-instrument i::before {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 10px;
  position: absolute;
  right: 0;
  top: -6px;
  width: 10px;
}

.program-card:nth-child(even) .program-instrument {
  transform: translateX(0.35rem) rotate(0.35deg);
}

.program-card-scratch .program-instrument b,
.project-card-scratch .instrument-reading {
  color: #6e5500;
}

.program-card-robotics .program-instrument b,
.project-card-robotics .instrument-reading {
  color: #075b47;
}

.project-card {
  border-left: 5px solid var(--card-accent);
  min-height: 360px;
  overflow: hidden;
}

.project-card:nth-child(3n + 2),
.project-card:nth-child(3n) {
  border-left-color: var(--card-accent);
}

.project-card::before {
  background: var(--card-accent);
  content: "";
  height: 8px;
  position: absolute;
  right: 1rem;
  top: -2px;
  transform: skewX(-24deg);
  width: 44px;
}

.project-instrument {
  background-color: color-mix(in srgb, var(--card-accent) 12%, var(--white));
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.08) 1px, transparent 1px);
  background-size: 15px 15px;
  border: 1px solid var(--ink);
  height: 74px;
  margin: 0 -0.25rem 0.85rem 0;
  overflow: hidden;
  position: relative;
}

.project-instrument::before,
.project-instrument::after {
  content: "";
  position: absolute;
}

.project-instrument::before {
  border-left: 2px solid var(--card-accent);
  border-top: 2px solid var(--card-accent);
  height: 31px;
  left: 22%;
  top: 35px;
  width: 52%;
}

.project-instrument::after {
  border: 1px dashed var(--ink);
  height: 20px;
  opacity: 0.45;
  right: -7px;
  top: 22px;
  transform: rotate(45deg);
  width: 20px;
}

.instrument-label,
.instrument-reading,
.project-instrument b {
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  font-weight: 900;
  position: absolute;
  z-index: 2;
}

.instrument-label {
  background: var(--ink);
  color: var(--white);
  left: 8px;
  padding: 0.25rem 0.35rem;
  top: 7px;
}

.instrument-reading {
  color: var(--card-accent);
  right: 8px;
  top: 7px;
}

.project-instrument b {
  bottom: 6px;
  right: 8px;
}

.instrument-node {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  height: 13px;
  position: absolute;
  width: 13px;
  z-index: 2;
}

.instrument-node-a {
  bottom: 14px;
  left: calc(22% - 6px);
}

.instrument-node-b {
  left: calc(74% - 6px);
  top: 29px;
}

.project-card-robotics .project-instrument {
  background-image:
    radial-gradient(rgba(20, 125, 100, 0.18) 1px, transparent 1.5px),
    linear-gradient(90deg, transparent 49%, rgba(21, 21, 21, 0.08) 50%, transparent 51%);
  background-size: 8px 8px, 28px 100%;
}

.project-card-robotics .instrument-node {
  border-radius: 2px;
  transform: rotate(45deg);
}

.project-card-roblox .project-instrument::before {
  border-bottom: 2px solid var(--card-accent);
  height: 36px;
  transform: skew(-12deg);
}

.project-card-ai .project-instrument {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(105, 70, 164, 0.08) 0,
    rgba(105, 70, 164, 0.08) 11px,
    transparent 11px,
    transparent 22px
  );
}

.project-card-ai .project-instrument::after {
  border-radius: 50%;
}

.project-card:nth-child(even) .project-instrument {
  margin-left: 0.25rem;
  margin-right: -0.5rem;
  transform: rotate(0.25deg);
}

.project-card:nth-child(3n) .project-instrument {
  transform: rotate(-0.35deg);
}

.project-card-compact {
  min-height: 330px;
}

.project-card-compact .project-instrument {
  height: 62px;
}

.project-card-later .project-instrument {
  filter: grayscale(0.35);
  opacity: 0.82;
}

.blog-card {
  --card-accent: var(--blue);
  border-top: 5px solid var(--card-accent);
  min-height: 300px;
  overflow: hidden;
}

.blog-card::before {
  background: linear-gradient(135deg, var(--paper) 49%, var(--line) 50%, var(--white) 52%);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  content: "";
  height: 24px;
  position: absolute;
  right: -1px;
  top: -1px;
  width: 24px;
  z-index: 3;
}

.blog-card-coding-for-kids {
  --card-accent: var(--yellow);
}

.blog-card-robotics-for-kids,
.blog-card-computer-lab-notes {
  --card-accent: var(--green);
}

.blog-card-parent-guides {
  --card-accent: var(--blue);
}

.blog-card-project-based-learning {
  --card-accent: var(--violet);
}

.blog-card-ai-for-kids {
  --card-accent: var(--violet);
}

.blog-card-instrument {
  align-items: center;
  background: color-mix(in srgb, var(--card-accent) 12%, var(--white));
  border: 1px solid var(--ink);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto minmax(36px, 1fr) auto;
  margin: 0 0 0.85rem;
  min-height: 45px;
  padding: 0.45rem;
}

.blog-card-instrument span,
.blog-card-instrument b {
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.blog-card-instrument span {
  background: var(--card-accent);
  color: var(--white);
  padding: 0.22rem 0.3rem;
}

.blog-card-coding-for-kids .blog-card-instrument span {
  color: var(--ink);
}

.blog-card-instrument i {
  border-top: 2px solid var(--card-accent);
  position: relative;
}

.blog-card-instrument i::after {
  background: var(--yellow);
  border: 2px solid var(--ink);
  content: "";
  height: 9px;
  position: absolute;
  right: 0;
  top: -6px;
  transform: rotate(45deg);
  width: 9px;
}

.blog-card:nth-child(even) .blog-card-instrument {
  margin-left: 0.35rem;
  transform: rotate(0.35deg);
}

.topic-library-card {
  border-top: 5px solid var(--card-accent);
  min-height: 300px;
}

.connection-list {
  align-items: center;
  gap: 0.4rem 0.85rem;
  position: relative;
}

.connection-list span {
  border: 1px solid #173f84;
  position: relative;
}

.connection-list span + span::before {
  color: var(--green);
  content: ">";
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 900;
  left: -0.65rem;
  position: absolute;
}

.page-hero-library {
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  isolation: isolate;
}

.page-hero-library::before {
  align-items: center;
  background:
    radial-gradient(rgba(21, 21, 21, 0.28) 1px, transparent 1.5px) 0 0 / 7px 7px,
    var(--yellow);
  border: 2px solid var(--ink);
  bottom: 1.4rem;
  color: var(--ink);
  content: attr(data-register);
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  letter-spacing: 0.03em;
  opacity: 0.72;
  padding: 0.5rem;
  position: absolute;
  right: max(1.1rem, calc((100% - var(--content)) / 2));
  text-align: center;
  transform: rotate(-2deg);
  width: 116px;
  z-index: -1;
}

.page-hero-blog::before {
  transform: rotate(1.5deg);
}

.page-hero-programs::before {
  bottom: 1.8rem;
  transform: rotate(-1deg);
}

.page-hero-topics::before {
  transform: rotate(2deg);
}

.filter-links,
.category-nav {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ink);
  gap: 0;
  max-width: 100%;
  padding: 0.35rem;
  position: relative;
  width: fit-content;
}

.filter-links::before,
.category-nav::before {
  background: var(--green);
  content: "";
  height: 3px;
  left: 0.35rem;
  position: absolute;
  right: 0.35rem;
  top: -2px;
}

.filter-links a,
.category-nav a {
  border: 0;
  border-radius: 0;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  position: relative;
}

.filter-links a + a,
.category-nav a + a {
  border-left: 1px dashed var(--line);
}

.library-key {
  border-left: 3px solid var(--green);
  padding-left: 0.8rem;
}

.direction-path,
.curriculum-route {
  filter: drop-shadow(4px 4px 0 rgba(21, 21, 21, 0.07));
}

.direction-step,
.curriculum-route li {
  border-color: var(--ink);
}

.direction-step:nth-child(even),
.curriculum-route li:nth-child(even) {
  background-color: #fbfaf2;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.045) 1px, transparent 1px);
  background-size: 16px 16px;
}

.curriculum-route li::after {
  background: var(--yellow);
  content: "";
  height: 5px;
  position: absolute;
  right: 0.45rem;
  top: 0.45rem;
  transform: skewX(-28deg);
  width: 22px;
}

.responsive-photo,
.responsive-photo img {
  height: auto;
  width: 100%;
}

.responsive-photo img {
  background: var(--soft-line);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.campaign-photo {
  margin: 0;
}

.campaign-photo figcaption,
.photo-note-strip figcaption,
.photo-gallery-grid figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.65rem;
}

.campaign-photo-hero {
  transform: rotate(0.4deg);
}

.page-hero-side {
  display: grid;
  gap: 1.1rem;
}

.page-hero-side .status-panel {
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.1);
}

.photo-gallery-grid,
.photo-note-strip {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-gallery-grid figure,
.photo-note-strip figure {
  margin: 0;
  min-width: 0;
}

.photo-gallery-grid .gallery-label {
  display: inline-block;
  margin-bottom: 0.7rem;
}

.photo-note-strip figure:nth-child(2) {
  transform: translateY(1.25rem);
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid {
    gap: 2.5rem;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .project-instrument b {
    max-width: 64%;
    text-align: right;
  }

  h1 {
    font-size: 3.8rem;
  }
}

@media (max-width: 820px) {
  .pigeon-preview-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .system-flow {
    grid-template-columns: 1fr 1fr;
  }

  .system-flow li:last-child {
    grid-column: 1 / -1;
  }

  .download-panel,
  .pilot-challenge-grid {
    grid-template-columns: 1fr;
  }

  .teacher-checkpoint-panel ul {
    columns: 1;
  }

  .scratch-explanation-grid,
  .build-checks {
    grid-template-columns: 1fr;
  }

  .debugging-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .debugging-guide article:last-child {
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .hero,
  .page-hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-grid,
  .page-hero-grid,
  .curriculum-hero-grid,
  .not-found-grid,
  .article-layout,
  .parent-callout,
  .parent-explanation,
  .school-lab-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery-grid,
  .photo-note-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curriculum-hero-grid {
    gap: 2rem;
  }

  .article-layout {
    gap: 2rem;
    justify-content: stretch;
  }

  .article-aside {
    position: static;
  }

  .build-board {
    margin: 0 auto;
    max-width: 520px;
    width: 100%;
  }

  .hero-status-line {
    margin-bottom: 1rem;
  }

  .lab-transition,
  .lab-transition-mascot {
    grid-template-columns: auto minmax(48px, 0.7fr) minmax(200px, 1.4fr) auto;
  }

  .lab-transition-mascot img {
    display: none;
  }

  .page-hero-library::before {
    height: 44px;
    width: 92px;
  }

  .verb-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid,
  .feature-grid,
  .library-grid,
  .kernel-grid,
  .example-grid,
  .program-connection-grid,
  .preview-system-grid,
  .build-learn-grid,
  .challenge-level-grid,
  .improvement-grid,
  .lab-pair-grid,
  .difficulty-browse,
  .blog-grid,
  .gallery-grid,
  .idea-translation-grid,
  .concept-grid,
  .mistake-grid,
  .program-appearance-grid,
  .related-grid,
  .challenge-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkpoint-grid li:last-child {
    grid-column: 1 / -1;
  }

  .build-step-card {
    grid-template-columns: 52px 1fr;
  }

  .build-step-checks {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 2;
    padding-left: 0;
    padding-top: 1rem;
  }

  .guided-preview,
  .lab-brief {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .comparison-panel:last-child {
    transform: none;
  }

  .pathway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pathway li:last-child {
    grid-column: 1 / -1;
  }

  .pathway li + li::after {
    display: none;
  }

  .topic-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-strip {
    grid-template-columns: auto 1fr;
  }

  .location-strip .button {
    grid-column: 1 / -1;
  }

  .curriculum-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metadata-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metadata-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metadata-strip div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .photo-gallery-grid,
  .photo-note-strip {
    grid-template-columns: 1fr;
  }

  .photo-note-strip figure:nth-child(2) {
    transform: none;
  }
  .project-contents {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .project-contents ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .system-flow,
  .system-index,
  .production-checklist,
  .debugging-guide {
    grid-template-columns: 1fr;
  }

  .system-flow li:last-child,
  .debugging-guide article:last-child {
    grid-column: auto;
  }

  .scratch-section-heading {
    gap: 0.8rem;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .scratch-section-heading > span {
    height: 40px;
    width: 40px;
  }

  .scratch-script-card {
    padding: 0.8rem;
  }

  .scratch-script-meta {
    align-items: start;
    flex-direction: column;
    gap: 0.15rem;
  }

  body {
    font-size: 0.98rem;
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    height: 38px;
    width: 44px;
  }

  .brand-words strong {
    font-size: 1rem;
  }

  .brand-words small {
    font-size: 0.59rem;
  }

  .mobile-nav > summary {
    font-size: 0.72rem;
    padding: 0.5rem 0.55rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero,
  .page-hero {
    padding: 3.2rem 0 3rem;
  }

  .hero-copy,
  .lead,
  .section-intro {
    font-size: 1.04rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-tight {
    padding: 3rem 0;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .build-board {
    aspect-ratio: auto;
    min-height: 390px;
    padding: 1.3rem;
  }

  .board-mascot {
    bottom: -20px;
    height: 64px;
    left: -12px;
    width: 64px;
  }

  .board-state {
    bottom: 0.75rem;
    left: 4rem;
  }

  .code-block {
    font-size: 0.74rem;
  }

  .verb-grid,
  .program-grid,
  .project-grid,
  .feature-grid,
  .library-grid,
  .kernel-grid,
  .example-grid,
  .program-connection-grid,
  .theory-example-grid,
  .preview-system-grid,
  .build-learn-grid,
  .challenge-level-grid,
  .improvement-grid,
  .lab-pair-grid,
  .difficulty-browse,
  .blog-grid,
  .gallery-grid,
  .privacy-grid,
  .idea-translation-grid,
  .faq-grid,
  .principle-grid,
  .concept-grid,
  .mistake-grid,
  .program-appearance-grid,
  .related-grid,
  .curriculum-package-grid,
  .challenge-grid,
  .challenge-card-grid,
  .pseudo-block-grid,
  .publication-grid,
  .checkpoint-grid {
    grid-template-columns: 1fr;
  }

  .checkpoint-grid li:last-child {
    grid-column: auto;
  }

  .curriculum-hero {
    padding: 2.2rem 0 3.2rem;
  }

  .breadcrumbs {
    margin-bottom: 1.7rem;
  }

  .curriculum-meta div {
    grid-template-columns: 1fr;
  }

  .coordinate-point small {
    display: none;
  }

  .plot-point small {
    display: none;
  }

  .coordinate-plane {
    box-shadow: 5px 5px 0 var(--yellow);
  }

  .lesson-timeline li {
    gap: 0.4rem;
    grid-template-columns: 1fr;
  }

  .theory-table > div {
    gap: 0.5rem;
    grid-template-columns: 1fr auto;
  }

  .theory-table strong {
    grid-column: 1 / -1;
  }

  .parent-explanation-light {
    padding: 1.3rem;
  }

  .parent-explanation > p {
    font-size: 1.15rem;
  }

  .build-step-card {
    grid-template-columns: 42px 1fr;
    padding: 1rem;
  }

  .build-step-card dl {
    grid-template-columns: 1fr;
  }

  .build-step-number {
    height: 36px;
    width: 36px;
  }

  .build-step-checks {
    grid-column: 1 / -1;
  }

  .verb-grid {
    gap: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .project-card,
  .project-card-compact {
    min-height: 0;
  }

  .project-instrument {
    height: 72px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .project-instrument b {
    max-width: 68%;
  }

  .program-card:nth-child(even) .program-instrument,
  .blog-card:nth-child(even) .blog-card-instrument {
    margin-left: 0;
    transform: none;
  }

  .lab-transition,
  .lab-transition-mascot {
    gap: 0.65rem;
    grid-template-columns: auto minmax(38px, 1fr) auto;
    padding: 0.85rem;
  }

  .lab-transition-line {
    grid-column: 2;
    grid-row: 1;
  }

  .lab-transition p {
    grid-column: 1 / -1;
  }

  .lab-transition-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .lab-transition-code {
    grid-column: 1;
    grid-row: 1;
  }

  .lab-transition-mascot img {
    display: none;
  }

  .filter-links,
  .category-nav {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .filter-links a,
  .category-nav a {
    padding: 0.62rem 0.7rem;
  }

  .filter-links a + a,
  .category-nav a + a {
    border-left: 0;
    border-top: 1px dashed var(--line);
  }

  .page-hero-library::before,
  .section-trace::after {
    display: none;
  }

  .section-trace::before {
    left: 1.1rem;
    right: auto;
  }

  .parent-callout {
    padding: 1.5rem;
  }

  .parent-callout blockquote {
    font-size: 1.45rem;
  }

  .location-strip,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .map-pin {
    height: 70px;
    width: 70px;
  }

  .direction-path,
  .topic-path,
  .sense-diagram {
    grid-template-columns: 1fr;
  }

  .direction-step + .direction-step::before,
  .sense-diagram div + div::before {
    display: none;
  }

  .topic-path li {
    min-height: 72px;
  }

  .pathway {
    grid-template-columns: 1fr;
  }

  .pathway li:last-child {
    grid-column: auto;
  }

  .lab-list {
    columns: 1;
  }

  .manifesto-line {
    font-size: 1.6rem;
  }

  .contact-card {
    padding: 1.3rem;
  }

  .contact-detail {
    gap: 0.3rem;
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-science {
    border-left: 0;
    border-top: 1px solid #42423e;
    padding-left: 0;
    padding-top: 1.4rem;
  }

  .curriculum-route,
  .metadata-strip,
  .law-list {
    grid-template-columns: 1fr;
  }

  .metadata-strip div + div,
  .metadata-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .article-header h1 {
    font-size: 2.5rem;
  }

  .article-layout {
    padding-top: 2.5rem;
  }

  .coordinate-plane .origin {
    font-size: 0.57rem;
  }
}

@media (min-width: 381px) and (max-width: 640px) {
  .filter-links,
  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-links a,
  .category-nav a {
    align-items: center;
    display: flex;
    min-height: 54px;
  }

  .filter-links a + a,
  .category-nav a + a {
    border-left: 1px dashed var(--line);
  }

  .filter-links a:nth-child(odd),
  .category-nav a:nth-child(odd) {
    border-left: 0;
  }

  .filter-links a:nth-child(2),
  .category-nav a:nth-child(2) {
    border-top: 0;
  }

  .filter-links a:last-child:nth-child(odd),
  .category-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 10pt;
  }

  body::before,
  .site-header,
  .site-footer,
  .project-contents,
  .download-card .button,
  .hero-status-line,
  .board-mascot,
  .board-state,
  .lab-transition,
  .program-instrument,
  .project-instrument,
  .blog-card-instrument,
  .section-trace::before,
  .section-trace::after,
  .page-hero-library::before {
    display: none !important;
  }

  .section,
  .curriculum-hero {
    background: white !important;
    color: black !important;
    padding: 1.2rem 0;
  }

  .container {
    max-width: none;
  }

  .scratch-code-section {
    break-before: page;
  }

  .scratch-script-card,
  .download-card,
  .project-artwork img,
  .system-sketch img,
  .program-card,
  .project-card,
  .library-card,
  .blog-card {
    box-shadow: none;
    break-inside: avoid;
    min-height: 0;
  }

  .scratchblocks-scroll {
    overflow: visible;
  }

  .scratchblocks-scroll svg {
    height: auto;
    max-width: 100% !important;
  }

  .scratch-source-copy > summary {
    display: none;
  }

  .scratch-source-copy > pre {
    display: block !important;
    overflow: visible;
    white-space: pre-wrap;
  }

  a {
    color: black;
    text-decoration: none;
  }
}
