/* One stylesheet for the whole site.
 *
 * No web font is loaded. There is no CDN in front of Iranian traffic, a font
 * file from a foreign host is exactly the request most likely to hang, and a
 * page that waits on it renders blank text for the length of that timeout.
 * The stack below is what Persian Android and desktop already have installed.
 *
 * No external stylesheet, no script, no tracking pixel: every byte of this
 * site comes from the same origin as the API. */

:root {
  color-scheme: light dark;
  --ink: #23201d;
  --muted: #6b625a;
  --paper: #fdfaf5;
  --line: #e8ded0;
  --accent: #d9762b;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2ece4;
    --muted: #a9a096;
    --paper: #1b1917;
    --line: #332e29;
    --accent: #e8873d;
    --accent-ink: #1b1917;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Vazirmatn, "IRANSans", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

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

h1 { font-size: 1.9rem; line-height: 1.5; margin: 1.2rem 0 0.6rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
p, li { color: var(--ink); }

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

.hero { padding: 1.5rem 0 0.5rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }

/* Three columns on a wide screen, stacked on a phone, which is what almost
 * every visitor will be on. */
.cols {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}
@media (min-width: 42rem) {
  .cols { grid-template-columns: repeat(3, 1fr); }
}
.col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.col h2 { margin-top: 0; font-size: 1.05rem; }
.col p { color: var(--muted); margin-bottom: 0; }

.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.policy h1 { margin-top: 0.5rem; }
.policy .updated { color: var(--muted); font-size: 0.92rem; margin-top: 0; }
.policy ul, .policy ol { padding-inline-start: 1.3rem; }
.policy li { margin-bottom: 0.5rem; }

.foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot nav { display: flex; gap: 1rem; flex-wrap: wrap; }
