/* ============================================================
   Setlist — shared design tokens + base components
   Used by: Setlist.html (landing), Design System.html, Generate.html
   ============================================================ */

:root {
  /* ---------- light (default) ---------- */
  --bg: #efefef;
  --bg-2: #f0f0f0;
  --paper: #FAF7F0;
  --ink: #15140F;
  --ink-2: #2C2A24;
  --muted: #8C857B;
  --rule: #1514100f;
  --rule-2: #15141022;
  --accent: #E64A19;
  --accent-2: #FFB199;
  --accent-ink: #FAF7F0;

  /* ---------- type ---------- */
  --display: "Bricolage Grotesque", ui-serif, Georgia, serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* ---------- spacing scale ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;

  /* ---------- radii ---------- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* ---------- shadow ---------- */
  --shadow-sm: 0 1px 0 #ffffff80 inset, 0 6px 20px -12px #15141022;
  --shadow-md: 0 1px 0 #ffffff80 inset, 0 24px 60px -28px #15141033, 0 6px 20px -12px #15141022;
  --shadow-lg: 0 24px 60px -36px #15141040;
}

[data-theme="dark"] {
  --bg: #14130F;
  --bg-2: #1B1A15;
  --paper: #1F1D17;
  --ink: #F5F1E6;
  --ink-2: #D6D1C2;
  --muted: #7A7368;
  --rule: #f5f1e612;
  --rule-2: #f5f1e624;
  --accent: #FF6A3D;
  --accent-2: #FFB199;
  --accent-ink: #14130F;
  --shadow-sm: 0 1px 0 #ffffff08 inset, 0 6px 20px -12px #00000060;
  --shadow-md: 0 1px 0 #ffffff08 inset, 0 24px 60px -28px #00000088, 0 6px 20px -12px #00000050;
  --shadow-lg: 0 24px 60px -36px #00000088;
}

/* ============================================================ base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ============================================================ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

/* Default section rhythm: odd top-level sections use bg-2 unless overridden. */
main > section:nth-of-type(odd) {
  background: var(--bg-2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* legacy fallback in case an old .dot slips through */
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}

/* ============================================================ brand mark
   Dumbbell where each plate is a 3-bar audio waveform.
   Reads as: lift · play · short track.
   ------------------------------------------------------------ */
.brand-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
.brand-mark .plate { fill: var(--ink); }
.brand-mark .peak  { fill: var(--accent); }
.brand-mark .bar   { fill: var(--ink); }
/* sizing variants */
.brand-mark.lg { width: 96px; height: 96px; }
.brand-mark.xl { width: 168px; height: 168px; }
.brand-mark.xxl { width: 280px; height: 280px; }
.brand-mark.sm { width: 16px; height: 16px; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a { transition: color .12s ease; }
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .12s ease, color .12s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* ---- theme switch (used on design system + generator) ---- */
.theme-switch {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  padding: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.theme-switch button.on {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, background .12s ease, color .12s ease, border-color .12s ease;
  color: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-inverse { background: var(--ink); color: var(--bg); }
.btn-inverse:hover { background: var(--accent); color: var(--accent-ink); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.btn .arrow {
  display: inline-block; width: 14px; height: 14px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}
.btn .arrow-l {
  display: inline-block; width: 14px; height: 14px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(-45deg) translate(1px, 1px);
}
.btn-play .tri {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-right: 2px;
}
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ============================================================ eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--muted);
}

/* ============================================================ pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  background: var(--paper);
}
.pill .dot-sm {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ============================================================ section */
.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}
.section-head .tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================================ marquee */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: scroll 38s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.marquee-item .id { color: var(--accent); font-weight: 700; }
.marquee-item .dur {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.marquee-item .star { color: var(--muted); font-size: 18px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================ track row */
.tracks {
  list-style: none; margin: 0; padding: 0;
  counter-reset: track;
}
.track {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.track:last-child { border-bottom: none; }
.track .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.track .name {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.track .name .sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
  font-weight: 400;
}
.track .dur {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.track.section-row {
  padding: 14px 0 6px;
  border-bottom: none;
}
.track.section-row .name {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
}
.track.section-row .num,
.track.section-row .dur { color: var(--accent); }

/* ============================================================ footer */
.foot {
  padding: 48px 0 64px;
  font-size: 13px;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.foot-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; }
.foot-grid li a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ============================================================ form atoms */
.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.input::placeholder { color: var(--muted); }

.seg {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  padding: 3px;
}
.seg button {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.seg button.on { background: var(--ink); color: var(--bg); }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
  text-align: left;
  font-family: var(--body);
  color: var(--ink);
  width: 100%;
}
.choice:hover { border-color: var(--ink); }
.choice.on {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--paper));
}
.choice .check-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-2);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}
.choice.on .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.choice.on .check-box::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg);
}
.choice.radio .check-box { border-radius: 50%; }
.choice.radio.on .check-box::after { display: none; }
.choice.radio.on .check-box {
  background: var(--paper);
  border: 5px solid var(--accent);
}
.choice .label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.choice .hint {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}

/* range slider */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--rule-2);
  border-radius: var(--r-pill);
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
  transition: transform .08s ease;
}
.range::-webkit-slider-thumb:active { transform: scale(1.1); }
.range::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
