:root {
  color-scheme: light;
  --bg: #eef2ef;
  --paper: #fbfbf6;
  --surface: #ffffff;
  --surface-muted: #e6ede8;
  --text: #202724;
  --heading: #12231e;
  --muted: #64706b;
  --line: #cad7cf;
  --line-strong: #9db2a8;
  --accent: #286f5f;
  --accent-strong: #18483e;
  --accent-soft: #dcebe5;
  --focus: #d5a934;
  --shadow-soft: 0 1px 2px rgba(22, 46, 39, 0.08);
  --shadow-lift: 0 16px 36px rgba(22, 46, 39, 0.12);
  --page-pad: clamp(16px, 4vw, 44px);
  --content-max: 1060px;
  --reader-max: 760px;
  --sans: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --reader: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #fbfbf6 0, var(--paper) 250px, var(--bg) 100%);
  color: var(--text);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 3px; }
img { max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(157, 178, 168, 0.42); background: rgba(251, 251, 246, 0.9); backdrop-filter: blur(14px); }
.site-header-inner, .site-footer-inner, .shell { width: min(100%, var(--content-max)); margin: 0 auto; padding-right: var(--page-pad); padding-left: var(--page-pad); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--heading); font-family: var(--reader); font-size: 18px; font-weight: 700; white-space: nowrap; }
.site-logo { display: block; width: 28px; height: 28px; flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 800; padding: 0 11px; transition: background-color 150ms ease, color 150ms ease; }
.site-nav a:hover { background: var(--accent-soft); color: var(--heading); }
.shell { padding-top: 28px; padding-bottom: 64px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.page-title { margin: 0 0 6px; color: var(--heading); font-family: var(--reader); font-size: clamp(32px, 4vw, 50px); line-height: 1.05; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; margin-bottom: 10px; color: var(--accent-strong); font-size: 12px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-soft); padding: clamp(24px, 4vw, 38px); }
.home-hero h2 { max-width: 820px; margin: 0 0 14px; color: var(--heading); font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; }
.home-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-stats { display: grid; gap: 10px; }
.hero-stats div { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 6px; background: #f1f6f2; padding: 16px; }
.hero-stats strong { color: var(--heading); font-size: 26px; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 13px; font-weight: 700; }
.seo-panel, .seo-copy { margin-top: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-soft); padding: 22px; }
.seo-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 22px; align-items: center; }
.seo-panel h2, .seo-copy h2 { margin: 0 0 8px; color: var(--heading); font-size: 22px; line-height: 1.3; }
.seo-panel p, .seo-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.topic-tags span { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: #fbfbf6; color: var(--text); font-size: 13px; font-weight: 800; padding: 0 12px; }
.article-listbox { margin-top: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-soft); }
.article-listbox-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f1f6f2); padding: 20px 22px; }
.article-listbox-header h2 { margin: 0 0 4px; color: var(--heading); font-size: 22px; line-height: 1.25; }
.article-listbox-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-listbox-header span { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-list-item { display: grid; gap: 5px; min-height: 92px; border-bottom: 1px solid var(--line); color: var(--text); padding: 16px 18px; transition: background-color 150ms ease; }
.article-list-item:nth-child(odd) { border-right: 1px solid var(--line); }
.article-list-item:hover { background: var(--accent-soft); }
.article-list-title { color: var(--heading); font-size: 16px; font-weight: 800; line-height: 1.35; }
.article-list-excerpt { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article { max-width: var(--reader-max); margin: 0 auto; padding: 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 800; }
.breadcrumb a { color: var(--accent-strong); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.article-header { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.article-header h1 { margin: 0 0 10px; color: var(--heading); font-family: var(--reader); font-size: clamp(34px, 5vw, 50px); font-weight: 700; line-height: 1.05; }
.article-header p { max-width: 680px; margin: 0 0 14px; color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.article-meta span { display: inline-flex; align-items: center; min-height: 30px; border: 1px solid var(--line); border-radius: 999px; background: #f1f6f2; color: var(--muted); font-size: 11px; font-weight: 800; padding: 0 10px; }
.article-content { color: var(--text); font-family: var(--reader); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.68; }
.article-content > *:first-child { margin-top: 0; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { color: var(--heading); font-family: var(--reader); }
.article-content h2 { display: flex; align-items: center; gap: 8px; margin: 34px 0 12px; border-top: 1px solid var(--line); padding-top: 18px; font-size: clamp(23px, 2vw, 30px); line-height: 1.2; }
.article-content h2::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px; background: radial-gradient(circle at 50% 50%, var(--accent) 0 3px, transparent 4px), var(--paper); }
.article-content h3 { margin: 24px 0 8px; font-size: 21px; line-height: 1.3; }
.article-content h4 { margin: 26px 0 8px; font-size: 18px; line-height: 1.35; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 15px; }
.article-content ul, .article-content ol { padding-left: 1.3em; }
.article-content li { margin: 8px 0; }
.article-content a { color: var(--accent-strong); font-weight: 600; overflow-wrap: anywhere; text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.article-content a:hover { background: var(--accent-soft); text-decoration-color: currentColor; }
.article-content img, .article-content video, .article-content iframe { display: block; max-width: 100%; height: auto; }
.article-content img { margin: 20px auto; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); box-shadow: 0 6px 18px rgba(22, 46, 39, 0.12); padding: 5px; }
.article-content figure, .article-content .thumb, .article-content .tright, .article-content .floatright { float: right; clear: right; width: min(42%, 300px); margin: 4px 0 18px 24px; border: 1px solid var(--line); border-radius: 4px; background: #f1f6f2; padding: 6px; }
.article-content .tleft, .article-content .floatleft { float: left; clear: left; margin: 4px 24px 18px 0; }
.article-content .thumbinner { display: grid; gap: 6px; }
.article-content figure img, .article-content .thumb img, .article-content .tright img, .article-content .floatright img, .article-content .tleft img, .article-content .floatleft img { width: 100%; margin: 0; box-shadow: none; }
.article-content figcaption, .article-content .thumbcaption { max-width: 680px; margin: 6px auto 0; color: var(--muted); font-family: var(--sans); font-size: 11px; line-height: 1.4; text-align: center; }
.article-content > p:first-of-type { font-size: 19px; line-height: 1.72; color: #283630; }
.article-content .wikitable { margin: 22px 0; background: var(--surface); }
.article-content blockquote { margin: 22px 0; border-left: 4px solid var(--accent); background: #f1f6f2; color: #31413b; padding: 14px 18px; }
.article-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.article-content th { background: #f1f6f2; color: var(--heading); }
.article-footer { clear: both; margin-top: 42px; border-top: 1px solid var(--line); padding-top: 20px; }
.article-footer h2 { margin: 0 0 8px; color: var(--heading); font-size: 22px; line-height: 1.3; }
.article-footer p { max-width: 680px; margin: 0 0 18px; color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.not-found { max-width: 700px; margin: 54px auto 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-soft); padding: 52px 56px; }
.not-found-code { display: inline-flex; align-items: center; min-height: 30px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-strong); font-size: 13px; font-weight: 800; padding: 0 11px; }
.not-found h1 { max-width: 560px; margin: 18px 0 14px; color: var(--heading); font-family: var(--reader); font-size: clamp(36px, 5vw, 48px); font-weight: 700; line-height: 1.1; }
.not-found p { max-width: 560px; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; font-weight: 750; padding: 0 16px; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.primary-link { border: 1px solid var(--accent); background: var(--accent); color: #ffffff; }
.primary-link:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.secondary-link { border: 1px solid var(--line); background: #ffffff; color: var(--text); }
.secondary-link:hover { border-color: var(--line-strong); background: var(--surface-muted); }
.site-footer { border-top: 1px solid var(--line); background: rgba(251, 251, 246, 0.88); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; color: var(--muted); font-size: 14px; }
.site-footer-inner div { display: grid; gap: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.site-footer-inner strong { color: var(--text); font-size: 15px; }
.site-footer-inner a { color: var(--accent-strong); font-weight: 700; }
.site-footer-inner a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.info-page { max-width: 900px; }
.info-page h1 { margin: 0 0 18px; color: var(--heading); font-family: var(--reader); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.info-page .lead { max-width: 760px; margin: 0 0 34px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.info-content { display: grid; gap: 28px; color: #242b33; font-size: 17px; line-height: 1.75; }
.info-content section { border-top: 1px solid var(--line); padding-top: 24px; }
.info-content h2 { margin: 0 0 10px; color: var(--heading); font-size: 22px; line-height: 1.3; }
.info-content p { margin: 0 0 14px; }
.info-content p:last-child { margin-bottom: 0; }
.text-link { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 0.18em; }
.text-link:hover { color: #123b32; text-decoration-color: currentColor; }
@media (max-width: 760px) {
  :root { --page-pad: 16px; }
  .site-header { position: static; }
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .site-nav { width: 100%; overflow-x: auto; }
  .shell { padding-top: 28px; padding-bottom: 48px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-hero, .seo-panel { grid-template-columns: 1fr; }
  .topic-tags { justify-content: flex-start; }
  .article-header h1, .article-content h1 { font-size: 34px; }
  .article-content { font-size: 17px; line-height: 1.72; }
  .article-content h2 { font-size: 24px; }
  .article-content figure, .article-content .thumb, .article-content .tright, .article-content .floatright { float: none; width: 100%; margin: 18px 0; }
  .article-listbox-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 18px; }
  .article-list { grid-template-columns: 1fr; }
  .article-list-item:nth-child(odd) { border-right: 0; }
  .not-found { margin-top: 22px; padding: 34px 24px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 20px; padding-bottom: 20px; }
  .footer-links { justify-content: flex-start; }
}
