:root {
  color-scheme: light dark;
  --page: #f5f1e9;
  --paper: #fffcf7;
  --ink: #3e3038;
  --muted: #66565c;
  --link: #743d58;
  --line: #c4b8ad;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 860px; margin: auto; padding: 28px 22px 56px; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-bottom: 28px; }
.brand { color: var(--ink); font: 600 1.5rem Georgia, serif; text-decoration: none; }
.languages { display: flex; gap: 8px; }
button { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 9px 14px; border-radius: 9px; min-height: 44px; cursor: pointer; }
button[aria-pressed="true"] { border: 2px solid var(--ink); padding: 8px 13px; font-weight: 600; }
h1 { font: 500 clamp(2.2rem, 8vw, 3.2rem)/1.15 Georgia, serif; margin: 12px 0 20px; }
h2 { font-size: 1.2rem; margin-top: 0; }
.intro { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
section { background: var(--paper); border: 1px solid var(--line); padding: 24px; margin: 18px 0; border-radius: 14px; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
footer { color: var(--muted); margin-top: 28px; }
nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
[hidden] { display: none !important; }
@media (max-width: 420px) { main { padding-inline: 16px; } section { padding: 20px; } }
@media (prefers-color-scheme: dark) {
  :root { --page: #221923; --paper: #30232e; --ink: #f5eaf0; --muted: #d3becb; --link: #f3bdd4; --line: #88707e; }
}
