/* ==========================================================================
   Secties: over, doe mee, teams, seizoen, locatie, bestuur, documenten, faq, afsluiter
   ========================================================================== */

/* --- Over -------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  grid-template-areas:
    "statement snapshot"
    "body snapshot";
  gap: var(--space-xl) var(--space-2xl);
  align-items: start;
}

.about__statement {
  grid-area: statement;
}

.statement {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.statement mark {
  padding: 0 0.1em;
  color: inherit;
  background: linear-gradient(var(--lime-400), var(--lime-400)) no-repeat 0 62% / 0% 72%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 1s var(--ease-out-expo);
}

.statement.is-visible mark,
.no-js .statement mark {
  background-size: 100% 72%;
}

.statement.is-visible mark:nth-of-type(2) { transition-delay: 0.12s; }
.statement.is-visible mark:nth-of-type(3) { transition-delay: 0.24s; }
.statement.is-visible mark:nth-of-type(4) { transition-delay: 0.36s; }
.statement.is-visible mark:nth-of-type(5) { transition-delay: 0.48s; }
.statement.is-visible mark:nth-of-type(6) { transition-delay: 0.6s; }

.about__body {
  grid-area: body;
  display: grid;
  gap: var(--space-m);
  max-width: 60ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}

.audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audiences li {
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}

.news-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem var(--space-s);
  align-items: center;
  margin-top: var(--space-2xs);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}

.news-link:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.news-link__source {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol-700);
}

.news-link__title {
  grid-column: 1;
  font-weight: 700;
  font-size: var(--step-0);
}

.news-link .icon {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--petrol-700);
}

.snapshot {
  grid-area: snapshot;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 26rem);
  padding: 0.7rem 0.7rem 0;
  background: var(--white);
  box-shadow: var(--shadow-3);
  transform: rotate(2.2deg);
}

.snapshot::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 7rem;
  height: 1.8rem;
  background: rgb(198 246 72 / 0.8);
  transform: translateX(-50%) rotate(-4deg);
}

.snapshot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.snapshot figcaption {
  padding: 0.7rem 0.2rem 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* --- Doe mee ------------------------------------------------------------ */

.join {
  overflow: hidden;
}

.join .section-title {
  max-width: 12em;
}

.rally {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  padding-top: 4.5rem;
  counter-reset: none;
}

.rally__path {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 4.2rem;
  overflow: visible;
  pointer-events: none;
}

.rally__path path {
  stroke: var(--night-900);
  stroke-width: 2.5;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.rally__step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.rally__step::before {
  content: "";
  position: absolute;
  top: -3.1rem;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--night-900);
  box-shadow: 0 0 0 5px var(--lime-400), 0 0 0 7px var(--night-900);
}

.rally__touch {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 85%;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rally__step h3 {
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 900;
  font-stretch: 80%;
  text-transform: uppercase;
}

.rally__step p {
  max-width: 34ch;
  line-height: 1.55;
}

.join__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m) var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--night-900);
}

.join__fee {
  max-width: 44ch;
  font-size: var(--step-0);
}

.join__fee a {
  font-weight: 700;
}

.free-court {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-2xl);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-l);
  background: var(--night-900);
  color: var(--white);
  scroll-margin-top: calc(var(--header-h) + var(--space-l));
}

.free-court__title {
  margin-bottom: var(--space-s);
  font-size: var(--step-3);
  font-style: italic;
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
  color: var(--lime-400);
}

.free-court__text p {
  max-width: 50ch;
  margin-bottom: var(--space-l);
  color: var(--petrol-200);
  font-size: var(--step-1);
  line-height: 1.5;
}

.mini-court {
  position: relative;
  aspect-ratio: 1.9 / 1;
  border: 3px solid var(--lime-400);
  background:
    linear-gradient(to right, transparent calc(50% - 2px), var(--white) calc(50% - 2px), var(--white) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(to right, transparent calc(33.3% - 1px), rgb(198 246 72 / 0.7) calc(33.3% - 1px), rgb(198 246 72 / 0.7) calc(33.3% + 1px), transparent calc(33.3% + 1px)),
    linear-gradient(to right, transparent calc(66.7% - 1px), rgb(198 246 72 / 0.7) calc(66.7% - 1px), rgb(198 246 72 / 0.7) calc(66.7% + 1px), transparent calc(66.7% + 1px)),
    var(--night-800);
}

.mini-court__label {
  position: absolute;
  left: 0.8rem;
  top: 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 80%;
  font-size: var(--step-2);
  text-transform: uppercase;
}

.mini-court__stamp {
  position: absolute;
  right: 8%;
  bottom: -1.2rem;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border: 3px solid var(--lime-400);
  border-radius: 50%;
  background: var(--night-900);
  color: var(--lime-400);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 80%;
  font-size: var(--step-1);
  text-transform: uppercase;
  transform: rotate(-14deg);
  box-shadow: inset 0 0 0 4px var(--night-900), inset 0 0 0 6px rgb(198 246 72 / 0.5);
}

/* --- Teams ------------------------------------------------------------- */

.poule-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}

