:root {
  --paper: #f6f3ec;
  --paper-deep: #eee9df;
  --card: #fffdf8;
  --ink: #17201d;
  --muted: #64706a;
  --line: #d9d2c5;
  --accent: #0f6b5c;
  --accent-soft: #e3efe9;
  --warning: #8a4b12;
  --warning-soft: #f8ead8;
  --max-width: 1180px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-width: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(246, 243, 236, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 800;
  flex: none;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
  min-width: 0;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

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

.mobile-menu {
  margin-left: auto;
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(240px, 80vw);
  display: grid;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent-soft);
}

.mobile-menu nav a {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

.hero {
  padding: 74px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 56px;
  align-items: end;
}

.hero-copy,
.hero-aside,
.article,
.article-section {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 900px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #3e4a45;
  font-size: clamp(1rem, 1.4vw, 1.17rem);
  line-height: 1.95;
}

.meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 12px;
}

.meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: 2px;
}

.hero-aside {
  border-top: 4px solid var(--ink);
  padding-top: 18px;
}

.aside-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-aside ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  counter-reset: item;
}

.hero-aside li {
  counter-increment: item;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: #38443f;
}

.hero-aside li::before {
  content: "0" counter(item);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

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

.aside-note {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  padding: 66px 0 90px;
}

.article {
  min-width: 0;
  max-width: 820px;
}

.article-section {
  padding: 0 0 56px;
  margin: 0 0 56px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.article-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-index {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.article h2 {
  margin: 0 0 20px;
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.article p {
  margin: 0 0 16px;
  color: #38443f;
  font-size: 16px;
}

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

.key-points {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}

.key-points ul,
.risk-box ul {
  margin: 0;
  padding-left: 20px;
}

.key-points li,
.risk-box li {
  margin: 7px 0;
  color: #38443f;
  font-size: 15px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.concept-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}

.concept-card p {
  font-size: 14px;
  line-height: 1.8;
}

.muted {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: #38443f;
  line-height: 1.7;
}

.source {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.risk-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--warning-soft);
  border: 1px solid #e8cba7;
  border-left: 4px solid var(--warning);
}

.risk-box h3 {
  color: var(--warning);
}

.risk-box li {
  color: #5d3b1a;
}

details {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

details[open] {
  border-color: var(--accent);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  border-top: 2px solid var(--ink);
}

.toc-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc a {
  color: #4c5953;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}

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

.toc-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.site-footer {
  background: var(--ink);
  color: #dce5df;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.5fr) minmax(160px, 0.6fr);
  gap: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-eyebrow {
  margin: 0 0 10px;
  color: #8fc7b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 24px;
}

.footer-grid p {
  margin: 0;
  color: #b9c5be;
  font-size: 13px;
  line-height: 1.85;
}

.footer-label {
  color: #8fc7b5 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

.footer-grid a {
  display: block;
  color: #dce5df;
  font-size: 13px;
  padding: 4px 0;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8fa198;
  font-size: 11px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-aside {
    max-width: 420px;
  }

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

  .toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

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

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

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .brand-copy strong {
    white-space: normal;
    line-height: 1.2;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .lead,
  .article p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .meta {
    display: grid;
    gap: 8px;
  }

  .article-layout {
    padding: 44px 0 64px;
  }

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

  .article-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.error-page {
  min-height: calc(100vh - 190px);
  display: grid;
  align-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.error-page h1 {
  margin: 0 0 16px;
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15;
}

.error-page > p:not(.eyebrow, .error-code) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.error-action {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.error-action:hover {
  background: var(--accent);
}

@media (max-width: 640px) {
  .error-page {
    min-height: calc(100vh - 260px);
  }
}

/* Article library */

.breadcrumb {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.breadcrumb span[aria-hidden="true"] {
  color: #a4ada8;
}

.home-stats {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-stats div {
  min-width: 0;
  padding: 18px 20px 18px 0;
  border-right: 1px solid var(--line);
}

.home-stats div:not(:first-child) {
  padding-left: 20px;
}

.home-stats div:last-child {
  border-right: 0;
}

.home-stats strong,
.home-stats span {
  display: block;
}

.home-stats strong {
  color: var(--ink);
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.home-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.library-section {
  padding: 76px 0 90px;
}

.section-heading {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 42px;
  align-items: end;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2,
.home-note h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-width: 0;
  min-height: 300px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--accent-soft);
}

.card-topline,
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card-tag {
  padding: 3px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.article-card h3 {
  margin: 28px 0 14px;
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.4;
}

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

.article-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.text-link {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.home-note {
  padding: 64px 0;
  background: var(--ink);
  color: #dce5df;
}

.home-note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 64px;
  align-items: end;
}

.home-note .eyebrow {
  color: #8fc7b5;
}

.home-note h2 {
  color: #fff;
}

.home-note-inner > p {
  margin: 0;
  color: #b9c5be;
  font-size: 14px;
  line-height: 1.9;
}

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

.archive-hero h1 {
  max-width: 980px;
}

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

.article-hero-grid {
  align-items: start;
}

.article-hero .lead {
  color: #46514c;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  margin-top: 0;
}

.faq-list summary {
  align-items: flex-start;
}

.faq-index {
  flex: none;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.closing-box {
  padding: 28px;
  background: var(--accent-soft);
  border-top: 4px solid var(--accent);
}

.closing-box p {
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 1.08rem;
  line-height: 1.95;
}

.article-disclaimer {
  margin-top: 54px;
  padding: 22px 24px;
  border: 1px solid #e8cba7;
  border-left: 4px solid var(--warning);
  background: var(--warning-soft);
}

.article-disclaimer strong {
  color: var(--warning);
  font-size: 13px;
}

.article-disclaimer p {
  margin: 8px 0 0;
  color: #5d3b1a;
  font-size: 13px;
  line-height: 1.8;
}

.article-pagination {
  padding: 0 0 92px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pagination-card {
  min-width: 0;
  padding: 22px 24px;
  display: grid;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--line);
}

.pagination-card:hover {
  border-color: var(--ink);
}

.pagination-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pagination-card strong {
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 1.04rem;
  line-height: 1.5;
}

.pagination-next {
  grid-column: 2;
  text-align: right;
}

.article-card h3,
.pagination-card strong,
.section-heading h2,
.home-note h2,
.hero h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-note-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stats div:nth-child(2) {
    border-right: 0;
  }

  .home-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .home-stats div:nth-child(3) {
    padding-left: 0;
  }

  .library-section {
    padding: 52px 0 64px;
  }

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

  .article-card {
    min-height: 0;
    padding: 22px;
  }

  .card-footer {
    align-items: flex-end;
  }

  .article-pagination {
    grid-template-columns: 1fr;
    padding-bottom: 66px;
  }

  .pagination-next {
    grid-column: 1;
    text-align: left;
  }

  .home-note {
    padding: 50px 0;
  }

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

/* Search-oriented editorial layout */

.hero-highlight {
  display: block;
  margin-top: 0.16em;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 0.48em;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

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

.editorial-grid .article-card {
  min-height: 0;
  display: grid;
  grid-template-areas:
    "topline title"
    "topline description"
    "topline footer";
  grid-template-columns: 128px minmax(0, 1fr);
  column-gap: 28px;
  padding: 28px 32px;
}

.editorial-grid .card-topline {
  grid-area: topline;
  display: grid;
  align-content: start;
  justify-content: start;
  justify-items: start;
  gap: 10px;
}

.editorial-grid .article-card h3 {
  grid-area: title;
  margin: 0 0 12px;
}

.editorial-grid .article-card > p {
  grid-area: description;
  margin-bottom: 18px;
}

.editorial-grid .card-footer {
  grid-area: footer;
  padding-top: 15px;
}

.related-reading {
  padding: 0 0 88px;
}

.related-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.related-heading .eyebrow {
  margin-bottom: 7px;
}

.related-heading h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.25;
}

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

.related-link {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.related-link:hover {
  border-color: var(--accent);
}

.related-link span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.related-link strong {
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .editorial-grid .article-card {
    grid-template-areas:
      "topline"
      "title"
      "description"
      "footer";
    grid-template-columns: 1fr;
  }

  .editorial-grid .card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }
}

@media (max-width: 640px) {
  .hero-highlight {
    font-size: 0.56em;
  }

  .related-reading {
    padding-bottom: 64px;
  }

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

/* Compact layout */

.hero {
  padding-top: 46px;
  padding-bottom: 34px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
}

.hero-highlight {
  margin-top: 0.08em;
}

.lead {
  margin-top: 14px;
  line-height: 1.75;
}

.search-box {
  margin-top: 18px;
}

.chips {
  margin-top: 12px;
}

.home-stats {
  margin-top: 22px;
}

.home-stats div {
  padding-top: 12px;
  padding-bottom: 12px;
}

.library-section {
  padding: 42px 0 56px;
}

.section-heading {
  margin-bottom: 22px;
}

.article-grid {
  gap: 14px;
}

.article-card {
  min-height: 240px;
  padding: 22px;
}

.article-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.article-card > p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.card-footer {
  padding-top: 14px;
}

.editorial-grid .article-card {
  padding: 22px 26px;
}

.home-note {
  padding: 38px 0;
}

.article-layout {
  padding-top: 44px;
  padding-bottom: 60px;
}

.article-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
}

.article h2 {
  margin-bottom: 14px;
}

.article p {
  margin-bottom: 12px;
  line-height: 1.75;
}

.article-pagination,
.related-reading {
  padding-bottom: 56px;
}

.site-footer {
  margin-top: 0;
  padding-top: 34px;
  padding-bottom: 16px;
}

.footer-grid {
  gap: 24px;
  padding-bottom: 20px;
}

.footer-grid p {
  line-height: 1.65;
}

.footer-grid a {
  padding: 2px 0;
}

.footer-bottom {
  padding-top: 12px;
  gap: 8px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid > div:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
  }

  .footer-grid > div:nth-child(2) .footer-label {
    width: 100%;
    margin-bottom: 2px !important;
  }

  .footer-grid > div:nth-child(2) a {
    display: inline-block;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 8.5vw, 2.65rem);
  }

  .home-stats {
    margin-top: 18px;
  }

  .library-section {
    padding: 34px 0 46px;
  }

  .home-note {
    padding: 32px 0;
  }

  .article-layout {
    padding-top: 34px;
    padding-bottom: 46px;
  }

  .site-footer {
    padding-top: 28px;
  }
}
