:root {
  --paper: #f4f1e9;
  --paper-raised: #fbfaf6;
  --ink: #15201d;
  --ink-soft: #36443f;
  --muted: #586560;
  --line: #d7d4ca;
  --line-strong: #b9b8af;
  --accent: #0b6e59;
  --accent-dark: #075040;
  --accent-pale: #dcebe6;
  --signal: #e8b44d;
  --code-bg: #111a18;
  --code-text: #e7efeb;
  --max-width: 76rem;
  --reading-width: 48rem;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(21, 32, 29, 0.05), 0 8px 24px rgba(21, 32, 29, 0.045);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 32, 29, 0.025) 1px, transparent 1px) center / 4.5rem 100%,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 0 0 0.25rem 0.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  border-top: 0.3rem solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 233, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.25rem;
}

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

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

.site-title__mark {
  display: block;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
}

.site-title__text {
  display: grid;
  line-height: 1.15;
}

.site-title__text strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.site-title__text small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-nav .site-nav__repo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--paper-raised);
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease;
}

.site-nav .site-nav__repo:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.site-nav__repo svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.main-content {
  min-height: calc(100vh - 14rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

.eyebrow,
.article-nav__label,
.hero__note-label,
.article-toc__title {
  margin: 0;
  color: var(--accent-dark);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
  padding: clamp(2rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line-strong);
}

.hero__copy {
  max-width: 52rem;
}

.hero h1 {
  max-width: 14ch;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7.4vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero__lede {
  max-width: 44rem;
  margin: 1.8rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.78rem 1rem 0.78rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 0.2rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.text-link {
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.hero__note {
  position: relative;
  padding: 1.6rem;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--ink);
  color: #ecf0ee;
  box-shadow: var(--shadow-sm);
}

.hero__note::before {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(232, 180, 77, 0.5);
  border-radius: 50%;
  content: "";
}

.hero__note-label {
  color: var(--signal);
}

.hero__note > p:nth-child(2) {
  margin: 1rem 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero__note dl {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__note dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.79rem;
}

.hero__note dt {
  color: #aeb9b5;
}

.hero__note dd {
  margin: 0;
  font-family: var(--mono);
}

.series-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.6fr);
  gap: 4rem;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
}

.series-intro h2,
.evidence h2 {
  max-width: 18ch;
  margin: 0.65rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.series-intro > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.06rem;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line-strong);
  list-style: none;
}

.article-list li {
  min-width: 0;
  background: var(--paper-raised);
}

.article-list a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: start;
  min-height: 13rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  color: var(--ink);
  text-decoration: none;
  transition: background 140ms ease;
}

.article-list a:hover {
  background: #fff;
}

.article-list__number {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-list__content {
  display: grid;
  gap: 0.7rem;
}

.article-list__content strong {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-list__content span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-list__content .article-list__topic {
  color: var(--accent-dark);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.article-list__arrow {
  color: var(--accent);
  transition: transform 140ms ease;
}

.article-list a:hover .article-list__arrow {
  transform: translateX(0.2rem);
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(16rem, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 0.28rem solid var(--signal);
  background: var(--ink);
  color: #edf1ef;
}

.evidence .eyebrow {
  color: var(--signal);
}

.evidence h2 {
  color: #fff;
}

.evidence > p {
  margin: 0;
  color: #bdc6c2;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.evidence a {
  color: #fff;
}

.series-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 64rem;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.series-crumb a {
  text-decoration: none;
}

.article-header {
  max-width: 64rem;
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line-strong);
}

.article-header h1 {
  max-width: 21ch;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.99;
  overflow-wrap: anywhere;
}

.article-header__deck {
  max-width: 43rem;
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.1vw, 1.4rem);
  line-height: 1.5;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.article-header__meta span::before {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  vertical-align: 0.08em;
}

.article-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, var(--reading-width));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  justify-content: center;
  align-items: start;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.article-tools {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding-right: 0.75rem;
}

.series-position {
  padding: 1rem;
  border-top: 0.2rem solid var(--accent);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}

.series-position p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.series-position strong {
  color: var(--ink);
  font-family: var(--mono);
}

.series-position a {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.article-toc {
  margin-top: 1.5rem;
}

.article-toc__toggle {
  display: none;
}

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

.article-toc ol {
  display: grid;
  gap: 0;
  margin: 0.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.article-toc li {
  border-bottom: 1px solid var(--line);
}

.article-toc a {
  display: block;
  padding: 0.62rem 0.15rem 0.62rem 0.7rem;
  border-left: 0.18rem solid transparent;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--accent-dark);
}

.article-toc a[aria-current="location"] {
  border-left-color: var(--accent);
  color: var(--accent-dark);
}

.article-body {
  min-width: 0;
  max-width: var(--reading-width);
  color: #25302d;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.13rem);
  line-height: 1.76;
}

.article-body > p:first-of-type {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.36rem);
  line-height: 1.6;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}

.heading-anchor {
  display: inline-flex;
  margin-left: 0.35em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 700;
  opacity: 0;
  text-decoration: none;
  vertical-align: 0.12em;
}

.article-body h2:hover .heading-anchor,
.article-body h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.article-body h1,
.article-body h2 {
  margin: 4.75rem 0 1.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.article-body h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.25rem, 2.3vw, 1.5rem);
  letter-spacing: -0.02em;
}

.article-body h4 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body blockquote,
.article-body .highlight,
.article-body pre {
  margin-block: 1.3rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body li {
  padding-left: 0.25rem;
}

.article-body li + li {
  margin-top: 0.42rem;
}

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

.article-body hr {
  width: 5rem;
  margin: 4rem auto;
  border: 0;
  border-top: 0.2rem solid var(--signal);
}

.article-body blockquote {
  margin-inline: 0;
  padding: 0.55rem 1.35rem;
  border-left: 0.28rem solid var(--accent);
  background: rgba(220, 235, 230, 0.45);
  color: var(--ink-soft);
}

.article-body blockquote > :first-child {
  margin-top: 0;
}

.article-body blockquote > :last-child {
  margin-bottom: 0;
}

.article-body code {
  padding: 0.12em 0.32em;
  border: 1px solid #d4d3cc;
  border-radius: 0.22rem;
  background: #e8e6df;
  color: #8b2c20;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.article-body pre,
.article-body .highlight {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #26332f;
  border-radius: 0.35rem;
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
}

.article-body .code-block {
  position: relative;
  margin-block: 1.3rem;
  overflow: hidden;
  border: 1px solid #31403b;
  border-radius: 0.45rem;
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
}

.article-body .code-block > pre,
.article-body .code-block > .highlight {
  margin-block: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.code-toolbar {
  display: flex;
  min-height: 2.35rem;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid #31403b;
  background: #18231f;
}

.code-language {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.9rem;
  color: #a9b8b3;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.code-language::before {
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0.18rem rgba(231, 173, 74, 0.12);
  content: "";
}

.copy-button {
  min-width: 4.8rem;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-left: 1px solid #31403b;
  border-radius: 0;
  background: transparent;
  color: #c6d2ce;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.copy-button:hover {
  background: #24332e;
  color: #fff;
}

.copy-button[disabled] {
  cursor: default;
  opacity: 0.9;
}

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

/* Rouge is the no-JavaScript fallback; Prism re-tokenizes supported blocks. */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp,
.highlight .cs {
  color: #a8b5b1;
  font-style: italic;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt,
.highlight .o,
.highlight .ow {
  color: #f2c66d;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sr,
.highlight .ss,
.highlight .sx {
  color: #9ed8c0;
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: #d7b9ef;
}

.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .nd,
.highlight .ne,
.highlight .nf,
.highlight .nl,
.highlight .nn,
.highlight .nt,
.highlight .nv {
  color: #a6cdef;
}

.highlight .err,
.highlight .gr,
.highlight .gt {
  color: #ffb9af;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #849690;
  font-style: italic;
}

.token.punctuation {
  color: #b7c4c0;
}

.token.namespace {
  opacity: 0.78;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted,
.token.attr-name {
  color: #ffad9f;
}

.token.boolean,
.token.number {
  color: #d8b4f1;
}

.token.selector,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #9fddbf;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: #f3cd7b;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: #8dcde7;
}

.token.keyword {
  color: #f1a7d2;
}

.token.regex,
.token.important {
  color: #f5bd78;
}

.token.important,
.token.bold {
  font-weight: 700;
}

.token.italic {
  font-style: italic;
}

.article-body .highlight pre {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.article-body pre {
  padding: 1.25rem 1.35rem;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.3vw, 0.86rem);
  line-height: 1.6;
  tab-size: 2;
}

.article-body .code-block--compact > pre,
.article-body .code-block--compact > .highlight > pre {
  min-height: 3rem;
}

.article-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.article-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border-top: 0.18rem solid var(--ink);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  min-width: 8rem;
  padding: 0.75rem 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th:last-child,
.article-body td:last-child {
  border-right: 0;
}

.article-body th {
  background: #e5e3dc;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.article-body tbody tr:nth-child(even) {
  background: #f4f3ee;
}

.article-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 64rem;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding-top: 1.8rem;
  border-top: 0.2rem solid var(--ink);
}

.article-nav > div {
  display: grid;
  gap: 0.35rem;
}

.article-nav > div a {
  max-width: 24rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.article-nav > div a:hover {
  color: var(--accent);
}

.article-nav > div:has(a) {
  min-height: 7rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-top: 0.2rem solid var(--accent);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}

.article-nav > div:has(a) a::after {
  color: var(--accent);
  content: "  →";
}

.article-nav > div:first-child:has(a) a::after {
  content: "";
}

.article-nav > div:first-child:has(a) a::before {
  color: var(--accent);
  content: "←  ";
}

.article-nav__home {
  align-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.article-nav__next {
  justify-items: end;
  text-align: right;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.79rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.site-footer p {
  margin: 0;
}

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

.site-footer__inner > p:last-child {
  text-align: right;
}

@media (max-width: 68rem) {
  .article-layout {
    display: block;
  }

  .article-tools {
    position: static;
    max-width: var(--reading-width);
    max-height: none;
    margin: 0 auto 2rem;
    padding-right: 0;
    overflow: visible;
  }

  .series-position {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .series-position a {
    margin-top: 0;
  }

  .article-toc {
    margin-top: 0.75rem;
    border: 1px solid var(--line);
    background: var(--paper-raised);
  }

  .article-toc__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
  }

  .article-toc__toggle span:last-child {
    color: var(--accent-dark);
    font-size: 1.15rem;
    line-height: 1;
  }

  .article-toc__title {
    display: none;
  }

  .article-toc:not(.is-open) .article-toc__content {
    display: none;
  }

  .article-toc__content {
    max-height: min(50vh, 22rem);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }

  .article-toc ol {
    margin: 0;
    border-top: 0;
  }

  .article-toc a {
    padding-inline: 1rem;
  }

  .article-body {
    margin-inline: auto;
  }

  .heading-anchor {
    opacity: 1;
  }
}

@media (max-width: 54rem) {
  .hero,
  .series-intro,
  .evidence {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 3rem;
  }

  .hero__note {
    max-width: 34rem;
  }

  .series-intro,
  .evidence {
    gap: 1.5rem;
  }

  .series-intro > p {
    max-width: 34rem;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .article-list a {
    min-height: 0;
  }
}

@media (max-width: 42rem) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .site-header__inner {
    gap: 0.7rem;
    min-height: 4.5rem;
  }

  .site-title {
    gap: 0.55rem;
  }

  .site-title__text small {
    display: none;
  }

  .site-nav {
    gap: 0.55rem;
    font-size: 0.74rem;
  }

  .site-nav .site-nav__repo {
    gap: 0.35rem;
    padding: 0.48rem 0.55rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .article-header h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .article-list a {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 1.15rem;
  }

  .article-list__content strong {
    font-size: 1.12rem;
  }

  .article-list__content span {
    font-size: 0.82rem;
  }

  .article-body pre {
    border-radius: 0;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav > div:has(a) {
    min-height: 0;
  }

  .article-nav__home {
    grid-row: 3;
    justify-self: start;
  }

  .article-nav__next {
    justify-items: start;
    text-align: left;
  }

  .site-footer__inner {
    display: grid;
    align-items: start;
  }

  .site-footer__inner > p:last-child {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .series-crumb,
  .article-tools,
  .article-nav,
  .skip-link,
  .code-toolbar,
  .heading-anchor {
    display: none;
  }

  .main-content {
    padding: 0;
  }

  .article-header,
  .article-body {
    max-width: none;
  }

  .article-layout {
    display: block;
    margin-top: 2rem;
  }

  .article-body a {
    color: #000;
  }

  .article-body pre,
  .article-body table,
  .article-body blockquote {
    break-inside: avoid;
  }

  .article-body pre,
  .article-body .highlight,
  .article-body .code-block {
    border-color: #777;
    background: #fff;
    color: #000;
    box-shadow: none;
  }
}
