/* ==========================================================================
   ferno.music: shared theme (used by every site)
   Everything visual lives here. To restyle the site, start with the tokens
   below (fonts, colors, spacing, corners). Custom fonts go in this folder's fonts/
   (shared/theme/fonts) and get an @font-face block below the tokens.
   ========================================================================== */

:root {
  /* Type */
  --font-display: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(2rem, 6vw, 3rem);

  /* Color */
  --bg: #0e0e0e;
  --surface: #181818;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #f2f2f2;
  --accent-text: #0e0e0e;
  --success: #3ecf8e;
  --error: #ff6b6b;
  --info: #8ab4ff;

  /* Shape + space */
  --radius: 10px;
  --space: 1rem;
  --page-width: 34rem;
}

/* @font-face {
  font-family: 'YourDisplayFont';
  src: url('/theme/fonts/your-display-font.woff2') format('woff2');
  font-display: swap;
} */

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
}
a { color: inherit; }
h1, h2 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 calc(var(--space) * 0.75); }
h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }

/* --- Frame --------------------------------------------------------------- */
.site-header, .page, .site-footer {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space);
}
.brand { font-family: var(--font-display); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.site-footer { color: var(--muted); font-size: var(--text-sm); padding-bottom: calc(var(--space) * 3); }
.site-footer .dot { margin: 0 0.4em; }

/* --- Drop page ----------------------------------------------------------- */
.hero { margin: var(--space) 0; }
.eyebrow { color: var(--muted); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.25rem; }

.player { margin-bottom: var(--space); }
.player iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); background: var(--surface); }
.player-link { display: inline-block; margin-top: 0.4rem; font-size: var(--text-xs); color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.25);
  margin-bottom: var(--space);
}
.step { color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.25rem; }

.button {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.button-small { width: auto; padding: 0.4rem 0.7rem; font-size: var(--text-sm); }

.banner { border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0 0 var(--space); font-size: var(--text-sm); border: 1px solid; }
.banner-success { border-color: var(--success); color: var(--success); }
.banner-error { border-color: var(--error); color: var(--error); }
.banner-info { border-color: var(--info); color: var(--info); }

/* --- Forms --------------------------------------------------------------- */
.field { display: block; margin: var(--space) 0 0.25rem; }
.label { display: block; font-size: var(--text-sm); margin-bottom: 0.3rem; }
.label em { color: var(--muted); font-style: normal; }
input[type='email'], input[type='tel'], input[type='url'], input:not([type]), select {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.5rem 0 var(--space); font-size: var(--text-xs); color: var(--muted); }
.consent input { margin-top: 0.2rem; flex: none; }
.fineprint, .hint { font-size: var(--text-xs); color: var(--muted); margin: 0.4rem 0; }
.claim .button { margin-top: var(--space); }
.cf-turnstile { margin-top: var(--space); }

/* --- Home ---------------------------------------------------------------- */
.drop-list { list-style: none; padding: 0; margin: 0; }
.drop-link { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.drop-list .empty { color: var(--muted); }

/* --- Legal pages --------------------------------------------------------- */
.legal { font-size: var(--text-sm); }
.legal h1 { font-size: var(--text-lg); }
.legal h2 { font-size: var(--text-md); margin-top: calc(var(--space) * 1.5); }
.legal li { margin-bottom: 0.5rem; }

/* --- Admin --------------------------------------------------------------- */
body.wide .site-header, body.wide .page, body.wide .site-footer { max-width: 64rem; }
.admin { font-size: var(--text-sm); }
.admin td form { margin: 0; }
.admin td .button-small { white-space: nowrap; }
.admin h1 { font-size: var(--text-lg); }
.admin h2 { font-size: var(--text-md); margin-top: calc(var(--space) * 2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.upload { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.upload .button { width: auto; }
.checks { border: 0; padding: 0; margin: var(--space) 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-form .button { margin-top: var(--space); }
