:root {
  --bg: #FBF7F2;
  --surface: #FFFFFF;
  --ink: #1C1A19;
  --muted: #6B6560;
  --line: #E8E1D9;
  --crimson: #C8102E;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141212;
    --surface: #1E1B1B;
    --ink: #F3EEE9;
    --muted: #A69E97;
    --line: #2F2A29;
    --crimson: #FF4D5E;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.brand { font-weight: 800; font-size: 20px; color: var(--crimson); text-decoration: none; }
.lang { display: flex; gap: 4px; }
.lang button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
a { color: var(--crimson); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 16px 0;
}
.links a { display: block; padding: 10px 0; font-weight: 600; }
footer { color: var(--muted); font-size: 14px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 16px; }
/* Language switch: without JS both versions show, one after the other. */
html.js [lang="pl"].doc, html.js [lang="en"].doc { display: none; }
html.js.show-en [lang="en"].doc, html.js.show-pl [lang="pl"].doc { display: block; }
