/* San Diego Yo-Yo Classic */

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

body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: #fdfcf9;
  color: #2b3a42;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: min(720px, 92%);
  margin: 0 auto;
  flex: 1;
}

h1, h2, h3 {
  font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #14333e;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin: 3rem 0 0.5rem;
}

a {
  color: #b32d25;
}

/* Site nav (subpages) */

.site-nav {
  text-align: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid #e6e2d8;
}

.site-nav a {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 0.7rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}

.site-nav a:hover {
  border-bottom-color: #f5d324;
}

.site-nav a.active {
  border-bottom-color: #b32d25;
}

/* Home */

.flyer {
  display: block;
  margin: 3rem auto 0;
  max-width: 560px;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 51, 62, 0.18);
}

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

.page-links {
  text-align: center;
  margin: 1.6rem 0 3rem;
  list-style: none;
}

.page-links li {
  margin: 0.9rem 0;
}

.page-links a {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid #f5d324;
  padding-bottom: 2px;
}

.page-links a:hover {
  border-bottom-color: #b32d25;
}

/* Results archive year list */

.year-links {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto;
  max-width: 420px;
}

.year-links li {
  margin: 0 0 1rem;
}

.year-links a {
  display: block;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #14333e;
  background: #fff;
  border: 1px solid #e6e2d8;
  border-left: 5px solid #b32d25;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.year-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 51, 62, 0.12);
}

/* Content pages */

.intro {
  text-align: center;
  color: #5b6c74;
  margin-bottom: 2.5rem;
}

section {
  margin-bottom: 2.8rem;
}

h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.2rem;
}

section p {
  margin-bottom: 0.6rem;
}

ul, ol {
  padding-left: 1.4rem;
  margin: 0.6rem 0;
}

li {
  margin-bottom: 0.45rem;
}

.fine-print {
  color: #5b6c74;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

/* Results & sponsors images */

.result-figure {
  margin: 2.5rem 0;
  text-align: center;
}

.result-figure h2 {
  margin-bottom: 1rem;
}

.result-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(20, 51, 62, 0.15);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.sponsor-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Schedule */

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.schedule-list li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid #eee9dd;
  margin: 0;
}

.schedule-list .time {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  color: #14333e;
  flex: 0 0 11rem;
}

/* Footer */

footer {
  margin-top: 2rem;
  border-top: 1px solid #e6e2d8;
  padding: 1.4rem 0;
  text-align: center;
  color: #8a958c;
  font-size: 0.9rem;
}

footer .credit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

footer .credit a {
  color: #b32d25;
  text-decoration: none;
}

footer .credit a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
    margin-top: 2rem;
  }

  .flyer {
    margin-top: 1.5rem;
  }

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

  .schedule-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
}
