/* Kalimat site. Paper and ink, like the app. Accent is the masthead red. */
:root {
  color-scheme: light dark;
  --accent: #B3261E;
  --ground: #F3EEE4;
  --surface: #FBF8F1;
  --ink: #1A1915;
  --muted: #6E675B;
  --line: #D8D1C2;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #E05A50; --ground: #141311; --surface: #1C1A17; --ink: #ECE6D9; --muted: #9B9385; --line: #33302A; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.75 "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 700px; margin: 0 auto; padding: 48px 22px 80px; }
header.site { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.mast { font-family: "Amiri", serif; font-weight: 700; font-size: 34px; line-height: 1; }
.mast a { color: inherit; text-decoration: none; }
nav.site { margin-inline-start: auto; display: flex; gap: 16px; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--ink); }
.rule2 { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); height: 3px; margin: 0 0 36px; }
.lang { display: flex; gap: 14px; font-size: 13px; margin: 0 0 28px; }
.lang a { color: var(--muted); }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .02em; margin: 0 0 6px; }
h1 { font-family: "Amiri", serif; font-size: clamp(32px, 6vw, 44px); line-height: 1.15; margin: 0 0 10px; font-weight: 700; }
h2 { font-family: "Amiri", serif; font-size: 26px; margin: 44px 0 10px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; margin: 26px 0 6px; }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 8px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
p, li { margin: 0 0 12px; }
ul { padding-inline-start: 22px; }
a { color: var(--accent); }
strong { font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--ink); border-top-width: 3px; padding: 16px 18px; margin: 24px 0; }
.box p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 15px; }
th, td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; border-bottom-color: var(--ink); }
.scroll { overflow-x: auto; }
section[lang="en"] { direction: ltr; text-align: left; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink); }
section[lang="ar"] { direction: rtl; text-align: right; }
footer.site { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
