:root {
  --ink: oklch(19% 0.035 157);
  --ink-soft: oklch(34% 0.035 157);
  --paper: oklch(96% 0.018 104);
  --paper-deep: oklch(90% 0.026 104);
  --court: oklch(36% 0.09 157);
  --court-dark: oklch(25% 0.07 157);
  --ball: oklch(88% 0.19 118);
  --line: oklch(76% 0.025 104);
  --white: oklch(98% 0.008 104);
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--ball);
  transform: translateY(-160%);
  transition: transform 150ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: max(1rem, env(safe-area-inset-top)) var(--page-pad) 0;
  color: var(--white);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  line-height: 1;
}

.brand {
  min-height: 2.75rem;
  font-size: 1.25rem;
}

.brand-mark {
  width: 0.9rem;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--ball);
}

.brand-sport {
  padding-left: 0.55rem;
  border-left: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 0.38rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 250ms var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem var(--page-pad) 3rem;
  color: var(--white);
  background: var(--court-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.5rem;
  border-bottom: 1px solid oklch(98% 0.008 104 / 0.28);
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
  background: var(--court-dark);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  background: linear-gradient(90deg, oklch(14% 0.04 157 / 0.88) 0%, oklch(18% 0.04 157 / 0.52) 48%, transparent 82%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88svh;
  padding: 7rem var(--page-pad) 3.5rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ball);
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 7ch;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 0.98;
}

.hero-lead {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 17rem);
  min-height: 3.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
  border: 1px solid var(--white);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.hero-link:active {
  transform: translateY(1px);
}

.hero-edition {
  display: none;
}

.editorial {
  padding: 5.5rem var(--page-pad) 6rem;
}

.section-heading {
  display: grid;
  gap: 1.25rem;
  max-width: 75rem;
  margin: 0 auto 4rem;
}

.section-kicker {
  color: var(--court);
}

.section-heading h2,
.manifesto h2,
.about h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.18;
}

.section-heading > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
}

.story-grid {
  display: grid;
  max-width: 75rem;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.story {
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.story-meta {
  display: flex;
  justify-content: space-between;
  color: var(--court);
  font-size: 0.75rem;
  font-weight: 700;
}

.story h3 {
  max-width: 11ch;
  margin: 4rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.25;
}

.story p {
  max-width: 28rem;
  margin: 0;
  color: var(--ink-soft);
}

.story-tag {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.story-featured {
  position: relative;
}

.story-featured::after {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ball);
  content: "";
}

.manifesto {
  position: relative;
  display: grid;
  gap: 4rem;
  overflow: hidden;
  padding: 5.5rem var(--page-pad) 6rem;
  color: var(--white);
  background: var(--court);
}

.court-line {
  position: absolute;
  inset: 2.5rem -6rem auto auto;
  width: 18rem;
  aspect-ratio: 1;
  border: 1px solid oklch(98% 0.008 104 / 0.42);
  border-radius: 50%;
}

.manifesto-copy,
.manifesto-note {
  position: relative;
  z-index: 1;
}

.manifesto .section-kicker {
  color: var(--ball);
}

.manifesto h2 {
  max-width: 14ch;
  margin-top: 1.5rem;
}

.manifesto-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.25rem;
  max-width: 30rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white);
}

.manifesto-note p {
  margin: 0;
}

.tennis-ball {
  width: 1.15rem;
  aspect-ratio: 1;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--ball);
}

.about {
  display: grid;
  gap: 3rem;
  padding: 6rem var(--page-pad);
  background: var(--paper-deep);
}

.about-index {
  color: var(--court);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-copy {
  max-width: 44rem;
}

.about h2 {
  margin-top: 1.5rem;
}

.about-copy > p:last-child {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
}

.site-footer {
  display: grid;
  gap: 2rem;
  padding: 3rem var(--page-pad) max(3rem, env(safe-area-inset-bottom));
  color: var(--white);
  background: var(--ink);
}

.footer-brand {
  font-size: 1.1rem;
}

.site-footer > p {
  margin: 0;
  color: var(--paper-deep);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(98% 0.008 104 / 0.22);
  color: var(--paper-deep);
  font-size: 0.8rem;
}

.footer-legal a {
  width: fit-content;
  min-height: 2.75rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .site-nav a:hover {
    color: var(--ball);
  }

  .hero-link:hover {
    color: var(--ink);
    background: var(--ball);
  }

  .footer-legal a:hover {
    color: var(--ball);
  }
}

@media (min-width: 48rem) {
  :root {
    --page-pad: 3rem;
  }

  .site-header {
    min-height: 5.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    width: auto;
    min-height: 2.75rem;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  .hero h1 {
    font-size: 6.5rem;
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .hero-edition {
    position: absolute;
    right: var(--page-pad);
    bottom: 4.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.7rem;
    font-weight: 700;
  }

  .section-heading {
    grid-template-columns: 0.7fr 2fr 1.15fr;
    align-items: end;
  }

  .section-heading h2,
  .manifesto h2,
  .about h2 {
    font-size: 3.5rem;
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story {
    padding: 1.5rem 1.75rem 2rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .story:first-child {
    padding-left: 0;
  }

  .story:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .manifesto {
    grid-template-columns: 1.6fr 0.7fr;
    align-items: end;
    gap: 6rem;
  }

  .about {
    grid-template-columns: 0.8fr 1.6fr;
    align-items: start;
  }

  .about-index {
    font-size: 5rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-legal {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 75rem) {
  :root {
    --page-pad: 5rem;
  }

  .hero-content {
    padding-left: max(var(--page-pad), calc((100vw - 75rem) / 2));
  }

  .hero h1 {
    font-size: 8rem;
  }

  .editorial,
  .manifesto,
  .about {
    padding-top: 7.5rem;
    padding-bottom: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
