/*
 * Styles for the static pages in public/ (listenonrepeat.html, youtube-looper.html, ...).
 * They live outside the Vue app so crawlers that don't run JavaScript can read them.
 * Colors mirror src/assets/main.css; theme-init.js applies the saved light/dark choice.
 */
:root {
  --bg: #0e0b14;
  --card: #17121f;
  --surface: #221b2d;
  --border: #31273f;
  --text: #f4f0fa;
  --text-muted: #a99cbd;
  --accent: #a66bff;
  --accent-hover: #b88aff;
  --on-accent: #120720;
  --chrome-bg: #1b1623;
  --chrome-accent: #b88aff;
  color-scheme: dark;
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #efecf4;
    --card: #ffffff;
    --surface: #f1ecf8;
    --border: #e0d6ed;
    --text: #1d1528;
    --text-muted: #6a5d7c;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --on-accent: #ffffff;
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #efecf4;
  --card: #ffffff;
  --surface: #f1ecf8;
  --border: #e0d6ed;
  --text: #1d1528;
  --text-muted: #6a5d7c;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --on-accent: #ffffff;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a {
  color: var(--accent);
}
.topbar {
  background: var(--chrome-bg);
  padding: 12px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chrome-accent);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand img {
  width: 24px;
  height: 24px;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.05rem;
  margin: 18px 0 4px;
}
p + p,
p + ol,
ol + p,
p + ul,
ul + p {
  margin-top: 12px;
}
ol,
ul {
  padding-left: 1.4em;
}
li + li {
  margin-top: 6px;
}
.lead {
  font-size: 1.1rem;
}
.muted {
  color: var(--text-muted);
}
.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.cta:hover {
  background: var(--accent-hover);
}
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
code,
kbd {
  background: var(--surface);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.95em;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.guides {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 10px;
}
.guides li + li {
  margin-top: 0;
}
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 32px;
  font-size: 0.85rem;
  text-align: center;
}
@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
}
