/* ==========================================================================
   Sonify

   Palet (uit onze eigen foto's: UV-licht, lasers, fluo)
     UV-nacht   #140c3d  basis
     Diep       #0c0726  footer
     UV-paars   #25176b  ledenband
     Fluo roze  #ff3fa4  knoppen
     Laser cyaan #45e9ff links en focus
     Wit        #f6f3ff  tekst

   Letters
     Anton        titels, dezelfde soort letter als op onze affiches
     Albert Sans  lopende tekst en logo
   ========================================================================== */

:root {
  --uv-nacht: #140c3d;
  --diep: #0c0726;
  --uv-paars: #25176b;
  --fluo-roze: #ff3fa4;
  --fluo-roze-licht: #ff72bd;
  --laser-cyaan: #45e9ff;
  --wit: #f6f3ff;
  --lavendel: #b8aee6;
  --lijn: rgba(246, 243, 255, 0.12);
  --gaffa: #26232e;

  --font-affiche: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-tekst: "Albert Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --t-klein: 0.875rem;   /* 14px */
  --t-basis: 1.125rem;   /* 18px */
  --t-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem); /* 19 tot 21px */
  --t-h3: 1.5rem;        /* 24px */
  --t-h2: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); /* 36 tot 60px */

  --breedte: 75rem;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
  --sectie: clamp(4.5rem, 10vw, 8.5rem);

  color-scheme: dark;
}

/* Basis
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background: var(--uv-nacht);
  color: var(--wit);
  font-family: var(--font-tekst);
  font-size: var(--t-basis);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-affiche);
  font-weight: 400;
  line-height: 0.95;
  text-wrap: balance;
}

h2 {
  font-size: var(--t-h2);
}

h3 {
  font-size: var(--t-h3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

::selection {
  background: var(--fluo-roze);
  color: var(--uv-nacht);
}

:focus-visible {
  outline: 3px solid var(--laser-cyaan);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] {
  scroll-margin-top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--marge), var(--breedte));
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

/* Alleen voor schermlezers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--marge);
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--wit);
  color: var(--uv-nacht);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* Knoppen en links
   ========================================================================== */

.button {
  display: inline-flex;
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75em 1.5em;
  border: 2px solid transparent; /* zichtbaar in Windows-contrastmodus */
  border-radius: 999px;
  background: var(--fluo-roze);
  color: var(--uv-nacht);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--fluo-roze-licht);
}

.button:active {
  transform: translateY(1px);
}

.button--small {
  min-height: 2.5rem;
  padding: 0.5em 1.1em;
  font-size: 0.9375rem;
}

.button--large {
  padding: 0.95em 1.85em;
  font-size: 1.125rem;
}

@media (max-width: 24em) {
  .button--large {
    padding-inline: 1.25em;
    font-size: 1rem;
  }
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--laser-cyaan);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--wit);
}

/* Header
   ========================================================================== */

.site-header {
  background: var(--uv-nacht);
  border-bottom: 1px solid var(--lijn);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.9rem;
}

.site-header .button {
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wit);
  text-decoration: none;
}

.logo__oval {
  padding: 0.4em 1em 0.36em;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

/* Heel smalle schermen: logo en knop op één rij houden */
@media (max-width: 22.5em) {
  .logo__oval {
    padding-inline: 0.8em;
  }

  .site-header .button {
    padding-inline: 0.9em;
  }
}

@media (min-width: 48em) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 12, 61, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  [id] {
    scroll-margin-top: 5.5rem;
  }
}

/* Intro
   ========================================================================== */

.intro {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
}

.intro__heading {
  container-type: inline-size;
}

.intro__title {
  font-size: clamp(3rem, 1.5rem + 8vw, 6.5rem);
  /* schaalt mee met de kolombreedte, zodat "evenementen" altijd op één regel past */
  font-size: clamp(3rem, 15.5cqi, 6.5rem);
  line-height: 0.92;
  overflow-wrap: break-word; /* vangnet als het lettertype niet laadt */
  -webkit-hyphens: auto;
  hyphens: auto;
}

.intro__text {
  max-width: 34em;
  margin-bottom: 1.75rem;
  font-size: var(--t-lead);
  line-height: 1.5;
}

.intro__text a {
  text-decoration-color: var(--laser-cyaan);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.intro__text a:hover {
  color: var(--laser-cyaan);
}

@media (min-width: 68em) {
  .intro__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: end;
  }

  .intro__title {
    font-size: clamp(3rem, 1.5rem + 5.5vw, 8rem);
    font-size: clamp(3rem, 15.5cqi, 8.5rem);
  }
}

/* Foto van de fuifzaal: de lichten gaan aan bij het laden
   ========================================================================== */

.stage {
  position: relative;
  background: #000;
}

.stage__img {
  width: 100%;
  height: clamp(16rem, 44vw, 40rem);
  object-fit: cover;
  object-position: 50% 45%;
}

.stage__credit {
  position: absolute;
  left: var(--marge);
  bottom: 0.9rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(12, 7, 38, 0.7);
  color: var(--lavendel);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: no-preference) {
  .stage__img {
    animation: lichten-aan 1.8s ease-out 0.2s both;
  }
}

