@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/public-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/public-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --court: #2c5d8f;
  --surround: #3e7a5e;
  --line: #fafbf8;
  --net: #1b2633;
  --rule: #c9d3dc;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;

  /* The court geometry: each offset is a share of the viewBox width of the court symbol in use. */
  --court-ratio: 133.7 / 277.7;
  --court-width: min(100%, 440px);
  --text-left: 19.45%;
  --text-top: 22.44%;
  --text-width: 61.11%;
  --text-inset: 2.24cqw;
  --display-size: min(44px, 11.7cqw);
  --frame-gutter: 24px;
}

@media (min-width: 1024px) {
  :root {
    --court-ratio: 317.7 / 169.7;
    --court-width: min(100%, 1280px);
    --text-left: 14.48%;
    --text-top: 15.11%;
    --text-width: 33.37%;
    --text-inset: 0;
    --display-size: min(7.5cqw, 96px);
    --frame-gutter: calc(0.1448 * min(100vw, 1280px));
  }
}

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

body {
  margin: 0;
  background: var(--line);
  color: var(--net);
  font-family: var(--body);
  font-size: 16px;
  overflow-wrap: break-word;
  line-height: 1.55;
}

.hero {
  background: var(--surround);
  color: var(--line);
}

.court {
  position: relative;
  display: flow-root;
  container-type: inline-size;
  width: var(--court-width);
  aspect-ratio: var(--court-ratio);
  margin-inline: auto;
}

.court svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.court-field {
  fill: var(--court);
}

.court-lines {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.6;
}

.court-baseline {
  stroke-width: 0.9;
}

.court-landscape {
  display: none;
}

@media (min-width: 1024px) {
  .court-portrait {
    display: none;
  }

  .court-landscape {
    display: inline;
  }
}

.court-text {
  position: relative;
  width: var(--text-width);
  min-width: min-content;
  margin: var(--text-top) 0 0 var(--text-left);
  padding-inline: var(--text-inset);
  background: var(--court);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--display-size);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

h1 span {
  display: block;
}

.lede {
  margin: 0.75em 0 0;
}

@media (min-width: 1024px) {
  .lede {
    font-size: clamp(16px, 1.5625cqw, 20px);
  }
}

.frame {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: var(--frame-gutter);
}

.home {
  margin: 0;
  padding-block: 24px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}

.page-title {
  font-size: 48px;
}

main {
  padding-block: 24px 64px;
}

main > section {
  max-width: 64ch;
}

h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

p {
  margin: 0 0 1em;
}

dl {
  margin: 0;
}

dl div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding-block: 12px;
}

dl div + div {
  border-top: 1px solid var(--rule);
}

dt {
  flex: 0 0 8rem;
  font-weight: 600;
}

dd {
  flex: 1 1 10rem;
  margin: 0;
}

address {
  font-style: normal;
}

a {
  color: var(--court);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--court);
  outline-offset: 2px;
}

footer {
  padding-block: 0 32px;
}

@media (prefers-reduced-motion: no-preference) {
  .court-lines > * {
    stroke-dasharray: 1;
    animation: draw-line 900ms ease-out backwards;
  }

  h1 {
    animation: appear 400ms ease-out 900ms backwards;
  }
}

@keyframes draw-line {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}
