:root {
  --paper: #f8f3e9;
  --paper-deep: #ede4d5;
  --surface: #fffdf8;
  --ink: #12233f;
  --ink-soft: #46536a;
  --line: #d8cfbf;
  --coral: #d84f3f;
  --coral-dark: #a93429;
  --yellow: #f1be4d;
  --teal: #167d78;
  --blue: #285ea8;
  --shadow: 0 18px 55px rgb(18 35 63 / 9%);
  --content: 1180px;
  --reading: 720px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--coral-dark);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 3px;
}

::selection {
  color: var(--ink);
  background: #f8d998;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

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

.reading-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(18 35 63 / 12%);
  background: rgb(248 243 233 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--content));
  min-height: 4.75rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 29px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
}

.brand-mark i {
  display: block;
  border: 2px solid var(--ink);
  background: var(--surface);
}

.brand-mark i:nth-child(1) {
  height: 18px;
}

.brand-mark i:nth-child(2) {
  height: 24px;
  border-color: var(--coral);
  background: var(--coral);
}

.brand-mark i:nth-child(3) {
  height: 29px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--coral-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle > span[aria-hidden] {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  display: grid;
  width: min(calc(100% - 2rem), var(--content));
  min-height: 650px;
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--line);
}

.hero h1,
.prose h1,
.not-found h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1::after {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--coral);
}

.hero-lead {
  max-width: 680px;
  margin: 1.8rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  margin-top: 2rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--coral);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: var(--coral-dark);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: var(--coral);
}

.hero-note {
  max-width: 590px;
  margin: 2.2rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--yellow);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.storyboard {
  position: relative;
  min-height: 440px;
}

.frame {
  position: absolute;
  width: min(78%, 330px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--yellow);
}

