/* Public pages for How to Write, Sing, and Improvise Harmony.
   Same look as the course app: Inter, white or near-black, Deep Night ink, pill buttons, left-aligned. */
:root {
  --bg: #ffffff;
  --fg: #1a1a2e;
  --body: #2a2a3a;
  --muted: #6b6b76;
  --line: #e5e5e5;
  --soft: #f5f5f5;
  --primary: #1a1a2e;
  --on-primary: #ffffff;
  --lit: #3b82f6;
  --bad: #b91c1c;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --fg: #e8e4d9; --body: #d3cfc4; --muted: #a3a29e; --line: #2c2c30; --soft: #1c1c1f;
    --primary: #e8e4d9; --on-primary: #111113; --lit: #60a5fa; --bad: #f87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --fg: #e8e4d9; --body: #d3cfc4; --muted: #a3a29e; --line: #2c2c30; --soft: #1c1c1f;
  --primary: #e8e4d9; --on-primary: #111113; --lit: #60a5fa; --bad: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: var(--fg); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--lit); outline-offset: 2px; }

.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.top .home { font-weight: 600; font-size: 15px; color: var(--fg); text-decoration: none; }
.top .login { font-size: 15px; color: var(--muted); }

h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.12; font-weight: 600; color: var(--fg); letter-spacing: 0; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--fg); }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--fg); }
.lede { font-size: 20px; color: var(--body); max-width: 32em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

section { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; }
.hero { padding-top: 40px; gap: 20px; }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 36em; }

.btn {
  appearance: none; cursor: pointer; font-family: var(--font); font-weight: 500; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
}
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { opacity: 0.88; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price { font-size: 22px; font-weight: 600; color: var(--fg); }
.price span { font-size: 16px; font-weight: 400; color: var(--muted); }

/* plain lists with a line between rows: no cards, no pills */
.list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.list .n { color: var(--muted); font-weight: 500; }
.list .t { font-weight: 600; color: var(--fg); }
.list .d { color: var(--body); font-size: 16px; }
.bullets { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 36em; }

.faq { display: flex; flex-direction: column; gap: 22px; max-width: 36em; }
.faq dt { font-weight: 600; color: var(--fg); }
.faq dd { margin-top: 4px; }

/* login */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.form label { font-weight: 600; color: var(--fg); font-size: 16px; }
.form input {
  font: inherit; font-size: 17px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%;
}
.msg { font-size: 16px; color: var(--body); min-height: 1.5em; max-width: 420px; }
.msg.warn { color: var(--fg); background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.msg.err { color: var(--bad); }

.draft { font-size: 14px; color: var(--muted); }

footer { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
