:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1f1d;
  --muted: #5b625e;
  --line: #e6e3dc;
  --accent: #127a52;
  --accent-soft: #e5f3ec;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513;
    --surface: #191d1a;
    --text: #e9ece9;
    --muted: #a3aba6;
    --line: #2b312d;
    --accent: #4cc48f;
    --accent-soft: #1d2d25;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.75rem;
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--accent); }
nav.lang a { font-size: .9rem; color: var(--muted); text-decoration: none; }
nav.lang a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 2.5rem 0 4rem; }

h1 { font-size: clamp(1.7rem, 4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 .5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.02rem; margin: 1.5rem 0 .25rem; }
p, ul, ol { margin: .5rem 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: .25rem 0; }

.meta { color: var(--muted); font-size: .92rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: .85rem 1.1rem;
}

table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.25rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table-scroll { overflow-x: auto; }

.hero { padding: 1.5rem 0 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

footer.site { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; }
footer.site a { color: var(--muted); }
