*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --sky: #87ceeb;
  --red: #e8302e;
  --dark: #1a1a1a;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

/* ── Hero ── */

.hero {
  display: block;
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Event info ── */

.event-info {
  background-color: var(--sky);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.event-info .tagline {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
}

.event-info .date-line {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
}

.event-info .venue-line {
  margin: 0;
  font-size: 1rem;
}

.event-info .venue-line a {
  font-weight: 700;
  text-decoration: underline;
}

/* ── Shared section inner ── */

.section-inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Important Dates ── */

.important-dates {
  background-color: var(--white);
}

.important-dates h2,
.get-involved h2 {
  color: var(--red);
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

.dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--sky);
}

.dates-list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--sky);
  align-items: baseline;
}

.dates-list .date {
  font-weight: 700;
  color: var(--red);
  font-size: 0.9rem;
}

.dates-list .label {
  font-size: 1rem;
}

/* ── Get Involved ── */

.get-involved {
  background-color: var(--sky);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--red);
}

.card p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  flex: 1;
}

/* ── Buttons ── */

.button {
  display: inline-block;
  border: 2px solid var(--dark);
  border-radius: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  background-color: var(--white);
  color: var(--dark);
}

.button:hover {
  opacity: 0.8;
}

.button.primary {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Footer ── */

footer {
  background-color: var(--dark);
  color: var(--white);
}

.footer-inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--sky);
}

.prev-year {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  white-space: nowrap;
}

footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0.75rem 0;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ── 404 page ── */

.error-page .event-info {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-page .error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.error-page .tagline {
  font-size: 1.3rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .event-info .tagline {
    font-size: 1.1rem;
  }

  .event-info .date-line {
    font-size: 1.4rem;
  }

  .dates-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .footer-top {
    flex-direction: column;
  }
}
