:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f2f2f2;
  --surface-bright: #e9e9e9;
  --text: #151515;
  --muted: #555555;
  --line: rgba(21, 21, 21, 0.2);
  --link-surface: #151515;
  --link-hover: #3a3a3a;
  --accent: #a9003b;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.page-shell {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem clamp(1rem, 4vw, 3.25rem);
  padding: 0.35rem 0.75rem;
  background: var(--link-surface);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.2rem;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  color: #d9d9d9;
  transform: translateY(-2px);
}

.site-header {
  display: flex;
  justify-content: center;
  margin: clamp(0.75rem, 2vw, 1.5rem) auto 0;
}

.site-header img {
  display: block;
  width: 100%;
  max-width: 975px;
  height: auto;
}

.band-image,
.promo-image {
  margin: 0 auto;
}

.band-image {
  max-width: 922px;
  margin-top: 0.25rem;
}

.band-image img,
.promo-image img {
  display: block;
  width: 100%;
  height: auto;
}

.shows-section {
  max-width: 920px;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
}

.section-heading {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-transform: uppercase;
}

.shows-status {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shows-status.is-error {
  color: #8f123c;
}

.shows-status[hidden] {
  display: none;
}

.shows-list {
  display: grid;
  gap: 1px;
  margin-top: 0.5rem;
  background: var(--line);
}

.show-card {
  display: grid;
  grid-template-columns: minmax(9rem, 0.75fr) minmax(0, 1.4fr) auto;
  gap: 0.5rem clamp(0.6rem, 2vw, 1.5rem);
  align-items: center;
  padding: clamp(0.85rem, 1.75vw, 1.15rem);
  background: var(--surface);
  transition: background-color 160ms ease;
}

.show-card:hover {
  background: var(--surface-bright);
}

.show-date {
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.show-details {
  min-width: 0;
}

.show-title,
.show-venue,
.show-location {
  margin: 0;
}

.show-title {
  color: var(--text);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.show-venue {
  margin-top: 0.25rem;
  font-weight: 700;
}

.show-location {
  color: var(--muted);
  font-size: 0.95rem;
}

.show-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--link-surface);
  color: #ffffff;
  background: var(--link-surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.show-link:hover {
  background: var(--link-hover);
  color: #ffffff;
}

.promo-image {
  width: min(100%, 720px);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.band-info {
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.email-link {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  color: #ffffff;
  background: var(--link-surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.band-info p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.band-info p:last-child {
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.25rem, 1080px);
  }

  .site-nav {
    justify-content: space-between;
    gap: 0.1rem 0.5rem;
  }

  .nav-link {
    font-size: 0.84rem;
    letter-spacing: 0.06em;
  }

  .show-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .show-link {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .show-card,
  .show-link {
    transition: none;
  }
}
