:root {
  color-scheme: light;
  --concrete: #e7e9e5;
  --paper: #fcfbf6;
  --ink: #11191d;
  --muted: #566166;
  --navy: #17324d;
  --blue: #1769aa;
  --orange: #c9452e;
  --teal: #267d70;
  --yellow: #f2c84b;
  --line: #aeb6b4;
  --display: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --measure: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  min-height: 2.75rem;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.19em;
}

a:hover {
  text-decoration-thickness: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-130%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(var(--measure) + 4rem);
  padding: 1rem 2rem;
}

.site-header {
  border-bottom: 1px solid var(--ink);
  min-height: 4.5rem;
}

.site-header nav {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.maker {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 800;
  height: 2.75rem;
  justify-content: center;
  text-decoration: none;
  width: 2.75rem;
}

.language {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  text-decoration: none;
}

main {
  overflow: clip;
}

section,
.hero {
  margin: 0 auto;
  max-width: var(--measure);
}

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(3rem, 8vw, 7.5rem) 2rem 4.5rem;
}

.hero-copy {
  align-self: start;
}

.eyebrow,
.section-number,
.trust,
.edition {
  font-family: var(--mono);
  font-size: clamp(0.71rem, 1.2vw, 0.82rem);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.eyebrow {
  border-left: 0.6rem solid var(--yellow);
  margin: 0 0 1.4rem;
  padding-left: 0.8rem;
}

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

h1,
h2,
.large-statement,
.correction-number {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.97;
}

h1 {
  font-size: clamp(3.1rem, 5.2vw, 5.2rem);
  margin-bottom: 1.6rem;
  max-width: 13ch;
}

h1 span:first-of-type {
  color: var(--navy);
}

h1 span:last-of-type {
  color: var(--orange);
}

.deck {
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.42;
  max-width: 43rem;
}

.trust {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 48rem;
}

.national-counts {
  align-self: end;
  border: 2px solid var(--ink);
  box-shadow: 0.65rem 0.65rem 0 var(--yellow);
}

.count {
  background: var(--paper);
  display: grid;
  padding: 1.3rem 1.45rem 1.15rem;
}

.count + .count {
  border-top: 2px solid var(--ink);
}

.count strong {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.count span {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.65rem;
  text-transform: uppercase;
}

.count-device strong {
  color: var(--navy);
}

.count-evse strong {
  color: var(--orange);
}

.national-counts > p {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  margin: 0;
  padding: 1rem 1.45rem;
}

.lens-section,
.reason-section,
.series-section,
.correction-section,
.checklist-section,
.method-section {
  border-top: 1px solid var(--ink);
  padding: clamp(4rem, 8vw, 7.5rem) 2rem;
}

.section-intro {
  display: grid;
  gap: 1rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.55fr);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-number {
  color: var(--muted);
  grid-column: 1 / -1;
  margin-bottom: 0;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  margin-bottom: 0;
  max-width: 16ch;
}

.section-intro > p:last-child {
  align-self: end;
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 37rem;
}

.lens-shell {
  background: var(--paper);
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 0.66fr);
}

.unit-form {
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.unit-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.unit-form legend {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.unit-form label {
  cursor: pointer;
  display: block;
  position: relative;
}

.unit-form input {
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 1px;
}

.unit-form label span {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.8rem;
  min-height: 3.75rem;
  padding: 0.55rem;
}

.unit-form label:last-of-type span {
  border-bottom: 1px solid var(--line);
}

.unit-form label span::after {
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 0.9rem;
  margin-left: auto;
  width: 0.9rem;
}

.unit-form input:checked + span {
  background: var(--yellow);
  font-weight: 800;
}

.unit-form input:checked + span::after {
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--yellow);
}

.unit-form label b {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
}

.unit-form button {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: 700 0.8rem var(--mono);
  margin-top: 2rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  text-transform: uppercase;
}

.unit-form button:hover {
  background: var(--ink);
  color: var(--paper);
}

.counting-lens {
  margin: 0;
  min-width: 0;
  padding: clamp(0.7rem, 2vw, 1.5rem);
}

.counting-lens svg {
  display: block;
  height: auto;
  max-height: 39rem;
  width: 100%;
}

.counting-lens text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
}

.bay-lines path {
  fill: none;
  stroke: var(--line);
  stroke-width: 5;
}

.bay-lines .bay-dash {
  stroke-dasharray: 12 12;
  stroke-width: 2;
}

.lens-location rect {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 6;
}

.lens-device rect {
  fill: var(--navy);
  stroke: var(--ink);
  stroke-width: 3;
}

.lens-device text,
.lens-evse text {
  fill: var(--paper);
}

.lens-evse rect {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 2;
}

.evse-b1 rect,
.evse-b2 rect {
  fill: var(--teal);
}

.cables path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 8;
}

.lens-connector circle {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 4;
}

.has-js .counting-lens [class^="lens-"] {
  opacity: 0.2;
  transition: opacity 180ms ease, filter 180ms ease;
}

.has-js .counting-lens[data-unit="location"] .lens-location,
.has-js .counting-lens[data-unit="device"] .lens-device,
.has-js .counting-lens[data-unit="evse"] .lens-evse,
.has-js .counting-lens[data-unit="connector"] .lens-connector {
  filter: drop-shadow(0 0 8px rgb(242 200 75 / 0.8));
  opacity: 1;
}

.counting-lens figcaption {
  align-items: baseline;
  border-top: 1px solid var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0.4rem 0.2rem;
}

.counting-lens output {
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.counting-lens figcaption span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  max-width: 18rem;
  text-align: right;
}

.definition-ledger {
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
}

