/* The photograph and headline share the full width of the masthead. */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(445px, 37vw, 615px);
  background: var(--forest);
  color: var(--paper);
}
.hero-image {
  position: absolute;
  inset: 0 0 0 25%;
  margin: 0;
  z-index: -3;
  overflow: clip;
}
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-image figcaption {
  position: absolute;
  z-index: 1;
  right: 5%;
  top: 20px;
  background: var(--forest);
  color: var(--paper);
  padding: var(--space-4) var(--space-8);
  font-size: var(--type-caption);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--forest) calc(50% - 5rem),
    color-mix(in srgb, var(--forest) 86%, transparent) 50%,
    transparent 72%
  );
}
.hero-copy {
  position: relative;
  padding-block: var(--space-48) 100px;
}
.hero-copy h1 {
  max-width: 15ch;
  color: var(--paper);
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.04;
}
.hero-copy .ruled-title::after {
  bottom: -10px;
}
.hero-copy p {
  max-width: 24ch;
  margin: var(--space-24) 0 var(--space-24);
  font-size: var(--type-lead);
  line-height: 1.3;
}
.hero-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-12);
}
.hero-actions, .play-paths {
  --secondary-surface: transparent;
  --secondary-border: var(--light-rule);
  --secondary-text: var(--paper);
  --secondary-hover-text: var(--forest);
}
.ice-fade {
  position: absolute;
  inset: auto 0 -1px;
  z-index: -1;
  height: clamp(65px, 7vw, 108px);
  pointer-events: none;
  transform-origin: center bottom;
  background: linear-gradient(
    0deg,
    var(--paper) 0%,
    rgba(255, 255, 255, 0.96) 12%,
    rgba(239, 248, 243, 0.72) 38%,
    rgba(237, 247, 241, 0.2) 73%,
    transparent
  );
}
.affiliation-logos {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.5fr 0.85fr 1.1fr;
  align-items: center;
  gap: clamp(var(--space-4), 1.6vw, var(--space-24));
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: clamp(var(--space-12), 1.4vw, var(--space-16)) 0;
  list-style: none;
}
.affiliation-logos li {
  min-width: 0;
}
.affiliation-logos a {
  display: grid;
  place-items: center;
  min-height: 44px;
  text-decoration: none;
}
.affiliation-logos img {
  width: auto;
  max-width: min(100%, 156px);
  max-height: clamp(54px, 8vw, 86px);
}
.affiliation-logos .association-crest {
  max-height: clamp(76px, 12vw, 128px);
}
.register-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  margin-top: var(--space-24);
  padding: var(--space-16) var(--space-24);
  background: var(--forest);
  color: var(--paper);
}
.register-line p {
  margin: 0;
  font-size: var(--type-lead);
}
.play-section {
  background: var(--ice);
  border-block: 1px solid var(--rule);
}
.play-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  background: var(--forest);
  color: var(--paper);
}
.play-poster {
  position: relative;
  isolation: isolate;
  min-height: 365px;
  display: grid;
  align-items: end;
  overflow: clip;
}
.play-poster img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
}
.play-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    var(--forest),
    rgba(0, 65, 48, 0.58) 25%,
    transparent 67%
  );
}
.poster-copy {
  padding: clamp(var(--space-24), 3.5vw, var(--space-48));
}
.poster-copy h2 {
  margin-bottom: var(--space-16);
  font-size: var(--type-display);
  color: var(--paper);
  line-height: 1;
}
.play-paths {
  padding: var(--space-8) clamp(var(--space-16), 2.4vw, var(--space-32));
  border-left: 5px solid var(--crest-gold);
}
.play-paths > div {
  padding: var(--space-16) 0;
}
.play-paths > div + div {
  border-top: 1px solid var(--light-rule);
}
.play-paths h3 {
  font-size: var(--type-subheading);
  color: var(--paper);
  margin-bottom: var(--space-4);
}
.play-paths p {
  margin: 0 0 var(--space-8);
  font-size: var(--type-small);
  line-height: 1.45;
}
.play-paths p a {
  color: var(--paper);
}
.quick {
  margin: var(--space-24) 0;
  padding-top: var(--space-24);
}
.quick ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
  margin-top: var(--space-16);
}
.quick li a {
  display: block;
  color: var(--forest);
  text-decoration: none;
}
.quick li a:hover strong {
  text-decoration: underline;
}
.quick li strong {
  display: block;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.quick li span:not(.sr-only) {
  display: block;
  color: var(--muted);
  font-size: var(--type-caption);
}
.quick li {
  background: var(--paper);
}
.quick li a {
  height: 100%;
  padding: var(--space-12) var(--space-16);
}
.quick li a:hover,
.quick li a:focus-visible {
  background: var(--ice);
  box-shadow: inset 3px 0 var(--green);
}
.quick li a:active {
  background: var(--ice);
  box-shadow: inset 3px 0 var(--green);
}
/* 30 years */
.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: clamp(var(--space-32), 4.5vw, var(--space-64));
}
.history-column,
.press {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  min-width: 0;
}
.history-grid .section-head {
  align-items: center;
}
.history-grid .more {
  align-self: end;
  margin-top: var(--space-16);
}
.section-head.anniversary {
  flex-wrap: nowrap;
  align-items: center;
}
.anniversary img {
  width: 72px;
  height: 72px;
  flex: none;
}
.timeline {
  list-style: none;
  margin: var(--space-24) 0 0;
  padding-left: 2px;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-16);
  padding: var(--space-8) 0 var(--space-8) var(--space-24);
}
.timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -6px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--paper);
  transform: scale(var(--history-dot, 1));
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 22px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--crest-gold) var(--history-line, 100%),
    var(--rule) var(--history-line, 100%)
  );
}
.timeline b {
  font: 700 var(--type-lead) / 1.1 var(--head);
  color: var(--forest);
}
.press ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.press li:first-child {
  padding-top: 0;
}
.press li {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--rule);
}
.press li a {
  font-weight: 700;
}
.press li > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--type-caption);
}
/* Twelve sponsor links form the static layout and the reduced-motion view.
   The moving belt adds a second copy for a continuous loop. */
