/* Heardloom website, listening and upload pages. System fonts only; no third-party requests. */
:root {
  --ink: #241c24;
  --muted: #5d5260;
  --bg: #f8f4ee;
  --card: #fffdf9;
  --line: #e4d9cd;
  --brand: #4a2c4f;
  --brand-ink: #fffaf3;
  --gold: #b88a3e;
  --good: #2f6b3a;
  --bad: #b3362f;
  --radius: 14px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
img, svg, audio { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 var(--serif); color: var(--ink); text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
header.site nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }
section { padding: 44px 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.hero { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.06; margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 660px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn.secondary { background: transparent; color: var(--brand); }
.btn:disabled { opacity: 0.5; cursor: default; }
.pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #efe5ef; color: var(--brand); font-weight: 650; font-size: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: step; }
.grid4 li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.grid4 li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 8px; }
.grid4 h3 { margin: 0 0 8px; font-size: 19px; }
.band { background: #f1e9df; }
.facts { padding-left: 1.2em; }
.facts li { margin: 10px 0; }
.prose { max-width: 780px; }
.prose h1 { font-size: 36px; line-height: 1.15; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; }
/* guides */
.guide h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.12; margin: 8px 0 14px; }
.guide h2 { margin-top: 34px; }
.crumbs { margin: 0; font-size: 14px; }
.answer { color: var(--ink); max-width: none; }
.updated { font-size: 14px; }
.howto { padding-left: 1.3em; }
.howto li { margin: 8px 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: var(--card); }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare thead th { background: #f1e9df; }
.use { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prompts li { margin: 6px 0; }
.guide-list { padding-left: 1.1em; }
.guide-list li { margin: 14px 0; }
/* listening pages */
.listen .kicker { margin: 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.listen h1 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0 4px; line-height: 1.15; }
.sample-note { background: #efe5ef; color: var(--brand); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.notes { list-style: none; padding: 0; margin: 20px 0; }
.notes .note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.notes .note.playing { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(74, 44, 79, 0.15); }
.notes .when { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.notes .len { text-transform: none; }
.notes audio { width: 100%; }
.notes .text { font-family: var(--serif); font-size: 17px; margin: 10px 0 0; white-space: pre-line; }
.chapters { list-style: none; padding: 0; margin: 24px 0; }
.chapters a { display: grid; grid-template-columns: 2.2em 1fr; gap: 2px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; text-decoration: none; color: var(--ink); }
.chapters .num { grid-row: span 2; font: 600 22px/1.2 var(--serif); color: var(--gold); }
.chapters .t { font: 600 18px/1.3 var(--serif); }
.chapters .d { font-size: 14px; color: var(--muted); }
/* upload page */
.upload .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.upload h2 { margin-top: 0; font-size: 21px; }
.drop { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; padding: 16px; text-align: center; }
.drop input { max-width: 100%; }
.drop span { display: none; }
progress { width: 100%; height: 12px; margin-top: 12px; }
.status { min-height: 1.4em; margin: 10px 0 0; }
.status.err { color: var(--bad); }
.people { display: grid; gap: 8px; margin: 8px 0 14px; }
.people label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.people label span { color: var(--muted); font-size: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 12px 0; }
.consent input { margin-top: 4px; }
input[type="text"], input:not([type]) { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; max-width: 360px; }
