:root {
  --bg: #f5faff;
  --surface: #ffffff;
  --text: #10283f;
  --muted: #536176;
  --accent: #00786c;
  --line: #dde7f2;
  --header: #10283f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a2c;
    --surface: #10283f;
    --text: #eef4fb;
    --muted: #a9b8cb;
    --accent: #4fe3d2;
    --line: #22466b;
    --header: #0a1a2c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
header { background: var(--header); padding: 16px; }
header .wrap { display: flex; align-items: center; }
header .brand { display: inline-flex; align-items: center; }
header img { height: 32px; width: auto; display: block; }
.wrap { max-width: 760px; margin: 0 auto; }
main { padding: 24px 16px 48px; }
article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px clamp(16px, 4vw, 36px);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
.meta { color: var(--muted); margin: 0 0 20px; }
li .meta { margin: 0; font-size: 15px; }
a { color: var(--accent); }
code { font-size: 0.92em; }
nav.langs { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; font-size: 15px; }
nav.langs a[aria-current="page"] { color: var(--muted); text-decoration: none; font-weight: 600; }
ul { padding-inline-start: 22px; }
li { margin: 6px 0; }
footer { color: var(--muted); font-size: 14px; text-align: center; padding: 0 16px 32px; }
