/* CIEN Music website. The app's tokens (docs/DESIGN_TOKENS.md), dark by default and light through prefers-color-scheme.
   One file, no inline styles anywhere, so the Content-Security-Policy can be `style-src 'self'`. */
:root {
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --surface: #18181b;
  --elevated: #27272a;
  --outline: #27272a;
  --accent: #a78bfa;
  --on-accent: #09090b;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --danger: #ef4444;
  --danger-text: #f87171;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-2: #f4f4f5;
    --surface: #ffffff;
    --elevated: #e4e4e7;
    --outline: #e4e4e7;
    --accent: #6d28d9;
    --on-accent: #ffffff;
    --text: #18181b;
    --text-2: #52525b;
    --danger: #b91c1c;
    --danger-text: #b91c1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.5rem 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.25rem; }
p, ul, ol, dl { margin: 0.5rem 0; }
code { word-break: break-all; font-size: 0.85em; }
.muted { color: var(--text-2); }
.error { color: var(--danger-text); }
.nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; max-width: 44rem; margin: 0 auto; font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav .brand { font-weight: 700; color: var(--text); }

.doc, .hero { max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.hero { padding-top: 2.5rem; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); }
.footer { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; color: var(--text-2); font-size: 0.9rem; border-top: 1px solid var(--outline); }
.footer a { margin-inline-end: 1rem; }
.notice { background: var(--surface); border: 1px solid var(--outline); border-inline-start: 4px solid var(--accent); border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--text-2); font-size: 0.9rem; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 12px; padding: 0.75rem 1.25rem 1.25rem; margin: 1rem 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
dt { color: var(--text-2); }
dd { margin: 0; }

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--elevated);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.danger { background: var(--danger); color: #fff; margin-top: 0.75rem; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.link { color: var(--text-2); }

input[type="text"] {
  display: block;
  width: 100%;
  max-width: 20rem;
  margin: 0.25rem 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--outline);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
}

/* share pages */
.share { max-width: 26rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; text-align: center; }
.cover { display: block; width: 100%; max-width: 20rem; height: auto; aspect-ratio: 1; margin: 0 auto 1rem; border-radius: 16px; object-fit: cover; background: var(--elevated); }
.cover.placeholder { max-width: 12rem; }
.label { margin: 0; color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.share h1 { margin-top: 0.25rem; overflow-wrap: anywhere; }
.subtitle { color: var(--text-2); overflow-wrap: anywhere; }
.actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.actions .button { width: 100%; max-width: 20rem; }
