/* PocketChoir design tokens, shared by the site, the app and the player.
   Light: warm paper, deep indigo ink, rose accent. Dark: night indigo. */
:root {
  --paper: #f7f4ef;
  --paper-2: #efe9df;
  --card: #fffdf9;
  --ink: #17142b;
  --ink-2: #57526b;
  --ink-3: #6c6680;
  --line: #e4ddd1;
  --brand: #2d2463;
  --brand-2: #4a3f94;
  --brand-ink: #ffffff;
  --brand-soft: #ebe8f7;
  --rose: #b8324a;
  --rose-ink: #ffffff;
  --rose-soft: #f8e4e7;
  --gold: #b48a3c;
  --ok: #2f6b4f;
  --ok-soft: #e3f1ea;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --shadow: 0 1px 2px rgba(23, 20, 43, .06), 0 8px 24px rgba(23, 20, 43, .06);
  --shadow-lg: 0 2px 6px rgba(23, 20, 43, .06), 0 24px 60px rgba(23, 20, 43, .12);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', 'Hiragino Mincho ProN', 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121019;
  --paper-2: #181523;
  --card: #1b1826;
  --ink: #f1edf7;
  --ink-2: #b2abc6;
  --ink-3: #8e87a3;
  --line: #2f2a40;
  --brand: #a99df2;
  --brand-2: #c4bbff;
  --brand-ink: #15122a;
  --brand-soft: #262040;
  --rose: #ef6b80;
  --rose-ink: #1b0b10;
  --rose-soft: #3a1f29;
  --gold: #d8b46a;
  --ok: #6cc596;
  --ok-soft: #173126;
  --warn: #f0c060;
  --warn-soft: #33290f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121019; --paper-2: #181523; --card: #1b1826; --ink: #f1edf7; --ink-2: #b2abc6; --ink-3: #8e87a3; --line: #2f2a40;
    --brand: #a99df2; --brand-2: #c4bbff; --brand-ink: #15122a; --brand-soft: #262040; --rose: #ef6b80; --rose-ink: #1b0b10; --rose-soft: #3a1f29;
    --gold: #d8b46a; --ok: #6cc596; --ok-soft: #173126; --warn: #f0c060; --warn-soft: #33290f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3); --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
:lang(ja) body, :lang(ko) body, :lang(zh) body, body:lang(ja), body:lang(ko), body:lang(zh) { line-height: 1.75; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* everything you can click or drag shows the hand; labels only when they wrap a tick box */
select, summary, [role="button"], input[type="checkbox"], input[type="radio"], input[type="range"], input[type="file"], input[type="color"],
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]), label[for] { cursor: pointer; }
button:disabled, .btn[disabled] { cursor: not-allowed; }
/* inline icons inside links and buttons take the text size unless a component sizes them */
:where(a, button, summary) > svg { width: 1.1em; height: 1.1em; flex: none; }
:where(a:not([class])) > svg { vertical-align: -.2em; margin-left: .25em; }
a { color: var(--brand-2); }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em; }
:lang(ja) h1, :lang(ko) h1, :lang(zh) h1, :lang(ja) h2, :lang(ko) h2, :lang(zh) h2 { letter-spacing: 0; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -6px rgba(45, 36, 99, .55); }
.btn-primary:hover { background: var(--brand-2); }
.btn-rose { background: var(--rose); color: var(--rose-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }

/* the logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .word { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 23px; letter-spacing: -0.01em; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 15px; }
.field small { color: var(--ink-2); font-size: 14px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 10px 0; }
.msg:empty { display: none; }
.msg.err { background: var(--rose-soft); color: var(--rose); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--brand-soft); color: var(--ink); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
