/* songsparkapp.com: one stylesheet for every page. Colours follow the app's own (D:\Projects\SongSpark\src\SongSpark\
   Themes\Colors.xaml): light by default, dark when the system asks for it, Song Spark's violet accent (#5B3FD1).
   Body text keeps a contrast of 7:1 or more in both themes. No web fonts: Segoe UI Variable on Windows, as the app. */

:root {
  --bg: #fbfafc; --bg-soft: #f6f3fe; --panel: #ffffff; --sunk: #f6f4f8;
  --line: #e7e2ec; --line-2: #cfc8d7;
  --text: #1d1a22; --text-2: #4f4a5e;
  --accent: #5b3fd1; --accent-fill: #4e34bc; --accent-ink: #ffffff; --accent-text: #3f2aa0; --accent-soft: #ece6fb;
  --focus: #5b3fd1;
  --shadow: 0 10px 30px rgba(40, 20, 80, 0.12);
  --font-sans: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r2: 6px; --r3: 10px; --r4: 16px;
  --wrap: 1120px; --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #24212a; --bg-soft: #2a2535; --panel: #2c2833; --sunk: #201d26;
    --line: #3b3743; --line-2: #55505f;
    --text: #f4f1f7; --text-2: #cac5d3;
    --accent: #b4a2ff; --accent-fill: #b4a2ff; --accent-ink: #1b1236; --accent-text: #c3b4ff; --accent-soft: #3b3166;
    --focus: #c3b4ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.25em; overflow-wrap: anywhere; }
pre { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r2); padding: 1em; overflow-x: auto; white-space: pre-wrap; }
q { quotes: '\201C' '\201D'; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: calc(var(--measure) + 40px); }
.prose { max-width: calc(var(--measure) + 40px); padding-top: 48px; padding-bottom: 64px; }
.prose h2:first-of-type { margin-top: 1.4em; }
.lede { font-size: 1.2rem; color: var(--text-2); }
.effective { font-size: 0.95rem; color: var(--text-2); }
.more { margin-top: 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--accent-fill); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r2); z-index: 10; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.site-header nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; padding: 6px 2px; color: var(--text-2); border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current='page'] { color: var(--text); border-bottom-color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-row p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-2); }

/* Home */
.hero { padding: 56px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 0.15em; }
.tagline { font-family: var(--font-display); font-size: clamp(1.3rem, 1.3vw + 1rem, 1.75rem); font-weight: 600; margin-bottom: 0.5em; }
.hero .lede { max-width: var(--measure); }
.hero-icon { width: 168px; height: 168px; }
.hero-store { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 1.4em 0 0; }
.store { display: inline-block; border-radius: var(--r2); padding: 10px 16px; font-weight: 600; text-decoration: none; }
a.store { background: var(--accent-fill); color: var(--accent-ink); }
.store-soon { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.hero-note { color: var(--text-2); }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow); background: var(--sunk); }

.steps { padding: 24px 0 16px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step:nth-of-type(even) .step-text { order: 2; }
.step h3 { font-size: 1.5rem; margin-top: 0; display: flex; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 1.1rem; font-weight: 700; }
.step p { color: var(--text-2); }

.facts, .req-brief { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.fact-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.fact-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r4); padding: 18px 20px; margin: 0; color: var(--text-2); }
.fact-grid strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
.req-brief { padding-bottom: 64px; }
.req-brief ul { max-width: var(--measure); }

/* Requirements: the "how to check" steps */
.check-steps { counter-reset: n; list-style: none; padding: 0; }
.check-steps li { counter-increment: n; position: relative; padding-left: 48px; margin-bottom: 0.8em; min-height: 36px; }
.check-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r2); padding: 14px 18px; }

/* Tables */
.table-scroll { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); }
th, td { text-align: left; padding: 10px 14px; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; background: var(--sunk); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-icon { width: 96px; height: 96px; order: -1; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; }
  .step:nth-of-type(even) .step-text { order: 0; }
  .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
