/* Colours follow the Badí‘ app's night sky (Shared/SkyPalette.swift in the app). */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #141b36;
  --muted: #5a6078;
  --line: #e2e0d8;
  --accent: #8a5a1f;
  --sunset: #e9b07e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d1c;
    --surface: #12162c;
    --text: #dce3f0;
    --muted: #9aa3bd;
    --line: #232a4a;
    --accent: #f3c9a0;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

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

h1, h2, h3 { line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.crumbs { font-size: 0.95rem; margin-bottom: 32px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.app-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.app-head img { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); }
.app-head h1 { margin: 0; }

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.card:hover { border-color: var(--accent); }
.card img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.card strong { display: block; }
.card span { color: var(--muted); font-size: 0.95rem; }

.summary {
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sunset);
  border-radius: 12px;
}
.summary p:last-child { margin-bottom: 0; }

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: inherit; }
