@font-face { font-family: Oswald; font-weight: 500; font-display: swap; src: url(assets/fonts/oswald-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-weight: 600; font-display: swap; src: url(assets/fonts/oswald-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-weight: 700; font-display: swap; src: url(assets/fonts/oswald-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); }

/* Colors sampled from the logo */
:root {
  --navy: #001236;
  --navy-deep: #000a20;
  --red: #d2001e;
  --silver: #d2d6da;
  --white: #fcfcfc;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: Barlow, "Helvetica Neue", sans-serif;
  color: var(--white);
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 46px, rgb(255 255 255 / .035) 46px 48px),
    linear-gradient(var(--navy), var(--navy-deep));
  border-top: 8px solid var(--red);
}

.hero {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(24px, 4vw, 64px);
  text-align: center;
}

.mark { width: 100%; }

.mark img {
  display: block;
  margin-inline: auto;
  width: min(100%, 520px);
  max-height: 46svh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgb(0 0 0 / .55));
}

.copy { display: grid; justify-items: center; gap: 18px; }

h1 {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 8.5rem);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 5px 0 var(--red);
}

h1 span { display: block; }

.ribbon {
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / .4));
  margin-top: 6px;
}

.ribbon span {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .35em 1.9em .42em;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - .8em) 50%, 100% 100%, 0 100%, .8em 50%);
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 4.8vw, 2.4rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ribbon i { font-style: normal; font-size: .6em; }

.teams { margin-top: 14px; display: grid; justify-items: center; gap: 14px; }

.count {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.count strong { font-weight: 700; font-size: 1.6em; letter-spacing: .02em; }

/* One baseball per team */
.teams ul {
  list-style: none;
  display: flex;
  gap: clamp(5px, 1.2vw, 9px);
}

.teams li {
  width: clamp(18px, 5vw, 28px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at -22% 50%, transparent 0 32%, var(--red) 33% 40%, transparent 41%),
    radial-gradient(circle at 122% 50%, transparent 0 32%, var(--red) 33% 40%, transparent 41%),
    radial-gradient(circle at 40% 32%, var(--white) 45%, var(--silver));
}

footer {
  padding: 18px 20px;
  border-top: 1px solid rgb(210 214 218 / .2);
  text-align: center;
  font-weight: 500;
  font-size: .85rem;
  color: var(--silver);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-inline: 40px;
  }
  .mark img { width: 100%; max-height: 74svh; }
  h1 { font-size: clamp(6rem, 11vw, 8.5rem); }
}

.rev { margin-top: 4px; font-size: .75rem; }

/* Not-found page */
.lost { flex: 1; display: grid; place-content: center; justify-items: center; gap: 24px; padding: 32px 20px; text-align: center; }
.lost img { width: min(240px, 60vw); height: auto; }
.lost h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.lost a { color: var(--white); font-weight: 500; font-size: 1.15rem; text-underline-offset: .25em; }
.lost a:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
