@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-semibold.woff") format("woff");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-semibold.woff") format("woff");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --paper: #f5f3ec;
  --ink: #182229;
  --muted: #53616a;
  --surface: #eae7de;
  --deep: #17262d;
  --accent: #f7c84a;
  --line: #d6d4ca;
  --content: 75rem;
  --margin: clamp(1.2rem, 4.3vw, 4.2rem);
  --light: #fffdf5;
  --small: .875rem;
  --body: 1rem;
  --lead: clamp(1.125rem, 1rem + .38vw, 1.375rem);
  --h2: clamp(2rem, 1.55rem + 1.85vw, 3.5rem);
  --hero: clamp(3.7rem, 2rem + 5.52vw, 7.25rem);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 var(--body)/1.58 Barlow, Arial, sans-serif;
}
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.05; }
h1, .section-heading h2, .article-body h2 {
  font-family: "Barlow Condensed", Barlow, Arial, sans-serif;
  font-weight: 600;
}
h1, h2 { letter-spacing: -.055em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--lead); letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: .18rem solid #287b99; outline-offset: .3rem; }
[hidden] { display: none !important; }
.wrap { width: min(var(--content), 100% - 2 * var(--margin)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .8rem 1rem;
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-170%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); }
.header-row {
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: min(4vw, 3rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  width: fit-content;
  color: inherit;
  font-size: var(--body);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand-mark {
  width: 2.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--deep);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 0 100%);
}
.brand-mark i {
  width: .98rem;
  height: 1.48rem;
  background: currentColor;
  clip-path: polygon(57% 0, 0 56%, 43% 56%, 31% 100%, 100% 37%, 55% 37%);
}
.site-nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(.8rem, 1.7vw, 1.6rem); align-items: baseline; }
.site-nav a, .site-footer nav a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current], .site-footer nav a:hover { text-decoration: underline; }
.header-cta { justify-self: end; }
.button {
  min-height: 3.25rem;
  width: fit-content;
  display: inline-flex;
  justify-content: space-between;
  gap: .9rem;
  align-items: center;
  padding: .68rem 1.15rem;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - .5rem) 0, 100% .5rem, 100% 100%, 0 100%);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms, transform 160ms;
}
.button:hover { background: #ffda70; }
.button:focus-visible { outline: 0; box-shadow: inset 0 0 0 .22rem #155873; }
.button:active { transform: translateY(2px); }
.button--small { min-height: 2.65rem; padding: .54rem .85rem; font-size: var(--small); }
.button--dark { background: var(--deep); color: var(--light); }
.button--dark:hover { background: #30444d; }
.button--quiet { color: var(--ink); background: var(--surface); }
.button--quiet:hover { background: var(--line); }
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  width: fit-content;
  font-weight: 750;
  text-decoration: underline;
}

.home-hero {
  background: var(--deep);
  color: var(--light);
  overflow: hidden;
}
.hero-grid {
  min-height: 36rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5.2vw, 5.4rem);
  align-items: center;
  padding-block: clamp(3.1rem, 5vw, 5.3rem);
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  font-size: var(--hero);
  line-height: .9;
  letter-spacing: -.031em;
}
.hero-copy > p {
  max-width: 30rem;
  font-size: var(--lead);
  line-height: 1.48;
  margin-top: 1.65rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .9rem 1.5rem; margin-top: 1.9rem; }
.home-hero :focus-visible { outline-color: #a1e2f7; }
.hero-instrument { position: relative; isolation: isolate; }
.hero-instrument::before {
  content: '';
  z-index: -1;
  position: absolute;
  background: #344750;
  inset: 1.15rem -1.15rem -1.15rem 1.15rem;
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}
.spot-check {
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}
.instrument-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .45rem .8rem;
  padding: .85rem 2.2rem .85rem 1.3rem;
  background: var(--accent);
}
.instrument-top h2 { font-size: var(--body); letter-spacing: -.025em; }
.instrument-top > span { font-size: var(--small); }
.instrument-body { padding: 1.3rem; }
.circuit {
  height: clamp(8.2rem, 13vw, 11.4rem);
  position: relative;
  isolation: isolate;
  background: #293b43;
  color: #fff7db;
  font-weight: 700;
  font-size: var(--small);
  --wire: #b9cfca;
}
.wire { position: absolute; inset-inline: 17%; height: 29%; border: 2px solid var(--wire); }
.wire-top { top: 20%; border-bottom: 0; }
.wire-bottom { bottom: 24%; border-top: 0; }
.source-terminal, .load-terminal {
  position: absolute;
  top: 49%;
  transform: translate(-50%, -50%);
  background: #293b43;
  padding-block: .25rem;
}
.source-terminal { left: 17%; display: grid; align-items: center; justify-items: center; gap: .1rem; line-height: 1; }
.source-terminal i { width: 1.45rem; height: .5rem; border-block: .14rem solid var(--wire); }
.load-terminal { left: 83%; width: 1.35rem; display: grid; justify-items: center; }
.load-terminal i {
  width: .86rem;
  height: 2rem;
  background: var(--accent);
  clip-path: polygon(38% 0, 59% 0, 59% 12%, 100% 21%, 30% 36%, 96% 51%, 27% 68%, 91% 82%, 57% 93%, 57% 100%, 36% 100%, 36% 86%, 55% 82%, 0 68%, 65% 51%, 3% 36%, 71% 21%, 38% 15%);
}
.source-label, .load-label { position: absolute; bottom: 3%; }
.source-label { left: 17%; transform: translateX(-50%); }
.load-label { left: 83%; white-space: nowrap; transform: translateX(-50%); }
.meter {
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  padding: .27rem .64rem;
  border: .13rem solid var(--wire);
  background: #122027;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.meter > span { display: inline-block; min-width: 1.25ch; text-align: right; }
.meter > small { font-size: var(--small); }
.problem-prompt { margin-top: 1.1rem; font-weight: 700; line-height: 1.42; }
.warmup-options {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  margin-top: .9rem;
}
.is-interactive .warmup-options { display: grid; }
.warmup-options button {
  color: var(--ink);
  background: var(--surface);
  border: 2px solid transparent;
  min-height: 2.65rem;
  padding: .3rem;
  font-weight: 750;
}
.warmup-options button:hover { background: #e0dccf; }
.warmup-options button[data-result='correct'] { border-color: #326449; background: #e2eddf; }
.warmup-options button[data-result='incorrect'] { border-color: #995329; background: #f8e7d5; }
.warmup-feedback { margin-top: .4rem; line-height: 1.3; font-size: var(--small); }
.warmup-feedback:empty { display: none; }
.warmup-answer { margin-top: .7rem; }
.warmup-answer summary { width: fit-content; font-size: var(--small); font-weight: 750; }
.warmup-answer p { margin-top: .3rem; font-size: var(--small); }
.instrument-body :focus-visible { outline-color: #155873; }

.block { padding-block: clamp(3.9rem, 6.1vw, 6.7rem); }
.home-guides { background: var(--surface); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.15rem 1.75rem;
  margin-bottom: clamp(1.55rem, 3vw, 3rem);
}
.section-heading p {
  margin-top: .65rem;
  font-size: var(--lead);
}
.section-heading > a { flex: 0 0 auto; }
.state-index, .guide-menu { margin: 0; padding: 0; list-style: none; }
.state-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.1rem, 4vw, 4rem);
}
.state-index li { min-width: 0; }
.state-index a {
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.7rem, 1.6vw, 1.2rem);
  border-top: 1px solid var(--line);
  padding: .8rem .35rem .8rem 0;
  text-decoration: none;
}
.state-index a:hover { background: var(--surface); }
.state-index a:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.state-abbr {
  display: grid;
  place-items: center;
  width: 2.9rem;
  aspect-ratio: 1.1;
  background: var(--surface);
  font-size: var(--small);
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - .45rem) 0, 100% .45rem, 100% 100%, 0 100%);
}
.state-index a:hover .state-abbr { background: var(--accent); }
.state-text { display: grid; gap: .1rem; line-height: 1.25; }
.state-text strong { font-size: var(--lead); letter-spacing: -.03em; }
.state-text > span { color: var(--muted); }
.state-index a > span:last-child { font-size: 1.38rem; line-height: 1; }

.guide-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); }
.guide-menu li { min-width: 0; }
.guide-menu a { display: block; text-decoration: none; }
.guide-menu a:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: .18em; }
.guide-art {
  min-height: clamp(6rem, 14vw, 11rem);
  display: grid;
  align-items: center;
  justify-items: center;
  background: #293b43;
  color: var(--light);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - .85rem) 0, 100% .85rem, 100% 100%, 0 100%);
}
.guide-art > div { transition: transform 160ms ease-out; }
.guide-menu a:hover .guide-art > div { transform: translateY(-4px); }
.guide-art--schedule { background: #d7d7cc; color: var(--deep); }
.guide-art--current { background: var(--accent); color: var(--deep); }
.art-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; align-items: end; }
.art-tabs i {
  padding: .35rem .48rem 1.1rem;
  background: var(--paper);
  color: var(--deep);
  font-size: var(--lead);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - .35rem) 0, 100% .35rem, 100% 100%, 0 100%);
}
.art-tabs i:nth-child(2) { padding-bottom: 1.65rem; }
.art-tabs i:nth-child(3) { padding-bottom: 2.2rem; background: var(--accent); }
.art-equation { display: flex; align-items: baseline; gap: .38em; font-size: var(--h2); line-height: 1; font-weight: 800; }
.art-equation strong { border-block-end: .13em solid var(--ink); display: inline-block; }
.art-checklist { display: grid; gap: .25rem; font-size: var(--small); font-weight: 750; }
.art-checklist > span { display: flex; align-items: center; gap: .5rem; }
.art-checklist > span::before {
  content: '';
  display: block;
  width: .6rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
}
.art-checklist > span:first-child::before { background: var(--deep); }
.guide-card-text { position: relative; padding: 1.1rem 1.6rem 0 0; }
.guide-card-text :is(h2, h3) { font-size: var(--lead); letter-spacing: -.025em; }
.guide-card-text > p { margin-top: .55rem; }
.guide-card-text > span { position: absolute; top: .95rem; right: 0; font-size: 1.4rem; line-height: 1; }

