@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jost-400.woff2") format("woff2");
}

:root {
  --paper: #f3f0e7;
  --ink: #15281b;
  --ink-quiet: #55625a;
  --court: #1c4a2c;
  --court-deep: #12331f;
  --line: #ffffff;
  --ball: #dff05c;
  --field: #ffffff;
  --edge: clamp(1.25rem, 4.4vw, 4rem);
  --measure: 78rem;
  --t-hero: clamp(2.375rem, 1.35rem + 4.1vw, 4.75rem);
  --t-head: clamp(1.75rem, 1.15rem + 2.4vw, 3.25rem);
  --t-slot: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --radius: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.45;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
fieldset {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

ol,
ul {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ball);
  outline-offset: 3px;
}

.shortlist :focus-visible {
  outline-color: var(--court);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Actions */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.pill-line {
  background: var(--line);
  color: var(--court-deep);
}

.pill-line:hover {
  background: var(--ball);
}

.pill-solid {
  background: var(--court);
  color: var(--line);
}

.pill-solid:hover {
  background: var(--court-deep);
}

/* Navigation sits in the run-off above the baseline */

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.2vw, 1.9rem) var(--edge) 0;
  color: var(--line);
}

.wordmark {
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  font-size: 1.125rem;
}

.site-nav nav a {
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-nav nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

/* Opening: one court end from above; the words sit in the back court */

.opening {
  --img-top: min(0px, 8.75rem - 12.7vw);
  position: relative;
  height: min(max(100svh, 38rem), 66.66vw + var(--img-top));
  overflow: hidden;
  background: #3f5b34;
  color: var(--line);
}

.opening-court img {
  position: absolute;
  top: var(--img-top);
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.opening-words {
  position: absolute;
  top: calc(var(--img-top) + 31.4vw);
  left: 50%;
  width: min(100% - 2 * var(--edge), 46rem);
  transform: translate(-50%, -50%);
  text-align: center;
}

.opening h1 {
  font-size: min(var(--t-hero), 5.28vw);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.opening-words p {
  max-width: 27em;
  margin: clamp(1rem, 1.6vw, 1.5rem) auto 0;
  font-size: var(--t-lead);
  line-height: 1.4;
  text-wrap: balance;
}

.opening-words .pill {
  margin-top: clamp(1.5rem, 2.4vw, 2.25rem);
}

@media (max-aspect-ratio: 1/1) {
  .opening {
    --h: max(100svh, 38.75rem);
    height: var(--h);
  }

  .opening-court img {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
  }

  .opening-words {
    top: max(67.87vw, 0.4525 * var(--h));
  }

  .opening h1 {
    font-size: var(--t-hero);
  }
}

/* Leaf shade: a matte that moves across court surfaces */

.shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shade i {
  position: absolute;
  display: block;
  aspect-ratio: 900 / 1024;
  background: url("./assets/img/leaf-shade.webp") 0 0 / 100% 100% no-repeat;
  transform-origin: 0 20%;
  will-change: transform;
}

.shade-opening i {
  top: -9%;
  left: -2.5%;
  height: 122%;
  animation: sway-near 8s ease-in-out infinite alternate;
}

.shade-opening i + i {
  top: -42%;
  left: -15%;
  height: 165%;
  opacity: 0.5;
  filter: blur(2.5px);
  animation: sway-far 12.5s ease-in-out -4s infinite alternate;
}

@media (max-aspect-ratio: 1/1) {
  .shade-opening i {
    top: -5%;
    left: -22%;
    height: 78%;
  }

  .shade-opening i + i {
    top: -24%;
    left: -40%;
    height: 96%;
  }
}

@keyframes sway-near {
  0% {
    transform: translate3d(-2.2%, 0.4%, 0) rotate(-1.5deg);
  }

  38% {
    transform: translate3d(0.6%, 0, 0) rotate(0.5deg);
  }

  62% {
    transform: translate3d(-0.4%, 0.3%, 0) rotate(-0.2deg);
  }

  100% {
    transform: translate3d(2.6%, 1%, 0) rotate(2deg);
  }
}

@keyframes sway-far {
  0% {
    transform: translate3d(1.6%, -0.6%, 0) rotate(1.4deg);
  }

  45% {
    transform: translate3d(-1%, 0.4%, 0) rotate(-0.6deg);
  }

  100% {
    transform: translate3d(-3%, 1.2%, 0) rotate(-2.2deg);
  }
}

/* Courts in the shortlist come out of the shade as they arrive */

.court-view .shade,
.venue-ground .shade {
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent);
  mask-image: linear-gradient(to right, #000 78%, transparent);
}

.court-view .shade {
  transform: translate3d(-46%, 0, 0);
  transition: transform 1.5s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.court-view .shade i {
  top: -12%;
  left: 0;
  height: 124%;
  animation: sway-near 9s ease-in-out infinite alternate;
}

.court:nth-child(2) .court-view .shade i {
  top: -34%;
  animation-duration: 11s;
  animation-delay: -3s;
}

.court:nth-child(3) .court-view .shade i {
  top: -2%;
  animation-duration: 7.5s;
  animation-delay: -5s;
}

.court:nth-child(2) .court-view .shade {
  transition-delay: 0.18s;
}

.court:nth-child(3) .court-view .shade {
  transition-delay: 0.36s;
}

.js .court.is-shaded .court-view .shade {
  transform: translate3d(6%, 0, 0) scale(1.25);
}

.js .courts.is-changing .court-view .shade {
  transition-duration: 0.45s;
  transition-delay: 0s;
}

.is-resting .shade i {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .shade i {
    animation: none !important;
  }

  .court-view .shade,
  .js .court.is-shaded .court-view .shade {
    transform: translate3d(-46%, 0, 0);
    transition: none;
  }
}

/* Shortlist */

.shortlist {
  max-width: calc(var(--measure) + 2 * var(--edge));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--edge) clamp(4rem, 8vw, 7.5rem);
}

h2 span {
  display: inline-block;
}

.shortlist h2 {
  max-width: 17em;
  font-size: var(--t-head);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.composer {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.composer fieldset {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.25fr 0.9fr 1fr auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 2.25rem;
  background: var(--field);
}

.composer label {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0.45rem 0.9rem 0.5rem;
  border-radius: 1.75rem;
}

.composer label span {
  display: block;
  font-size: var(--t-small);
  line-height: 1.3;
  color: var(--ink-quiet);
}

.composer select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 1.1rem 0 0;
  border: 0;
  background: transparent;
  font-size: 1.125rem;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  cursor: pointer;
}

.composer fieldset:not(:disabled) label {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2315281b' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 0.85rem bottom 1.05rem no-repeat;
}

.composer select:focus-visible {
  outline: 0;
}

.composer label:has(select:focus-visible) {
  outline: 3px solid var(--court);
  outline-offset: -3px;
}

.composer fieldset:not(:disabled) label:hover {
  background-color: var(--paper);
}

.composer fieldset:disabled select {
  opacity: 1;
  color: var(--ink);
  cursor: default;
}

.composer fieldset:disabled button {
  display: none;
}

.courts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.court-view {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 5 / 7;
  background: var(--court);
}

.court-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.court-view::after {
  content: "";
  position: absolute;
  inset: 74% 0 0;
  background: linear-gradient(to top, rgb(8 22 13 / 0.5), rgb(8 22 13 / 0));
  pointer-events: none;
}

.court-view .slot span {
  white-space: nowrap;
}

.court-view .slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 1.6vw, 1.5rem) clamp(0.9rem, 1.4vw, 1.25rem);
  font-size: var(--t-slot);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--line);
}

.record {
  padding: 1rem 0.25rem 0;
}

.record p {
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--ink-quiet);
  text-wrap: balance;
}