.poule-col {
  display: grid;
  align-content: start;
  gap: var(--space-s);
}

.poule-col__head {
  display: grid;
  gap: 0.4rem;
  padding-bottom: var(--space-s);
  border-bottom: 3px solid var(--ink);
}

.poule-col__head h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 900;
  font-stretch: 80%;
  text-transform: uppercase;
}

.poule-col__head p {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.team-list {
  display: grid;
}

.team-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-fast) linear, padding var(--dur-base) var(--ease-out-expo);
}

.team-row:hover {
  background: rgb(198 246 72 / 0.18);
  padding-inline: 0.6rem;
}

.team-row__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 85%;
  font-size: var(--step-1);
  line-height: 1.1;
  text-transform: uppercase;
}

.team-row__full {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.team-row__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  min-height: 2rem;
  margin-top: 0.2rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--petrol-700);
}

.team-row__contact .icon {
  width: 1rem;
  height: 1rem;
}

.clubs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-xl);
}

.clubs__label {
  margin-right: var(--space-2xs);
  font-weight: 700;
}

/* --- Seizoen (tijdlijn) ------------------------------------------------ */

.season {
  background:
    radial-gradient(ellipse 60% 60% at 10% 100%, rgb(4 88 113 / 0.35), transparent 70%),
    var(--night-900);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--step--1);
  color: var(--petrol-200);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

.legend__dot--play { background: var(--lime-400); }
.legend__dot--off { border: 2px solid var(--petrol-300); }
.legend__dot--today { background: var(--signal); }

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.4rem, 1fr);
  overflow-x: auto;
  padding-bottom: var(--space-s);
  scrollbar-color: var(--night-600) transparent;
}

.tl-month {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 0 0.8rem 0.5rem;
  border-left: 1px solid rgb(250 252 254 / 0.14);
}

.tl-month__name {
  margin-bottom: 0.4rem;
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 900;
  font-stretch: 80%;
  text-transform: uppercase;
}

.tl-month__name small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--petrol-300);
}

.tl-days {
  display: grid;
  gap: 0.35rem;
}

.tl-day {
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr);
  gap: 0 0.55rem;
  align-items: center;
  font-size: var(--step--1);
}

.tl-day--link {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.3rem 0.45rem;
  margin-left: -0.45rem;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color var(--dur-fast) linear;
}

.tl-day--link:hover,
.tl-day--link:focus-visible {
  background: rgb(250 252 254 / 0.08);
}

li.tl-day {
  min-height: 2.75rem;
  padding: 0.3rem 0;
}

.tl-day__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--lime-400);
}

.tl-day__date {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tl-day__info {
  grid-column: 2;
  font-size: var(--step--2);
  color: var(--petrol-200);
}

.tl-day--off .tl-day__dot {
  background: transparent;
  border: 2px solid var(--petrol-300);
}

.tl-day--off .tl-day__date {
  color: var(--petrol-200);
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: rgb(127 203 222 / 0.6);
}

.tl-day--past {
  opacity: 0.45;
}

.tl-day--today .tl-day__dot {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(255 117 39 / 0.3);
}

.tl-day--milestone .tl-day__info {
  color: var(--lime-400);
  font-weight: 700;
}

.season__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

.fact-block {
  padding-top: var(--space-s);
  border-top: 2px solid var(--lime-400);
}

.fact-block h3 {
  margin-bottom: 0.6rem;
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 900;
  font-stretch: 85%;
  text-transform: uppercase;
}

.fact-block p,
.fact-block li {
  color: var(--petrol-200);
  font-size: var(--step--1);
  line-height: 1.55;
}

.fact-block ul {
  display: grid;
  gap: 0.4rem;
}

.fact-block strong {
  color: var(--white);
}

/* --- Locatie ------------------------------------------------------------ */

.venue__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.venue__text {
  display: grid;
  gap: var(--space-m);
  align-content: start;
}

.venue__address {
  font-style: normal;
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
}

.venue__landmark {
  color: var(--ink-2);
  font-size: var(--step-1);
}

.venue__list {
  display: grid;
  gap: 0.5rem;
}

.venue__list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.venue__list .icon {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--lime-700);
  transform: translateY(0.2em);
}

.venue__photo {
  position: relative;
}

.venue__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
}

