/* songcraft storefront: the warm keepsake look. No inline styles anywhere (CSP default-src 'self'). */
:root {
  --bg: #fbf6ee; --card: #fffdf9; --ink: #3a2e26; --soft: #7a6a5d; --accent: #b4573a; --line: #e6d9c8;
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
nav { display: flex; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--card); }
nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
nav a.right { margin-left: auto; font-family: inherit; font-size: 0.95rem; color: var(--accent); }
main { max-width: 680px; margin: 0 auto; padding: 1.5rem 1.2rem 4rem; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
a { color: var(--accent); }
.field { display: block; margin: 0 0 1.1rem; }
.field .q { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .hint { display: block; color: var(--soft); font-size: 0.9rem; margin-bottom: 0.3rem; }
input, textarea, select {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; }
.check input { width: auto; margin-top: 0.35rem; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.2rem 1.1rem 1rem; margin: 2rem 0 1.5rem; }
.notice p { color: var(--soft); font-size: 0.95rem; }
button, .button {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 0.75rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { filter: brightness(1.08); }
ul.states { padding-left: 1.2rem; }
ul.states li { margin: 0.6rem 0; }
.gift { text-align: center; }
.gift h1 { font-size: 2.3rem; }
.gift audio { width: 100%; margin: 1rem 0 0.4rem; }
.lyrics { font-family: var(--display); font-size: 1.1rem; line-height: 1.8; }
.small { color: var(--soft); font-size: 0.88rem; }

/* ---------- the order form as slides (2026-11-27, public/wizard.js) ---------- */
.wizard-head { margin: 0.5rem 0 1rem; scroll-margin-top: 1rem; }
.wizard-step { margin: 0 0 0.35rem; color: var(--soft); font-size: 0.92rem; font-weight: 600; }
.wizard-bar { width: 100%; height: 0.5rem; accent-color: var(--accent); }
.js-wizard .slide { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.4rem 1.1rem 1.1rem; }
.js-wizard .slide h2 { margin-top: 0.8rem; }
.wizard-nav { display: flex; gap: 0.7rem; justify-content: space-between; margin-top: 1.4rem; }
.wizard-nav .next { margin-left: auto; }
.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.3rem; font-weight: 600; }
.inspirations input { margin-bottom: 0.45rem; }
.own-style[hidden] { display: none; }

/* ---------- the compact style picker and sample player (2026-11-27, public/picker.js) ---------- */
.styles-field .q { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.picker { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem; }
.picker-row { display: flex; gap: 0.6rem; align-items: center; }
.style-select { flex: 1; }
.heart { flex: none; background: none; color: var(--accent); border: 1px solid var(--line); border-radius: 999px;
  width: 2.6rem; height: 2.6rem; padding: 0; font-size: 1.25rem; line-height: 1; }
.heart[aria-pressed="true"] { background: #fbe9e3; border-color: var(--accent); }
.heart[hidden] { display: none; }
.samples { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.samples:empty { display: none; }
.sample { display: flex; align-items: center; gap: 0.7rem; }
.play { width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; font-size: 1rem; flex: none; }
.sample-info { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.6rem; align-items: center; }
.sample-title { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-time { color: var(--soft); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.sample-bar { grid-column: 1 / -1; width: 100%; height: 0.45rem; cursor: pointer; accent-color: var(--accent); }
.sample.playing .play { filter: brightness(1.1); }
