:root {
  --bg: #fbf4f0;
  --surface: #fffaf7;
  --ink: #2f2a28;
  --muted: #7a6f6a;
  --rule: #eaded8;
  --petal: #d9668f;
  --leaf: #5f9a4a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1712;
    --surface: #14211a;
    --ink: #f1ebe7;
    --muted: #a9b3ac;
    --rule: #24352b;
    --petal: #f29bbb;
    --leaf: #8cc576;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--petal); text-underline-offset: 3px; }

h1, h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Landing */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(120, 60, 80, 0.15);
}

.hero h1 {
  font-size: 2.6rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.hero .pitch {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto;
}

.store-badge { display: inline-block; margin-top: 2rem; }
.store-badge[hidden] { display: none; }

.notes {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
}

.note h2 { font-size: 1.2rem; margin: 0 0 0.25rem; }
.note p { margin: 0; color: var(--muted); }

/* Text pages */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 1.15rem;
}

.back img { width: 32px; height: 32px; border-radius: 8px; }

.doc h1 { font-size: 2.1rem; margin: 2rem 0 0.25rem; }
.doc h2 { font-size: 1.3rem; margin: 2rem 0 0.25rem; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

footer a { color: var(--muted); }