.sponsor-intro {
  max-width: 62ch;
}
.sponsor-window {
  --logo-width: clamp(128px, 14vw, 177px);
  --logo-gap: var(--space-12);
  margin-bottom: var(--space-24);
}
.sponsor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr));
  gap: var(--logo-gap);
  list-style: none;
}
.sponsor-list a {
  display: grid;
  place-items: center;
  height: 108px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.sponsor-list a:hover {
  border-color: var(--green);
}
.sponsor-list a:focus-visible {
  outline-offset: -3px;
}
.sponsor-list img {
  width: 74%;
  height: 68px;
  object-fit: contain;
}
.sponsor-copy {
  display: none;
}
@keyframes sponsor-drift {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sponsor-motion:not([hidden]) {
    display: inline-block;
  }
  .sponsor-window.is-moving {
    overflow: clip;
  }
  .sponsor-window.is-moving .sponsor-belt {
    display: flex;
    width: max-content;
    animation: sponsor-drift 68s linear infinite paused;
  }
  .sponsor-window.is-moving .sponsor-list {
    display: flex;
    padding-inline-end: var(--logo-gap);
  }
  .sponsor-window.is-moving li {
    width: var(--logo-width);
  }
  .sponsor-window.is-moving.in-view .sponsor-belt {
    animation-play-state: running;
  }
}
@media (hover: hover) {
  .sponsor-window.is-moving.in-view:hover .sponsor-belt {
    animation-play-state: paused;
  }
}
/* Only the artwork scales, so the five logos keep their original positions. */
.sponsor-list a {
  border-radius: var(--radius);
  transition:
    box-shadow 180ms,
    border-color 180ms;
}
.sponsor-list a:is(:active, :focus-visible) {
  box-shadow: inset 0 -3px var(--green);
}
@media (hover: hover) {
  .sponsor-list a:hover {
    box-shadow: inset 0 -3px var(--green);
  }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .affiliation-logos a:hover img {
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.affiliation-logos, .sponsor-list) img {
    transition: transform 360ms cubic-bezier(0.22, 0.68, 0.22, 1);
  }
  :is(.affiliation-logos, .sponsor-list) a:focus-visible img {
    transform: scale(1.07);
  }
  @media (hover: hover) {
    :is(.affiliation-logos, .sponsor-list) a:hover img {
      transform: scale(1.07);
    }
  }
  :is(.affiliation-logos, .sponsor-list) a:active img {
    transform: scale(0.98);
  }
}
.fixtures-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--space-24);
  align-items: stretch;
}
.side-panels {
  display: grid;
  gap: var(--space-24);
}
@media (width > 920px) {
  #cup-preview:not(:empty) {
    display: grid;
    flex: 1;
    grid-template-rows: 1fr 1fr auto;
    gap: var(--space-16);
    margin-top: var(--space-24);
  }
  #cup-preview .fixture-group,
  #cup-preview .data-stamp {
    margin: 0;
  }
}
.dates {
  list-style: none;
  margin-top: var(--space-16);
}
.dates li {
  display: grid;
  grid-template-columns: 84px 1fr;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--rule);
}
.dates time {
  color: var(--muted);
  font-size: var(--type-small);
}
.fixtures-section {
  border-bottom: 1px solid var(--rule);
  padding-top: clamp(var(--space-24), 3vw, var(--space-48));
}
@media (max-width: 920px) {
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-image {
    position: relative;
    inset: auto;
    z-index: -2;
    width: 100%;
    height: auto;
    aspect-ratio: 2.28;
  }
  .hero-image img {
    object-position: center 53%;
  }
  .hero-image figcaption {
    top: 10px;
    right: var(--hero-edge, 5%);
    font-size: var(--type-caption);
  }
  .hero-shade {
    background: none;
  }
  .hero-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 -1px;
    background: linear-gradient(0deg, var(--forest), transparent 78%);
  }
  .hero-copy {
    margin-top: -16px;
    padding-block: 0 75px;
  }
  .hero-copy h1 {
    max-width: 16ch;
  }
  .hero-copy p {
    max-width: 32ch;
    margin-bottom: var(--space-16);
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12) var(--space-16);
    flex-wrap: wrap;
  }

  .ice-fade {
    height: 48px;
  }
  .play-feature {
    grid-template-columns: 1fr;
  }
  .play-poster {
    min-height: clamp(230px, 44vw, 350px);
  }
  .play-poster img {
    object-position: 50% 39%;
  }
  .play-paths {
    border-left: 0;
    border-top: 4px solid var(--crest-gold);
    padding-block: var(--space-4);
  }
}

@media (max-width: 920px) {
  .fixtures-grid,
  .history-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
  .history-column,
  .press {
    display: block;
    grid-row: auto;
  }
  .history-grid {
    row-gap: var(--space-32);
  }
}

@media (width > 740px) and (max-width: 920px) {
  .side-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .quick ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .register-line {
    padding: var(--space-16);
  }
  .anniversary img {
    width: 50px;
    height: 50px;
  }
  .sponsor-list a {
    height: 94px;
  }
  .sponsor-list img {
    height: 58px;
  }
}
