:root {
  color-scheme: light dark;
  --bg: #f8f6f2;
  --text: #1c1a16;
  --muted: #6b6255;
  --accent: #7a4a23;
  --accent-soft: #f0e4d4;
  --border: #e2d8c6;
  --link: #5c3719;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --text: #f1ece2;
    --muted: #b9ad9a;
    --accent: #d9a066;
    --accent-soft: #372a1c;
    --border: #3a3226;
    --link: #e6b688;
  }
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

h1 {
  color: var(--accent);
  font-size: 1.8em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

h1.hero {
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

p.tagline {
  color: var(--muted);
  font-size: 1.05em;
  text-align: center;
}

h2 {
  color: var(--accent);
  margin-top: 1.6em;
  font-size: 1.05em;
  font-weight: 700;
}

p, li {
  color: var(--text);
}

ul.features {
  text-align: left;
  max-width: 560px;
  margin: 28px auto;
  padding-left: 1.2em;
}

ul.features li {
  margin-bottom: 0.8em;
}

ul {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--accent);
}

.qa {
  margin-bottom: 1.2em;
}

.qa .q {
  font-weight: 600;
}

.qa .a {
  margin-top: 0.3em;
}

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

a:hover {
  text-decoration: underline;
}

nav.links {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

nav.links a {
  color: var(--link);
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

nav.links a:hover {
  background: var(--accent-soft);
}

nav.back {
  margin-top: 40px;
  text-align: center;
}

nav.back a {
  color: var(--link);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  font-weight: 500;
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.lang-switch button:hover:not(.active) {
  background: var(--accent-soft);
}

.updated {
  color: var(--muted);
  font-size: 0.95em;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85em;
  color: var(--muted);
  text-align: center;
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

@media (max-width: 600px) {
  body {
    padding: 24px 16px 48px;
  }

  h1 {
    font-size: 1.5em;
  }

  nav.links {
    flex-direction: column;
  }

  nav.links a {
    width: 100%;
  }
}
