/* April Finance — shared design system */
:root {
  color-scheme: light;
  --paper: #f2f0ea;
  --paper-raised: #faf9f5;
  --paper-muted: #e7e4dc;
  --ink: #151611;
  --ink-soft: #62635b;
  --ink-faint: #8b8b82;
  --line: rgba(21, 22, 17, 0.16);
  --line-strong: rgba(21, 22, 17, 0.34);
  --accent: #f15d3e;
  --accent-dark: #c94529;
  --on-accent: #151611;
  --header-bg: rgba(242, 240, 234, 0.92);
  --container: 1180px;
  --reading: 720px;
  --header-height: 76px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11120f;
  --paper-raised: #181a16;
  --paper-muted: #21231e;
  --ink: #efeee8;
  --ink-soft: #a5a59c;
  --ink-faint: #77786f;
  --line: rgba(239, 238, 232, 0.15);
  --line-strong: rgba(239, 238, 232, 0.31);
  --accent: #ff6849;
  --accent-dark: #ff8a70;
  --on-accent: #11120f;
  --header-bg: rgba(17, 18, 15, 0.92);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 220ms ease, color 220ms ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

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

.section {
  padding-block: 118px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.noscript {
  margin: 0;
  padding: 16px;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.brand-monogram {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.desktop-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--paper-muted);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.moon-icon,
:root[data-theme="dark"] .sun-icon {
  display: none;
}

:root[data-theme="dark"] .moon-icon {
  display: block;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* Shared editorial elements */
.overline,
.section-index {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overline > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.24);
  background: #f2f0ea;
  color: #151611;
}

.button-light:hover {
  background: var(--accent);
}

.inline-link,
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

.inline-link span,
.read-link span {
  transition: transform 180ms var(--ease);
}

.inline-link:hover span,
.read-link:hover span {
  transform: translateX(4px);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 62px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.section-header h2 {
  margin: 9px 0 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1;
}

.section-header > p {
  max-width: 360px;
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* Home hero */
.home-hero {
  position: relative;
  padding: 68px 0 0;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.7fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 29px 0 29px;
  font-size: clamp(64px, 7.7vw, 105px);
  font-weight: 620;
  letter-spacing: -0.08em;
  line-height: 0.94;
}

.hero-copy h1 > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 42px;
}

.editorial-cover {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper-raised);
  background-size: 44px 44px;
}

.editorial-cover::after {
  position: absolute;
  right: -22%;
  bottom: -18%;
  width: 88%;
  height: 58%;
  border-radius: 50% 50% 0 0;
  background: var(--accent);
  content: "";
}

.cover-topline {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cover-orbit {
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cover-disc {
  position: absolute;
  z-index: 3;
  top: 45%;
  left: 50%;
  display: flex;
  width: 46%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transform: translate(-50%, -50%);
}

.cover-disc span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
}

.cover-disc i {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 23px;
}

.editorial-cover > p {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 27px;
  margin: 0;
  color: var(--on-accent);
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.cover-caption {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 22px;
  color: var(--on-accent);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.category-rail {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 68px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail > * {
  flex: 0 0 auto;
  padding: 14px 21px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.category-rail > span {
  padding-left: 0;
  color: var(--ink);
  font-weight: 700;
}

.category-rail a:hover {
  background: var(--paper-muted);
  color: var(--ink);
}

/* Featured */
.featured-section {
  background: var(--paper-raised);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: stretch;
  gap: clamp(40px, 7vw, 90px);
}

.feature-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent);
  color: #151611;
}

.feature-visual::before,
.feature-visual::after {
  position: absolute;
  border: 1px solid rgba(21, 22, 17, 0.28);
  border-radius: 50%;
  content: "";
}

.feature-visual::before {
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
}

.feature-visual::after {
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-style: dashed;
  transform: translate(-50%, -50%);
}

.feature-code {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: 27px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.feature-circle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: #151611;
  transform: translate(-50%, -50%);
  transition: transform 400ms var(--ease);
}

.feature-visual:hover .feature-circle {
  transform: translate(-50%, -50%) scale(1.04);
}

.feature-visual strong {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  color: #f2f0ea;
  font-family: Georgia, serif;
  font-size: 64px;
  font-style: italic;
  transform: translate(-50%, -50%);
}

.feature-visual small {
  position: absolute;
  z-index: 3;
  right: 27px;
  bottom: 24px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cover-ink {
  background: #252722;
  color: #f2f0ea;
}

.cover-ink::before,
.cover-ink::after {
  border-color: rgba(242, 240, 234, 0.24);
}

.cover-sand {
  background: #c8b99d;
  color: #151611;
}

.feature-copy {
  align-self: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.article-meta > * + *::before {
  margin-right: 13px;
  color: var(--ink-faint);
  content: "/";
}

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

.example-label {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.article-meta > .example-label + *::before {
  content: none;
}

.feature-copy h3 {
  margin: 26px 0 22px;
  font-size: clamp(35px, 4vw, 53px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.12;
}

.feature-copy h3 a:hover {
  color: var(--accent);
}

.feature-copy > p {
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 15px;
}

.read-link {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-strong);
}

/* Latest article rows */
.latest-section {
  border-top: 1px solid var(--line);
}

.latest-list,
.archive-list,
.search-results {
  border-top: 1px solid var(--line-strong);
}

.latest-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 25px;
  padding: 35px 0 38px;
  border-bottom: 1px solid var(--line);
}

.row-index {
  padding-top: 4px;
  color: var(--ink-faint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.row-main h3 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.row-main h3 a {
  transition: color 150ms ease;
}

.row-main h3 a:hover {
  color: var(--accent);
}

.row-main > p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.round-link {
  display: grid;
  width: 48px;
  height: 48px;
  align-self: center;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 18px;
  transition: background 170ms ease, color 170ms ease, transform 170ms var(--ease);
}

.round-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(8deg);
}

/* Categories */
.category-section {
  background: var(--paper-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.category-card {
  display: flex;
  min-height: 270px;
  padding: 25px;
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background 180ms ease, color 180ms ease;
}

.category-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.category-card > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.category-card:hover > span,
.category-card:hover p {
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}

.category-card h3 {
  margin: 35px 0 12px;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 590;
  letter-spacing: -0.05em;
}

.category-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.category-card small {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  font-size: 10px;
}

.category-card i {
  font-size: 15px;
  font-style: normal;
}

/* Home about */
.home-about {
  padding-block: 115px;
  background: #151611;
  color: #f2f0ea;
}

.home-about .section-index {
  color: rgba(242, 240, 234, 0.52);
}

.home-about h2 {
  max-width: 950px;
  margin: 33px 0 50px;
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 560;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 62px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
}

.footer-brand span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.footer-main nav {
  display: flex;
  gap: 28px;
}

.footer-main nav a {
  color: var(--ink-soft);
  font-size: 12px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--ink);
}

/* General page hero */
.page-hero {
  padding-block: 94px 75px;
  border-bottom: 1px solid var(--line-strong);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.5fr);
  align-items: end;
  gap: 80px;
}

.page-hero h1,
.search-heading h1,
.about-copy h1 {
  margin: 21px 0 0;
  font-size: clamp(76px, 11vw, 150px);
  font-weight: 610;
  letter-spacing: -0.085em;
  line-height: 0.85;
}

.page-hero-grid > p {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Archive */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.archive-toolbar > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.archive-toolbar > p span {
  color: var(--ink);
  font-weight: 700;
}

.archive-toolbar > p a {
  color: var(--accent-dark);
}

.archive-toolbar > div {
  display: flex;
  gap: 8px;
}

.archive-toolbar > div a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
}

.archive-toolbar > div a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.archive-row {
  padding-block: 43px;
}

.empty-state {
  padding: 75px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.empty-state p {
  margin: 0 0 30px;
  color: var(--ink-soft);
}

/* Category directory */
.page-hero-categories {
  background: var(--paper-raised);
}

.category-directory {
  padding-top: 72px;
}

.directory-grid {
  border-top: 1px solid var(--line-strong);
}

.directory-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 220px;
  padding: 32px 5px;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 200ms var(--ease), color 180ms ease;
}

.directory-card:hover {
  padding-inline: 20px;
  color: var(--accent-dark);
}

.directory-number {
  align-self: start;
  padding-top: 4px;
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.directory-card span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.directory-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}

.directory-card p {
  max-width: 600px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.directory-count {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 11px;
}

.directory-count i {
  color: var(--ink);
  font-size: 24px;
  font-style: normal;
}

/* About */
.about-page {
  min-height: calc(100svh - var(--header-height));
  padding-block: 90px 120px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 10vw, 145px);
}

.about-mark {
  position: sticky;
  top: calc(var(--header-height) + 35px);
  display: flex;
  width: 100%;
  height: max-content;
  aspect-ratio: 0.92;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper-raised);
  background-size: 42px 42px;
  color: var(--ink);
}

.about-mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 48%;
  border-radius: 100% 0 0;
  background: var(--accent);
  content: "";
}

.about-mark span,
.about-mark i {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: clamp(55px, 7vw, 90px);
  font-style: italic;
}

.about-mark i {
  color: var(--accent);
  font-size: 32px;
}

.about-copy h1 {
  font-size: clamp(68px, 8vw, 105px);
  line-height: 0.92;
}

.about-lead {
  max-width: 720px;
  margin: 66px 0;
  font-size: clamp(25px, 3.4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.about-note {
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.about-note h2 {
  margin: 0 0 13px;
  font-size: 13px;
}

.about-note p,
.about-disclaimer {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.about-disclaimer {
  margin: 28px 0;
  font-size: 11px;
}

/* Search */
.search-page {
  min-height: calc(100svh - var(--header-height));
  padding-block: 92px 120px;
}

.search-inner {
  max-width: 980px;
}

.search-heading h1 {
  font-size: clamp(68px, 10vw, 125px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 78px;
  border-bottom: 2px solid var(--ink);
}

.search-form input {
  width: 100%;
  padding: 20px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(21px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.search-form input::placeholder {
  color: var(--ink-faint);
}

.search-form button {
  padding: 0 7px 0 28px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.search-form button:hover {
  color: var(--accent);
}

.search-status {
  margin: 20px 0 55px;
  color: var(--ink-soft);
  font-size: 11px;
}

.search-row {
  padding-block: 34px;
}

/* Article page */
.reading-progress {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

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

.article-hero {
  padding-block: 48px 86px;
  border-bottom: 1px solid var(--line-strong);
}

.back-link {
  color: var(--ink-soft);
  font-size: 11px;
}

.back-link:hover {
  color: var(--accent-dark);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: 75px;
  margin-top: 70px;
}

.article-heading h1 {
  max-width: 900px;
  margin: 28px 0 26px;
  font-size: clamp(48px, 7vw, 83px);
  font-weight: 610;
  letter-spacing: -0.07em;
  line-height: 1.07;
}

.article-heading > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
}

.article-stamp {
  position: relative;
  display: flex;
  aspect-ratio: 0.78;
  padding: 18px;
  flex-direction: column;
  overflow: hidden;
  background: var(--accent);
  color: #151611;
}

.article-stamp::before {
  position: absolute;
  right: -65px;
  bottom: -65px;
  width: 190px;
  height: 190px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.35;
}

.article-stamp > span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.article-stamp strong {
  margin: auto 0;
  font-family: Georgia, serif;
  font-size: 57px;
  font-style: italic;
  text-align: center;
}

.article-stamp small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.05;
}

.article-stamp.cover-ink {
  background: #252722;
  color: #f2f0ea;
}

.article-stamp.cover-sand {
  background: #c8b99d;
}

.reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading));
  justify-content: center;
  gap: clamp(55px, 9vw, 120px);
  padding-block: 95px 125px;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  align-self: start;
  padding-top: 17px;
  border-top: 1px solid var(--line-strong);
}

.article-toc > p {
  margin: 0 0 19px;
  font-size: 11px;
  font-weight: 700;
}

.article-toc nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.article-toc nav a {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

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

.article-toc nav span {
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.article-toc > small {
  display: block;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 9px;
}

.article-body {
  min-width: 0;
  color: color-mix(in srgb, var(--ink) 92%, var(--paper));
  font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 18px;
  line-height: 1.95;
}

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

.article-body p {
  margin: 0 0 31px;
}

.article-body .article-lead {
  margin-bottom: 50px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

.article-body h2 {
  margin: 72px 0 27px;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 4vw, 39px);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.article-body h2::before {
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--accent);
  content: "";
}

.article-body ul {
  margin: 0 0 36px;
  padding-left: 1.3em;
}

.article-body li {
  margin-bottom: 12px;
  padding-left: 7px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body blockquote {
  margin: 55px 0;
  padding: 3px 0 3px 30px;
  border-left: 3px solid var(--accent);
}

.article-body blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3.5vw, 34px);
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.article-callout {
  margin-top: 60px;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  background: var(--paper-muted);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.article-callout strong {
  font-size: 12px;
}

.article-callout p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.article-footer {
  padding-block: 70px 100px;
  border-top: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-top: 42px;
}

.article-pagination a {
  display: flex;
  min-height: 150px;
  padding: 24px 0;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
}

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

.article-pagination span {
  color: var(--ink-soft);
  font-size: 10px;
}

.article-pagination strong {
  max-width: 440px;
  font-size: clamp(20px, 2.7vw, 29px);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.3;
  transition: color 160ms ease;
}

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

.article-pagination .next strong {
  align-self: flex-end;
}

.missing-article {
  min-height: 70svh;
  padding-block: 110px;
}

.missing-article h1 {
  margin: 25px 0 18px;
  font-size: clamp(50px, 8vw, 90px);
  letter-spacing: -0.07em;
}

.missing-article > .container > p:not(.section-index) {
  margin-bottom: 35px;
  color: var(--ink-soft);
}

/* Subtle reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1020px) {
  .section {
    padding-block: 96px;
  }

  .hero-layout {
    grid-template-columns: 1fr 340px;
    gap: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(59px, 8.5vw, 86px);
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 430px;
  }

  .feature-copy {
    max-width: 720px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 320px 1fr;
    gap: 60px;
  }

  .article-hero-grid {
    grid-template-columns: 1fr 210px;
    gap: 45px;
  }

  .reading-layout {
    grid-template-columns: 190px minmax(0, var(--reading));
    gap: 45px;
  }
}

/* iPad and mobile navigation */
@media (max-width: 780px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-block: 78px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    left: 0;
    display: flex;
    width: 100%;
    height: calc(100svh - var(--header-height));
    padding: 32px 16px;
    flex-direction: column;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms var(--ease);
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 13px 3px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(29px, 8vw, 43px);
    font-weight: 590;
    letter-spacing: -0.05em;
  }

  .mobile-nav a.is-active {
    color: var(--accent);
  }

  .home-hero {
    padding-top: 50px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy h1 {
    max-width: 680px;
    font-size: clamp(58px, 13.5vw, 96px);
  }

  .editorial-cover {
    width: min(100%, 560px);
    aspect-ratio: 1.08;
    justify-self: center;
  }

  .cover-disc {
    width: 35%;
  }

  .category-rail {
    margin-top: 50px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 42px;
  }

  .section-header h2 {
    font-size: clamp(40px, 10vw, 58px);
  }

  .feature-visual {
    min-height: 370px;
  }

  .latest-row {
    grid-template-columns: 35px 1fr;
    gap: 10px;
  }

  .round-link {
    grid-column: 2;
    width: 42px;
    height: 42px;
    margin-top: 5px;
  }

  .category-card {
    min-height: 245px;
  }

  .home-about {
    padding-block: 90px;
  }

  .footer-main {
    gap: 40px;
  }

  .page-hero {
    padding-block: 72px 58px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .page-hero h1,
  .search-heading h1 {
    font-size: clamp(70px, 20vw, 120px);
  }

  .directory-card {
    grid-template-columns: 45px 1fr;
  }

  .directory-count {
    grid-column: 2;
    justify-content: space-between;
  }

  .about-page {
    padding-block: 65px 90px;
  }

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

  .about-mark {
    position: relative;
    top: auto;
    width: min(100%, 540px);
    aspect-ratio: 1.2;
  }

  .article-hero {
    padding-bottom: 65px;
  }

  .article-hero-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .article-stamp {
    width: 190px;
    justify-self: end;
  }

  .reading-layout {
    grid-template-columns: minmax(0, var(--reading));
    padding-block: 72px 90px;
  }

  .article-toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--paper-raised);
  }

  .article-toc > small {
    display: none;
  }
}

/* Phone */
@media (max-width: 540px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .hero-copy h1 {
    margin-block: 26px 23px;
    font-size: clamp(53px, 16.5vw, 78px);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
  }

  .editorial-cover {
    aspect-ratio: 0.9;
    background-size: 38px 38px;
  }

  .cover-disc {
    width: 49%;
  }

  .section-header > p {
    max-width: none;
  }

  .featured-card {
    gap: 36px;
  }

  .feature-visual {
    min-height: 330px;
  }

  .feature-circle {
    width: 175px;
    height: 175px;
  }

  .feature-visual::after {
    width: 220px;
    height: 220px;
  }

  .feature-visual strong {
    font-size: 47px;
  }

  .feature-copy h3 {
    font-size: 32px;
  }

  .latest-row {
    padding-block: 31px;
  }

  .row-main h3 {
    font-size: 24px;
  }

  .article-meta {
    gap: 7px 9px;
  }

  .article-meta > * + *::before {
    margin-right: 9px;
  }

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

  .category-card {
    min-height: 225px;
  }

  .home-about h2 {
    font-size: 42px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 48px;
  }

  .footer-main nav {
    flex-wrap: wrap;
    gap: 16px 25px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 110px;
  }

  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .directory-card {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    min-height: 205px;
  }

  .directory-card h2 {
    font-size: 38px;
  }

  .about-copy h1 {
    font-size: 58px;
  }

  .about-lead {
    margin-block: 50px;
    font-size: 26px;
  }

  .search-page {
    padding-block: 70px 90px;
  }

  .search-heading h1 {
    font-size: 63px;
  }

  .search-form {
    margin-top: 55px;
  }

  .search-form input {
    min-width: 0;
    font-size: 19px;
  }

  .search-form button {
    padding-left: 12px;
  }

  .article-hero-grid {
    gap: 42px;
  }

  .article-heading h1 {
    font-size: 43px;
  }

  .article-stamp {
    width: 150px;
  }

  .article-stamp strong {
    font-size: 42px;
  }

  .reading-layout {
    gap: 45px;
    padding-block: 56px 75px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.9;
  }

  .article-body blockquote {
    margin-block: 45px;
    padding-left: 20px;
  }

  .article-body blockquote p {
    font-size: 24px;
  }

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

  .pagination-empty {
    display: none;
  }

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

  .article-pagination .next strong {
    align-self: flex-start;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Bilingual publication and long-form reading system */
.language-switch,
.mobile-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-switch {
  height: 40px;
  margin-right: 3px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch a,
.mobile-language-switch a {
  color: var(--ink-faint);
  transition: color 160ms ease;
}

.language-switch a:hover,
.language-switch a.is-active,
.mobile-language-switch a:hover,
.mobile-language-switch a.is-active {
  color: var(--ink);
}

.language-switch a.is-active,
.mobile-language-switch a.is-active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mobile-language-switch {
  display: none;
}

.home-statement {
  max-width: 650px;
  margin: 0 0 25px;
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-label::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-published {
  color: var(--accent-dark);
}

.status-research {
  color: var(--ink);
}

.toolbar-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.toolbar-button:hover {
  color: var(--accent-dark);
}

.topic-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
}

.topic-availability strong,
.topic-availability span {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

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

.directory-actions {
  min-width: 130px;
}

.article-detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-detail-meta > span {
  min-width: 0;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  background: var(--paper);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.article-detail-meta small {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.article-tags span,
.topic-tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  line-height: 1.3;
}

.reading-progress {
  position: fixed;
  z-index: 110;
  top: var(--header-height);
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.method-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.method-strip .container {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.method-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-strip i {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.method-strip b {
  color: var(--ink-faint);
  font-weight: 400;
}

.article-toc {
  max-height: calc(100vh - var(--header-height) - 60px);
  overflow: auto;
  scrollbar-width: thin;
}

.article-toc summary {
  margin-bottom: 18px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  list-style-position: inside;
  text-transform: uppercase;
}

.article-toc nav a {
  line-height: 1.35;
}

.article-module {
  scroll-margin-top: calc(var(--header-height) + 32px);
  margin-bottom: 75px;
  padding: 35px;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.module-label,
.section-number {
  margin: 0 0 20px !important;
  color: var(--accent-dark) !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.article-module > p:last-child,
.references-module p:last-child {
  margin-bottom: 0;
}

.article-module h2 {
  margin-top: 0;
}

.article-module h2::before {
  content: none;
}

.tldr-module {
  border-top: 4px solid var(--accent);
}

.question-module ol,
.takeaways-module ol {
  margin-bottom: 0;
}

.mechanism-module {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.mechanism-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}

.mechanism-flow > span {
  display: flex;
  min-width: 0;
  padding: 18px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mechanism-flow i {
  margin-bottom: 25px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.mechanism-flow strong {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.mechanism-flow > b {
  align-self: center;
  color: var(--accent);
  font-family: Inter, sans-serif;
  font-size: 15px;
}

.article-section {
  scroll-margin-top: calc(var(--header-height) + 32px);
  padding-top: 5px;
}

.article-body pre {
  max-width: 100%;
  margin: 12px 0 38px;
  padding: 23px 26px;
  overflow-x: auto;
  border-left: 3px solid var(--accent);
  background: var(--ink);
  color: var(--paper);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.article-body ol {
  margin: 0 0 36px;
  padding-left: 1.45em;
}

.article-body ol li {
  padding-left: 8px;
}

.article-body ol li::marker {
  color: var(--accent-dark);
  font-family: Inter, sans-serif;
  font-weight: 750;
}

.strong-paragraph {
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}

.limits-section {
  margin-top: 80px;
  padding: 36px;
  border: 1px solid var(--line-strong);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 32px 32px;
}

.limits-section > * {
  position: relative;
}

.takeaways-module {
  border-left: 5px solid var(--accent);
}

.references-module {
  border-style: dashed;
  background: transparent;
}

.article-end-note {
  margin: 80px 0 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  line-height: 1.65;
}

.search-dialog {
  width: min(calc(100% - 36px), 720px);
  max-height: min(78vh, 680px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.28);
}

.search-dialog::backdrop {
  background: rgba(9, 10, 8, 0.62);
  backdrop-filter: blur(5px);
}

.search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

.search-dialog-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.search-dialog-head button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.search-dialog > input {
  width: calc(100% - 44px);
  margin: 20px 22px 4px;
  padding: 17px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  outline: 0;
  background: transparent;
  font-size: clamp(21px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.quick-results {
  max-height: 380px;
  padding: 12px 22px;
  overflow-y: auto;
}

.quick-results a {
  display: flex;
  padding: 15px 0;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.quick-results a:hover strong {
  color: var(--accent-dark);
}

.quick-results span {
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-results strong {
  font-size: 16px;
  line-height: 1.35;
}

.search-shortcut {
  margin: 0;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 9px;
  text-align: right;
}

@media (min-width: 901px) {
  .article-toc summary {
    pointer-events: none;
    list-style: none;
  }

  .article-toc summary::-webkit-details-marker {
    display: none;
  }
}

@media (max-width: 1080px) {
  .brand-copy small {
    display: none;
  }

  .desktop-nav {
    gap: 19px;
  }

  .article-detail-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-detail-meta > span:nth-last-child(-n + 2) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .article-toc {
    position: static;
    max-height: none;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: var(--paper-raised);
    overflow: visible;
  }

  .article-toc summary {
    margin: 0;
    padding: 18px 20px;
  }

  .article-toc nav {
    padding: 0 20px 21px;
  }

  .method-strip {
    overflow-x: auto;
  }

  .method-strip .container {
    width: max-content;
    min-width: 100%;
    padding-inline: 24px;
    gap: 22px;
  }
}

@media (max-width: 780px) {
  .language-switch {
    display: none;
  }

  .mobile-language-switch {
    display: inline-flex;
    margin-top: 18px;
    padding: 15px 3px 6px;
    font-size: 13px;
  }

  .mobile-language-switch a {
    padding: 0;
    border: 0;
    font-size: inherit;
    font-weight: 750;
    letter-spacing: 0.03em;
  }

  .home-statement {
    max-width: 620px;
    font-size: clamp(39px, 9vw, 59px);
  }

  .article-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-detail-meta > span:last-child {
    grid-column: 1 / -1;
  }

  .mechanism-flow {
    grid-template-columns: 1fr;
  }

  .mechanism-flow > b {
    transform: rotate(90deg);
  }

  .mechanism-flow i {
    margin-bottom: 12px;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .home-statement {
    margin-bottom: 20px;
    font-size: clamp(36px, 10.5vw, 47px);
    line-height: 1.02;
  }

  .article-heading h1 {
    overflow-wrap: anywhere;
    font-size: clamp(36px, 10.7vw, 46px);
    line-height: 1.04;
  }

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

  .article-detail-meta > span {
    padding: 11px;
  }

  .article-module,
  .limits-section {
    margin-bottom: 54px;
    padding: 25px 20px;
  }

  .article-body pre {
    margin-inline: 0;
    padding: 18px;
    font-size: 12px;
  }

  .strong-paragraph {
    font-size: 17px;
  }

  .topic-availability {
    flex-direction: column;
    gap: 5px;
  }

  .search-dialog {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    transition: none !important;
  }
}

/* Content stays readable without scroll-triggered animation dependencies. */
.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 780px) {
  .language-switch {
    display: inline-flex;
    height: 36px;
    margin-right: 0;
    padding-inline: 10px;
  }

  .mobile-language-switch {
    display: none;
  }
}

@media (max-width: 390px) {
  .language-switch {
    gap: 5px;
    padding-inline: 8px;
    font-size: 10px;
  }
}

/* Fourth-round knowledge system */
.desktop-nav {
  gap: 18px;
}

.desktop-nav a {
  font-size: 12px;
}

.header-actions {
  align-items: center;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.header-search:hover {
  color: var(--accent-dark);
}

.header-search kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: 8px;
}

.currently-strip {
  border-block: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.currently-strip .container {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 92px;
}

.currently-strip .container > p {
  display: flex;
  align-items: center;
  margin: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.currently-strip .container > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.currently-strip a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.currently-strip a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.currently-strip a span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.currently-strip a:hover span {
  color: inherit;
}

.knowledge-grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.knowledge-grid.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.knowledge-grid.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.knowledge-card {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.knowledge-card > a {
  display: flex;
  min-height: 0;
  padding: 27px;
  flex-direction: column;
  transition: background-color 180ms ease, color 180ms ease;
}

.knowledge-card > a:hover {
  background: var(--ink);
  color: var(--paper);
}

.knowledge-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.knowledge-card .article-meta {
  margin-bottom: 18px;
}

.knowledge-card h3 {
  margin: 0 0 17px;
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.knowledge-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.knowledge-card > a:hover p,
.knowledge-card > a:hover .article-meta,
.knowledge-card > a:hover .knowledge-card-top {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.mechanism-home,
.notes-home {
  background: var(--paper-raised);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.pillar-grid > a,
.pillar-grid > article {
  position: relative;
  display: flex;
  min-height: 300px;
  padding: 27px;
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.pillar-grid > a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.pillar-grid span,
.pillar-grid small {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.pillar-grid h3,
.pillar-grid h2 {
  margin: auto 0 17px;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.pillar-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.pillar-grid > a:hover p {
  color: var(--on-accent);
}

.pillar-grid i {
  position: absolute;
  right: 25px;
  bottom: 25px;
}

.pillar-grid.large {
  grid-template-columns: repeat(2, 1fr);
}

.pillar-grid.large > article {
  min-height: 340px;
  scroll-margin-top: calc(var(--header-height) + 25px);
}

.pillar-grid.large h2 {
  margin-top: auto;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.note-card > a {
  min-height: 0;
}

.random-section {
  background: var(--paper-muted);
}

.random-explore {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 55px;
  padding: 48px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.random-explore h2 {
  margin: 0 0 7px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.random-explore div > p {
  max-width: 550px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.support-block {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 55px;
  margin-top: 75px;
  padding: 45px;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.support-block h2 {
  margin: 0 0 15px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.support-block div > p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--ink-soft);
}

.support-block small {
  display: block;
  margin-top: 13px;
  color: var(--ink-faint);
  font-size: 9px;
}

.mechanism-domain:nth-child(even) {
  background: var(--paper-raised);
}

.library-index {
  background: var(--paper-muted);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.library-grid > a {
  position: relative;
  min-height: 270px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.library-grid > a:last-child {
  grid-column: 1 / -1;
}

.library-grid > a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.library-grid span {
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.library-grid h2 {
  margin: 70px 0 3px;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}

.library-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.library-grid > a:hover p,
.library-grid > a:hover span {
  color: var(--on-accent);
}

.library-grid i {
  position: absolute;
  top: 30px;
  right: 30px;
}

.library-random {
  margin-top: 70px;
}

.lifecycle-strip,
.path-stage-strip {
  overflow-x: auto;
  border-block: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.lifecycle-strip .container,
.path-stage-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 18px;
}

.lifecycle-strip span,
.path-stage-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.lifecycle-strip span.is-current {
  color: var(--accent);
}

.lifecycle-strip i,
.path-stage-strip i {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.lifecycle-strip b,
.path-stage-strip b {
  color: var(--ink-faint);
  font-weight: 400;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.glossary-grid > a {
  position: relative;
  min-height: 270px;
  padding: 25px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.glossary-grid > a:hover {
  background: var(--ink);
  color: var(--paper);
}

.glossary-grid > a > span {
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.glossary-grid h2 {
  margin: 50px 0 2px;
  font-size: clamp(28px, 3.5vw, 43px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.glossary-grid small {
  color: var(--accent-dark);
  font-size: 10px;
}

.glossary-grid p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.glossary-grid > a:hover p {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.glossary-grid i {
  position: absolute;
  top: 25px;
  right: 25px;
}

.compare-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.compare-index > a {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.compare-index > a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.compare-index > a > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
}

.compare-index > a > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 70px 0 24px;
  flex-wrap: wrap;
}

.compare-index strong {
  font-size: clamp(27px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.compare-index div i {
  color: var(--accent-dark);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.compare-index > a:hover div i {
  color: var(--on-accent);
}

.compare-index p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.compare-index > a:hover p,
.compare-index > a:hover > span {
  color: var(--on-accent);
}

.compare-index > a > b {
  position: absolute;
  top: 30px;
  right: 30px;
}

.path-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.path-index > a {
  display: flex;
  min-height: 390px;
  padding: 28px;
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.path-index > a:hover {
  background: var(--ink);
  color: var(--paper);
}

.path-index > a > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
}

.path-index h2 {
  margin: auto 0 18px;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.path-index p {
  margin: 0 0 35px;
  color: var(--ink-soft);
  font-size: 12px;
}

.path-index small {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}

.path-index > a:hover p {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.source-legend {
  padding-block: 25px;
  border-bottom: 1px solid var(--line-strong);
}

.source-legend .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-type {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-primary,
.source-official {
  background: var(--ink);
  color: var(--paper);
}

.source-data,
.source-paper {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.sources-list .empty-state {
  max-width: 780px;
}

.knowledge-detail-hero,
.term-hero,
.compare-hero {
  padding-block: 48px 90px;
  border-bottom: 1px solid var(--line-strong);
}

.knowledge-detail-hero .overline,
.term-hero .overline,
.compare-hero .overline {
  margin-top: 70px;
}

.knowledge-detail-hero h1,
.term-hero h1 {
  max-width: 1020px;
  margin: 22px 0 25px;
  font-size: clamp(58px, 8.7vw, 118px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.detail-deck {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 22px);
}

.knowledge-detail-hero .article-detail-meta,
.term-hero .article-detail-meta,
.compare-hero .article-detail-meta {
  max-width: 950px;
}

.content-narrow {
  max-width: 800px;
}

.content-wide {
  max-width: 1050px;
}

.mechanism-canvas {
  padding-block: 88px;
  background: var(--ink);
  color: var(--paper);
}

.mechanism-canvas-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.mechanism-canvas-head p:last-child {
  max-width: 520px;
  margin: 0;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  font-size: 12px;
}

.mechanism-diagram {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mechanism-diagram::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 49px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
}

.mechanism-diagram li {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 25px;
  align-items: center;
  min-height: 125px;
}

.mechanism-diagram li > span {
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.mechanism-diagram li > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 35px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mechanism-diagram small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mechanism-diagram p {
  margin: 0;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  font-size: 13px;
}

.mechanism-diagram li > i {
  color: var(--accent);
  text-align: right;
}

.mechanism-research h2 {
  margin: 10px 0 35px;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.mechanism-research ol,
.note-block ol {
  margin: 0;
  padding-left: 1.4em;
}

.mechanism-research li,
.note-block li {
  margin-bottom: 15px;
}

.source-notice {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  margin-top: 65px;
  padding: 25px;
  border: 1px dashed var(--line-strong);
}

.source-notice span {
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.note-notice {
  margin-bottom: 50px;
  padding: 20px 23px;
  border-left: 4px solid var(--accent);
  background: var(--paper-muted);
  color: var(--ink-soft);
  font-size: 12px;
}

.note-block {
  padding: 50px 0;
  border-top: 1px solid var(--line-strong);
}

.note-block h2 {
  margin: 15px 0 0;
  font-size: clamp(31px, 5vw, 50px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.note-block > p:last-child {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  line-height: 1.85;
}

.term-local-name {
  margin: 0 0 35px;
  color: var(--accent-dark);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(24px, 4vw, 42px);
  font-style: italic;
}

.term-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 720px);
  justify-content: center;
  gap: 85px;
}

.term-layout > aside {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  align-self: start;
  padding: 25px;
  border-top: 4px solid var(--accent);
  background: var(--ink);
  color: var(--paper);
}

.term-layout > aside p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.term-layout > aside strong {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.7;
}

.term-sections > section {
  padding: 0 0 65px;
}

.term-sections h2 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.5vw, 47px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.term-sections section > p:last-child {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.85;
}

.term-sections .term-not {
  margin-bottom: 65px;
  padding: 35px;
  border: 1px solid var(--line-strong);
  background: var(--paper-muted);
}

.versus-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 35px;
  margin: 38px 0 27px;
}

.versus-title h1 {
  margin: 0;
  font-size: clamp(53px, 8vw, 105px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.versus-title i {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 50px);
  font-style: italic;
}

.compare-hero .container > p:not(.overline) {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 18px;
}

.compare-short {
  margin-bottom: 80px;
  padding: 35px;
  border-top: 4px solid var(--accent);
  background: var(--ink);
  color: var(--paper);
}

.compare-short h2 {
  max-width: 850px;
  margin: 22px 0 0;
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.comparison-table-section {
  margin-bottom: 80px;
}

.table-scroll {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
}

.comparison-table-section table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.comparison-table-section th,
.comparison-table-section td {
  padding: 22px;
  border: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.comparison-table-section thead th {
  background: var(--paper-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table-section tbody th {
  width: 22%;
  color: var(--ink-soft);
  font-size: 10px;
  text-transform: uppercase;
}

.compare-position {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 65px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.compare-position section {
  min-height: 280px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.compare-position h2 {
  margin: 60px 0 15px;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 1;
}

.compare-position p:last-child {
  color: var(--ink-soft);
  font-size: 13px;
}

.confusion-block {
  padding: 35px;
  border-left: 5px solid var(--accent);
  background: var(--paper-muted);
}

.confusion-block p:last-child {
  margin: 20px 0 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  line-height: 1.75;
}

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

.learning-steps > li {
  border-bottom: 1px solid var(--line-strong);
}

.learning-steps > li:first-child {
  border-top: 1px solid var(--line-strong);
}

.learning-steps > li > a,
.learning-steps > li > div {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  align-items: center;
  gap: 25px;
  min-height: 150px;
  padding: 22px 5px;
}

.learning-steps > li > a:hover {
  padding-inline: 20px;
  background: var(--accent);
  color: var(--on-accent);
}

.learning-steps > li > a > span,
.learning-steps > li > div > span {
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.learning-steps small {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learning-steps h2 {
  margin: 9px 0 0;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.learning-steps .is-pending {
  color: var(--ink-faint);
}

.revision-history {
  margin-top: 75px;
  border-block: 1px solid var(--line-strong);
}

.revision-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

.revision-history time,
.revision-history p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.related-content {
  margin-top: 90px;
}

.related-group {
  margin-top: 35px;
}

.related-group h2 {
  margin: 0 0 17px;
  font-size: clamp(25px, 3.5vw, 38px);
  font-weight: 590;
  letter-spacing: -0.05em;
}

.related-group > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.related-group a {
  position: relative;
  display: flex;
  min-height: 150px;
  padding: 22px;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.related-group a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.related-group a span {
  margin-bottom: 15px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.related-group a strong {
  padding-right: 25px;
  font-size: 17px;
  line-height: 1.3;
}

.related-group a i {
  position: absolute;
  top: 20px;
  right: 20px;
}

.content-end {
  padding-bottom: 100px;
}

.claims-section {
  margin-top: 75px;
}

.claim-card {
  padding: 35px;
  border: 1px solid var(--line-strong);
}

.claim-card h2 {
  margin: 20px 0 30px;
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 590;
  letter-spacing: -0.05em;
}

.claim-card dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.claim-card dt {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.claim-card dd {
  margin: 0;
  color: var(--ink-soft);
}

.claim-sources {
  display: grid;
  gap: 9px;
}

.claim-sources a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
}

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

.search-result-row {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
}

.search-result-row > span {
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.search-result-row small {
  color: var(--accent-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-result-row h2 {
  margin: 6px 0 8px;
  font-size: clamp(25px, 3.7vw, 38px);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.search-result-row h2 a:hover {
  color: var(--accent-dark);
}

.search-result-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.thanks-page {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  place-items: center;
  padding-block: 100px;
}

.thanks-page .container {
  max-width: 900px;
}

.thanks-page h1 {
  margin: 30px 0;
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.thanks-page .container > p:not(.overline) {
  max-width: 650px;
  margin-bottom: 35px;
  color: var(--ink-soft);
  font-size: 18px;
}

.thanks-page small {
  display: block;
  max-width: 620px;
  margin-top: 30px;
  color: var(--ink-faint);
  font-size: 10px;
}

@media (max-width: 1180px) {
  .brand-copy small,
  .header-search kbd {
    display: none;
  }

  .desktop-nav {
    gap: 13px;
  }

  .language-switch {
    padding-inline: 9px;
  }
}

@media (max-width: 1024px) {
  .header-search {
    width: 38px;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 0;
  }

  .header-search::before {
    font-size: 16px;
    content: "⌕";
  }

  .currently-strip .container {
    grid-template-columns: 150px 1fr;
  }

  .currently-strip .container > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-grid.three-column,
  .notes-list,
  .glossary-grid,
  .path-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .term-layout {
    grid-template-columns: 230px minmax(0, 650px);
    gap: 50px;
  }
}

@media (max-width: 780px) {
  .header-search {
    display: none;
  }

  .mobile-nav {
    overflow-y: auto;
    padding-bottom: 70px;
  }

  .mobile-nav a {
    padding-block: 8px;
    font-size: clamp(22px, 6.5vw, 31px);
  }

  .currently-strip .container {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .currently-strip .container > p {
    min-height: 48px;
    padding-inline: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .currently-strip a {
    min-height: 68px;
    padding: 14px 16px;
  }

  .knowledge-grid.two-column,
  .knowledge-grid.three-column,
  .notes-list,
  .glossary-grid,
  .compare-index,
  .path-index,
  .pillar-grid,
  .pillar-grid.large,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-grid > a:last-child {
    grid-column: auto;
  }

  .random-explore,
  .support-block {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
  }

  .random-explore .button {
    justify-self: start;
  }

  .knowledge-card > a {
    min-height: 0;
  }

  .mechanism-canvas-head {
    flex-direction: column;
  }

  .mechanism-diagram::before {
    left: 25px;
  }

  .mechanism-diagram li {
    grid-template-columns: 65px 1fr;
    gap: 5px;
    padding-bottom: 20px;
  }

  .mechanism-diagram li > span {
    width: 50px;
    height: 50px;
  }

  .mechanism-diagram li > div {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .mechanism-diagram li > i {
    display: none;
  }

  .term-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .term-layout > aside {
    position: static;
  }

  .versus-title {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .versus-title i {
    justify-self: start;
  }

  .compare-position,
  .related-group > div {
    grid-template-columns: 1fr;
  }

  .learning-steps > li > a,
  .learning-steps > li > div {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
  }

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

  .revision-history li p {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .currently-strip .container > div {
    grid-template-columns: 1fr;
  }

  .currently-strip a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .knowledge-card h3 {
    font-size: 31px;
  }

  .pillar-grid > a,
  .pillar-grid > article {
    min-height: 260px;
  }

  .random-explore,
  .support-block {
    padding: 25px 20px;
  }

  .knowledge-detail-hero,
  .term-hero,
  .compare-hero {
    padding-bottom: 65px;
  }

  .knowledge-detail-hero h1,
  .term-hero h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .source-notice {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .term-sections .term-not,
  .compare-short,
  .confusion-block {
    padding: 25px 20px;
  }

  .versus-title h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .comparison-table-section th,
  .comparison-table-section td {
    padding: 16px;
  }

  .learning-steps h2 {
    font-size: 28px;
  }

  .search-result-row {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .search-result-row > a {
    grid-column: 2;
  }

  .claim-card dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ---------- Research-first content model ---------- */
.brand-title {
  max-width: 800px !important;
  margin-bottom: 22px !important;
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: clamp(68px, 8.3vw, 112px) !important;
  line-height: 0.88 !important;
}

.brand-title > span {
  display: inline;
}

.hero-thesis {
  max-width: 660px;
  margin: 0 0 20px;
  font-size: clamp(29px, 3.3vw, 43px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.publication-empty {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.6fr) auto;
  align-items: end;
  gap: 50px;
  min-height: 245px;
  padding: 42px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.publication-empty > div > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.publication-empty h3 {
  margin: 17px 0 0;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.publication-empty > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.research-section {
  background: var(--paper-raised);
}

.research-grid,
.research-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.research-grid {
  grid-template-columns: repeat(3, 1fr);
}

.research-list {
  grid-template-columns: repeat(2, 1fr);
}

.research-card {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.research-card-link {
  display: flex;
  min-height: 455px;
  padding: 25px;
  flex-direction: column;
  transition: background-color 190ms ease, color 190ms ease;
}

.research-card-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.research-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.research-card-top i {
  color: var(--ink);
  font-size: 20px;
  font-style: normal;
  transition: transform 180ms var(--ease);
}

.research-card-link:hover .research-card-top i {
  color: var(--paper);
  transform: rotate(8deg);
}

.research-card .article-meta {
  margin-top: 45px;
}

.draft-label {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.draft-meta > .draft-label + *::before {
  content: none;
}

.research-card h3 {
  margin: 24px 0 17px;
  font-size: clamp(29px, 3.1vw, 40px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.research-card > a > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.research-card-link:hover > p,
.research-card-link:hover .article-meta,
.research-card-link:hover .research-card-top {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.research-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 35px;
  color: var(--ink-soft);
  font-size: 10px;
}

.research-card-link:hover .research-card-bottom {
  color: var(--paper);
}

.section-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.empty-kicker {
  margin-bottom: 12px !important;
  color: var(--ink-faint) !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.directory-card {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.directory-copy small {
  display: block;
  margin-top: 17px;
  color: var(--ink-faint);
  font-size: 10px;
}

.directory-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
}

.directory-actions a {
  min-width: 112px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.directory-actions a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.result-tags,
.topic-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.result-tags li,
.topic-tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
}

.about-statement {
  display: grid;
  gap: 22px;
  padding: 34px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.about-statement p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.research-queue-hero {
  background: var(--paper-raised);
}

.research-archive {
  padding-top: 72px;
}

.research-topic-hero {
  padding-block: 48px 84px;
  border-bottom: 1px solid var(--line-strong);
}

.research-topic-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: end;
  gap: 70px;
  margin-top: 65px;
}

.research-topic-heading h1 {
  max-width: 920px;
  margin: 28px 0 25px;
  font-size: clamp(48px, 7vw, 83px);
  font-weight: 610;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.research-topic-heading > div:first-child > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
}

.draft-stamp {
  position: relative;
  display: flex;
  aspect-ratio: 0.8;
  padding: 18px;
  flex-direction: column;
  overflow: hidden;
  background: var(--accent);
  color: #151611;
}

.draft-stamp::after {
  position: absolute;
  right: -65px;
  bottom: -65px;
  width: 180px;
  height: 180px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.35;
}

.draft-stamp > span,
.draft-stamp > small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.draft-stamp strong {
  margin: auto 0;
  font-family: Georgia, serif;
  font-size: 39px;
  font-style: italic;
  text-align: center;
}

.draft-stamp.cover-ink {
  background: #252722;
  color: #f2f0ea;
}

.draft-stamp.cover-sand {
  background: #c8b99d;
}

.research-topic-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: clamp(55px, 9vw, 120px);
  padding-block: 90px 120px;
}

.research-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  display: flex;
  align-self: start;
  padding-top: 18px;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.research-sidebar > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.research-sidebar > strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.research-sidebar > span {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.research-sidebar > a {
  margin-top: 24px;
  color: var(--ink);
  font-size: 10px;
}

.research-sidebar > a:hover {
  color: var(--accent-dark);
}

.outline-intro {
  padding-bottom: 42px;
}

.outline-intro h2 {
  margin: 13px 0 15px;
  font-size: clamp(41px, 5.3vw, 62px);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}

.outline-intro > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.outline-item {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 34px 0 37px;
  border-top: 1px solid var(--line-strong);
}

.outline-item > span {
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.outline-item p {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.outline-item h2 {
  margin: 0;
  font-size: clamp(25px, 3.3vw, 38px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.outline-item small {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 11px;
}

.outline-item.is-sources {
  margin-top: 18px;
  padding-inline: 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper-muted);
}

.topic-tags {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.topic-tags > span {
  color: var(--ink-soft);
  font-size: 10px;
}

@media (max-width: 1020px) {
  .research-grid {
    grid-template-columns: 1fr 1fr;
  }

  .research-topic-heading {
    grid-template-columns: minmax(0, 1fr) 195px;
    gap: 45px;
  }

  .research-topic-layout {
    grid-template-columns: 190px minmax(0, 700px);
    gap: 45px;
  }
}

@media (max-width: 780px) {
  .brand-title {
    font-size: clamp(64px, 14vw, 94px) !important;
  }

  .publication-empty {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

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

  .research-card-link {
    min-height: 390px;
  }

  .directory-card {
    grid-template-columns: 45px 1fr;
  }

  .directory-actions {
    grid-column: 2;
    align-items: flex-start;
    flex-flow: row wrap;
  }

  .research-topic-heading {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .draft-stamp {
    width: 180px;
    justify-self: end;
  }

  .research-topic-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 50px;
    padding-block: 65px 85px;
  }

  .research-sidebar {
    position: static;
    padding: 20px;
    border: 1px solid var(--line-strong);
    background: var(--paper-raised);
  }
}

@media (max-width: 540px) {
  .brand-title {
    font-size: clamp(57px, 17vw, 78px) !important;
    line-height: 0.92 !important;
  }

  .hero-thesis {
    font-size: 29px;
  }

  .publication-empty h3 {
    font-size: 35px;
  }

  .research-card-link {
    min-height: 375px;
  }

  .research-card h3 {
    font-size: 29px;
  }

  .research-card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .research-topic-heading h1 {
    font-size: 42px;
  }

  .draft-stamp {
    width: 145px;
  }

  .draft-stamp strong {
    font-size: 31px;
  }

  .outline-item {
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }

  .outline-item h2 {
    font-size: 25px;
  }

  .outline-item.is-sources {
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
