:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1d1f;
  --muted: #5d646b;
  --line: #e4e1da;
  --accent: #0f6b55;
  --accent-soft: #e3f1ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131516;
    --surface: #1b1e20;
    --text: #eceae5;
    --muted: #a2a8ad;
    --line: #2c3033;
    --accent: #5fc9a8;
    --accent-soft: #1c2f29;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  display: block;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

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

.site-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 40px;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 17em;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 19px;
}

section {
  padding: 36px 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

p {
  margin: 0 0 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.note {
  padding: 20px 22px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.note p:last-child,
.note ul:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.doc {
  padding: 56px 0 24px;
  max-width: 720px;
}

.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.doc .meta {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin-top: 34px;
  font-size: 21px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
