:root {
  --paper: #f8f5ee;
  --paper-deep: #eee8db;
  --ink: #202321;
  --muted: #68706b;
  --line: #d8d0c2;
  --accent: #b5442c;
  --accent-dark: #7b2d1e;
  --blue: #1f4f67;
  --blue-deep: #143647;
  --blue-soft: #e7eff1;
  --quote: #fffaf0;
  --white: #fffdfa;
  --shadow: 0 22px 55px rgba(50, 39, 25, 0.10);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body-leading: 1.95;
}

html:lang(en) {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-leading: 1.82;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(181, 68, 44, 0.08), transparent 28rem),
    linear-gradient(180deg, #f1ece2 0, var(--paper) 30rem, var(--paper) 100%);
  font-family: var(--serif);
  font-size: 18px;
  line-height: var(--body-leading);
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
img { 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;
}
.page { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 8px 12px;
  color: var(--white);
  background: var(--blue-deep);
  font: 700 0.78rem/1.4 var(--sans);
}
.skip-link:focus { transform: none; }

/* Shared site navigation */
.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  color: #f7f1e7;
}
.site-header.is-solid {
  position: relative;
  color: var(--ink);
  background: rgba(248, 245, 238, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font: 650 0.76rem/1.5 var(--sans);
}
.site-brand { color: inherit; text-decoration: none; letter-spacing: 0.05em; }
.site-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-links a { color: inherit; text-decoration: none; }
.site-links a:hover { color: #ef927a; }
.site-header.is-solid .site-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 4px 0; background: currentColor; }
.lang-switch {
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Article hero */
.article-hero {
  position: relative;
  min-height: min(900px, 94vh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: #f8f3e9;
  background: var(--blue-deep);
  border-bottom: 1px solid #bdad98;
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 28, 36, .93) 0%, rgba(18, 35, 44, .83) 34%, rgba(18, 35, 44, .38) 61%, rgba(18, 35, 44, .10) 100%),
    linear-gradient(0deg, rgba(13, 27, 33, .86) 0%, transparent 58%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.04);
}
.hero-content { padding: 116px 0 68px; }
.eyebrow {
  margin: 0 0 20px;
  color: #e9876f;
  font: 800 0.76rem/1.4 var(--sans);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.article-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 6.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-wrap: balance;
  text-shadow: 0 3px 32px rgba(0, 0, 0, .28);
}
html:lang(en) .article-hero h1 { font-size: clamp(2.9rem, 6.5vw, 6.1rem); }
.article-hero h1 em { color: inherit; }
.subtitle {
  max-width: 800px;
  margin: 28px 0 0;
  color: #e5ddd0;
  font-size: clamp(1.13rem, 2.35vw, 1.65rem);
  line-height: 1.6;
  text-wrap: balance;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 38px;
  color: #c9c0b2;
  font: 600 0.78rem/1.6 var(--sans);
}
.meta span + span::before { content: "·"; margin-right: 24px; color: #7d8b8f; }

/* Article layout */
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: 58px;
  padding: 64px 0 110px;
}
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 6px 8px 24px 0;
  font: 500 0.75rem/1.55 var(--sans);
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: nav; }
.toc li { counter-increment: nav; border-top: 1px solid rgba(216, 208, 194, .78); }
.toc a {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 5px;
  padding: 8px 0;
  color: #4d5651;
  text-decoration: none;
}
.toc a::before { content: counter(nav, decimal-leading-zero); color: var(--accent); }
.toc a:hover { color: var(--accent); }
article { min-width: 0; }
article > section, article > header { scroll-margin-top: 24px; }
p { margin: 0 0 1.15em; }
strong { font-weight: 850; }
em { color: #414a45; }
.abstract {
  margin: 0 0 70px;
  padding: 30px 34px 32px;
  background: rgba(255, 253, 250, .88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.abstract h2 { margin-top: 0; }
.abstract p:last-child { margin-bottom: 0; }
.thesis {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #f7eee8;
  font-weight: 800;
  line-height: 1.75;
}
.part-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 92px 0 28px;
  color: var(--accent);
  font: 850 0.77rem/1.4 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.part-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
article h2 {
  margin: 72px 0 24px;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
html:lang(en) article h2 { line-height: 1.18; }
article h3 {
  margin: 40px 0 14px;
  color: var(--blue);
  font-size: 1.22rem;
  line-height: 1.45;
}
.section-no {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 850 0.77rem/1.2 var(--sans);
  letter-spacing: 0.14em;
}
.lead { font-size: 1.12rem; line-height: 1.9; }
.dropcap::first-letter {
  float: left;
  margin: .12em .1em 0 0;
  color: var(--accent);
  font-size: 4.1rem;
  line-height: .8;
  font-weight: 900;
}
blockquote {
  margin: 34px 0;
  padding: 25px 30px 24px;
  background: var(--quote);
  border: 1px solid #e1d5bf;
  border-left: 5px solid var(--accent);
  font-size: 1.13rem;
  line-height: 1.75;
}
blockquote p { margin: 0; }
blockquote cite { display: block; margin-top: 10px; color: var(--muted); font: 500 .76rem/1.5 var(--sans); }
.callout {
  margin: 30px 0;
  padding: 22px 24px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
}
.callout strong { color: var(--blue); }
.callout p:last-child { margin-bottom: 0; }
.pullquote {
  margin: 48px -28px;
  padding: 30px 32px;
  color: var(--blue-deep);
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.48;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
}
.pullquote p { margin: 0; }
.article-figure {
  margin: 44px 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(50, 39, 25, .08);
}
.article-figure img { display: block; width: 100%; height: auto; background: var(--paper); }
.article-figure figcaption {
  padding: 13px 17px 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 500 .76rem/1.65 var(--sans);
}
.article-figure figcaption b { color: var(--ink); }
.table-wrap { margin: 36px 0 44px; overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font: 500 .83rem/1.65 var(--sans); }
caption { padding: 16px 18px; text-align: left; color: var(--muted); background: var(--paper-deep); font-weight: 750; }
th, td { padding: 13px 15px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--blue); background: #f2f6f6; font-weight: 850; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.timeline { display: grid; grid-template-columns: 5.2rem 1fr; margin: 34px 0; border-top: 1px solid var(--line); }
.timeline dt, .timeline dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline dt { color: var(--accent); font: 800 .82rem/1.7 var(--sans); }
.timeline dd { font-size: .94rem; }
.equation {
  margin: 36px 0;
  padding: 28px;
  color: var(--blue-deep);
  background: #f0f4f2;
  border: 1px solid #cbd6d2;
  text-align: center;
}
.equation b { display: block; font: 850 clamp(1.05rem, 2.7vw, 1.55rem)/1.5 var(--sans); }
.equation strong { display: block; font: 850 clamp(1.05rem, 2.7vw, 1.55rem)/1.5 var(--sans); }
.equation span { display: block; margin-top: 8px; color: var(--muted); font: 500 .76rem/1.6 var(--sans); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 32px 0; }
.principle { padding: 20px; border: 1px solid var(--line); background: rgba(255, 253, 250, .74); }
.principle b { display: block; margin-bottom: 6px; color: var(--accent-dark); font-family: var(--sans); }
.principle p { margin: 0; font-size: .88rem; line-height: 1.75; }
.diagnostic {
  margin: 42px 0;
  padding: 28px 30px 30px;
  color: #edf1ef;
  background: var(--blue-deep);
  box-shadow: var(--shadow);
}
.diagnostic h3 { margin-top: 0; color: #f3b19e; }
.diagnostic ol { margin-bottom: 0; padding-left: 1.25em; }
.diagnostic li { margin: 9px 0; padding-left: 5px; }
.ref { font: 750 .65em/1 var(--sans); vertical-align: super; }
.ref a { text-decoration: none; }
.references { margin-top: 90px; padding-top: 36px; border-top: 2px solid var(--ink); }
.references ol { padding-left: 0; list-style: none; counter-reset: refs; }
.references li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 3em;
  color: #46504b;
  font: 500 .78rem/1.65 var(--sans);
  counter-increment: refs;
}
.references li::before { content: "[" counter(refs) "]"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.references li:target { background: #fff2c8; }
.note { color: var(--muted); font: 500 .78rem/1.7 var(--sans); }
.note p:last-child { margin-bottom: 0; }
.article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 650 .72rem/1.4 var(--sans);
}
.article-taxonomy a { padding: 6px 10px; text-decoration: none; background: var(--blue-soft); border-radius: 999px; }
.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.post-navigation a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  font: 700 .82rem/1.5 var(--sans);
}
.post-navigation a:last-child { text-align: right; }
.post-navigation a:hover { color: var(--accent); border-color: var(--accent); }

/* Homepage */
.home-masthead {
  position: relative;
  overflow: hidden;
  color: #f7f1e7;
  background:
    radial-gradient(circle at 82% 14%, rgba(181, 68, 44, .22), transparent 25rem),
    radial-gradient(circle at 8% 88%, rgba(82, 119, 132, .22), transparent 31rem),
    linear-gradient(125deg, #102e3d 0%, #173d4e 52%, #102c39 100%);
  border-bottom: 1px solid #7c8f97;
}
.home-masthead::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(transparent 15%, rgba(255, 250, 239, .17) 50%, transparent 92%);
}
.home-masthead .site-header { color: #f7f1e7; }
.home-hero {
  position: relative;
  z-index: 1;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
  padding: 104px 0 42px;
}
.home-hero-copy { padding: 28px 0 20px; }
.home-kicker { margin: 0 0 20px; color: var(--accent); font: 800 .72rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.home-title { max-width: 650px; margin: 0; color: #fff9ef; font-size: clamp(3.6rem, 6.4vw, 6.8rem); line-height: .94; letter-spacing: -.06em; text-wrap: balance; }
html:lang(en) .home-title { font-size: clamp(3.5rem, 6vw, 6.35rem); }
.home-intro { max-width: 610px; margin: 27px 0 0; color: #d7d1c7; font-size: clamp(1.05rem, 1.65vw, 1.32rem); line-height: 1.68; }
.home-feature { overflow: hidden; background: #f4eee3; border: 1px solid #85979e; box-shadow: 0 28px 65px rgba(4, 18, 24, .3); }
.home-latest { margin: 0; padding: 18px 22px 21px; color: var(--ink); background: #f4eee3; border-top: 4px solid var(--accent); }
.home-latest > span { display: block; margin-bottom: 8px; color: var(--accent); font: 800 .66rem/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.home-latest a { display: block; color: var(--blue-deep); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 750; line-height: 1.4; text-decoration: none; }
.home-latest a:hover { color: var(--accent); }
.home-latest i { margin-left: .25em; color: var(--accent); font: 700 .85em/1 var(--sans); }
.home-hero-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: var(--blue-deep);
}
.home-hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .7s ease; }
.home-hero-art:hover img { transform: scale(1.018); }
.home-main { padding: 62px 0 110px; }
.home-section { margin-top: 88px; }
.home-section:first-child { margin-top: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.025em; }
.section-heading span { color: var(--muted); font: 600 .72rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.post-list { border-top: 1px solid var(--line); }
.post-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 14rem;
  gap: 28px;
  align-items: start;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-row time { color: var(--accent); font: 750 .75rem/1.7 var(--sans); }
.post-row h3 { margin: 0; color: var(--ink); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: -.018em; }
.post-row p { margin: 2px 0 0; color: var(--muted); font: 500 .78rem/1.65 var(--sans); }
.post-row:hover h3 { color: var(--accent); }
.about-panel {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 46px;
  padding: 38px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.about-panel h2 { margin: 0; font-size: 1.7rem; }
.about-panel p { max-width: 700px; margin: 0; font-size: 1.1rem; }
.topics-panel .section-heading > a { text-decoration: none; font-family: var(--sans); }
.topic-list, .collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.topic-list a, .collection-grid a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 253, 250, .72);
  border: 1px solid var(--line);
  text-decoration: none;
  font: 750 .88rem/1.5 var(--sans);
}
.topic-list a:hover, .collection-grid a:hover { color: var(--accent); border-color: var(--accent); }
.topic-list b, .collection-grid b { color: var(--muted); font-size: .72rem; }
.post-topic { color: var(--blue); font-weight: 750; }
.pagination { margin-top: 34px; font: 700 .78rem/1.4 var(--sans); }
.pagination .page-number, .pagination .extend {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  padding: 0 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
}
.pagination .current { color: var(--white); background: var(--blue-deep); border-color: var(--blue-deep); }
.empty-state { padding: 34px 0; color: var(--muted); }

/* Archive, taxonomy, and search pages */
.listing-page, .standalone-page, .search-page-main { min-height: 72vh; padding: 88px 0 110px; }
.listing-header { margin-bottom: 42px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.listing-header .home-kicker { margin-bottom: 12px; }
.listing-header h1 { max-width: 900px; margin: 0; font-size: clamp(2.7rem, 6vw, 5.3rem); line-height: 1.02; letter-spacing: -.05em; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 820px; }
.search-form input {
  min-width: 0;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font: 500 1rem/1.4 var(--sans);
}
.search-form input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-form button {
  padding: 0 24px;
  color: var(--white);
  background: var(--blue-deep);
  border: 0;
  font: 750 .78rem/1.4 var(--sans);
}
.search-hint { margin: 16px 0 0; color: var(--muted); font: 500 .78rem/1.6 var(--sans); }
.search-results { max-width: 900px; margin-top: 42px; border-top: 1px solid var(--line); }
.search-result { display: block; padding: 24px 0; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.search-result > span { display: block; margin-bottom: 5px; color: var(--accent); font: 700 .7rem/1.5 var(--sans); }
.search-result > strong { display: block; font-size: 1.45rem; line-height: 1.3; }
.search-result p { margin: 7px 0 0; color: var(--muted); font: 500 .8rem/1.65 var(--sans); }
.search-result:hover > strong { color: var(--accent); }
.footer-links { display: flex; gap: 18px; }

.site-footer {
  padding: 34px 0 58px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 500 .75rem/1.7 var(--sans);
}
.site-footer .page { display: flex; justify-content: space-between; gap: 24px; }
.site-footer a { text-decoration: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 760px); }
  .toc { position: static; max-height: none; padding: 0 0 20px; column-count: 2; column-gap: 26px; }
  .toc strong { column-span: all; }
  .toc li { break-inside: avoid; }
  .article-hero { min-height: 78vh; }
  .hero-media { object-position: 61% center; }
  .pullquote { margin-inline: 0; }
  .home-masthead::after { display: none; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .home-hero-copy { max-width: 680px; padding-bottom: 0; }
  .home-hero-art { height: auto; }
  .post-row { grid-template-columns: 7rem minmax(0, 1fr); }
  .post-row > :last-child { grid-column: 2; }
  .topic-list, .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .page { width: min(100% - 28px, 760px); }
  .site-nav { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-links {
    position: absolute;
    top: 58px;
    right: 14px;
    width: min(270px, calc(100vw - 28px));
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-links.is-open { display: flex; }
  .site-links a { padding: 9px 11px; }
  .site-links a:hover { color: var(--accent); }
  .site-links .lang-switch { margin-top: 6px; text-align: center; }
  .article-hero { min-height: 740px; }
  .hero-media { object-position: 66% center; }
  .article-hero::after {
    background:
      linear-gradient(90deg, rgba(12, 27, 34, .94), rgba(12, 27, 34, .60)),
      linear-gradient(0deg, rgba(12, 27, 34, .94), transparent 70%);
  }
  .hero-content { padding: 94px 0 46px; }
  .article-hero h1, html:lang(en) .article-hero h1 { font-size: 2.55rem; }
  .layout { padding-top: 38px; gap: 30px; }
  .toc { column-count: 1; }
  .abstract { padding: 23px 20px; }
  .principles { grid-template-columns: 1fr; }
  .meta span + span::before { content: none; margin: 0; }
  blockquote { padding: 21px 22px; }
  .diagnostic { padding: 23px 21px; }
  th, td { min-width: 132px; }
  .home-hero { gap: 28px; padding: 96px 0 34px; }
  .home-hero-copy { padding: 16px 0 0; }
  .home-title, html:lang(en) .home-title { font-size: 3.3rem; }
  .home-intro { margin-top: 20px; font-size: 1.04rem; }
  .home-latest { margin: 0; padding: 17px 18px 19px; }
  .home-hero-art { height: auto; }
  .home-main { padding-top: 46px; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row > :last-child { grid-column: auto; }
  .about-panel { grid-template-columns: 1fr; gap: 14px; }
  .topic-list, .collection-grid { grid-template-columns: 1fr; }
  .listing-page, .standalone-page, .search-page-main { padding-top: 58px; }
  .post-navigation { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .search-form button { min-height: 48px; }
  .site-footer .page { display: block; }
  .footer-links { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero-art img { transition: none; }
}

@media print {
  :root { --paper: #fff; --ink: #111; }
  @page { size: A4; margin: 18mm 16mm 20mm; }
  body { background: #fff; font-size: 10.5pt; }
  .page { width: 100%; }
  .site-header { display: none; }
  .article-hero { min-height: 205mm; color: #fff; }
  .hero-content { padding: 35mm 0 20mm; }
  .toc { position: static; max-height: none; }
  .layout { display: block; padding: 12mm 0; }
  article { margin-top: 15mm; }
  a { color: inherit; text-decoration: none; }
  .abstract { box-shadow: none; }
  article h2, article h3, blockquote, figure, table, .principle, .diagnostic { break-inside: avoid; }
  .site-footer { display: none; }
}
