/* qayyimapp.com — the app's palette (QayyimAppFE/src/constants/theme.ts). */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --text: #231d15;
  --muted: #6f6455;
  --line: #e7dfd3;
  --primary: #1b6b52;
  --gold: #8a5a0d;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191510;
    --surface: #231d16;
    --text: #f1e9dc;
    --muted: #a89a85;
    --line: #3a3127;
    --primary: #4fb98f;
    --gold: #d9a45c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
[dir="ltr"] body, body:lang(en) { line-height: 1.6; }
a { color: var(--primary); }

header, main, footer { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 9px; }
.lang { font-size: 15px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; color: var(--text); }
main { flex: 1; }

.hero { text-align: center; padding: 48px 0 32px; }
.hero img { border-radius: 26px; }
.hero h1 { font-size: 34px; line-height: 1.3; margin: 24px 0 12px; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 12px; }
.hero .soon { color: var(--gold); font-weight: 600; margin-top: 24px; }

article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 24px; margin-bottom: 24px; }
article h1 { font-size: 28px; line-height: 1.35; }
article h2 { font-size: 21px; margin-top: 32px; }
article h3 { font-size: 17px; margin-top: 22px; }
article ul { padding-inline-start: 22px; }
article li { margin: 6px 0; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 0.9em; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
th { background: var(--bg); }

footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  article { padding: 4px 16px 18px; border-radius: 14px; }
  .hero h1 { font-size: 28px; }
}
