/* metrona.app. The colours, type, spacing and radii come from the design system: tokens.css
   and fonts.css (packages/design-system) are linked before this file, so only the site's own
   layout is written here. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--beat-text);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--inverse);
  color: var(--ink-inverse);
}

.skip-link:focus {
  top: 16px;
}

/* Header and footer */

.site-header {
  padding: 20px 0;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-note {
  flex: 1 1 320px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink);
}

/* Buttons and badges */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 15px/1 var(--font-sans);
  text-decoration: none;
  transition:
    transform 60ms cubic-bezier(0.2, 0, 0, 1),
    filter 60ms cubic-bezier(0.2, 0, 0, 1);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--beat);
  color: var(--on-beat);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-control);
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font: 600 12px/16px var(--font-sans);
  white-space: nowrap;
}

.badge-approval {
  background: var(--state-approval-bg);
  color: var(--state-approval-fg);
}

.badge-scheduled {
  background: var(--state-scheduled-bg);
  color: var(--state-scheduled-fg);
}

.badge-published {
  background: var(--state-published-bg);
  color: var(--state-published-fg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

/* Home */

.eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.hero {
  padding: 24px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.note {
  font-size: 14px;
  color: var(--ink-muted);
}

.hero-art {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--inverse);
  color: var(--ink-inverse);
}

.poster {
  position: relative;
  flex: 0 0 38%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 90, 60, 0.85), transparent 45%),
    linear-gradient(160deg, #3a3350, #1d1a27);
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
}

.slot-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slot-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  /* The panel is --inverse, light in dark mode, so the tint follows --ink-inverse: white-ish on
     the dark panel, dark on the light one. */
  background: color-mix(in srgb, var(--ink-inverse) 8%, transparent);
  font-size: 14px;
  line-height: 1.3;
}

.slot-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.slot-where {
  flex: 1;
  opacity: 0.75;
}

.band {
  padding: 56px 0;
  background: var(--surface-sunken);
}

.section {
  padding-top: 56px;
  padding-bottom: 8px;
}

main h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  margin-bottom: 24px;
}

main h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--beat);
  color: var(--on-beat);
  font-weight: 650;
}

.steps p,
.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.more {
  margin-top: 24px;
}

.two-col {
  display: grid;
  gap: 24px 48px;
}

.roles {
  display: grid;
  gap: 16px;
  margin: 0;
}

.roles div {
  padding: 16px 20px;
  border-left: 3px solid var(--beat);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.roles dt {
  font-weight: 650;
}

.roles dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 10px 20px;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
}

.cta p {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 19px;
}

.not-found {
  padding-bottom: 48px;
}

.not-found h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

/* Terms and Privacy */

.legal {
  display: grid;
  gap: 32px 64px;
  padding-top: 16px;
  padding-bottom: 32px;
}

.legal-head h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-head .lead {
  max-width: 62ch;
  margin-bottom: 0;
}

.toc {
  font-size: 15px;
  line-height: 1.4;
}

.toc-title {
  margin: 0 0 8px;
  font: 600 12px/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.toc li {
  padding: 3px 0;
}

.prose {
  max-width: 68ch;
  counter-reset: section;
}

.prose section {
  counter-increment: section;
  padding-top: 8px;
  margin-bottom: 40px;
  scroll-margin-top: 16px;
}

.prose h2::before {
  content: counter(section) ". ";
  color: var(--ink-muted);
  font-weight: 500;
}

.prose h3 {
  margin-top: 24px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.6em;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  .legal {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .legal-head {
    grid-column: 1 / -1;
  }

  .toc {
    position: sticky;
    top: 16px;
  }
}