.venue__photo figcaption {
  position: absolute;
  left: var(--space-s);
  bottom: var(--space-s);
  max-width: calc(100% - 2 * var(--space-s));
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-s);
  background: var(--night-900);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
}

/* --- Bestuur ----------------------------------------------------------- */

.board__people {
  display: grid;
  gap: var(--space-l);
}

.board__faces {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-m);
}

.face {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
}

.face__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  background: var(--night-700);
}

.face__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-base) linear, transform var(--dur-slow) var(--ease-out-expo);
}

.face__photo .face__color {
  opacity: 0;
}

.face:hover .face__color,
.face[aria-selected="true"] .face__color {
  opacity: 1;
}

.face:hover img {
  transform: scale(1.04);
}

.face__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: inherit;
  transition: border-color var(--dur-fast) linear;
}

.face[aria-selected="true"] .face__photo::after {
  border-color: var(--lime-400);
}

.face__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 85%;
  font-size: var(--step-1);
  line-height: 1.1;
  text-transform: uppercase;
}

.face__role {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--petrol-700);
}

.bio {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: var(--space-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.bio__head h3 {
  font-size: var(--step-3);
  font-style: italic;
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
}

.bio__head p {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--petrol-700);
}

.bio__text {
  display: grid;
  gap: var(--space-s);
  max-width: var(--measure);
  color: var(--ink-2);
}

/* --- Documenten -------------------------------------------------------- */

.doc-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}

.doc-group h3 {
  margin-bottom: var(--space-s);
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 900;
  font-stretch: 85%;
  text-transform: uppercase;
}

.doc-list {
  display: grid;
  gap: 0.6rem;
}

.doc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.doc__icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  color: var(--petrol-700);
}

.doc__title {
  font-weight: 700;
  line-height: 1.3;
}

.doc__meta {
  font-size: var(--step--2);
  color: var(--ink-2);
}

.doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.3rem;
}

.doc__actions a,
.doc__actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--petrol-700);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.doc__actions .icon {
  width: 1rem;
  height: 1rem;
}

/* --- FAQ --------------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.faq .section-head {
  position: sticky;
  top: calc(var(--header-h) + var(--space-l));
}

.faq__list .disclosure:first-child {
  border-top: 1px solid var(--line);
}

/* --- Afsluiter --------------------------------------------------------- */

.closing {
  overflow: hidden;
}

.closing__inner {
  display: grid;
  gap: var(--space-xl);
  justify-items: start;
}

.closing__title {
  font-size: clamp(3rem, 1rem + 10vw, 10rem);
  font-stretch: 68%;
}

.closing__title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 3px var(--night-900);
}

/* --- Responsief -------------------------------------------------------- */

@media (max-width: 980px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "statement"
      "body"
      "snapshot";
    gap: var(--space-xl);
  }

  .rally {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-l);
    padding-top: 0;
    padding-left: 3rem;
  }

  .rally::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    border-left: 2.5px dotted var(--night-900);
  }

  .rally__path {
    display: none;
  }

  .rally__step::before {
    top: 0.1rem;
    left: -3rem;
  }

  .free-court {
    grid-template-columns: minmax(0, 1fr);
  }

  .free-court__visual {
    max-width: 26rem;
  }

  .poule-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season__facts {
    grid-template-columns: 1fr 1fr;
  }

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

  .board__faces {
    grid-template-columns: repeat(5, minmax(9rem, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2xs);
  }

  .face {
    scroll-snap-align: start;
  }

  .bio {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-m);
  }

  .doc-groups {
    grid-template-columns: 1fr 1fr;
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-l);
  }

  .faq .section-head {
    position: static;
  }
}

@media (max-width: 640px) {
  .statement {
    max-width: none;
  }

  .about__body {
    font-size: var(--step-0);
  }

  .snapshot {
    width: min(100%, 20rem);
  }

  .join__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .join__cta .btn {
    width: 100%;
  }

  .free-court__text .btn {
    width: 100%;
  }

  .mini-court__stamp {
    width: 5.2rem;
    height: 5.2rem;
    font-size: var(--step-0);
  }

  .poule-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-m);
    overflow: visible;
  }

  .tl-month {
    border-left: 0;
    border-top: 1px solid rgb(250 252 254 / 0.14);
    padding: var(--space-s) 0 0;
  }

  .tl-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-s);
  }

  .tl-day--link {
    margin-left: 0;
  }

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

  .board__faces {
    grid-template-columns: repeat(5, minmax(7.5rem, 1fr));
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }

  .doc-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing__title span {
    -webkit-text-stroke-width: 2px;
  }

  .venue__text .btn-row .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .audiences li {
    font-size: var(--step--2);
  }

  .face__name {
    font-size: var(--step-0);
  }

  .doc {
    padding: 0.8rem;
  }
}
