/* SalahNest site. System fonts only; light and dark follow the device. */
:root {
  --bg: #f7f9fb; --card: #ffffff; --text: #1d2733; --muted: #4f5d6b; --line: #dde4ea;
  --brand: #245286; --accent: #0f766e; --mark: #fff3bf;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1722; --card: #172231; --text: #e6edf3; --muted: #a8b6c4; --line: #2a3a4d;
          --brand: #8fb7e8; --accent: #5fd0c5; --mark: #5c4a00; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Naskh Arabic", Tahoma, sans-serif; }
a { color: var(--brand); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
       padding: .75rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.top .mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { text-decoration: none; padding: .5rem 0; }
nav a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
main { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1rem 0; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero .mark { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.hero h1 { font-size: 2.4rem; margin: .75rem 0 .25rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.store { display: inline-block; margin: 1rem 0; padding: .75rem 1.25rem; border-radius: 10px; background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; }
.store.placeholder { background: transparent; color: var(--muted); border: 2px dashed var(--line); font-weight: 400; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.features div, .credit, details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; }
.features h2 { margin-top: 0; font-size: 1.1rem; }
.credit { margin: 1rem 0; }
.credit h2 { margin-top: 0; font-size: 1.1rem; }
.credit p { margin: .4rem 0; }
details { margin: .75rem 0; }
summary { cursor: pointer; font-weight: 700; padding: .25rem 0; }
.prose p, .prose li { overflow-wrap: anywhere; }
.table { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: start; vertical-align: top; }
code { font-size: .9em; background: var(--line); padding: .05em .3em; border-radius: 4px; overflow-wrap: anywhere; }
mark.todo { background: var(--mark); color: inherit; padding: 0 .2em; border-radius: 3px; }
.note { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.langs { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: 1rem; font-size: .95rem; }
.langs a, .langs span { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.langs span { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 700; }
.notices li { margin: .4rem 0; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 1rem 1.25rem 2rem; text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: .3rem 0; }
@media (max-width: 30rem) { body { font-size: 16px; } h1 { font-size: 1.6rem; } .hero h1 { font-size: 2rem; } }
