:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #000;
  color: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #000;
}

a {
  color: inherit;
}

.home-shell {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ffffff2b;
}

.site-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  padding: 12px 0;
  color: #d0d0d0;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px #fff;
}

.home-logout-button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #4b4b4b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.home-logout-button:hover:not(:disabled) {
  background: #5c5c5c;
}

.home-logout-button:focus-visible {
  outline: 3px solid #d0d0d0;
  outline-offset: 2px;
}

.home-logout-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.home-session-status {
  margin: 12px 0 0;
  color: #f1f4f2;
  text-align: center;
}

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

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

main {
  display: grid;
  flex: 1;
  place-items: center;
}

.hero {
  width: 100%;
  padding: 44px 0 56px;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  letter-spacing: 0.06em;
}

.tagline {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-description {
  margin: 0;
  color: #c7c7c7;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.site-footer {
  display: grid;
  gap: 28px;
  padding: 28px 0 24px;
  border-top: 1px solid #ffffff2b;
}

.sponsor-section {
  display: grid;
  gap: 12px;
  text-align: center;
}

.sponsor-section h2,
.sponsor-section p {
  margin: 0;
}

.sponsor-section h2 {
  font-size: 1.25rem;
}

.sponsor-section > p {
  color: #c7c7c7;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.sponsor-card {
  display: flex;
  min-width: 0;
  min-height: 160px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px dashed #777;
  border-radius: 4px;
  background: #000;
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.sponsor-card:hover {
  border-color: #aaa;
  background: #101010;
}

.sponsor-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sponsor-logo {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: contain;
}

.sponsor-label {
  color: #aaa;
  font-size: 0.875rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
}

.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-icon:first-child svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-icon:first-child .social-icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-play {
  fill: #000;
}

@media (max-width: 600px) {
  body {
    min-width: 0;
  }

  .home-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 0;
    padding: 20px 0 12px;
    flex-direction: column;
    gap: 8px;
  }

  .site-brand {
    font-size: 1rem;
    text-align: center;
  }

  .site-nav {
    gap: 24px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero-logo {
    margin-bottom: 12px;
  }

  .tagline {
    letter-spacing: 0.08em;
  }

  .site-footer {
    gap: 20px;
  }

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

  .sponsor-card {
    min-height: 140px;
    padding: 8px 6px;
  }

  .sponsor-label {
    font-size: 0.75rem;
  }

  .sponsor-logo {
    height: 96px;
  }

  .sponsor-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 10px) / 2);
    justify-self: center;
  }
}

@media (min-width: 601px) and (max-width: 899px) {
  .sponsors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sponsor-card:last-child {
    grid-column: 2 / span 2;
    width: calc((100% - 16px) / 2);
    justify-self: center;
  }
}
