:root {
  --ink: #171a16;
  --text: #33382f;
  --muted: #6f776b;
  --paper: #fffdf6;
  --wash: #f3efe3;
  --note: #edf4ee;
  --line: #ded6c6;
  --green: #3f5f53;
  --deep: #25352f;
  --max: 1080px;
  --measure: 760px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
  line-height: 1.82;
  letter-spacing: 0;
}

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

a:hover {
  color: var(--green);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 8px 12px;
  color: #fff;
  background: #000;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 246, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-grid {
  display: flex;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.nav a:hover {
  background: var(--wash);
}

.editor-hero,
.page-hero,
.section,
.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 22px;
}

.editor-hero {
  padding-top: 76px;
  border-bottom: 1px solid var(--line);
}

.editor-hero h1,
.page-hero h1,
.article-head h1 {
  max-width: 860px;
  margin: 12px 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: 0;
}

.page-hero h1,
.article-head h1 {
  font-size: clamp(32px, 4.2vw, 56px);
}

.editor-hero p,
.page-hero p,
.article-head p,
.section-head p {
  max-width: var(--measure);
  color: var(--text);
  font-size: 20px;
}

.kicker {
  margin: 0;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 760;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.editor-note {
  max-width: var(--measure);
  margin: 28px auto;
  padding: 18px 20px;
  background: var(--note);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
}

.editor-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.editor-note p {
  margin: 0;
  color: var(--text);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(300px, .5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head h2,
.content-block h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
}

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

.article-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-list a {
  display: block;
  min-height: 208px;
  padding: 22px;
}

.article-list span {
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 820;
}

.article-list h3 {
  margin: 10px 0;
  font-size: 25px;
  line-height: 1.28;
}

.article-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.article {
  max-width: 900px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.article-head {
  padding: 34px 0 18px;
  border-bottom: 1px solid var(--line);
}

.quick-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.quick-table div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-table strong,
.quick-table span {
  display: block;
}

.quick-table span {
  color: var(--muted);
  font-size: 16px;
}

.content-block {
  max-width: var(--measure);
  margin: 34px auto;
}

.content-block h2 {
  font-size: 31px;
}

.content-block p,
.content-block li {
  color: var(--text);
}

.content-block ol {
  padding-left: 24px;
}

.content-block li + li {
  margin-top: 8px;
}

.site-footer {
  margin-top: 42px;
  color: #f6f2e8;
  background: var(--deep);
}

.footer-grid p {
  margin: 0;
  color: rgba(246, 242, 232, .82);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.footer-links a {
  color: #fff;
  font-weight: 740;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-grid,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    display: flex;
  }

  .nav {
    justify-content: flex-start;
  }

  .article-list,
  .quick-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .editor-hero,
  .page-hero,
  .section,
  .article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .editor-hero {
    padding-top: 44px;
  }

  .editor-hero h1,
  .page-hero h1,
  .article-head h1 {
    font-size: 38px;
  }

  .article-list a {
    min-height: 0;
  }
}
