:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b1a;
  --muted: #6b6864;
  --border: #e8e5e0;
  --accent: #f07a12;
  --accent-text: #ffffff;
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1b1b1b;
    --text: #f2f0ed;
    --muted: #9c9893;
    --border: #2b2a28;
    --accent: #ff8a24;
    --accent-text: #1a0e02;
  }
}

* { 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, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

header.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

header.nav .brand img { width: 32px; height: 32px; border-radius: 8px; }

header.nav nav { display: flex; gap: 20px; font-size: 15px; }
header.nav nav a { color: var(--muted); }
header.nav nav a:hover { color: var(--text); text-decoration: none; }

/* Home */

.hero {
  text-align: center;
  padding: 12vh 0 16vh;
}

.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.hero h1 {
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 28px 0 32px;
}

.hero p.tagline {
  font-size: 20px;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 460px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
}

.button:hover { text-decoration: none; filter: brightness(1.05); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 24px 0 64px;
}

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

.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Documents */

article.doc { padding: 32px 0 64px; }
article.doc h1 { font-size: 36px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 4px; }
article.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
article.doc h2 { font-size: 21px; margin: 36px 0 8px; }
article.doc h3 { font-size: 17px; margin: 24px 0 4px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 4px 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer nav { display: flex; gap: 16px; }
footer a { color: var(--muted); }
