:root {
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --ink: #18201C;
  --muted: #59655F;
  --border: #E3E0D7;
  --accent: #2E7A66;
  --accent-soft: #E1EDE7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101412;
    --surface: #1A1F1C;
    --ink: #EDF0EE;
    --muted: #A3ADA8;
    --border: #2A302C;
    --accent: #5DBF9F;
    --accent-soft: #1F3A31;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; }

a.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
a.brand .mark {
  width: 44px; height: 44px; border-radius: 12px; background: #2E7A66;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
a.brand .name { font-weight: 800; font-size: 22px; letter-spacing: -0.3px; }

h1, h2 { line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: 32px; font-weight: 800; margin: 24px 0 6px; }
h2 { font-size: 20px; font-weight: 700; margin: 32px 0 8px; }

.muted { color: var(--muted); font-size: 15px; }
a { color: var(--accent); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.langs button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; min-height: 36px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.card { background: var(--accent-soft); border-radius: 18px; padding: 18px 20px; margin-top: 16px; }

section[lang] { display: none; }
section[lang].active { display: block; }

footer { margin-top: 32px; font-size: 15px; display: flex; gap: 18px; flex-wrap: wrap; }
