/* bubbledragon.xyz — shared stylesheet
 *
 * No external fonts, no JS, no tracking. System font stack matches the
 * native iOS rendering of the app's text caption strip.
 *
 * Palette mirrors the in-book watercolor:
 *   --cream  = warm page background
 *   --shadow = page-edge tint
 *   --ink    = body text (a soft near-black, not pure #000)
 *   --gold   = accent — Pip's belly tone
 */

:root {
  --cream: #fdf6e3;
  --shadow: #efe1c2;
  --ink: #2b261d;
  --gold: #c89456;
  --pip-blue: #5fb3d6;
  --max-w: 38rem;
  --pad: 1.25rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 3rem;
}

header.hero {
  text-align: center;
  padding: 1rem var(--pad) 0;
}

header.hero img {
  width: 220px;
  height: 220px;
  border-radius: 28%;
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.18);
  background: var(--cream);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.85;
}

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

a:hover { color: var(--ink); }

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 1rem 0;
  background: var(--pip-blue);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(95, 179, 214, 0.5);
  transition: transform 0.15s ease;
}

.cta:hover {
  color: white;
  transform: translateY(-1px);
}

.cta-disabled {
  background: var(--shadow);
  color: var(--ink);
  pointer-events: none;
  cursor: default;
  box-shadow: none;
  opacity: 0.6;
}

footer {
  max-width: var(--max-w);
  margin: 3rem auto 1.5rem;
  padding: 1.5rem var(--pad) 0;
  border-top: 1px solid var(--shadow);
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.65;
  text-align: center;
}

footer a { color: inherit; text-decoration: underline; }

dl.faq dt {
  font-weight: 600;
  margin-top: 1.25rem;
}

dl.faq dd {
  margin: 0.25rem 0 0;
}

ul.simple {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

ul.simple li { margin-bottom: 0.35rem; }

.meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1a1612;
    --shadow: #2a241c;
    --ink: #f0e7d2;
    --gold: #e2b274;
  }
  header.hero img {
    box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
  }
}
