:root {
  --bg: #f4f0e8;
  --surface: #fbf8f2;
  --rule: #dcd3c3;
  --text: #1e1b16;
  --muted: #6b6358;
  --accent: #23408e;
  --accent-soft: #dfe4f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a17;
    --rule: #2a2723;
    --text: #ede6da;
    --muted: #9c9384;
    --accent: #b8c6f2;
    --accent-soft: #262b3a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif;
}
main, header.top {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}
header.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1, h2 {
  font-family: Alexandria, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.3;
}
h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
ul { padding-inline-start: 1.4rem; }
li { margin: 0.25rem 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.25rem 1rem 1rem;
  margin: 1rem 0;
}
.card h2 { margin-top: 0.75rem; }
.button {
  display: inline-block;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.ph { background: var(--accent-soft); border-radius: 3px; padding: 0 0.2em; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
