:root {
  --green-950: #092b21;
  --green-900: #0d382b;
  --green-800: #164836;
  --green-100: #e9f1eb;
  --red-700: #b9352b;
  --red-600: #ca4237;
  --brass: #d4b755;
  --sky: #dcebf4;
  --paper: #fbfbf8;
  --ink: #18221d;
  --muted: #63706a;
  --line: rgba(20, 38, 31, 0.14);
  --shadow: 0 22px 60px rgba(8, 24, 17, 0.24);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  align-items: center;
  background: linear-gradient(90deg, var(--green-950), var(--green-900));
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 88px;
  padding: 16px clamp(20px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 44px);
  font-weight: 700;
  line-height: 0.9;
}

.brand-place {
  align-items: center;
  color: var(--brass);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-place::before,
.brand-place::after {
  background: var(--brass);
  content: "";
  display: block;
  height: 1px;
  width: 38px;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.desktop-nav a,
.panel-heading a,
.section-heading a,
.text-action,
.panel-link,
.stagecoach-card a,
.score-card a,
.coverage-card a {
  color: #0d3a74;
  font-weight: 800;
}

.desktop-nav a {
  color: #fff;
}

.listen-button,
.primary-action,
.signup-form button {
  align-items: center;
  background: var(--red-600);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  transition: transform 160ms ease, background 160ms ease;
}

.listen-button:hover,
.primary-action:hover,
.signup-form button:hover {
  background: var(--red-700);
  transform: translateY(-1px);
}

.hero {
  min-height: 675px;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(6, 22, 15, 0.86) 0%, rgba(6, 22, 15, 0.54) 38%, rgba(6, 22, 15, 0.08) 74%),
    url("assets/salado-hero.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4vw, 80px);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.82fr);
  margin: 0 auto;
  max-width: 1480px;
  min-height: 675px;
  padding: 54px clamp(20px, 4vw, 56px) 38px;
  position: relative;
}

.hero-copy {
  color: #fff;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(45px, 6vw, 82px);
  line-height: 0.96;
  margin: 0 0 20px;
  max-width: 660px;
}

.hero-copy > p {
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
  margin: 0 0 26px;
  max-width: 620px;
}

.player {
  align-items: stretch;
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: 120px 1fr;
  max-width: 650px;
  padding: 18px;
}

.player img {
  aspect-ratio: 1;
  border-radius: 6px;
  height: 120px;
  object-fit: cover;
  width: 120px;
}

.player h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  margin: 4px 0;
}

.player p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0 0 12px;
}

.live-row {
  align-items: center;
  color: #ff675b;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  background: #ff453a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 69, 58, 0.18);
  height: 7px;
  width: 7px;
}

.waveform {
  align-items: center;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(24, 1fr);
  height: 42px;
}

.waveform span {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 3px;
  display: block;
  height: calc(12px + var(--wave, 18) * 1px);
}

.waveform span:nth-child(3n) {
  --wave: 26;
}

.waveform span:nth-child(4n) {
  --wave: 8;
}

.waveform span:nth-child(5n) {
  background: var(--red-600);
  --wave: 32;
}

.is-playing .waveform span {
  animation: pulse 780ms ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 1) * -55ms);
}

.player-controls {
  align-items: center;
  display: flex;
  gap: 16px;
}

.round-button {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--green-950);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.volume-control {
  display: flex;
  flex: 1;
}

.volume-control input {
  accent-color: var(--red-600);
  width: 100%;
}

