:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #ffffff;
  --text: #242522;
  --muted: #62665e;
  --line: #dedfd8;
  --accent: #2f6f62;
  --accent-dark: #1f554b;
  --soft: #edf3ef;
  --soft-2: #f8fbf6;
  --warn: #7a4f19;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 280px),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.94rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

main {
  padding: 52px 0 68px;
}

.hero {
  padding: 28px 0 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 0.95rem;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading a {
  flex: 0 0 auto;
  font-size: 0.94rem;
}

.article {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.78;
}

.article h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  padding: 0 0 8px 14px;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  font-size: 1.38rem;
}

.article-summary h2,
.related-articles h2 {
  padding: 0;
  border-left: 0;
  border-bottom: 0;
}

.article p {
  margin-bottom: 1.05rem;
}

.article ul {
  margin: 0 0 1.18rem;
  padding-left: 1.35rem;
}

.article li {
  margin-bottom: 0.42rem;
}

.article-footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.path {
  display: grid;
  gap: 12px;
}

.path-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.path-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.path-item h3 {
  margin-bottom: 4px;
}

.path-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.card {
  min-height: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-card {
  min-height: 100%;
  padding: 22px;
  background: var(--soft-2);
  border: 1px solid #dce5dc;
  border-radius: 8px;
}

.topic-card a {
  font-weight: 700;
}

.card p:last-child,
.topic-card p:last-child,
.note p:last-child,
.article-summary li:last-child {
  margin-bottom: 0;
}

.article-summary {
  margin: 22px 0 32px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid #c9d8cc;
}

.article-summary h2 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 0.98rem;
}

.article-message {
  margin: 14px 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e3e8e1;
  color: var(--text);
}

.article-message strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 0.98rem;
}

.article-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.article-facts div {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 5px 10px;
  background: var(--soft);
  border-radius: 999px;
}

.article-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-facts dt::after {
  content: ":";
}

.article-facts dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
}

.related-articles {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin-top: 0;
}

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

.related-links a {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.related-links a:hover {
  border-color: #b9c9bd;
  text-decoration: underline;
}

.note {
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid #d6e2da;
  border-radius: 8px;
}

.warning {
  padding: 18px 20px;
  background: #fbf4e9;
  border: 1px solid #ead7b8;
  border-radius: 8px;
  color: var(--warn);
}

.list {
  padding-left: 1.2rem;
}

.list li {
  margin: 0 0 0.55rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 780px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .topic-grid,
  .two-col,
  .article-facts,
  .related-links {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    width: min(var(--max), calc(100% - 24px));
    padding-top: 34px;
  }

  .article {
    font-size: 1rem;
    line-height: 1.76;
  }

  h1 {
    font-size: clamp(1.82rem, 9vw, 2.45rem);
  }
}
