/* Layout: one narrow reading column; numbered archive entries stacked, each on its own sheet */
:root {
  --paper: #eef2f3;
  --sheet: #f9fbfb;
  --ink: #16262b;
  --muted: #5a6c72;
  --accent: #0f6b6b;
  --rule: #cdd8da;
  --font-display: "Reem Kufi", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --font-en: "Newsreader", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1719;
    --sheet: #15221f;
    --ink: #e3ecec;
    --muted: #93a6aa;
    --accent: #6cc7bf;
    --rule: #2a3b3d;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  line-height: 1.9;
  padding: 32px 16px 56px;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; font-size: 1.08rem; }
.wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
.lang { font-size: 0.95rem; }
.intro { display: flex; flex-direction: column; gap: 10px; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.35; margin: 0; text-wrap: balance; }
html[lang="en"] h1 { font-family: var(--font-en); font-weight: 500; font-size: 2.2rem; line-height: 1.2; }
.intro p { margin: 0; color: var(--muted); }
.entries { display: flex; flex-direction: column; gap: 20px; }
.entry {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--accent);
  border-radius: 4px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta { font-size: 0.85rem; color: var(--accent); font-weight: 600; font-family: var(--font-ar); font-variant-numeric: tabular-nums; }
html[lang="en"] .meta { font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; letter-spacing: 0.03em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.45; margin: 0; text-wrap: balance; }
html[lang="en"] h2 { font-family: var(--font-en); font-weight: 500; font-size: 1.45rem; line-height: 1.3; }
.entry p, .entry ol { margin: 0; }
.entry ol { padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.sig { color: var(--accent); font-weight: 600; }
html[lang="en"] .sig { font-style: italic; font-weight: 500; }
.note { font-size: 0.92rem; color: var(--muted); }
footer { border-top: 1px solid var(--rule); padding-top: 18px; font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
footer p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.url { direction: ltr; unicode-bidi: embed; overflow-wrap: anywhere; }
