/* Distinct Mastering app. Dark studio look, logo purple accent (#6E38DE, sampled from the logo file).
   Phone first. Two weights: 400 and 800. */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --bg: #0f0e13;
  --surface: #18161f;
  --line: #2c2936;
  --text: #ffffff;
  --muted: #b3aec0;
  --accent: #6e38de;        /* fills (buttons), white ink */
  --accent-ink: #ffffff;
  --link: #b89cff;          /* purple as TEXT: the logo purple is too dark to read on --bg, this tint passes AA */
  --red: #ff6b6b;
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s7: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; }
body { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }
a { color: var(--link); }
h1 { font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0 0 var(--s4); }
h2 { font-weight: 800; font-size: 20px; margin: 0 0 var(--s3); }
b { font-weight: 800; }

.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) var(--s4); border-bottom: 3px solid var(--accent); background: #0a0a0d; }
.top__brand img { display: block; height: auto; }
.top__nav { display: flex; gap: var(--s4); }
.top__nav a { color: var(--muted); text-decoration: none; font-weight: 800; }
.top__nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
.top--client { justify-content: center; }

.main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: var(--s6) var(--s4); }
.main--client { max-width: 640px; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: var(--s4) var(--s6); margin: 0 0 var(--s4); }
section { margin: 0 0 var(--s6); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px;
  padding: var(--s3) var(--s6); font: 800 15px var(--font); text-decoration: none; cursor: pointer; }

.foot { padding: var(--s4); text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* Forms (client intake) */
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: var(--s4); margin: 0 0 var(--s4); }
.form legend { font-weight: 800; padding: 0 var(--s2); }
.field { display: block; margin: 0 0 var(--s3); font-weight: 800; font-size: 15px; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 400 16px var(--font);
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.opt { font-weight: 400; color: var(--muted); }
.field__err { color: var(--red); margin: -6px 0 var(--s3); font-size: 14px; }
.choice { display: block; margin: 6px 0; }
.hint { color: var(--muted); font-size: 14px; }
.notice { padding: var(--s3) var(--s4); border-radius: 8px; border: 1px solid var(--line); }
.notice--err { border-color: var(--red); color: var(--red); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0 0 var(--s4); }

/* Project pages */
.kicker { color: var(--muted); font-weight: 800; margin: 0 0 4px; }
.kicker a { color: var(--muted); }
.status { font-weight: 800; color: var(--link); }
.tracks { margin: 0; padding-left: 1.4em; }
.files { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.files li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.files__size, .files__state { color: var(--muted); font-size: 14px; margin-left: 6px; }
.uploader label.btn { margin: var(--s2) 0; }
.progress { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.progress li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 6px 0; }
.progress progress { width: 100%; accent-color: var(--accent); }
.progress__msg { font-size: 14px; color: var(--muted); }
.progress .is-done .progress__msg { color: var(--link); }
.progress .is-error .progress__msg { color: var(--red); }
.pre { white-space: pre-wrap; }

/* Studio lists */
.list { width: 100%; border-collapse: collapse; }
.list th, .list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s4); margin: 0 0 var(--s3); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--line); }
.tag--files_in { background: var(--accent); color: var(--accent-ink); }
.log { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.log li { padding: 4px 0; }
@media (max-width: 640px) { .list thead { display: none; } .list td { display: block; border: 0; padding: 2px 0; } .list tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); } }
