:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111d2b;
  color: #f6f3eb;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #233449 0%, #111d2b 61%);
}
main {
  width: min(100% - 5rem, 72rem);
  margin-inline: auto;
  flex: 1;
  padding-block: clamp(4rem, 11vh, 8rem) clamp(3rem, 7vh, 5rem);
}
.intro {
  text-align: center;
  margin-bottom: clamp(2.5rem, 7vh, 4.5rem);
}
h1 {
  margin: 0;
  font-size: clamp(3.35rem, 8.25vw, 7.5rem);
  line-height: .96;
  letter-spacing: -.075em;
  font-weight: 650;
}
.intro p {
  margin: 1.4rem 0 0;
  color: #bbc5d0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1.48;
  border-radius: 1.25rem;
  background: #263547;
  box-shadow: 0 18px 45px #050b134d;
  color: inherit;
  text-decoration: none;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.tile img, .tile::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tile img {
  z-index: -2;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 550ms ease;
}
.tile--marathon img { object-position: center 49%; }
.tile::after {
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent 38%, #090f1a40 55%, #090f1ae8 100%);
  border: 1px solid #ffffff30;
  border-radius: inherit;
}
.tile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: clamp(1.1rem, 3vw, 2rem);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.045em;
}
.chevron {
  display: grid;
  place-items: center;
  flex: 0 0 2.7rem;
  height: 2.7rem;
  border: 1px solid #ffffff60;
  background: #15203450;
  border-radius: 50%;
  transition: background 280ms ease, color 280ms ease;
}
.chevron::before {
  content: "";
  width: .48rem;
  height: .48rem;
  border-block-start: 1.5px solid;
  border-inline-end: 1.5px solid;
  transform: translateX(-.07rem) rotate(45deg);
}
.tile:focus-visible { outline: 2px solid #f6f3eb; outline-offset: 5px; }
.tile:focus-visible .chevron { background: #f6f3eb; color: #111d2b; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 24px 54px #050b1380; }
  .tile:hover img { transform: scale(1.045); }
  .tile:hover .chevron { background: #f6f3eb; color: #111d2b; }
}
footer {
  width: min(100% - 5rem, 72rem);
  margin-inline: auto;
  border-top: 1px solid #f6f3eb25;
  padding: 1.45rem 0 max(1.45rem, env(safe-area-inset-bottom));
  color: #acb6c4;
  text-align: center;
  font-size: .8125rem;
}
@media (max-width: 52rem) {
  main, footer { width: calc(100% - 3rem); }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
}
@media (max-width: 39rem) {
  main, footer { width: calc(100% - 2rem); }
  main { padding-block-start: 3.75rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1.57; border-radius: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .tile:hover, .tile:hover img { transform: none; }
}