.practice-banner { background: var(--accent); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.practice-banner-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem 3rem;
}
.practice-banner-grid p { font-size: var(--lead); margin-top: .7rem; }

.breadcrumb { margin-top: 1.2rem; color: var(--muted); font-size: var(--small); }
.breadcrumb ol { display: flex; gap: .25rem .7rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '/'; padding-right: .7rem; }
.page-heading {
  padding-block: clamp(2.3rem, 5.2vw, 4.6rem) clamp(1.7rem, 4vw, 3.7rem);
}
.page-heading h1 {
  max-width: 14ch;
  font-size: clamp(3.1rem, 1.6rem + 5.5vw, 7rem);
  letter-spacing: -.03em;
  line-height: .94;
}
.page-heading p { max-width: 53ch; font-size: var(--lead); margin-top: 1.05rem; }
.directory-page .state-index a { min-height: 6rem; }
.directory-note {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-block: clamp(2.4rem, 5vw, 4.5rem) clamp(3.2rem, 7vw, 7rem);
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--surface);
}
.directory-note p { max-width: 55ch; }
.article-heading h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.1rem + 5vw, 5.4rem);
}
.article-heading p.review-date { font-size: var(--small); color: var(--muted); }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(13rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.article-body { min-width: 0; }
.article-body > * + * { margin-top: clamp(2.25rem, 5vw, 4rem); }
.article-body h2 { font-size: clamp(1.6rem, 1.15rem + 1.25vw, 2.4rem); letter-spacing: -.045em; }
.article-body p, .article-body li { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); }
.article-body p { margin-top: .85rem; }
.article-body ul { padding-inline-start: 1.35rem; margin: .85rem 0 0; }
.article-body li + li { margin-top: .55em; }
.article-section, .source-panel, .article-exercise { scroll-margin-top: 1rem; }
.decision-panel, .article-exercise { padding: clamp(1.15rem, 3vw, 2.2rem); }
.decision-panel { background: var(--accent); }
.article-exercise { background: var(--surface); }
.article-exercise details {
  margin-top: 1rem;
  border-top: 1px solid #c9c6b9;
  padding-top: .85rem;
}
.article-exercise summary { width: fit-content; font-weight: 800; }
.article-side > div { position: sticky; top: 1.3rem; }
.article-side h2 { margin-bottom: .8rem; font-size: var(--lead); letter-spacing: -.025em; }
.article-side ul { display: grid; gap: .5rem; padding: 0; list-style: none; font-size: var(--small); }
.article-side .button { margin-top: .65rem; }
.article-side .guide-art { margin-bottom: 1.45rem; }
.article-end {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .8rem 2rem;
  padding-block: 2.5rem clamp(3.2rem, 7vw, 7rem);
}
.missing-page { padding-bottom: 6rem; }
.information-article { max-width: 48rem; padding-bottom: 5rem; }
.information-article section + section { margin-top: 2.5rem; }
.publisher-nav { margin-top: 1.75rem; padding-top: 1.3rem; border-top: 1px solid #415158; font-size: .9rem; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 1.5rem; }
.fact-list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-size: .875rem; color: var(--muted); }
.fact-list dd { font-size: 1.05rem; margin: .3rem 0 0; font-weight: 600; }
.next-step { margin: 1.5rem 0 0; padding: 1.4rem; border: 1px solid var(--line); }
.next-step h2 { margin-bottom: .8rem; }
.next-step .button { margin-top: 1rem; }
.section-sources { font-size: .85rem; line-height: 1.5; margin-top: .8rem; color: var(--muted); }
.section-sources a { display: inline; }
.tool-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0 0 4rem; list-style: none; gap: 1.5rem; }
.tool-index li { border-top: 4px solid var(--accent); background: var(--surface); padding: 1.5rem; }
.tool-index h2 { font-size: 1.7rem; }
.tool-index p { margin-block: .9rem 1.1rem; }
.learning-loop { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; padding: 0; margin-top: 1.75rem; list-style: none; }
.learning-loop h3 { margin-bottom: .8rem; }
.learning-loop a { display: inline-block; margin-top: .8rem; }

