:root {
  --bg: #ffffff;
  --text: #1b2230;
  --muted: #55607a;
  --link: #1a4fa0;
  --rule: #d9deea;
  --header-bg: #122848;
  --header-text: #f4e7bd;
  --accent: #c9a24a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1626;
    --text: #e8ecf5;
    --muted: #a3aec6;
    --link: #8fb5ff;
    --rule: #26324d;
    --header-bg: #0a1220;
    --header-text: #f4e7bd;
  }
}

* { 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;
}

header.site {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 4px solid var(--accent);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

header.site a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

header.site nav a { font-weight: 500; margin-left: 16px; }
header.site nav a:first-child { margin-left: 0; }
header.site a:hover, header.site a:focus-visible { text-decoration: underline; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

main { padding-top: 28px; padding-bottom: 48px; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 32px 0 8px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.3em; }
li { margin-bottom: 6px; }

a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.meta { color: var(--muted); font-size: 0.95rem; }
.lead { font-size: 1.1rem; }

.card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}

.langswitch { font-size: 0.95rem; margin-bottom: 16px; }

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 18px;
  padding-bottom: 32px;
}
