:root {
  --bg: #faf9f5;
  --surface: #f0eee6;
  --raised: #ffffff;
  --border: #dedbd0;
  --text: #1f1e1d;
  --muted: #5e5d59;
  --accent: #d97757;
  --accent-hover: #c4633f;
  --accent-contrast: #1f1e1d;
  --link: #a94a2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262624;
    --surface: #30302e;
    --raised: #3b3b38;
    --border: #4a4a46;
    --text: #faf9f5;
    --muted: #c2c0b6;
    --accent: #d97757;
    --accent-hover: #e48c6e;
    --accent-contrast: #1f1e1d;
    --link: #e48c6e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--link);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

nav a {
  margin-left: 16px;
  text-decoration: none;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}

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

.card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

section.about {
  padding-bottom: 56px;
}

section.about h2 {
  margin-top: 0;
}

.doc {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.doc h2 {
  margin-top: 32px;
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

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

footer.site a {
  margin-right: 16px;
}
