:root {
  color-scheme: light;
  --paper: #f1f0eb;
  --paper-raised: #f7f6f1;
  --ink: #171715;
  --muted: #66645f;
  --faint: #96928a;
  --rule: #cbc8c0;
  --rule-strong: #aaa69d;
  --blue: #506b74;
  --blue-soft: #dbe2e2;
  --plum: #766879;
  --plum-soft: #e5dee6;
  --wide: 1180px;
  --measure: 740px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --serif: var(--mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #171816;
    --paper-raised: #1d1e1b;
    --ink: #ecebe5;
    --muted: #aaa79f;
    --faint: #77746e;
    --rule: #3d3d38;
    --rule-strong: #5b5a54;
    --blue: #90acb4;
    --blue-soft: #263437;
    --plum: #b1a0b4;
    --plum-soft: #382f39;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

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

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-bar,
.site-footer {
  width: min(calc(100% - 48px), var(--wide));
  margin-inline: auto;
}

.site-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-height: 68px;
  padding: 23px 0 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.wordmark {
  font-weight: 650;
  text-decoration: none;
}

.site-bar nav {
  display: flex;
  gap: clamp(16px, 3vw, 30px);
}

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

.site-bar nav a[aria-current="page"] {
  color: var(--ink);
}

.site-bar nav a[aria-current="page"]::before {
  content: "[";
  color: var(--blue);
}

.site-bar nav a[aria-current="page"]::after {
  content: "]";
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 104px;
  padding: 17px 0 38px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.68rem;
}

.eyebrow,
.back-link,
.post-kicker,
.error-code {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.085em;
  line-height: 1.5;
  text-transform: uppercase;
}

.back-link {
  display: inline-block;
  margin-bottom: 48px;
  text-decoration: none;
}

.blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(780px, calc(100svh - 68px));
  margin-top: -1px;
  padding: clamp(78px, 12vh, 132px)
    max(24px, calc((100vw - var(--wide)) / 2)) 54px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(90deg, transparent 0 49.9%, color-mix(in srgb, var(--rule) 34%, transparent) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 0 49.9%, color-mix(in srgb, var(--rule) 22%, transparent) 50%, transparent 50.1%);
  background-size: 80px 80px;
}

.blog-hero::after {
  content: "TH03";
  position: absolute;
  z-index: -1;
  top: 26px;
  right: max(12px, calc((100vw - var(--wide)) / 2 - 18px));
  color: color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: clamp(8rem, 25vw, 23rem);
  font-weight: 700;
  letter-spacing: -0.105em;
  line-height: 0.83;
  white-space: nowrap;
}

.hero-copy {
  max-width: 870px;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 28px;
  font-family: var(--serif);
  font-size: clamp(3.9rem, 9.4vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -0.067em;
  line-height: 0.81;
}

.hero-copy h1 span {
  display: block;
  margin-top: 0.24em;
  padding-left: clamp(20px, 8vw, 112px);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.19em;
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.1vw, 1.38rem);
  line-height: 1.58;
}

.hero-summary cite {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 30px;
  margin-top: 34px;
  font-size: 0.75rem;
}

.hero-actions a {
  padding-bottom: 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}

.project-line {
  position: absolute;
  right: max(24px, calc((100vw - var(--wide)) / 2));
  bottom: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(650px, calc(100% - 48px));
  border-top: 1px solid var(--rule-strong);
}

.project-line div {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 17px 18px 0 0;
}

.project-line div::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.project-line span,
.project-line small {
  color: var(--muted);
  font-size: 0.62rem;
}

.project-line strong {
  font-size: 0.82rem;
  font-weight: 500;
}

.blog-frame {
  width: min(calc(100% - 48px), var(--wide));
  margin: 0 auto;
}

.pinned-section,
.post-section,
.topic-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 92px);
  padding: 88px 0 100px;
  border-bottom: 1px solid var(--rule);
}

.section-label h2,
.listing-header h1,
.article-end h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.section-label h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.03;
}

.section-label-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section-label-row > a {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.pinned-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
  padding: 1px 0 8px 31px;
  border-left: 3px solid var(--blue);
}

.pinned-post h3 {
  max-width: 650px;
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.pinned-post h3 a,
.post-row h2 a {
  text-decoration: none;
}

.pinned-post p,
.pinned-placeholder p,
.empty-state > p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.62;
}

