/* Prarthana — the public pages.
 *
 * One stylesheet for the whole site. No webfonts, no CDN, no analytics: these
 * pages are read by App Review, by devotees, and by the URL checker in
 * scripts/checks/urls.py, and every one of those is better served by a page
 * that needs a single request and cannot break.
 *
 * The palette echoes the app's Agni theme, written out here rather than
 * shared, because Assets.xcassets is not something a browser can read. Keep
 * them in step by eye — nothing here is load-bearing for the app.
 */

:root {
  color-scheme: light dark;

  --flame-top: #FFB74D;
  --flame-bottom: #FFF8F0;
  --ink: #3E2723;
  --ink-soft: #8D6E63;
  --surface: #FFFFFF;
  --page: #FFF8F0;
  --rule: #FFE0B2;
  --accent: #E65100;
  --shadow: rgba(62, 39, 35, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --flame-top: #4E2600;
    --flame-bottom: #1A0F0A;
    --ink: #FBE9E7;
    --ink-soft: #D7B9AE;
    --surface: #241612;
    --page: #1A0F0A;
    --rule: #4A2E22;
    --accent: #FF8A50;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px 72px;
  background: linear-gradient(180deg, var(--flame-top) 0%, var(--flame-bottom) 340px) no-repeat, var(--page);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

header.top {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 0 28px;
  text-align: center;
}

.mark {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}

header.top h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

header.top p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ── Card ─────────────────────────────────────────────────────────────── */

main {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 22px;
  padding: 36px 32px 40px;
  box-shadow: 0 18px 44px var(--shadow);
}

main > :first-child { margin-top: 0; }
main > :last-child { margin-bottom: 0; }

h2 {
  margin: 38px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

p, li { color: var(--ink); }

ul { padding-left: 22px; }
li { margin: 7px 0; }

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

strong { font-weight: 650; }

.updated {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 4px;
}

/* The one-sentence answer, before the detail that supports it. */
.summary {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.summary p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 16px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
}

th {
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wrap { overflow-x: auto; }

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

footer nav a {
  display: inline-block;
  margin: 0 10px;
  white-space: nowrap;
}

footer .copy { margin-top: 14px; }

@media (max-width: 520px) {
  body { padding: 0 14px 56px; }
  header.top { padding: 32px 0 22px; }
  header.top h1 { font-size: 28px; }
  main { padding: 26px 20px 30px; border-radius: 18px; }
}
