/* hosting/public/shared/site.css
 *
 * The frame of balad.dev's plain pages (help, delete account, store owners,
 * advertise, /app, gift): the header with Balad's word and the language and
 * light/dark buttons, the page column, the footer, and the card. Colours,
 * type and controls come from /shared/base.css, which loads first; the
 * legal pages have the same header in /legal/legal.css.
 */

:root {
  --card: var(--tint);      /* a block on the page */
  --clay-soft: #FBEFE8;     /* a clay-tinted fill */
  --clay-soft-ink: #A14C1F; /* clay text on it, 5.2:1 */
}
:root[data-theme="dark"] {
  --card: var(--surface);
  --clay-soft: #544338;     /* clay at 20% over the card, as in the app */
  --clay-soft-ink: #E58E5E;
}

.page {
  max-width: 680px; margin: 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
}

/* ── The header ───────────────────────────────────────────────────────── */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 4px 0 14px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.site-head .home { display: inline-flex; align-items: center; border-radius: 8px; }
.site-head .home img { display: block; height: 24px; width: auto; }
.langs { display: flex; gap: 2px; }
.langs button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 14px/1 "Nunito Sans", system-ui, sans-serif;
  min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 10px;
}
.langs button[lang="ar"] { font-family: "Alexandria", system-ui, sans-serif; }
.langs button[lang="he"] { font-family: "Rubik", system-ui, sans-serif; }
.langs button[aria-pressed="true"] { color: var(--ink); background: var(--tint); }
.theme-btn { color: var(--muted); }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 0 0 10px; font-weight: 700; text-wrap: balance; }
html[lang="en"] h1 { font-weight: 800; letter-spacing: -0.02em; }
a { color: var(--clay-text); }

/* ── Blocks ───────────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: 18px; padding: 20px; }

/* ── The footer ───────────────────────────────────────────────────────── */
.site-foot {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.site-foot a { color: var(--muted); }

@media print { .site-head .tools { display: none; } }
