:root {
  color-scheme: dark;
  --background: #050607;
  --surface: #0b0d10;
  --surface-soft: #101318;
  --border: #242a31;
  --text: #f7f7f5;
  --muted: #9ba2aa;
  --orange: #ff4b0b;
  --orange-soft: rgba(255, 75, 11, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 10%, rgba(255, 75, 11, 0.11), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #130703;
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 0 28px rgba(255, 75, 11, 0.24);
}

.brand > span:last-child {
  display: grid;
  gap: 0.25rem;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.28rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.18rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.topnav a {
  color: #c6cbd0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--orange);
}

.topnav .account-link {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  flex: 1;
}

.hero {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.eyebrow {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24rem;
}

.hero h1 {
  max-width: 760px;
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 300;
}

.hero h1 span {
  color: var(--orange);
  font-weight: 800;
}

.hero-copy > p:last-child {
  max-width: 620px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.event-search {
  min-height: 68px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(11, 13, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.event-search > span {
  margin-left: 0.8rem;
  color: var(--orange);
  font-size: 1.5rem;
}

.event-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.event-search input::placeholder {
  color: #727981;
}

.event-search button {
  min-height: 52px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 13px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.events-section {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
}

.section-head > p {
  color: var(--muted);
}

.section-head > p strong {
  color: var(--text);
  font-size: 1.5rem;
}

.period-tabs {
  margin-top: 2rem;
  padding-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.period-tabs a {
  flex: 0 0 auto;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.period-tabs a:hover,
.period-tabs a.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.events-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.event-card {
  min-height: 230px;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 75, 11, 0.55);
}

.date-block {
  height: 116px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 75, 11, 0.26);
  border-radius: 18px;
  background: var(--orange-soft);
}

.date-block span {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14rem;
}

.date-block strong {
  margin: 0.12rem 0;
  font-size: 2.5rem;
  line-height: 1;
}

.date-block small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1rem;
}

.event-content {
  min-width: 0;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

.status {
  display: inline-flex;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-weight: 800;
}

.status.upcoming {
  background: rgba(72, 201, 117, 0.11);
  color: #67da91;
}

.status.past {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.event-card h3 {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.2;
}

.location {
  margin-top: 0.65rem;
  color: var(--orange);
  font-size: 0.85rem;
}

.details {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.event-link {
  margin-top: 1rem;
  display: inline-flex;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-state {
  min-height: 320px;
  margin-top: 1.5rem;
  padding: 2rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 24px;
}

.empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 1.5rem;
}

.empty-state p {
  color: var(--muted);
}

.empty-state a {
  color: var(--orange);
  font-weight: 800;
}

.pagination {
  min-height: 84px;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.pagination a {
  color: var(--orange);
  font-weight: 800;
}

.pagination a:last-child {
  text-align: right;
}

.pagination p {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer {
  width: min(1240px, calc(100% - 3rem));
  margin: auto auto 0;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
}

.footer strong {
  color: var(--text);
  letter-spacing: 0.18rem;
}

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

@media (max-width: 900px) {
  .topbar {
    min-height: 88px;
  }

  .topnav > a:not(.active):not(.account-link) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

@media (max-width: 600px) {
  .topbar,
  .hero,
  .events-section,
  .footer {
    width: min(100% - 2rem, 1240px);
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.78rem;
    letter-spacing: 0.16rem;
  }

  .topnav .active {
    display: none;
  }

  .topnav .account-link {
    max-width: 120px;
  }

  .hero {
    padding-top: 3rem;
  }

  .event-search {
    flex-wrap: wrap;
  }

  .event-search input {
    min-height: 48px;
  }

  .event-search button {
    width: 100%;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .date-block {
    height: 100px;
  }

  .date-block strong {
    font-size: 2rem;
  }

  .card-topline > span:last-child {
    display: none;
  }

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

  .pagination p {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 1rem;
    text-align: center;
  }

  .footer {
    flex-direction: column;
  }
}
