:root {
  --bg: #fbfaf7;
  --fg: #16171a;
  --muted: #6b6f76;
  --line: #e6e3dc;
  --accent: #2f5bea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --fg: #ecedef;
    --muted: #9a9ea6;
    --line: #26282c;
    --accent: #7c9cff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.wordmark span { color: var(--accent); }

/* Home */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}
.home .wordmark { font-size: clamp(48px, 12vw, 96px); line-height: 1; }
.home .soon { margin: 24px 0 4px; font-size: 22px; font-weight: 500; }
.home .soon-en { margin: 0; color: var(--muted); font-size: 16px; }
.home .sub { margin-top: 32px; color: var(--muted); font-size: 15px; }

/* Document pages */
.top {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}
.top .inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top .wordmark { font-size: 22px; }

main.doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.doc h1 { font-size: 30px; line-height: 1.2; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 14px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-inline-start: 22px; }
.doc section + section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.lang-switch { font-size: 14px; }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
footer a { margin: 0 10px; }