.record p span {
  display: inline-block;
}

.record .venue {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}

.no-courts {
  text-wrap: balance;
  padding: clamp(2rem, 5vw, 4rem) 0;
  font-size: var(--t-lead);
}

@media (max-width: 72rem) {
  .composer fieldset {
    grid-template-columns: repeat(6, 1fr);
    border-radius: 1.75rem;
    padding: 0.6rem;
  }

  .composer label {
    grid-column: span 2;
  }

  .composer label:nth-of-type(4),
  .composer label:nth-of-type(5) {
    grid-column: span 2;
  }

  .composer button {
    grid-column: span 2;
  }
}

@media (min-width: 46.01rem) and (max-width: 62rem) {
  .court-view .slot {
    font-size: 1.25rem;
  }
}

@media (max-width: 46rem) {
  .composer fieldset {
    grid-template-columns: 1fr 1fr;
  }

  .composer label,
  .composer label:nth-of-type(4),
  .composer label:nth-of-type(5) {
    grid-column: span 1;
  }

  .composer label:nth-of-type(1),
  .composer label:nth-of-type(2),
  .composer label:nth-of-type(3) {
    grid-column: span 2;
  }

  .composer button {
    grid-column: span 2;
    margin-top: 0.25rem;
  }

  .courts {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Watch: every court at once under passing cloud */

.watch {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 44vw, 44rem);
  overflow: hidden;
  background: var(--court-deep);
  color: var(--line);
}

.watch-courts {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
  mask-image: linear-gradient(to right, transparent, #000 30%);
}

.watch-courts img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 50%;
}

.cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud i {
  position: absolute;
  top: -30%;
  left: -110%;
  width: 120%;
  height: 160%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(5 18 11 / 0.78), rgb(5 18 11 / 0.7) 58%, rgb(5 18 11 / 0));
  animation: drift 34s linear infinite;
  will-change: transform;
}

