/* Layout concept: a dark booth. Hand-drawn Amatic headlines over a slowly turning chrome record;
   everything else is quiet narrow grotesk, with mono for the numbers DJs actually read (BPM, key, length). */
:root {
  --ink: #0b0b0c;       /* page */
  --panel: #141416;     /* raised surfaces */
  --line: #2a2a2f;      /* hairlines, borders */
  --chrome: #e2e2e5;    /* main text */
  --dim: #92929a;       /* secondary text */
  --brass: #cfa86c;     /* the one accent: vinyl-era brass */
  --brass-ink: #1a1408; /* text on brass */
  --ok: #8fc79a;
  --warn: #e0b25c;
  --bad: #e07a6c;

  --f-display: "Amatic SC", "Arial Narrow", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --s-1: clamp(.78rem, .75rem + .1vw, .82rem);
  --s0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --s1: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --s2: clamp(2rem, 1.6rem + 2vw, 3rem);
  --s3: clamp(3rem, 2rem + 5vw, 6rem);
  --s4: clamp(4.5rem, 2.5rem + 10vw, 10rem);

  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chrome);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.6;
  font-stretch: 92%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: .06em; text-decoration: none; line-height: 1; }
.nav { display: flex; gap: clamp(10px, 3vw, 28px); align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: var(--s-1); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chrome); }
.nav a.cta { color: var(--brass-ink); background: var(--brass); padding: 7px 14px; border-radius: 2px; }
.nav a.cta:hover { color: var(--brass-ink); filter: brightness(1.08); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.hero canvas { width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: end; }
.eyebrow { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }
.hero h1 { font-family: var(--f-display); font-size: var(--s4); line-height: .82; margin: 0; letter-spacing: .03em; font-weight: 700; }
.hero .lede { font-size: var(--s1); line-height: 1.4; max-width: 30ch; margin: 18px 0 0; text-wrap: balance; }
.hero p.sub { color: var(--dim); max-width: 52ch; margin: 14px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 var(--s-1)/1 var(--f-body); text-transform: uppercase; letter-spacing: .14em;
  padding: 14px 20px; border-radius: 2px; border: 1px solid var(--line);
  background: transparent; color: var(--chrome); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--dim); }
.btn.primary { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- sections ---------- */
section.block { padding-block: clamp(56px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.h2 { font-family: var(--f-display); font-size: var(--s3); line-height: .9; margin: 0 0 24px; font-weight: 700; letter-spacing: .02em; text-wrap: balance; }
.prose { max-width: 62ch; color: var(--dim); }
.prose strong { color: var(--chrome); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

.services { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.services b { font-family: var(--f-display); font-size: 2rem; line-height: 1; letter-spacing: .03em; }
.services span { color: var(--dim); }

.years { display: flex; align-items: baseline; gap: 14px; margin-top: 28px; font-family: var(--f-mono); color: var(--dim); font-size: var(--s-1); letter-spacing: .08em; text-transform: uppercase; }
.years b { font-family: var(--f-display); color: var(--chrome); font-size: var(--s3); letter-spacing: 0; line-height: .8; }

/* ---------- listen ---------- */
.players { display: grid; gap: 14px; }
.players iframe { width: 100%; height: 166px; border: 0; background: var(--panel); }
.empty { border: 1px dashed var(--line); padding: 22px; color: var(--dim); }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; letter-spacing: .14em; color: var(--brass); margin-bottom: 12px; padding: 0; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: var(--s-1); color: var(--dim); }
.field label i { font-style: normal; color: var(--brass); }
input, select, textarea {
  font: inherit; color: var(--chrome); background: var(--panel);
  border: 1px solid var(--line); border-radius: 2px; padding: 12px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; }
textarea { min-height: 130px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; cursor: pointer; color: var(--chrome); font-size: var(--s-1); }
.chips input { width: auto; accent-color: var(--brass); }
.chips label:has(input:checked) { border-color: var(--brass); color: var(--brass); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: var(--s-1); color: var(--dim); }
.status { padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); }
.status.err { border-color: var(--bad); color: var(--bad); }
.done { border: 1px solid var(--brass); padding: 28px; display: grid; gap: 10px; }
.done h3 { font-family: var(--f-display); font-size: var(--s2); margin: 0; line-height: 1; }
.done code { font-family: var(--f-mono); color: var(--brass); }

.aside-facts { display: grid; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); }
.fact { border-top: 1px solid var(--line); padding-top: 14px; }
.fact b { display: block; font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.fact span { color: var(--dim); }

/* ---------- downloads ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 2px; }
.tabs button { font: 600 var(--s-1)/1 var(--f-body); text-transform: uppercase; letter-spacing: .12em; background: transparent; color: var(--dim); border: 0; padding: 11px 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--chrome); color: var(--ink); }
.toolbar input[type="search"] { max-width: 260px; }

.list { border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--chrome); cursor: pointer; display: grid; place-items: center; }
.play:hover { border-color: var(--brass); color: var(--brass); }
.play[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.play svg { width: 16px; height: 16px; fill: currentColor; }
.t-title { font-weight: 600; overflow-wrap: anywhere; }
.t-meta { font-family: var(--f-mono); font-size: var(--s-1); color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.t-meta .tag { color: var(--brass); text-transform: uppercase; letter-spacing: .1em; }
.t-count { font-family: var(--f-mono); font-size: var(--s-1); color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { grid-column: 2 / -1; height: 2px; background: var(--line); position: relative; cursor: pointer; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--brass); width: 0; }
.preview-flag { font-family: var(--f-mono); font-size: var(--s-1); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); padding: 10px 14px; margin-bottom: 18px; }

/* ---------- admin ---------- */
table { width: 100%; border-collapse: collapse; font-size: var(--s-1); }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 500; }
.scroll { overflow-x: auto; }
.pill { font-family: var(--f-mono); font-size: .75rem; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .08em; }
.pill.new { color: var(--warn); } .pill.confirmed { color: var(--ok); } .pill.declined { color: var(--bad); }

/* ---------- footer ---------- */
footer { padding-block: 40px; color: var(--dim); font-size: var(--s-1); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--chrome); }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero canvas { max-width: 300px; justify-self: start; order: -1; }
  .aside-facts { position: static; }
}
@media (max-width: 560px) {
  .row, .row.three { grid-template-columns: minmax(0, 1fr); }
  .services li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .t-count { display: none; }
  .nav a:not(.cta) { letter-spacing: .08em; }
  .toolbar input[type="search"] { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
