:root {
  --bg: #fffdf7;
  --text: #1f2328;
  --accent: #d6336c;
  --muted: #6a737d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --text: #e8eaed;
    --accent: #ff6b9d;
    --muted: #9aa0a6;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  font-size: 1.125rem;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

strong { color: var(--accent); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

p:has(> img) + p:has(> em:only-child) {
  margin-top: -1rem;
  font-size: 0.9rem;
}

hr {
  border: none;
  border-top: 2px dashed var(--muted);
  margin: 3rem 0 2rem;
}

hr ~ p, main > p:last-child em {
  color: var(--muted);
}

.lang-switcher {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.lang-switcher a {
  color: var(--accent);
  text-decoration: none;
}

.lang-switcher a:hover { text-decoration: underline; }

.lang-current { font-weight: 700; }