.frame span {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.frame i {
  position: absolute;
  width: 52%;
  height: 70%;
  right: -8%;
  bottom: -12%;
  border-radius: 50% 50% 0 0;
  background: var(--teal);
  transform: rotate(-12deg);
}

.frame b {
  position: absolute;
  width: 42%;
  height: 18%;
  right: 28%;
  bottom: 23%;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  transform: rotate(-9deg);
}

.frame-one {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}

.frame-two {
  right: 0;
  bottom: 1.8rem;
  box-shadow: -12px 12px 0 var(--coral);
  transform: rotate(3deg);
}

.frame-two i {
  right: -2%;
  background: var(--blue);
  transform: rotate(6deg);
}

.frame-two b {
  right: 32%;
  bottom: 28%;
  background: var(--yellow);
  transform: rotate(0);
}

.motion-line {
  position: absolute;
  z-index: 4;
  top: 44%;
  left: 36%;
  display: flex;
  gap: 0.4rem;
  transform: rotate(17deg);
}

.motion-line i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.motion-line i:nth-child(2) {
  opacity: 0.65;
}

.motion-line i:nth-child(3) {
  opacity: 0.3;
}

.storyboard-label {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  background: var(--yellow);
  font-family: Georgia, serif;
  font-size: 0.94rem;
  font-style: italic;
  transform: rotate(-2deg);
}

.truth-strip {
  display: grid;
  border-block: 1px solid var(--line);
  background: var(--surface);
  grid-template-columns: repeat(3, 1fr);
}

.truth-strip div {
  min-width: 0;
  padding: 1.7rem max(1rem, calc((100vw - var(--content)) / 2));
}

.truth-strip div:first-child {
  padding-left: max(1rem, calc((100vw - var(--content)) / 2));
}

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

.truth-strip span,
.truth-strip strong {
  display: block;
}

.truth-strip span {
  margin-bottom: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.truth-strip strong {
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

.routes,
.method,
.home-accuracy {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.routes {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 4rem;
}

.section-intro h2,
.method h2,
.home-accuracy h2,
.utility-prose h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-intro > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.cluster {
  display: grid;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.cluster-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cluster-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cluster-heading p:last-child {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.route-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.cluster-text .route-number {
  background: var(--yellow);
}

.cluster-anonymous .route-number {
  color: white;
  background: var(--teal);
}

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

.article-card {
  display: flex;
  min-height: 240px;
  padding: 1.25rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 transparent;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article-card:hover {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.card-type {
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 1rem 0;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.card-action {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 800;
}

.method {
  display: grid;
  padding: clamp(3rem, 7vw, 6rem);
  border-radius: 4px;
  color: white;
  background: var(--ink);
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.method .eyebrow {
  color: #f8d998;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  grid-template-columns: 42px 1fr;
  gap: 1rem;
}

.method-steps li:first-child {
  padding-top: 0;
}

.method-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  color: #f8d998;
  font-family: Georgia, serif;
}

.method-steps strong {
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.method-steps p {
  margin: 0.3rem 0 0;
  color: rgb(255 255 255 / 75%);
  font-size: 0.93rem;
}

.home-accuracy {
  display: grid;
  margin-block: clamp(4rem, 8vw, 7rem);
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-left: 8px solid var(--coral);
  border-radius: var(--radius);
  background: var(--surface);
  grid-template-columns: 1fr 1.15fr auto;
  align-items: center;
  gap: 2rem;
}

.home-accuracy h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.home-accuracy > p {
  color: var(--ink-soft);
}

.main-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.breadcrumbs {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.breadcrumbs li {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: #958b7b;
}

.breadcrumbs a {
  min-height: 30px;
  color: var(--ink-soft);
}

.breadcrumbs span {
  display: inline-block;
  max-width: 64ch;
}

.article-layout {
  display: grid;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(0, var(--reading)) minmax(220px, 280px);
  justify-content: space-between;
  gap: clamp(2rem, 7vw, 7rem);
}

.prose {
  min-width: 0;
  color: #26344b;
  font-size: 1.04rem;
}

.prose h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.8vw, 4.7rem);
  line-height: 1.02;
}

.prose h2 {
  margin: 3.4rem 0 1rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
  scroll-margin-top: 6.5rem;
  text-wrap: balance;
}

.prose h3 {
  margin: 2.3rem 0 0.8rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.prose p {
  margin: 1rem 0;
}

.prose .lead {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.6;
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 1.2rem 0;
  padding-left: 1.35rem;
}

.prose li {
  margin: 0.55rem 0;
  padding-left: 0.35rem;
}

.prose li::marker {
  color: var(--coral-dark);
  font-weight: 800;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.35rem;
  border: 0;
  border-left: 5px solid var(--yellow);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(18 35 63 / 5%);
  font-family: Georgia, serif;
  font-size: 1.08rem;
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: var(--paper-deep);
  font-size: 0.88em;
}

.prose a {
  overflow-wrap: anywhere;
}

.external-mark {
  margin-left: 0.2em;
  font-size: 0.75em;
  text-decoration: none;
}

.heading-anchor {
  display: inline-block;
  min-width: 30px;
  min-height: 30px;
  margin-left: 0.35rem;
  color: var(--coral);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.55em;
  line-height: 30px;
  text-decoration: none;
  vertical-align: middle;
  opacity: 0;
}

.prose h2:hover .heading-anchor,
.prose h2:focus-within .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.accuracy-note {
  margin: 2rem 0 2.5rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid #d5b46b;
  border-radius: 10px;
  color: #4e401f;
  background: #fff5d9;
  font-size: 0.89rem;
}

.accuracy-note strong {
  display: block;
  color: #483811;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accuracy-note p {
  margin: 0.25rem 0 0;
}

.updated {
  margin: 1rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.table-wrap {
  max-width: 100%;
  margin: 1.6rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--paper-deep);
}

tr:last-child td {
  border-bottom: 0;
}

.article-rail {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail-block {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.rail-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.rail-block h2 {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0.4rem 0;
}

.toc a,
.rail-link {
  display: block;
  min-height: 32px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.rail-link:hover {
  color: var(--coral-dark);
}

.rail-link {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--line);
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

.rail-link span {
  display: block;
  color: var(--coral-dark);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-link.compact {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.next-step {
  margin-top: 4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.next-step h2 {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
}

.utility-main {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.utility-prose {
  max-width: var(--reading);
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
}

.utility-prose h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.8vw, 4.7rem);
}

.contact-panel {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 10px;
  background: var(--surface);
}

.contact-panel p {
  margin: 0;
}

.contact-panel .text-link {
  font-size: clamp(1rem, 3vw, 1.35rem);
}

.not-found {
  width: min(calc(100% - 2rem), 760px);
  min-height: 65vh;
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 10rem) 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.not-found > p:not(.eyebrow) {
  max-width: 600px;
  margin: 1.5rem auto 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.site-footer {
  padding: 4rem max(1rem, calc((100vw - var(--content)) / 2)) 1.5rem;
  color: white;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.brand-footer {
  color: white;
}

.brand-footer:hover {
  color: white;
}

.brand-footer .brand-mark i {
  border-color: white;
  background: transparent;
}

.brand-footer .brand-mark i:nth-child(2) {
  border-color: var(--coral);
  background: var(--coral);
}

.footer-grid > div p {
  max-width: 380px;
  color: rgb(255 255 255 / 66%);
  font-size: 0.86rem;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid h2 {
  margin: 0 0 0.8rem;
  color: #f8d998;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-grid nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: rgb(255 255 255 / 78%);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: white;
}

.footer-base {
  display: flex;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgb(255 255 255 / 17%);
  justify-content: space-between;
  gap: 1rem;
}

.footer-base p {
  margin: 0;
  color: rgb(255 255 255 / 55%);
  font-size: 0.72rem;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .storyboard {
    width: min(100%, 560px);
    min-height: 400px;
    margin-inline: auto;
  }

  .truth-strip div {
    padding: 1.4rem;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, var(--reading));
    justify-content: center;
  }

  .article-rail {
    position: static;
    display: grid;
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .rail-block,
  .rail-block:first-child {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }

  .home-accuracy {
    grid-template-columns: 1fr 1fr;
  }

  .home-accuracy > a {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .header-inner {
    min-height: 4.2rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    display: none;
    padding: 0.7rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 0.65rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle[aria-expanded="true"] > span[aria-hidden]:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span[aria-hidden]:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span[aria-hidden]:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero h1,
  .prose h1,
  .utility-prose h1 {
    overflow-wrap: anywhere;
  }

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

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

  .article-cards,
  .method,
  .home-accuracy,
  .article-rail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: 190px;
  }

  .method {
    padding: 2rem 1.25rem;
  }

  .home-accuracy > a {
    grid-column: auto;
  }

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

  .accuracy-note {
    margin-top: 1.4rem;
  }

  .heading-anchor {
    opacity: 1;
  }

  .footer-grid {
    gap: 2.5rem;
  }

  .footer-base {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .header-inner,
  .hero,
  .routes,
  .method,
  .home-accuracy,
  .main-shell,
  .not-found {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 30px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .storyboard {
    min-height: 315px;
  }

  .frame {
    width: 74%;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cluster-heading {
    gap: 0.7rem;
  }

  .route-number {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .home-accuracy {
    padding: 1.4rem;
  }

  .prose {
    font-size: 1rem;
  }

  .breadcrumbs span {
    max-width: 34ch;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .article-rail,
  .reading-progress,
  .next-step {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .article-layout {
    display: block;
    padding-top: 1rem;
  }

  a {
    color: black;
  }
}
