:root {
  color-scheme: dark;
  background: #111c19;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body, h1, p, dl, dd { margin: 0; }

.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem 4vw max(clamp(1.5rem, 4.5vh, 3.5rem), env(safe-area-inset-bottom));
  text-align: center;
}
.photograph, .photograph img, .cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photograph { z-index: -2; }
.photograph img { object-fit: cover; object-position: 82% top; }
.cover::after {
  content: "";
  z-index: -1;
  background: linear-gradient(to bottom, transparent 47%, rgb(10 19 17 / 8%) 60%, rgb(8 17 15 / 68%) 100%);
}
h1 { width: min(78vw, 106svh, 73rem); line-height: 0; }
.race-date {
  margin-bottom: clamp(.15rem, 1vh, .85rem);
  width: min(76vw, 46vh, 29rem);
}
.race-date img, .motto img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 3px #101816); }
.wordmark { display: block; width: 100%; height: auto; }
.motto {
  margin-top: clamp(.35rem, 1vh, .75rem);
  width: min(100%, clamp(16.5rem, 32vw, 25rem));
}
footer { width: min(100%, 48rem); margin-top: clamp(.85rem, 2.4vh, 1.65rem); text-shadow: 0 1px 5px #0e1716; }
.race-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.race-facts > div + div { border-inline-start: 1px solid rgb(255 255 255 / 28%); }
.race-facts dd { padding-inline: .2rem; }
.distance, .gain { display: block; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
.distance { height: clamp(1.08rem, 5vw, 2.3rem); }
.gain { height: clamp(.75rem, 3.4vw, 1.05rem); margin-top: .28rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.release { margin-top: clamp(.75rem, 1.8vh, 1.25rem); font-size: 1rem; line-height: 1.4; color: #eeeae2; }
.release img { width: auto; height: .85em; margin-inline-start: .15em; vertical-align: baseline; }
time { white-space: nowrap; }

@media (max-aspect-ratio: 1/1) {
  .cover { padding-bottom: max(4svh, 1.25rem, env(safe-area-inset-bottom)); }
  .photograph img { object-position: 95% 24%; }
  h1 { width: min(92vw, 46rem); }
}
@media (max-height: 450px) and (orientation: landscape) {
  .cover { padding-bottom: .85rem; }
  .race-date { width: min(42vw, 15rem); margin-bottom: .1rem; }
  h1 { width: min(60vw, 84svh); }
  .motto { margin-top: .2rem; width: min(100%, 14rem); }
  footer { margin-top: .3rem; }
  .distance { height: 1.25rem; }
  .release { margin-top: .35rem; font-size: .9rem; }
}
