:root {
  color-scheme: light dark;
  --primary: #4f46e5;
  --text: #0f172a;
  --muted: #64748b;
  --background: #f8fafc;
  --surface: #fff;
  --border: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e2e8f0;
    --muted: #94a3b8;
    --background: #0b1120;
    --surface: #111a2e;
    --border: #1e293b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner, main, .footer-inner { max-width: 760px; margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { color: var(--text); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.brand span, a { color: var(--primary); }
.language-toggle { padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); font-size: .9rem; cursor: pointer; }
main { padding: 32px 20px 64px; }
h1 { margin: 0 0 4px; font-size: 1.9rem; }
h2 { margin: 32px 0 8px; font-size: 1.2rem; }
.updated { margin: 0 0 28px; color: var(--muted); font-size: .9rem; }
ul { padding-inline-start: 22px; }
.card { margin: 16px 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.email { font-size: 1.15rem; font-weight: 600; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px; }
footer a { color: var(--muted); }
html[dir="rtl"] body { text-align: right; }

.not-found { min-height: 70vh; display: grid; align-content: center; text-align: center; }
.not-found h1 { font-size: clamp(3rem, 12vw, 7rem); color: var(--primary); }
.not-found p { color: var(--muted); }