.definition-ledger article {
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  padding: 1.3rem;
}

.definition-ledger article:last-child {
  border-right: 1px solid var(--ink);
}

.definition-ledger span,
.reading-checklist span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.definition-ledger h3 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin: 0.6rem 0;
}

.definition-ledger p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

.reason-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: 1.15fr 0.6fr;
}

.large-statement {
  font-size: clamp(3rem, 6vw, 6rem);
  margin-bottom: 0;
}

.large-statement em {
  color: var(--orange);
  font-style: normal;
}

.boundary-note {
  align-self: end;
  background: var(--navy);
  color: var(--paper);
  padding: 1.6rem;
}

.boundary-note h3 {
  color: var(--yellow);
  font-family: var(--display);
  font-size: 1.65rem;
}

.boundary-note p {
  margin-bottom: 0;
}

.section-handoff {
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 3rem 0 0 auto;
  max-width: 34rem;
  padding-top: 1rem;
  text-transform: uppercase;
}

.series-section {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
}

.series-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--measure);
}

.series-section .section-number,
.series-section .section-intro > p:last-child {
  color: #c8cfcc;
}

.series-track {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr minmax(8rem, 0.32fr) 1fr;
}

.track-before,
.track-after {
  border: 2px solid var(--paper);
  display: grid;
  min-height: 13rem;
  padding: 1.4rem;
}

.track-before span,
.track-after span {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.track-before strong,
.track-after strong {
  align-self: end;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.track-before strong {
  color: #90a8c0;
}

.track-after strong {
  color: var(--orange);
}

.track-break {
  align-items: center;
  color: var(--yellow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  text-align: center;
}

.track-break i {
  border-top: 2px dashed var(--yellow);
}

.track-break b {
  font: 700 0.72rem/1.2 var(--mono);
  padding: 0.5rem;
  text-transform: uppercase;
}

.correction-section {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: 0.7fr 1fr;
}

.correction-number {
  color: var(--orange);
  font-size: clamp(5rem, 12vw, 10.5rem);
  white-space: nowrap;
}

.correction-section h2 {
  margin-bottom: 1.3rem;
}

.correction-section > div:last-child > p:last-child {
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 42rem;
}

.reading-checklist {
  border-bottom: 1px solid var(--ink);
  list-style: none;
  margin: 0;
  padding: 0;
}

.reading-checklist li {
  align-items: baseline;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem 1fr;
  padding: 1.25rem 0;
}

.reading-checklist p {
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  margin-bottom: 0;
}

.method-section {
  background: var(--paper);
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.65fr);
  max-width: none;
}

.method-section > div:first-child {
  justify-self: end;
  max-width: 32rem;
}

.method-copy {
  max-width: 39rem;
}

.method-copy h3 {
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 1.8rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
}

.method-copy li + li {
  margin-top: 0.6rem;
}

.edition {
  color: var(--muted);
  margin-top: 2.3rem;
}

.site-footer {
  border-top: 1px solid var(--ink);
  min-height: 7rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (min-width: 821px) {
  .hero {
    padding-bottom: 3rem;
    padding-top: 5rem;
  }

  html[lang="ro"] h1 {
    max-width: 15ch;
  }
}

@media (max-width: 820px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: 3rem;
  }

  .national-counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2rem 0 0;
  }

  .national-counts > p {
    grid-column: 1 / -1;
  }

  .count + .count {
    border-left: 2px solid var(--ink);
    border-top: 0;
  }

  .section-intro,
  .reason-grid,
  .correction-section,
  .method-section {
    grid-template-columns: 1fr;
  }

  .method-section > div:first-child {
    justify-self: start;
  }

  .lens-shell {
    grid-template-columns: 1fr;
  }

  .unit-form {
    border-bottom: 2px solid var(--ink);
    border-right: 0;
  }

  .unit-form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .unit-form legend {
    grid-column: 1 / -1;
  }

  .unit-form label:nth-of-type(even) span {
    border-left: 1px solid var(--line);
  }

  .definition-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .definition-ledger article:nth-child(even) {
    border-right: 1px solid var(--ink);
  }

  .series-track {
    grid-template-columns: 1fr;
  }

  .track-break {
    grid-template-columns: 1fr auto 1fr;
    min-height: 6rem;
  }

  .correction-number {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header nav {
    gap: 0.7rem;
  }

  .hero,
  .lens-section,
  .reason-section,
  .series-section,
  .correction-section,
  .checklist-section,
  .method-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(2.35rem, 9.8vw, 3.4rem);
  }

  .deck {
    font-size: 1rem;
  }

  .national-counts {
    box-shadow: 0.4rem 0.4rem 0 var(--yellow);
  }

  .count {
    padding: 1rem 0.75rem;
  }

  .count strong {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .count span {
    font-size: 0.63rem;
  }

  .unit-form {
    padding: 0.8rem;
  }

  .unit-form label span {
    font-size: 0.8rem;
    gap: 0.4rem;
    min-height: 3.25rem;
    padding: 0.35rem;
  }

  .unit-form label b {
    font-size: 1.45rem;
  }

  .counting-lens {
    padding: 0.25rem;
  }

  .counting-lens figcaption {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem;
  }

  .counting-lens figcaption span {
    text-align: left;
  }

  .definition-ledger {
    grid-template-columns: 1fr;
  }

  .definition-ledger article {
    border-right: 1px solid var(--ink);
  }

  .track-before,
  .track-after {
    min-height: 10rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header nav,
  .unit-form button {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .lens-section,
  .reason-section,
  .series-section,
  .correction-section,
  .checklist-section,
  .method-section {
    break-inside: avoid;
  }
}
