:root {
  color-scheme: light dark;
  --bg: #000;
  --fg: #f4f1e9;
  --muted: #a6a39a;
  --line: #3f3e38;
  --link: #ded9cc;
  --focus: #1755fd;
}

body.light {
  --bg: #fff;
  --fg: #15202b;
  --muted: #526b7b;
  --line: #bdd7e8;
  --link: #274e67;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background .2s ease, color .2s ease;
}

a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: var(--fg); }
.wrap { width: min(100%, 860px); margin: 0 auto; padding: 0 24px 64px; }
.masthead {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.home { color: var(--fg); font-size: 1.1rem; font-weight: 750; text-decoration: none; }
.controls { display: flex; align-items: center; gap: 10px; }
.language-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
select, button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
}
select { max-width: 190px; padding: 6px 30px 6px 10px; font-size: .875rem; }
button { width: 38px; padding: 0; cursor: pointer; }
main { padding-top: clamp(44px, 7vw, 82px); }
h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: 1;
  text-wrap: balance;
}
.updated { margin: 18px 0 44px; color: var(--muted); font-size: .875rem; }
section { padding: 28px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-inline-start: 1.25rem; }
li + li { margin-top: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .masthead { align-items: flex-start; padding: 16px 0; }
  .controls { align-items: stretch; }
  select { max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

.page-home { margin-top: 32px; }
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}
.home-button:hover { border-color: var(--fg); }
