/* bandsites shared design system (Critiquito 2026-10-15). Per-site tokens live in sites/<slug>/theme.css. */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Anton'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/anton-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  --step--1: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.04rem + 0.37vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.33rem + 0.74vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  --step-4: clamp(2.75rem, 2rem + 3.3vw, 5rem);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-gap: clamp(48px, 6vw, 96px);
  --gutter: clamp(16px, 4vw, 32px);
  --w-narrow: 28rem; --w-content: 40rem; --w-wide: 72rem; --w-col: 800px; --w-btns: 360px;
  --radius: 12px; --radius-card: 16px;
  --card-glow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1, .display {
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-transform); letter-spacing: var(--display-tracking);
}
h2 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking); font-size: var(--step-2); margin-bottom: var(--space-5); }
p { margin: 0; }
a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip link: first focusable element, visible on focus */
.skip-link {
  position: fixed; top: 16px; left: 16px; z-index: 100; transform: translateY(-200%);
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--accent); color: var(--accent-contrast); padding: 8px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* Sticky mobile bar (rendered only with >=2 anchor sections) */
.bar {
  position: sticky; top: 0; z-index: 50; height: 56px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.bar__inner { display: flex; align-items: center; gap: var(--space-4); height: 100%;
  width: 100%; max-width: var(--w-col); margin-inline: auto; padding-inline: var(--gutter); }
.bar__mark { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking); text-decoration: none; white-space: nowrap; font-size: var(--step-1); }
.bar__nav { display: flex; gap: var(--space-1); overflow-x: auto; margin-left: auto; scrollbar-width: none;
  padding: 6px 5px; margin-right: -5px; } /* room so the focus outline is not clipped by overflow */
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-3);
  text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.bar__nav a:hover { color: var(--text); }
section[id] { scroll-margin-top: 72px; }

/* Layout */
main { padding-bottom: var(--space-7); }
.wrap { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--w-narrow); margin-inline: auto; }
.content { max-width: var(--w-content); margin-inline: auto; }
.section { margin-top: var(--section-gap); }

/* Hero */
.hero { position: relative; }
.hero__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__text { position: relative; padding: 0 var(--gutter); margin-top: -28%; }
.hero--text-only .hero__text { margin-top: 0; padding-top: var(--space-8); }
.hero h1 { font-size: var(--step-4); }
.hero__tagline { margin-top: var(--space-3); font-size: var(--step-1); color: var(--text-muted); }
.hero__cta { margin-top: var(--space-5); max-width: var(--w-narrow); }
@media (min-width: 480px) { .hero__media { aspect-ratio: 1 / 1; } }
@media (min-width: 1024px) {
  .hero { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-7); align-items: center;
    max-width: var(--w-wide); margin-inline: auto; padding: var(--space-8) var(--gutter) 0; }
  .hero__media { aspect-ratio: 1 / 1; max-width: 560px; border-radius: var(--radius-card); }
  .hero__media::after { display: none; }
  .hero__text { margin-top: 0; padding: 0; }
  .hero--text-only { display: block; }
}

/* Featured release card */
.card { background: var(--surface); border-radius: var(--radius-card); padding: var(--space-5); box-shadow: var(--card-glow); }
.release { display: grid; gap: var(--space-5); }
.release__cover { width: 100%; max-width: 320px; aspect-ratio: 1 / 1; border-radius: var(--radius); margin-inline: auto; }
.release__title { font-size: var(--step-1); font-weight: 600; }
.release__sub { color: var(--text-muted); margin-top: var(--space-1); }
.release__meta { color: var(--text-muted); font-size: var(--step--1); margin-top: var(--space-2); }
.release__links { margin-top: var(--space-5); }
@media (min-width: 768px) {
  .release { grid-template-columns: 360px 1fr; align-items: center; }
  .release__cover { max-width: 360px; }
}

/* Previous releases row */
.row { list-style: none; padding: 0; margin: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, 160px); justify-content: center; gap: var(--space-5) var(--space-4); }
.row__item { width: 160px; }
.row__item img { width: 160px; height: 160px; border-radius: var(--radius); }
.row__title { font-weight: 600; margin-top: var(--space-2); font-size: var(--step--1); }
.row__item a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step--1); color: var(--text-muted); }

/* Buttons */
.btns { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0 auto; max-width: var(--w-btns); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 48px; width: 100%;
  padding: 12px 20px; border-radius: var(--radius); font-size: var(--step-0); font-weight: 600; text-decoration: none;
  background: var(--surface); color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  transition: background-color 150ms, transform 150ms;
}
.btn:hover { background: var(--surface-hover); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, var(--bg)); }
.card .btn:not(.btn--primary) { background: var(--bg); }
.card .btn:not(.btn--primary):hover { background: var(--surface-hover); }

/* About / shows / contact */
.about { display: grid; gap: var(--space-5); color: var(--text); }
.shows { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.show { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: center; }
.show__date { font-weight: 700; }
.show__where { color: var(--text-muted); }
.show__tickets { grid-column: 1 / -1; }

.placeholder { outline: 2px dashed var(--accent); outline-offset: 4px; }

/* Footer */
.footer { margin-top: var(--section-gap); padding: var(--space-6) var(--gutter); text-align: center;
  color: var(--text-muted); font-size: var(--step--1); border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }

/* Centered single column (Critiquito r2, 2026-10-15) */
.section.wrap { max-width: var(--w-col); text-align: center; }
.section.wrap h2 { margin-inline: auto; }
.hero--text-only { max-width: 768px; margin-inline: auto; text-align: center; }
.hero--text-only > * { padding-inline: 0; }
.hero__text { text-align: center; }
.hero__cta { margin-inline: auto; max-width: var(--w-btns); }
.release__cover { margin-inline: auto; }
.shows { max-width: 560px; margin-inline: auto; text-align: left; }
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__media { aspect-ratio: 4 / 3; max-height: 70svh; width: 100%; }
  .hero__text { margin-top: calc(-1 * var(--space-9)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .release { grid-template-columns: 280px 1fr; }
  .release__cover { max-width: 280px; }
}
@media (min-width: 1024px) {
  .hero:not(.hero--text-only) { max-width: 1040px; grid-template-columns: 1fr 1fr; }
  .hero__media { max-width: 480px; justify-self: end; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
@media (forced-colors: active) { .btn { border: 1px solid ButtonText; } }

/* PROPOSAL (Critiquito 2026-10-15): brand tokens for Richard to confirm. */
:root {
  --bg: #0b0b1a; --surface: #1a1530; --surface-hover: #2a2145;
  --text: #f5f3ff; --text-muted: #b8b3d1;
  --accent: #c026d3; --accent-contrast: #fff; --focus: #22d3ee;
  --font-display: 'Inter', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
  --display-transform: none; --display-tracking: -0.01em; --display-weight: 700;
  --hero-overlay: linear-gradient(180deg, #0000 30%, #0b0b1a);
  --card-glow: 0 0 48px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
