:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #e8e2d7;
  --ink: #101828;
  --muted: #596173;
  --line: rgba(16, 24, 40, 0.18);
  --blue: #1746d1;
  --blue-deep: #0c2f99;
  --signal: #ff5a36;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
  --sans: Inter, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1420;
  --paper-deep: #171e2c;
  --ink: #f3efe6;
  --muted: #aab2c2;
  --line: rgba(243, 239, 230, 0.18);
  --blue: #6188ff;
  --blue-deep: #345cd4;
  --signal: #ff795e;
  --white: #151d2a;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(16, 24, 40, 0.025) 50%, transparent 50.1%),
    var(--paper);
  transition: color 180ms ease, background-color 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-150%);
}

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

.site-header,
.section-shell,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  background: var(--blue);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 34px;
  font-size: 0.85rem;
  font-weight: 700;
}

.site-nav a,
.text-link,
.footer-meta a {
  position: relative;
}

.site-nav a::after,
.text-link::after,
.footer-meta a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.footer-meta a:hover::after,
.footer-meta a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-icon {
  color: var(--signal);
  font-size: 1.3rem;
}

.theme-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  min-height: 680px;
  padding: 74px max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 10%;
  left: -80px;
  width: 160px;
  height: 160px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.kicker,
.section-index,
.post-meta,
.topic-count,
.note-label,
.visual-index {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 34px;
  color: var(--blue);
}

.kicker::before {
  width: 38px;
  height: 3px;
  content: "";
  background: var(--signal);
}

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

h1 {
  max-width: 790px;
  margin-bottom: 34px;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 span {
  position: relative;
  color: var(--blue);
  font-style: italic;
  white-space: nowrap;
}

h1 span::after {
  position: absolute;
  right: -14px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  content: "";
  background: var(--signal);
  border-radius: 50%;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 7px 7px 0 var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-deep);
  transform: translate(2px, 2px);
}

.text-link {
  font-size: 0.85rem;
  font-weight: 800;
}

.text-link span {
  margin-left: 5px;
  color: var(--signal);
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(33vw, 390px);
  aspect-ratio: 1;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: -24px 28px 0 var(--paper-deep);
}

.orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.orbit-two {
  inset: 30%;
}

.orbit-one::after,
.orbit-two::after {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--signal);
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.orbit-one::after {
  top: 15%;
  right: 5%;
}

.orbit-two::after {
  bottom: -7px;
  left: 45%;
  background: #fff;
}

.signal-dot {
  position: absolute;
  inset: 46%;
  background: var(--signal);
  border-radius: 50%;
}

.visual-label {
  position: absolute;
  top: 22%;
  left: -22px;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  transform: rotate(-8deg);
}

.visual-index {
  position: absolute;
  right: 13%;
  bottom: 12%;
  color: rgba(255, 255, 255, 0.7);
}

.hero-aside {
  position: absolute;
  right: 18px;
  bottom: 28px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  transform: rotate(90deg);
}

.section-shell {
  padding-block: 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 54px;
}

.section-index {
  margin-bottom: 15px;
  color: var(--blue);
}

.section-heading h2,
.opening-note h2,
.about h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 7px auto;
  color: var(--muted);
  line-height: 1.7;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.post-featured,
.post-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 178px;
  padding: 28px 18px 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background-color 180ms ease;
}

.post-featured:hover {
  padding-left: 18px;
  background: var(--white);
}

.post-number {
  align-self: start;
  padding-top: 4px;
  color: var(--signal);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
  color: var(--muted);
}

.post-meta span:first-child {
  color: var(--blue);
}

