/* ============================================================================
   Shared stylesheet — NurSalah GitHub Pages site
   Single source of truth for the manuscript / editorial theme used by both
   docs/index.html (privacy policy) and docs/support.html.

   Brand values mirror lib/theme/design_tokens.dart (AppColors / AppType):
     ground   #F4ECD8   parchment background
     ink      #1A1612   primary text
     inkSoft  #4A4239   secondary text
     rule     #D9CDB2   hairline rules / dividers
     accent   #7A2E1D   oxblood — links + the single eye-drawing mark
     serif    Newsreader (self-hosted woff2, no external CDN)

   To re-brand the whole site, change the tokens in :root below.
   ========================================================================== */

/* ── Self-hosted Newsreader (no Google Fonts / external CDN) ──────────────── */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Newsreader-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Newsreader-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Newsreader-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

:root {
  --ground:   #F4ECD8;
  --ink:      #1A1612;
  --ink-soft: #4A4239;
  --rule:     #D9CDB2;
  --accent:   #7A2E1D;
  --serif:    'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ── Page ─────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;            /* mobile-first; widened on larger screens below */
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
}
@media (min-width: 600px) {
  body { padding: 64px 24px; }
}

/* ── Headings ─────────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 64px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);   /* hairline rule, not a colour bar */
  color: var(--ink);
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-top: 24px;
  color: var(--ink);
}

/* ── Inline text ──────────────────────────────────────────────────────────── */
p { margin: 16px 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { text-decoration: none; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

code {
  font-family: var(--mono);
  background: rgba(26, 22, 18, 0.06);
  padding: 2px 6px;
  border-radius: 0;
  font-size: 0.9em;
}

.meta { color: var(--ink-soft); font-size: 0.9rem; }

ul { padding-left: 1.5rem; }

/* Privacy-policy list: ✗ markers re-coloured to the manuscript palette
   (soft ink for negations — no green/red). */
.cross-list li::marker { content: "\2717\00a0"; color: var(--ink-soft); }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 64px 0;
}

/* ── Support page: note box (de-emphasized, single accent mark) ───────────── */
.note {
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 8px 24px;
  margin: 24px 0;
}

/* ── Support page: payment buttons ────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 16px 24px;       /* generous tap target (≥ 56px tall) */
  min-height: 56px;
  line-height: 1.4;
  border-radius: 0;         /* manuscript: zero radius */
  margin: 24px 0;
}

/* PayPal — primary: solid ink, parchment text */
.btn-paypal {
  background: var(--ink);
  color: var(--ground);
  border: 1px solid var(--ink);
}
.btn-paypal:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

/* Accessible focus ring */
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Support page: option blocks ──────────────────────────────────────────── */
.option { margin: 24px 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