.cloud i + i {
  top: -55%;
  width: 95%;
  height: 150%;
  animation-delay: -17s;
}

.is-resting .cloud i {
  animation-play-state: paused;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(270%, 6%, 0);
  }
}

.watch-words {
  position: relative;
  width: min(100% - 2 * var(--edge), var(--measure));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.watch h2 span {
  display: block;
}

.watch h2 {
  font-size: var(--t-head);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.saved {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.saved p {
  font-size: var(--t-lead);
  line-height: 1.4;
}

.saved p span {
  display: inline-block;
}

.saved .pill {
  margin-top: 1.5rem;
}

.saved .pill[aria-pressed="true"] {
  background: var(--ball);
}

/* Venues: the venue's court and its record, on the venue's own ground */

.venues {
  width: min(100% - 2 * var(--edge), var(--measure));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.venue-ground {
  --margin: 3.46cqw;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 2800 / 1261;
  border-radius: var(--radius);
  background: #dc8a5c;
}

.venue-ground picture {
  position: absolute;
  inset: 0;
}

.venue-ground img {
  width: auto;
  height: 100%;
  max-width: none;
}

.venue-ground .shade {
  transform: translate3d(-46%, 0, 0);
  transition: transform 1.7s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.venue-ground .shade i {
  top: -30%;
  left: 0;
  height: 150%;
  animation: sway-near 10s ease-in-out infinite alternate;
}

.js .venue-ground.is-shaded .shade {
  transform: translate3d(8%, 0, 0) scale(1.2);
}

.venue-words {
  position: absolute;
  top: var(--margin);
  right: var(--margin);
  bottom: var(--margin);
  left: 52cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.venues h2 {
  margin-top: -0.2em;
  font-size: clamp(1.625rem, 3.9cqw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.venues h2 span {
  display: block;
}

.venue-record {
  margin-bottom: -0.3em;
}

.venue-record p {
  font-size: var(--t-body);
  line-height: 1.4;
}

.venue-record p span {
  display: inline-block;
}

.venue-record .venue {
  margin-bottom: 0.2rem;
  font-size: var(--t-slot);
  line-height: 1.2;
}

/* Closing: a ball on the line, then the next step */

.closing {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(36rem, 56vw, 52rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
  background: #8a3413;
  color: var(--line);
}

.closing-surface img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 100% 82%;
}

.closing::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 11rem;
  background: linear-gradient(to top, rgb(52 17 6 / 0.94) 2.5rem, rgb(52 17 6 / 0));
  pointer-events: none;
}

.shade-closing i {
  top: -42%;
  left: -8%;
  height: 120%;
  opacity: 0.85;
  animation: sway-closing 9s ease-in-out infinite alternate;
}

@keyframes sway-closing {
  0% {
    transform: translate3d(-4%, -1%, 0) rotate(-3deg);
  }

  40% {
    transform: translate3d(0.5%, 0.4%, 0) rotate(0.6deg);
  }

  64% {
    transform: translate3d(-1%, 0, 0) rotate(-0.6deg);
  }

  100% {
    transform: translate3d(4.5%, 1.4%, 0) rotate(3.2deg);
  }
}

.closing-step {
  position: relative;
  width: min(100% - 2 * var(--edge), var(--measure));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
}

.closing h2 {
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.closing h2 span {
  display: block;
}

.closing-step .pill {
  margin-top: clamp(1.5rem, 2.4vw, 2.25rem);
}

.site-foot {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  height: 5.5rem;
  margin-top: -5.5rem;
  padding: 1.25rem var(--edge) 0;
  color: var(--line);
}

.site-foot nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  font-size: 1.125rem;
}

.site-foot nav a {
  padding: 0.35rem 0;
  text-decoration: none;
}

.site-foot nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .cloud i {
    animation: none;
    transform: translate3d(50%, 1%, 0);
  }

  .cloud i + i {
    transform: translate3d(232%, 5%, 0);
  }

  .venue-ground .shade,
  .js .venue-ground.is-shaded .shade {
    transform: translate3d(-46%, 0, 0);
    transition: none;
  }
}

@media (max-aspect-ratio: 1/1) {
  .watch {
    display: block;
    min-height: 0;
  }

  .watch-courts {
    position: relative;
    width: 100%;
    height: min(104vw, 40rem);
    margin-top: -3.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%);
    mask-image: linear-gradient(to bottom, transparent, #000 34%);
  }

  .watch-courts img {
    object-position: 50% 100%;
  }

  .watch-words {
    padding: clamp(4rem, 12vw, 6rem) 0 0;
  }

  .watch {
    display: flex;
    flex-direction: column-reverse;
  }

  .closing {
    align-items: start;
    min-height: max(44rem, 100svh);
  }

  .closing-surface img {
    object-position: 30% 100%;
  }
}

@media (max-width: 52rem) {
  .venue-ground {
    --margin: 3.9cqw;
    aspect-ratio: auto;
  }

  .venue-ground img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
  }

  .venue-ground .shade {
    bottom: auto;
    height: 70cqw;
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(to bottom, #000 74%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(to bottom, #000 74%, transparent);
    mask-composite: intersect;
  }

  .venue-words {
    position: relative;
    inset: auto;
    display: block;
    padding: 72cqw var(--margin) calc(var(--margin) + 0.25rem);
  }

  .venues h2 {
    margin-top: 0;
    font-size: var(--t-head);
  }

  .venue-record {
    margin: 1.5rem 0 0;
  }
}

@media (max-width: 24rem) {
  .composer label:nth-of-type(4),
  .composer label:nth-of-type(5) {
    grid-column: span 2;
  }
}

@media (max-width: 23rem) {
  .venues h2 {
    font-size: 1.5625rem;
  }

  .closing h2 {
    text-wrap: balance;
  }

  .closing h2 span {
    display: inline;
  }
}

/* Temporary homepage availability and contact. */
.launch-note{position:relative;z-index:20;margin:0;padding:9px 16px;text-align:center;background:#fff;color:#263d31;font:14px/1.4 system-ui,sans-serif}.launch-note a{text-decoration:underline;color:inherit}.early-access-note{font-size:16px;line-height:1.5;margin-top:20px}.preview-label{font:14px/1.5 system-ui,sans-serif;margin:16px 0;max-width:60ch}.contact-link{display:inline-block;margin-top:18px}

.launch-note{height:38px;white-space:nowrap}body>header[class]{top:38px}@media(max-width:400px){.launch-note{font-size:12px}}
