:root {
  color-scheme: light dark;
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #18231f;
  --muted: #5b6863;
  --line: #dbe5df;
  --primary: #2f6f64;
  --primary-strong: #1f5149;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --surface: #17201d;
    --text: #edf4f0;
    --muted: #b8c7c0;
    --line: #2b3934;
    --primary: #8fcfc1;
    --primary-strong: #b5e4d8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--primary-strong);
}

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

.header-inner,
.content,
.site-footer {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.content {
  padding-top: 34px;
  padding-bottom: 44px;
}

.hero {
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.25;
}

h2 {
  margin: 34px 0 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.25em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.link-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding-top: 18px;
  padding-bottom: 26px;
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    flex-wrap: wrap;
  }
}
