:root {
  color-scheme: light dark;
  --bg: #fffaf4;
  --surface: #ffffff;
  --text: #2a1f17;
  --muted: #6b5a4c;
  --accent: #c2531b;
  --accent-text: #ffffff;
  --border: #ead9c8;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110d;
    --surface: #221913;
    --text: #f6ece2;
    --muted: #c4b2a2;
    --accent: #ff9a62;
    --accent-text: #2a1204;
    --border: #3a2c21;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

header, main, footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; }
header .brand { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
header nav a { margin-inline-start: 1rem; }

h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.2; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol { margin: 0.6rem 0; }
li { margin: 0.3rem 0; }

.lead { font-size: 1.2rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.note { color: var(--muted); font-size: 0.95rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.97rem; }
th, td { text-align: start; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

footer { color: var(--muted); font-size: 0.95rem; padding-bottom: 3rem; }
