:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6761;
  --line: #e7e3dc;
  --accent: #2f6f5e;
  --accent-soft: #eef4f1;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161a;
    --surface: #1d1f24;
    --text: #eceae6;
    --muted: #a2a09b;
    --line: #2c2f36;
    --accent: #6fbfa4;
    --accent-soft: #1b2a26;
  }
}
:root[data-theme="dark"] {
  --bg: #15161a; --surface: #1d1f24; --text: #eceae6;
  --muted: #a2a09b; --line: #2c2f36; --accent: #6fbfa4; --accent-soft: #1b2a26;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.003em;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header { padding: 32px 0 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--accent); }
.langs { display: flex; gap: 2px; }
.langs button {
  font: inherit; font-size: 14px; padding: 5px 11px;
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] {
  background: var(--accent-soft); color: var(--accent); border-color: var(--line);
}
.langs button:hover { color: var(--text); }

main { padding: 56px 0 72px; }
h1 {
  font-size: clamp(30px, 6.5vw, 42px); line-height: 1.15;
  letter-spacing: -0.025em; font-weight: 650; margin: 0 0 18px;
}
.lede { font-size: clamp(18px, 3.4vw, 20px); color: var(--muted); margin: 0 0 40px; }

.cards { display: grid; gap: 14px; margin: 0 0 44px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card h2 { font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

.note {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 0 0 36px;
}
.note p { margin: 0 0 12px; }
.note p:last-child { margin: 0; }
.mail {
  display: inline-block; font-weight: 600; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid currentColor;
}
.mail:hover { opacity: .8; }

article h2 { font-size: 20px; letter-spacing: -0.015em; margin: 36px 0 12px; }
article h3 { font-size: 16px; margin: 24px 0 8px; }
article p, article li { color: var(--text); }
article ul { padding-left: 20px; }
article li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; margin-top: 0; }

footer {
  border-top: 1px solid var(--line); padding: 28px 0 48px;
  font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--text); }
.footlinks { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }

[data-lang] { display: none; }
[data-lang].on { display: block; }
span[data-lang].on, a[data-lang].on { display: inline; }
