/* Homepage: live numbers, promise, venues, community, release, app.
   Loaded after style.css on the homepage only. Content is visible by default; nothing here hides anything. */

.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;
}

.container.home-wide {
  max-width: 1160px;
}

/* --- Rhythm: Syne needs size and air. Bigger titles, roomier sections --- */

.section.home-wide:not(.home-stats-section) {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.home-wide .section-heading {
  font-weight: 700;
  font-size: clamp(1.875rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Title on the left, the story on the right. Stacks on phones. */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.home-split-head .section-heading {
  margin-bottom: 24px;
}

.home-split-head .join-subtitle {
  max-width: 34ch;
  font-size: 1.125rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .home-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }
  .home-split-head .section-heading {
    margin-bottom: 28px;
  }
}

.home-split-body .join-form {
  max-width: none;
}

.home-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Live numbers: a ledger line, left aligned --- */

.home-stats-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 0;
}

.home-stat {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.home-stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.home-stat dt {
  order: 2;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.home-stat {
  display: flex;
  flex-direction: column;
}

@media (min-width: 720px) {
  .home-stats {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

/* --- Promise: the page's one loud element --- */

.promise {
  border-bottom: 1px solid var(--border);
}

.promise-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.promise-claim {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.promise-body {
  margin: 0;
  max-width: 40ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.promise-link-label {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.promise-row-link {
  transition: background-color 160ms ease;
}

.promise-row-link:hover,
.promise-row-link:focus-visible {
  text-decoration: none;
}

.promise-row-link:hover .promise-claim,
.promise-row-link:focus-visible .promise-claim {
  color: var(--accent);
}

.promise-row-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (min-width: 820px) {
  .promise-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 48px;
    align-items: baseline;
    padding: 28px 0;
  }
}

/* --- Upcoming: empty state sits in the card grid --- */

#upcoming-cards .empty-state {
  grid-column: 1 / -1;
  text-align: left;
  align-items: flex-start;
}

.upcoming-more {
  margin-top: 20px;
}

/* --- Where we played: names as text, with the story --- */

.where-intro {
  margin: 0 0 32px;
  max-width: 52ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.where-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.where-list .where-lead {
  flex-basis: 100%;
  padding-bottom: 12px;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.where-lead a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.where-lead a:hover,
.where-lead a:focus-visible {
  color: var(--accent);
}

.where-note {
  margin: 16px 0 0;
  max-width: 48ch;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.where-item {
  color: var(--text-secondary);
}

.where-count {
  margin-left: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.where-more {
  margin: 40px 0 0;
}

/* --- Community, release, app --- */

.home-community-body,
.home-release-lead {
  margin: 0 0 32px;
  max-width: 52ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.home-roles {
  margin: 0 0 40px;
  border-top: 1px solid var(--border);
}

.home-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.home-role dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.home-role dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .home-role {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: baseline;
  }
}

.home-genres-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.home-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.home-genres li {
  padding: 6px 16px;
  border: 1px solid var(--text-secondary);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--text);
}

.home-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.home-community .artist-card {
  margin-bottom: 16px;
}

.home-profiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 28px;
}

@media (min-width: 720px) {
  .home-profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-releases {
  display: grid;
  gap: 16px;
  margin: 0 0 56px;
}

.home-release-cta {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.home-release-cta-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-release-cta p {
  margin: 0 0 24px;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.home-release-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.home-app {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 760px;
}

.home-app-heading {
  margin-bottom: 12px;
}

.home-app-body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
}

@media (prefers-reduced-motion: reduce) {
  .promise-row-link {
    transition: none;
  }
}
