/* Warsha's public site: one dark olive design shared by every page.
   Tokens first, then the pieces each page is built from. */

@font-face { font-family: "Plex Arabic"; src: url("/site/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/site/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/site/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/site/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0d06;
  --bg-2: #0f1409;
  --surface: #131a0c;
  --surface-2: #19210f;
  --surface-3: #212b15;
  --line: rgba(222, 236, 170, .085);
  --line-2: rgba(222, 236, 170, .16);
  --ink: #f2f5e6;
  --ink-2: #c6ccb0;
  --muted: #8d957a;
  --olive: #5c6b1f;
  --olive-2: #75882a;
  --olive-3: #96ab3f;
  --lime: #cadf74;
  --lime-ink: #11160a;
  --brass: #e5b64a;
  --good: #7fd17a;
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  /* The chat helper (helper.js) reads these. */
  --primary: #5c6b1f;
  --deep: #2f3a0e;
  --card: #151c0d;
  --card-alt: #1b2411;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Plex Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px; line-height: 1.75; overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.num { font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
       stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 520px) { .wrap { width: calc(100% - 32px); } }

/* ── background texture ─────────────────────────────────────────── */
.grain::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(150, 171, 63, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(92, 107, 31, .14), transparent 60%),
    var(--bg);
}

/* ── buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line-2);
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, .03);
  cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: rgba(222, 236, 170, .32); background: rgba(255, 255, 255, .06); }
.btn:active { transform: translateY(1px); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink);
            box-shadow: 0 10px 30px -10px rgba(202, 223, 116, .55); }
.btn.lime:hover { background: #d6e889; }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn .ico { width: 18px; height: 18px; }

/* ── navigation ─────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav .bar {
  display: flex; align-items: center; gap: 22px; height: 64px; padding: 0 12px 0 14px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(14, 19, 9, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.nav .links { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav .links a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav .links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav .end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.nav .menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
             background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.drawer { display: none; }
@media (max-width: 980px) {
  .nav .links, .nav .end .login { display: none; }
  .nav .menu { display: grid; }
  .drawer { margin-top: 8px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 19, 9, .96);
            padding: 10px; display: none; flex-direction: column; gap: 2px; }
  .drawer.open { display: flex; }
  .drawer a { padding: 12px 14px; border-radius: 12px; color: var(--ink-2); }
  .drawer a:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
  .drawer .row { display: flex; gap: 8px; padding: 8px 4px 4px; }
  .drawer .row .btn { flex: 1; }
}
@media (max-width: 420px) { .nav .end .btn.lime { padding: 0 14px; } .nav .brand span { display: none; } }

/* ── section scaffolding ────────────────────────────────────────── */
section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--lime);
           padding: 6px 12px; border-radius: 999px; background: rgba(202, 223, 116, .08); border: 1px solid rgba(202, 223, 116, .18); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(202, 223, 116, .18); }
.head { max-width: 720px; margin-bottom: 44px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 16px 0 14px; }
.head p { color: var(--ink-2); font-size: 17px; }
.hl { color: var(--lime); }

.card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ── footer ─────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
footer.site .about p { margin-top: 12px; max-width: 30em; }
footer.site .brand { color: var(--ink); }
footer.site h4 { color: var(--ink); font-size: 15px; margin-bottom: 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a:hover { color: var(--ink); }
footer.site .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px;
                    padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .about { grid-column: 1 / -1; } }

/* ── reading pages (privacy, account deletion, the guide) ───────── */
.doc { padding: 40px 0 20px; }
.doc .paper { max-width: 820px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-inline-start: 22px; display: grid; gap: 8px; }
.doc a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.doc .note { margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: rgba(202, 223, 116, .06);
             border: 1px solid rgba(202, 223, 116, .16); color: var(--ink-2); }

/* ── motion ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