@keyframes lichten-aan {
  0%   { filter: brightness(0.15) saturate(0.4); }
  40%  { filter: brightness(0.6) saturate(0.9); }
  52%  { filter: brightness(0.42) saturate(0.9); }
  100% { filter: brightness(1) saturate(1); }
}

/* Eigen fuiven: affiches met gaffatape
   ========================================================================== */

.fuiven {
  padding-block: var(--sectie);
  overflow-x: hidden;
  overflow-x: clip;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.section-intro p {
  color: var(--lavendel);
  font-size: var(--t-lead);
}

.wall {
  display: grid;
  gap: clamp(4rem, 9vw, 6.5rem);
}

.poster {
  display: grid;
  gap: 2rem 3.5rem;
  align-items: center;
}

.poster__caption h3 {
  margin-bottom: 0.5rem;
}

.poster__caption p {
  max-width: 30em;
  color: var(--lavendel);
}

.poster__sheet {
  position: relative;
  transform: rotate(-1.2deg);
  box-shadow: 0 1.75rem 2.5rem -1.5rem rgba(3, 1, 15, 0.9);
}

.poster--flip .poster__sheet {
  transform: rotate(1deg);
}

.poster__sheet img {
  width: 100%;
}

.tape {
  position: absolute;
  z-index: 1;
  top: -0.4rem;
  width: 6.5rem;
  height: 1.75rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px),
    var(--gaffa);
  /* afgescheurde uiteinden */
  clip-path: polygon(2% 0, 98% 0, 100% 16%, 97% 33%, 100% 50%, 96% 67%, 100% 84%, 98% 100%, 2% 100%, 0 84%, 3% 67%, 0 50%, 4% 33%, 0 16%);
}

.tape--links {
  left: -2.4rem;
  transform: rotate(-34deg);
}

.tape--rechts {
  right: -2.4rem;
  transform: rotate(34deg);
}

@media (max-width: 47.99em) {
  .tape {
    top: -0.3rem;
    width: 4.75rem;
    height: 1.4rem;
  }

  .tape--links {
    left: -1.1rem;
  }

  .tape--rechts {
    right: -1.1rem;
  }
}

@media (min-width: 56em) {
  .poster {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }

  .poster--flip {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }

  .poster--flip .poster__sheet {
    order: 2;
  }
}

/* Voor kringen en voor het team
   ========================================================================== */

.pillars {
  padding-bottom: var(--sectie);
}

.pillars__grid {
  display: grid;
  gap: clamp(4rem, 9vw, 5rem) clamp(2rem, 5vw, 4.5rem);
}

.pillar__media {
  margin-bottom: 1.75rem;
}

.pillar__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

.pillar__media figcaption {
  margin-top: 0.65rem;
  color: var(--lavendel);
  font-size: var(--t-klein);
}

.pillar__foto--team {
  object-position: 50% 30%;
}

.pillar h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.125rem, 1.6rem + 1.6vw, 3rem);
}

.pillar p {
  max-width: 32em;
}

@media (min-width: 56em) {
  .pillars__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .pillar--offset {
    margin-top: clamp(4rem, 10vw, 9rem);
  }
}

/* Word lid
   ========================================================================== */

.join {
  padding-block: var(--sectie);
  background: var(--uv-paars);
  overflow-x: hidden;
  overflow-x: clip;
}

.join__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.join h2 {
  margin-bottom: 1.1rem;
}

.join__body p {
  max-width: 28em;
  font-size: var(--t-lead);
}

.join__poster .poster__sheet {
  transform: rotate(1.5deg);
}

/* Formulier */
.join__form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.form__honey {
  display: none;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 1rem;
  font-weight: 700;
}

.field__optioneel {
  color: var(--lavendel);
  font-weight: 500;
}

.field__uitleg,
.form__privacy {
  color: var(--lavendel);
  font-size: var(--t-klein);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(184, 174, 230, 0.6);
  border-radius: 10px;
  background: var(--uv-nacht);
  color: var(--wit);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--lavendel);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--laser-cyaan);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--fluo-roze);
}

.join__form .button {
  justify-self: start;
  margin-top: 0.35rem;
}

@media (min-width: 56em) {
  .join__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "tekst formulier"
      "affiche formulier";
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .join__body {
    grid-area: tekst;
  }

  .join__form {
    grid-area: formulier;
    max-width: none;
  }

  .join__poster {
    grid-area: affiche;
  }
}

/* Footer
   ========================================================================== */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  background: var(--diep);
  font-size: 1rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__about p {
  max-width: 26em;
  margin-top: 1.1rem;
  color: var(--lavendel);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer__nav a,
.footer__contact a {
  color: var(--wit);
  text-decoration: none;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--laser-cyaan);
  text-decoration: underline;
}

.footer__contact h2 {
  margin-bottom: 0.55rem;
  font-family: var(--font-tekst);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.footer__contact p {
  color: var(--lavendel);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lijn);
  color: var(--lavendel);
  font-size: var(--t-klein);
}

.footer__bottom a {
  color: var(--lavendel);
}

.footer__bottom a:hover {
  color: var(--wit);
}

@media (min-width: 48em) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Windows-contrastmodus: tape is decoratie */
@media (forced-colors: active) {
  .tape {
    display: none;
  }
}
