:root {
  color-scheme: light dark;
  --bg: #f6f7f4;
  --card: #ffffff;
  --ink: #17211f;
  --muted: #66716d;
  --line: rgba(23, 33, 31, 0.12);
  --accent: #2e9c86;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111512;
    --card: #1b211d;
    --ink: #edf3ef;
    --muted: #a7b1ac;
    --line: rgba(237, 243, 239, 0.14);
    --accent: #58c4ab;
  }
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}

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

.page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 5vw, 48px);
}

.doc-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

h2 {
  font-size: 1.18rem;
  margin-top: 30px;
}

.meta,
.muted {
  color: var(--muted);
}

.notice {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 32px;
  padding-top: 18px;
}

.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 26px 0 42px;
}
