/* Onward — minimal document styling. No frameworks, no external requests. */

:root {
  --ground: #ffffff;
  --ink: #1a1a1a;
  --muted: #6a6a6e;
  --rule: #e3e3e6;
  --link: #0064d2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16181a;
    --ink: #ececee;
    --muted: #9a9aa0;
    --rule: #303236;
    --link: #6aa9f0;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.page { max-width: 640px; margin: 0 auto; }

/* Language switch — both versions live in the same file. */
[data-lang="ru"] .en { display: none; }
[data-lang="en"] .ru { display: none; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}

.lang { display: flex; gap: 4px; font-size: 14px; }

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang button:hover { color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}

p, li { margin: 0 0 14px; text-wrap: pretty; }

ul { padding-left: 22px; margin: 0 0 14px; }

a { color: var(--link); }

.updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.lead { font-size: 19px; }

/* Landing page only. */
.tagline { font-size: 20px; color: var(--muted); margin: 0 0 32px; }
.nav { display: flex; flex-direction: column; gap: 2px; margin: 0 0 32px; }
.nav a { padding: 10px 0; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.soon { color: var(--muted); font-size: 15px; }

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
