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

html,
body {
  height: 100%;
}

body {
  background-color: #874127;
  min-height: 100%;
  padding: 1.5rem;
}

body.page-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-sponsored {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, sans-serif;
  color: #f5f5dc;
  text-align: center;
}

/* Home */
.logo-wrap {
  max-width: min(96vw, 1000px);
  width: 100%;
}

.logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.logo-link:focus-visible {
  outline: 2px solid #f5f5dc;
  outline-offset: 6px;
  border-radius: 4px;
}

.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sponsored racers */
.page-header {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  flex-shrink: 0;
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-header h1 {
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #000;
  white-space: nowrap;
  display: inline-block;
}

.page-sponsored main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.coming-soon {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
}

.back {
  margin-top: 2rem;
  flex-shrink: 0;
  color: #000;
}

.back a {
  color: #f5f5dc;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.back a:focus-visible {
  outline: 2px solid #f5f5dc;
  outline-offset: 4px;
  border-radius: 4px;
}
