:root {
  --bg: #faf7f2;
  --text: #2a2438;
  --muted: #6b6478;
  --card-grad-a: #1a1a40;
  --card-grad-b: #4b3f72;
  --accent: #4b3f72;
  --rule: rgba(42, 36, 56, 0.12);
  --pill-bg: rgba(42, 36, 56, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16131f;
    --text: #ece8f2;
    --muted: #a49dae;
    --accent: #b3a6dd;
    --rule: rgba(236, 232, 242, 0.14);
    --pill-bg: rgba(236, 232, 242, 0.08);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header.site {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand a {
  color: var(--text);
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

.verse-card {
  background: linear-gradient(160deg, var(--card-grad-a), var(--card-grad-b));
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  color: #f4f1fa;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 12px 32px rgba(26, 26, 64, 0.25);
}

.verse-card .sanskrit {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.8;
  white-space: pre-line;
}

.verse-card .translation {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 1.4rem;
  opacity: 0.95;
}

.verse-card .attribution {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cta {
  text-align: center;
  margin: 2.5rem 0;
}

.pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.appstore-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.features {
  list-style: none;
  margin: 2.5rem 0;
}

.features li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}

.features li:last-child {
  border-bottom: 1px solid var(--rule);
}

.features .glyph {
  flex: none;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

main.doc h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}

main.doc p,
main.doc ul {
  margin-bottom: 1rem;
}

main.doc ul {
  padding-left: 1.3rem;
}

main.doc li {
  margin-bottom: 0.4rem;
}

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

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site nav {
  margin-bottom: 0.6rem;
}

footer.site nav a {
  color: var(--muted);
  margin: 0 0.6rem;
}
