/* Naharaim web pages. No web fonts: system fonts only (no third-party requests). Tokens from docs/DESIGN.md. */
:root {
  --ink: #1e2a5a;
  --sun: #ffc93c;
  --sun-deep: #e5a90f;
  --mint: #7ed9a8;
  --sky: #7ec8ff;
  --cream: #fff9e6;
  --paper: #fffdf4;
  --butter: #fff0b8;
  --muted: #5b6386;
  --track: #e9e2c8;
  --text: var(--ink);
  --bg: var(--cream);
  --card: var(--paper);
  --link: #1a4fa0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #cbd0e8;
    --bg: #171b33;
    --card: #222649;
    --muted: #a3a9c9;
    --track: #2a2f57;
    --link: #9fd3ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand img { width: 56px; height: 56px; border-radius: 12px; }

.brand .name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

.brand .name span { display: block; font-size: 0.95rem; font-weight: 400; color: var(--muted); }

section {
  background: var(--card);
  border: 1px solid var(--track);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 0.75rem;
  margin: 1rem 0;
}

section[lang="en"] { direction: ltr; text-align: left; }

section[lang="he"] { direction: rtl; text-align: right; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 0.75rem; }

h2 { font-size: 1.2rem; margin: 1.25rem 0 0.5rem; }

h3 { font-size: 1.05rem; margin: 1rem 0 0.25rem; }

p, ul, ol { margin: 0 0 0.85rem; }

ul, ol { padding-inline-start: 1.4rem; }

li { margin-bottom: 0.35rem; }

a { color: var(--link); }

.lead { font-size: 1.15rem; }

.note {
  background: var(--butter);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.app {
  border: 2px solid var(--track);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.app h3 { margin-top: 0; }

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

.langs { text-align: center; color: var(--muted); font-size: 0.95rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

footer a { color: inherit; }

.ltr { direction: ltr; unicode-bidi: isolate; }