.site-footer { background: var(--deep); color: var(--light); padding-block: 2.5rem 1.2rem; }
.footer-main { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1rem; }
.footer-main p { max-width: 32ch; margin-top: .85rem; font-size: var(--small); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.6rem; }
.footer-wordmark {
  color: var(--accent);
  font-size: clamp(1.55rem, 7.7vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: .93;
  padding-top: 2rem;
}

@media (max-width: 58rem) {
  .header-row { grid-template-columns: 1fr auto; gap: .8rem 1rem; padding-block: .85rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; }
  .hero-copy h1 { font-size: clamp(3rem, 1.4rem + 5.6vw, 5.5rem); }
  .hero-grid { min-height: 31rem; gap: 1.6rem; }
  .hero-actions { gap: .75rem 1.05rem; }
  .instrument-body { padding: 1rem; }
  .guide-card-text { padding-right: 1.15rem; }
}
@media (max-width: 45rem) {
  .tool-index, .learning-loop { grid-template-columns: 1fr; }
  .header-row { grid-template-columns: 1fr auto; gap: .8rem 1rem; padding-block: .85rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; padding-block: .15rem; }
  .site-nav a { padding-block: .35rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; padding-block: 2.7rem 3.5rem; }
  .hero-copy h1 { font-size: clamp(3.15rem, 9.9vw, 5rem); }
  .hero-copy > p { margin-top: 1.05rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-instrument { margin-right: .65rem; }
  .hero-instrument::before { inset: .65rem -.65rem -.65rem .65rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .article-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-side { border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .article-side .guide-art { display: none; }
  .article-side > div { position: static; }
}
@media (max-width: 34rem) {
  .fact-list { grid-template-columns: 1fr; }
  .state-index { grid-template-columns: minmax(0, 1fr); }
  .state-index a, .directory-page .state-index a { min-height: 4.9rem; }
  .guide-menu { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .guide-menu a { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: .8rem; align-items: stretch; }
  .art-tabs { gap: .15rem; }
  .art-tabs i { font-size: var(--small); padding-inline: .25rem; }
  .art-equation { font-size: 1.37rem; gap: .23em; }
  .art-checklist { font-size: .75rem; line-height: 1.2; }
  .art-checklist > span { gap: .3rem; }
  .art-checklist > span::before { width: .35rem; }
  .guide-card-text { padding-top: .15rem; }
  .guide-card-text > span { top: .25rem; }
  .guide-card-text > p { line-height: 1.38; }
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 23rem) {
  .site-nav a { font-size: var(--small); }
  .hero-copy h1 { font-size: 3rem; }
  .instrument-top { padding-left: 1rem; }
  .header-cta { font-size: .8rem; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
