:root {
  --bg: #f7f5f1;
  --surface: #fffdf9;
  --text: #2a2a3a;
  --muted: #5d5d70;
  --accent: #6f63e8;
  --border: #e3e0da;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151c;
    --surface: #1d1d26;
    --text: #ececf2;
    --muted: #a9a9b8;
    --accent: #a59cff;
    --border: #2e2e3a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 2px 16px;
}
nav.langs a {
  color: var(--muted);
  margin-inline-start: 12px;
  text-decoration: none;
}
nav.langs a[aria-current="page"] { color: var(--accent); font-weight: 600; }
article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
h1 { margin-top: 0; line-height: 1.25; }
h2 { margin-top: 2rem; font-size: 1.2rem; }
.meta { color: var(--muted); margin-top: -8px; }
a { color: var(--accent); }
ul { padding-inline-start: 1.25rem; }
footer { color: var(--muted); font-size: 0.9rem; margin-top: 24px; text-align: center; }
.cards { display: grid; gap: 12px; }
.cards a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
}
.cards a strong { color: var(--accent); }
