:root {
  --ink: #1a1d24;
  --muted: #5c6470;
  --line: #e4e7ec;
  --accent: #0b6b5f;
  --accent-dark: #084f47;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --max: 820px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header nav {
  display: flex;
  gap: 20px;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.active { color: var(--accent); }

/* Document pages */
.document { padding-top: 48px; padding-bottom: 72px; }
.document h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.doc-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.document article h2 {
  font-size: 19px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.document article p {
  margin: 0 0 14px;
  color: #33383f;
}

/* Landing */
.landing { padding-top: 64px; padding-bottom: 80px; }
.landing h1 {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.landing .lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 0 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-soft);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 107, 95, 0.08);
}
.card h2 { margin: 0 0 8px; font-size: 20px; color: var(--accent); }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.card-link { font-weight: 600; color: var(--accent); font-size: 15px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: auto;
}
.site-footer p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .document h1 { font-size: 27px; }
  .landing h1 { font-size: 30px; }
}