.stream-label {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.text-action {
  color: var(--brass);
}

.event-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel-heading,
.section-heading {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.panel-heading h2,
.section-heading h2,
.stagecoach-card h2,
.score-card h2,
.coverage-card h2,
.submit-strip h2 {
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1;
  margin: 0;
}

.panel-heading a,
.section-heading a,
.panel-link {
  font-size: 14px;
  white-space: nowrap;
}

.event-stack {
  margin-top: 20px;
}

.event-card {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 70px 1fr;
  padding: 18px 0;
}

.event-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.event-card time {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: center;
}

.event-card time span,
.event-card time small {
  color: var(--red-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card time strong {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.95;
}

.event-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.event-card p {
  color: var(--muted);
  margin: 0;
}

.panel-link {
  display: block;
  margin-top: 8px;
  text-align: right;
}

.section {
  padding: 44px clamp(20px, 4vw, 56px);
}

.shows-section {
  background: #fff;
}

.show-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
}

.show-card {
  border-radius: 8px;
  cursor: pointer;
  padding: 0 0 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.show-card:hover,
.show-card.is-active {
  transform: translateY(-3px);
}

.show-card.is-active .show-image {
  box-shadow: 0 0 0 4px rgba(202, 66, 55, 0.2);
}

.show-image {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.show-image::before {
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.8), transparent 11%),
    linear-gradient(135deg, var(--green-900), #1b5a3f 52%, #d7a243);
  content: "";
  inset: 0;
  position: absolute;
}

.show-image.records::before {
  background:
    radial-gradient(circle at 42% 46%, #181818 0 18%, #43423b 19% 20%, #111 21% 42%, transparent 43%),
    linear-gradient(135deg, #090b0d, #24323b);
}

.show-image.flag::before {
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.45) 45% 46%, transparent 47%),
    linear-gradient(90deg, #183f76 0 33%, #fff 34% 66%, #bd3b32 67%);
}

.show-image.mic::before {
  background:
    radial-gradient(circle at 58% 42%, #d8bd6a 0 13%, #4b351a 14% 16%, transparent 17%),
    linear-gradient(135deg, #18221d, #5e665f);
}

.show-image.chapel::before {
  background:
    linear-gradient(180deg, rgba(255, 198, 105, 0.7), transparent 42%),
    linear-gradient(135deg, #1f4c61, #15251e 60%, #c06a39);
}

.show-card h3 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.show-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.show-card button {
  background: transparent;
  border: 0;
  color: #0d3a74;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 0;
}

.show-card button::before {
  color: var(--red-600);
  content: "▶";
  margin-right: 8px;
}

.calendar-section {
  background: linear-gradient(180deg, var(--sky), #f8fbfd);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-900);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 14px;
}

.filter.is-active {
  background: var(--green-900);
  color: #fff;
}

.week-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
}

.day-column {
  border-left: 1px solid rgba(19, 59, 48, 0.18);
  min-height: 150px;
  padding: 0 28px;
}

.day-column:first-child {
  border-left: 0;
  padding-left: 0;
}

.day-column h3 {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.day-column h3 span {
  color: var(--red-700);
  margin-right: 10px;
}

.day-column p {
  font-size: 15px;
  font-weight: 780;
  line-height: 1.3;
  margin: 0 0 16px;
}

.day-column time {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.day-column.is-hidden {
  display: none;
}

.feature-band {
  background: #f6f8f6;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.06fr 0.7fr 1fr;
  padding: 44px clamp(20px, 4vw, 56px);
}

.stagecoach-card,
.score-card,
.coverage-card {
  border-radius: 8px;
  min-height: 285px;
}

.stagecoach-card {
  background: var(--green-900);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: 0.82fr 1fr;
  padding: 18px;
}

.stagecoach-photo {
  background-image:
    linear-gradient(180deg, transparent, rgba(8, 34, 25, 0.24)),
    url("assets/salado-hero.png");
  background-position: left center;
  background-size: cover;
  border-radius: 6px;
  min-height: 240px;
}

.stagecoach-card p,
.coverage-card p,
.submit-strip p {
  line-height: 1.55;
}

.stagecoach-card h2,
.coverage-card h2 {
  color: #fff;
}

.stagecoach-card a,
.coverage-card a {
  align-items: center;
  border: 1px solid var(--brass);
  border-radius: 6px;
  color: var(--brass);
  display: inline-flex;
  font-weight: 900;
  gap: 12px;
  margin-top: 14px;
  min-height: 44px;
  padding: 0 18px;
}

.score-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(13, 56, 43, 0.1);
  padding: 28px;
}

.subhead {
  color: #0d3a74;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 6px 0 14px;
  text-transform: uppercase;
}

.score-card ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.score-card li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 13px 0;
}

.score-card li span {
  font-weight: 900;
}

.score-card li strong {
  font-size: 20px;
}

.score-card li small {
  color: var(--muted);
  grid-column: 1 / -1;
}

.coverage-card {
  background:
    linear-gradient(180deg, rgba(10, 43, 33, 0.24), rgba(10, 43, 33, 0.95)),
    linear-gradient(135deg, #254f39, #668a66 50%, #142821);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.submit-strip {
  align-items: center;
  background: linear-gradient(90deg, #a8221d, var(--red-600));
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr minmax(320px, 430px);
  padding: 30px clamp(20px, 4vw, 56px);
  position: relative;
}

.submit-strip h2 {
  font-size: clamp(26px, 3vw, 35px);
}

.submit-strip p {
  margin: 8px 0 0;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.signup-form input {
  border: 0;
  border-radius: 6px 0 0 6px;
  min-height: 52px;
  min-width: 0;
  padding: 0 16px;
}

.signup-form button {
  background: var(--green-900);
  border-radius: 0 6px 6px 0;
  font-family: var(--sans);
  font-size: 15px;
}

.form-message {
  bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  position: absolute;
  right: clamp(20px, 4vw, 56px);
}

.site-footer {
  align-items: center;
  background: #111816;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  padding: 30px clamp(20px, 4vw, 56px);
}

.site-footer .brand-name {
  font-size: 33px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@keyframes pulse {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1.15);
  }
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

  .hero-content,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .event-panel {
    max-width: 720px;
  }

  .show-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .day-column:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    position: static;
  }

  .listen-button {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    padding-top: 42px;
  }

  .player {
    grid-template-columns: 1fr;
  }

  .player img {
    display: none;
  }

  .event-panel {
    padding: 18px;
  }

  .show-grid,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .day-column {
    border-left: 0;
    border-top: 1px solid rgba(19, 59, 48, 0.18);
    padding: 18px 0 0;
  }

  .stagecoach-card,
  .submit-strip {
    grid-template-columns: 1fr;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form input,
  .signup-form button {
    border-radius: 6px;
  }

  .form-message {
    bottom: auto;
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
