:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6760;
  --line: #e6e2da;
  --accent: #1f5f5b;
  --accent-soft: #e3efed;
  --tag: #f1eee7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1d1c1a;
    --text: #ecebe7;
    --muted: #a19d95;
    --line: #2e2c29;
    --accent: #7cc4bc;
    --accent-soft: #1f3331;
    --tag: #272522;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.mark { width: 34px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.langs { display: flex; gap: 4px; font-size: 14px; }
.langs a, .langs span { padding: 4px 8px; border-radius: 6px; text-decoration: none; }
.langs a { color: var(--muted); }
.langs a:hover { color: var(--text); background: var(--tag); }
.langs span { color: var(--text); font-weight: 600; background: var(--tag); }

.hero { padding-top: 72px; padding-bottom: 40px; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 18px; max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }
h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 48px 0 16px; }
h3 { font-size: 1.15rem; margin: 0; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.card p { margin: 10px 0 0; color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--tag); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto !important; padding-top: 16px; font-size: 15px; }

.contact { padding-bottom: 64px; }

.prose { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.prose h1 { max-width: none; }
.prose p, .prose li { color: var(--text); }
.facts { margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 15px; margin-top: 40px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