.pinned-arrow {
  padding-bottom: 5px;
  font-size: 0.7rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.pinned-placeholder {
  padding-left: 31px;
  border-left: 3px solid var(--rule-strong);
}

.post-section {
  grid-template-columns: 1fr;
}

.post-list {
  border-top: 1px solid var(--rule);
}

.post-row {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 28px;
  gap: clamp(24px, 5vw, 66px);
  padding: 31px 0 34px;
  border-bottom: 1px solid var(--rule);
}

.post-date {
  display: grid;
  align-content: start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.post-date span {
  color: var(--faint);
}

.post-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
}

.status-chip {
  display: inline-block;
  padding: 3px 6px 2px;
  background: var(--plum-soft);
  color: var(--plum);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.post-row h2 {
  max-width: 760px;
  margin: 10px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.post-row .post-summary > p {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.58;
}

.row-arrow {
  align-self: center;
  color: var(--faint);
  font-size: 1.15rem;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.post-row:hover .row-arrow {
  color: var(--blue);
  transform: translate(3px, -3px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list a {
  color: var(--muted);
  font-size: 0.64rem;
  text-decoration: none;
}

.tag-list a:hover {
  color: var(--plum);
}

.empty-state {
  padding: 62px 0 68px;
  border-bottom: 1px solid var(--rule);
}

.empty-state h2 {
  max-width: 700px;
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.topic-index,
.tag-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.topic-index a,
.tag-directory a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.topic-index a:nth-child(odd),
.tag-directory a:nth-child(odd) {
  padding-right: 28px;
}

.topic-index a:nth-child(even),
.tag-directory a:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.topic-index span,
.tag-directory strong {
  font-size: 0.75rem;
  font-weight: 450;
}

.topic-index small,
.tag-directory span {
  color: var(--muted);
  font-size: 0.62rem;
}

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

.article-main,
.listing-main {
  width: min(calc(100% - 48px), var(--wide));
  margin: 0 auto;
}

.field-notes {
  font-family: var(--mono);
}

.field-notes .listing-header {
  padding-bottom: 48px;
}

.field-notes .listing-header h1,
.field-notes .post-row h2,
.field-notes .post-row p,
.field-notes .empty-state h2,
.field-notes .empty-state > p:last-child {
  font-family: var(--mono);
}

.field-notes .listing-header h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.06em;
}

.field-notes-list {
  padding-bottom: 40px;
}

.article-header {
  max-width: 970px;
  padding: clamp(72px, 11vw, 130px) 0 64px;
}

.article-header h1 {
  max-width: 950px;
  margin: 18px 0 28px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.062em;
  line-height: 0.91;
}

.article-summary {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.58;
}

.article-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 900px;
  margin: 46px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.article-meta div {
  padding: 15px 18px 17px 0;
}

.article-meta div + div {
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}

.article-meta dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-meta dd {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.article-meta dd small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.provenance-note {
  max-width: 900px;
  margin: 0 0 84px;
  padding: 18px 22px;
  border-left: 3px solid var(--plum);
  background: color-mix(in srgb, var(--plum-soft) 52%, transparent);
}

.provenance-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, var(--measure));
  gap: clamp(44px, 7vw, 92px);
  justify-content: center;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 42px;
  max-height: calc(100vh - 84px);
  overflow: auto;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.article-toc > p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li {
  font-size: 0.62rem;
  line-height: 1.38;
}

.article-toc .toc-level-3 {
  padding-left: 13px;
  color: var(--muted);
}

.article-toc a {
  text-decoration: none;
}

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

.prose {
  min-width: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.18rem);
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 5.5rem;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1.25;
}

.prose h2 {
  margin: 4.2rem 0 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  letter-spacing: -0.035em;
}

.prose h3 {
  margin: 3.1rem 0 1.1rem;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  letter-spacing: -0.025em;
}

.prose h4 {
  margin: 2.4rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose figure,
.prose .table-scroll {
  margin-top: 0;
  margin-bottom: 1.55em;
}

.prose li + li {
  margin-top: 0.42em;
}

.prose a {
  color: var(--blue);
}

.prose strong {
  font-weight: 650;
}

.prose code,
.prose kbd,
.prose samp {
  font-family: var(--mono);
  font-size: 0.82em;
}

.prose :not(pre) > code {
  padding: 0.12em 0.3em;
  background: var(--blue-soft);
}

.prose pre {
  overflow-x: auto;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  tab-size: 4;
}

.prose pre code {
  font-size: inherit;
}

.prose blockquote {
  margin-left: 0;
  padding: 3px 0 3px 24px;
  border-left: 3px solid var(--plum);
  color: var(--muted);
  font-style: italic;
}

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

.prose hr {
  margin: 3.7rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.prose img,
.prose video {
  display: block;
  margin: 2.4rem auto;
  border: 1px solid var(--rule);
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption {
  margin-top: -1.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.55;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--rule-strong);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.69rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--muted);
  font-weight: 500;
}

.article-end {
  width: min(100%, 960px);
  margin: 104px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

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

.related-list {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid var(--rule);
}

.related-list a {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.05rem;
  text-decoration: none;
}

.related-list small {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.article-pagination a {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.article-pagination a.next {
  text-align: right;
}

.article-pagination small {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-pagination span {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}

.listing-header {
  max-width: 860px;
  padding: clamp(72px, 11vw, 128px) 0 70px;
}

.listing-header h1 {
  margin: 13px 0 20px;
  font-size: clamp(4rem, 10vw, 8.8rem);
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.listing-header > p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

.archive-groups {
  display: grid;
  gap: 88px;
}

.archive-year {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 45px;
}

.archive-year > h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 450;
}

.archive-year .post-row {
  grid-template-columns: 150px minmax(0, 1fr) 28px;
}

.tag-directory {
  margin-top: 8px;
}

.tag-post-list {
  margin-top: 8px;
}

.not-found-main {
  display: grid;
  min-height: calc(100svh - 250px);
  place-items: center;
  width: min(calc(100% - 48px), 850px);
  margin: 0 auto;
}

.not-found-main > div {
  width: 100%;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.not-found-main h1 {
  max-width: 760px;
  margin: 15px 0 22px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.not-found-main p:not(.error-code) {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .blog-hero {
    min-height: 730px;
  }

  .pinned-section,
  .topic-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

  .article-toc {
    position: static;
    max-width: var(--measure);
    max-height: none;
    margin: 0 auto 38px;
    columns: 2;
  }

  .article-toc > p {
    column-span: all;
  }

  .prose {
    width: min(100%, var(--measure));
    margin-inline: auto;
  }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .site-bar,
  .site-footer,
  .blog-frame,
  .article-main,
  .listing-main {
    width: min(calc(100% - 28px), var(--wide));
  }

  .site-bar {
    min-height: 58px;
    padding-top: 18px;
  }

  .site-bar nav {
    gap: 14px;
  }

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

  .blog-hero {
    min-height: 690px;
    padding: 78px 14px 40px;
    background-size: 52px 52px;
  }

  .blog-hero::after {
    top: 39px;
    right: 3px;
    font-size: 41vw;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 20vw, 6rem);
  }

  .hero-copy h1 span {
    padding-left: 6px;
    font-size: 0.22em;
  }

  .project-line {
    right: 14px;
    bottom: 35px;
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .project-line div {
    grid-template-columns: 30px 80px 1fr;
    align-items: baseline;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
  }

  .project-line div::before {
    top: -4px;
  }

  .pinned-section,
  .post-section,
  .topic-section {
    padding: 66px 0 76px;
  }

  .pinned-post {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-left: 20px;
  }

  .pinned-arrow {
    justify-self: start;
  }

  .post-row,
  .archive-year .post-row {
    grid-template-columns: 1fr 24px;
    gap: 19px;
  }

  .post-date {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .topic-index,
  .tag-directory {
    grid-template-columns: 1fr;
  }

  .topic-index a:nth-child(odd),
  .topic-index a:nth-child(even),
  .tag-directory a:nth-child(odd),
  .tag-directory a:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .article-header {
    padding-top: 72px;
  }

  .article-header h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

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

  .article-meta div,
  .article-meta div + div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .article-meta div:last-child {
    border-bottom: 0;
  }

  .article-toc {
    columns: 1;
  }

  .prose {
    line-height: 1.72;
  }

  .prose pre {
    margin-inline: -14px;
    padding-inline: 14px;
    border-inline: 0;
  }

  .related-list a {
    display: grid;
    gap: 6px;
  }

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

  .article-pagination a.next {
    text-align: left;
  }

  .listing-header h1 {
    font-size: clamp(3.8rem, 21vw, 6.7rem);
  }

  .site-footer {
    display: grid;
    margin-top: 72px;
  }
}

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

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

  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --muted: #333;
    --rule: #aaa;
  }

  .site-bar,
  .site-footer,
  .reading-progress,
  .article-toc,
  .article-pagination,
  .related-list,
  .back-link {
    display: none !important;
  }

  .article-main,
  .article-layout,
  .prose {
    display: block;
    width: 100%;
    max-width: none;
  }

  .article-header {
    padding-top: 0;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-family: var(--mono);
    font-size: 0.7em;
  }
}