.post-copy h3 {
  margin-bottom: 11px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.post-copy h3 a {
  background-image: linear-gradient(var(--signal), var(--signal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 220ms ease;
}

.post-copy h3 a:hover,
.post-copy h3 a:focus-visible {
  background-size: 100% 2px;
}

.post-copy > p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.post-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.post-arrow:hover,
.post-arrow:focus-visible {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(45deg);
}

.post-status {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.post-row[hidden],
.post-featured[hidden] {
  display: none;
}

.empty-state {
  margin: 32px 0 0;
  color: var(--muted);
}

.opening-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(36px, 8vw, 110px);
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  color: #f9f6ef;
  background: var(--ink);
}

.note-label {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-top: 5px;
  color: #9aa3b3;
  writing-mode: vertical-rl;
}

.note-content {
  max-width: 850px;
}

.note-content .section-index {
  color: var(--signal);
}

.note-lead {
  max-width: 850px;
  margin: 36px 0 44px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.6;
}

.note-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  color: #bfc5d0;
  line-height: 1.9;
}

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

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.topic-card {
  position: relative;
  min-height: 350px;
  padding: 28px;
  overflow: hidden;
  transition: transform 180ms ease;
}

.topic-card:hover {
  transform: translateY(-7px);
}

.topic-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.35;
}

.topic-card h3 {
  position: absolute;
  bottom: 74px;
  left: 28px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.topic-card p {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  max-width: 280px;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.75;
}

.topic-dark {
  color: #f8f5ec;
  background: var(--ink);
}

.topic-blue {
  color: #fff;
  background: var(--blue);
}

.topic-light {
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.about {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(50px, 10vw, 150px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-stamp {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(330px, 100%);
  aspect-ratio: 1;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.about-stamp strong {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 8rem);
  font-style: italic;
  font-weight: 500;
}

.about-stamp span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.about-stamp span:first-child {
  transform: rotate(-90deg);
}

.about-stamp span:last-child {
  transform: rotate(90deg);
}

.about-copy {
  max-width: 700px;
}

.about-copy h2 {
  margin-bottom: 34px;
}

.about-copy > p:not(.section-index) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  min-height: 190px;
  padding-block: 42px;
  border-top: 1px solid var(--line);
}

.article-shell,
.archive-shell {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

.article-shell {
  padding: 86px 0 120px;
}

.article-header {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.article-back {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.article-header h1,
.archive-header h1 {
  max-width: 900px;
  margin: 18px 0 28px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1;
}

.article-description,
.archive-header > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

.article-content {
  max-width: 760px;
  margin: 64px auto 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 2;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.article-content h2 {
  margin: 72px 0 24px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.article-content h3 {
  margin: 52px 0 20px;
  font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content figure {
  margin: 0 0 28px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 8px;
  padding-left: 0.3em;
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent);
  text-underline-offset: 4px;
}

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

.article-content blockquote {
  padding: 4px 0 4px 24px;
  color: var(--muted);
  border-left: 3px solid var(--signal);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content code {
  padding: 0.16em 0.38em;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.88em;
  background: var(--paper-deep);
  border-radius: 4px;
}

.article-content .highlight {
  margin: 36px 0;
  overflow-x: auto;
  color: #dbe4ff;
  background: #111827;
}

.article-content .highlight table {
  width: 100%;
  border-collapse: collapse;
}

.article-content .highlight pre {
  margin: 0;
  padding: 20px;
  line-height: 1.7;
}

.article-content .highlight code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.article-content .gutter {
  width: 1%;
  color: #6b7280;
  border-right: 1px solid #30394a;
  user-select: none;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 42px auto;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin: 70px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-tags a {
  padding: 8px 12px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.page-article .article-content > h2:first-child {
  margin-top: 0;
}

.archive-header {
  margin-bottom: 58px;
}

.archive-search {
  margin-bottom: 48px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.archive-search > label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.archive-search-control {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 2px solid var(--ink);
}

.archive-search-control input {
  min-width: 0;
  padding: 14px 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  background: transparent;
  border: 0;
  outline: 0;
}

.archive-search-control input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.archive-search-control input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.archive-search-control button {
  padding: 8px 0 8px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.archive-search-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-results {
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.search-result {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.search-result-meta {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-result h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.search-result h2 a {
  background-image: linear-gradient(var(--signal), var(--signal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
}

.search-result h2 a:hover,
.search-result h2 a:focus-visible {
  background-size: 100% 2px;
}

.search-result-snippet {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.taxonomy-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 70px);
  margin-bottom: 60px;
}

.taxonomy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.taxonomy-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease;
}

.taxonomy-links a:hover,
.taxonomy-links a:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.taxonomy-links strong {
  color: var(--signal);
  font-size: 0.7rem;
}

.archive-list {
  min-height: 180px;
}

.revision-history {
  max-width: 760px;
  margin: 72px auto 0;
  padding: 36px;
  background: var(--paper-deep);
  border-left: 4px solid var(--signal);
}

.revision-history h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.revision-history ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.revision-history li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.revision-history time {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.revision-history p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
}

.footer-meta {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 0.75rem;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-block: 70px 100px;
  }

  .hero-visual {
    justify-self: center;
    width: min(62vw, 380px);
  }

  .hero-aside {
    display: none;
  }

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

  .topic-card {
    min-height: 260px;
  }

  .about {
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: auto;
    padding: 72px 16px 90px;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  .hero-intro {
    line-height: 1.75;
  }

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

  .hero-visual {
    width: min(76vw, 330px);
  }

  .section-shell {
    padding-block: 78px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 38px;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .post-featured,
  .post-row {
    grid-template-columns: 35px 1fr;
    gap: 12px;
    min-height: 0;
    padding: 26px 0;
  }

  .post-arrow,
  .post-status {
    grid-column: 2;
    justify-self: start;
  }

  .opening-note {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    padding-inline: 16px;
  }

  .note-label {
    writing-mode: horizontal-tb;
  }

  .note-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .about-stamp {
    width: min(250px, 75vw);
    justify-self: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
    padding-block: 38px;
  }

  .site-footer > p {
    text-align: left;
  }

  .footer-meta {
    justify-content: space-between;
  }

  .article-shell,
  .archive-shell {
    width: min(100% - 32px, 920px);
  }

  .article-shell {
    padding: 58px 0 80px;
  }

  .article-back {
    margin-bottom: 40px;
  }

  .article-header {
    padding-bottom: 40px;
  }

  .article-header h1,
  .archive-header h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .article-content {
    margin-top: 42px;
    font-size: 1rem;
    line-height: 1.9;
  }

  .article-content h2 {
    margin-top: 54px;
  }

  .taxonomy-index {
    grid-template-columns: 1fr;
    margin-bottom: 46px;
  }

  .archive-search {
    margin-bottom: 40px;
    padding: 22px 18px;
  }

  .revision-history {
    margin-top: 54px;
    padding: 28px 20px;
  }

  .revision-history li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

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