/* ==========================================================================
   Refrain - The Greatest Band That Never Was
   Same palette as the band pages: ink, paper, gold.
   ========================================================================== */

:root {
  --ink: #0A0A1A; --paper: #EFEDE4; --paper-deep: #E2E0D5; --card: #3A3A4A;
  --teal: #7EC8C8; --lavender: #9B8AC4; --ember: #FF8C42;
  --line: rgba(10,10,26,0.13); --line-light: rgba(239,237,228,0.15);
  --accent: #D4A74A; --accent-ink: #A8791F;
  --bad: #A5342A;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: 'Inter', sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
h1, h2, h3, .page-title, .big { font-family: 'EB Garamond', serif; font-weight: 400; }

.wrap { max-width: 940px; margin: 0 auto; padding: 44px 5vw 90px; }
.centre { text-align: center; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.page-title { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin-bottom: 14px; }
.lede { font-size: 15.5px; line-height: 1.72; opacity: 0.8; max-width: 620px; }
.lede.centre { margin-left: auto; margin-right: auto; }
.quiet { opacity: .6; font-size: 14.5px; }
.dim { opacity: .55; }
.hint { font-size: 12.5px; opacity: .6; margin-top: 6px; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn-gold { display: inline-block; background: var(--accent); color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  padding: 13px 26px; border: 0; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: opacity .15s, transform .15s; }
.btn-gold:hover { opacity: .9; transform: translateY(-1px); }
.btn-gold.sm { font-size: 13px; padding: 9px 17px; }
.btn-plain { background: transparent; border: 1px solid var(--line); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 17px;
  cursor: pointer; color: var(--ink); }
.btn-plain:hover { border-color: rgba(10,10,26,.32); }
.linky { background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font: inherit; font-size: 12.5px; opacity: .6; text-decoration: underline; }
.linky:hover { opacity: 1; }
.inline { display: inline; }

/* ── top bar ────────────────────────────────────────────────────────────── */
.topbar { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 40; }
.bar-inner { max-width: 1120px; margin: 0 auto; padding: 0 5vw; height: 64px;
  display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--paper);
  text-decoration: none; font-family: 'EB Garamond', serif; font-size: 19px; }
.mainnav { display: flex; gap: 20px; margin-right: auto; flex-wrap: wrap; }
.mainnav a { color: var(--paper); text-decoration: none; font-size: 13.5px; opacity: .62; }
.mainnav a:hover { opacity: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: var(--ink); font-size: 11px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex: none; }
.avatar.dark { background: var(--card); color: var(--paper); }
.who-name { line-height: 1.2; }
.who-name small { display: block; font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; opacity: .5; }

/* ── flashes ────────────────────────────────────────────────────────────── */
.flashes { max-width: 940px; margin: 18px auto 0; padding: 0 5vw; }
.flashes.bare-flash { max-width: 460px; margin-top: 24px; }
.flash { font-size: 14px; padding: 12px 16px; border-radius: 8px; margin-bottom: 10px;
  background: rgba(212,167,74,.16); border: 1px solid rgba(212,167,74,.5); }
.flash.bad { background: rgba(165,52,42,.1); border-color: rgba(165,52,42,.45); color: #7C2A22; }

/* ── the gate ───────────────────────────────────────────────────────────── */
body.bare { background: var(--ink); }
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 56px 5vw; }
.gate-card { width: 100%; max-width: 430px; text-align: center; color: var(--paper); }
.gate-mark { width: 72px; height: 72px; border-radius: 14px; margin: 0 auto 24px;
  background: rgba(212,167,74,.14); border: 1px solid var(--accent); color: var(--accent);
  font-size: 28px; display: flex; align-items: center; justify-content: center; }

/* The logo is supplied on solid black with no transparency. Rounding it to a
   circle removes the corners, which is the only place that would show against
   the ink background. It is never placed on a light surface. */
.gate-logo { width: 150px; height: 150px; border-radius: 50%; display: block;
  margin: 0 auto 22px; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; display: block; flex: none; }
.gate h1 { font-size: 46px; margin-bottom: 12px; }
.gate h1.small-title { font-size: 32px; }
.kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.gate-lede { font-size: 14.5px; line-height: 1.7; opacity: .8; margin-bottom: 26px; }
.gate-form { text-align: left; background: rgba(239,237,228,.06);
  border: 1px solid var(--line-light); border-radius: 12px; padding: 22px; }
.gate-form label { display: block; font-size: 12px; font-weight: 600; opacity: .8;
  margin-bottom: 5px; }
.gate-form input { width: 100%; font-family: inherit; font-size: 15px; padding: 11px 13px;
  border-radius: 8px; border: 1px solid var(--line-light); background: rgba(10,10,26,.35);
  color: var(--paper); margin-bottom: 15px; }
.gate-form input:focus { outline: none; border-color: var(--accent); }
.gate-form .btn-gold { width: 100%; }
.gate-form .hint { color: rgba(239,237,228,.55); margin: -8px 0 14px; }
.gate-alt { margin-top: 20px; font-size: 13px; opacity: .7; line-height: 1.8; }
.gate-alt.dim { opacity: .5; }
.gate-alt a { color: var(--accent); }
.errors { list-style: none; text-align: left; background: rgba(165,52,42,.16);
  border: 1px solid rgba(165,52,42,.5); border-radius: 8px; padding: 12px 16px;
  margin-bottom: 18px; font-size: 13.5px; }
.errors li { margin-bottom: 4px; }
.errors li:last-child { margin-bottom: 0; }
.errors.wide { max-width: none; color: #7C2A22; background: rgba(165,52,42,.1); }

/* ── apply page (public, light) ─────────────────────────────────────────── */
.apply-page { background: var(--paper); color: var(--ink); min-height: 100vh; padding: 56px 5vw 80px; }
.apply-inner { max-width: 720px; margin: 0 auto; }
.apply-page .kicker { color: var(--accent-ink); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 34px; }
@media (max-width: 700px) { .steps3 { grid-template-columns: 1fr; } }
.st { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; }
.st .n { display: flex; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: var(--ink); font-size: 11px; font-weight: 700; align-items: center;
  justify-content: center; margin-bottom: 9px; }
.st h4 { font-family: 'EB Garamond', serif; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.st p { font-size: 12.5px; opacity: .72; line-height: 1.55; }

.applyform { margin-top: 8px; }
.applyform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .applyform .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper-deep); color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,167,74,.22); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label, .radios label { display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 400; background: var(--paper-deep);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.hp { position: absolute; left: -9999px; }

/* ── song list ──────────────────────────────────────────────────────────── */
.commit { display: flex; align-items: center; gap: 13px; background: var(--ink);
  color: var(--paper); border-radius: 12px; padding: 15px 20px; margin: 24px 0; }
.commit .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.commit p { font-size: 13.5px; }
.commit b { color: var(--accent); }

.songs { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.song { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; }
.song-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.pill { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; background: rgba(10,10,26,.08); }
.p-seed { background: rgba(212,167,74,.2); color: var(--accent-ink); }
.p-open { background: rgba(126,200,200,.25); color: #1F6F6F; }
.p-in_progress { background: rgba(155,138,196,.25); color: #5B4A85; }
.p-resting, .p-rest { background: rgba(10,10,26,.1); color: rgba(10,10,26,.6); }
.p-released { background: rgba(255,140,66,.22); color: #A24E12; }
.tag-g { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px;
  border: 1px solid rgba(155,138,196,.5); color: #5B4A85; background: rgba(155,138,196,.1); }
.song-date { font-size: 12px; opacity: .5; margin-left: auto; }
.song h2 { font-size: 25px; font-weight: 500; line-height: 1.15; margin-bottom: 3px; }
.song-by { font-size: 12.5px; opacity: .6; margin-bottom: 12px; }
.seed-peek { background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0; padding: 13px 15px;
  margin-bottom: 13px; font-family: 'EB Garamond', serif; font-size: 16.5px; font-style: italic; }
.song-foot { display: flex; gap: 16px; font-size: 12.5px; opacity: .7; }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed rgba(10,10,26,.22);
  border-radius: 14px; margin-top: 30px; }
.empty .mark { font-size: 30px; color: var(--accent); opacity: .7; margin-bottom: 12px; }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { font-size: 14.5px; opacity: .7; max-width: 460px; margin: 0 auto 18px; }

.notice-block { padding: 40px 0; }
.notice-block h1 { font-size: 34px; margin-bottom: 12px; }
.notice-block p { font-size: 15.5px; opacity: .78; max-width: 560px; margin-bottom: 20px; }

/* ── admin ──────────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 32px; }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px; }
.kpi .big { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.kpi .lb { font-size: 11.5px; opacity: .6; }
.kpi.alert { border-color: var(--accent); background: rgba(212,167,74,.12); }
.kpi.alert .big { color: var(--accent-ink); }

.panel { background: rgba(212,167,74,.08); border: 1px solid var(--accent);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 26px; }
.panel h2 { font-size: 20px; font-weight: 500; margin-bottom: 3px; }
.panel .sub { font-size: 12.5px; opacity: .68; margin-bottom: 16px; }
.quiet-panel { background: var(--paper-deep); border-color: var(--line); }

.req { border-top: 1px solid rgba(212,167,74,.4); padding: 16px 0; }
.req-head { display: flex; align-items: center; gap: 11px; }
.req-meta { font-size: 12.5px; opacity: .6; }
.req-line { font-size: 13.5px; margin-top: 8px; }
.req-line b { font-weight: 600; }
.pitch { font-size: 13.5px; font-style: italic; opacity: .78; margin-top: 9px;
  padding-left: 13px; border-left: 2px solid var(--line); }
.req-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.req-actions .decline { display: flex; gap: 8px; align-items: center; }
.req-actions input[type=text] { font-family: inherit; font-size: 13px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--paper); width: 210px; }

.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }

.sitefoot { background: var(--ink); color: var(--paper); padding: 26px 5vw;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; opacity: .55; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
