/* JP Fanclub — expres een beetje te veel fanclub */

:root {
  --red: #c62828;
  --red-deep: #8e0000;
  --leaf: #2e7d32;
  --leaf-bright: #66bb6a;
  --gold: #f6c453;
  --cream: #fff8f0;
  --paper: #ffe8d6;
  --ink: #2b1d12;
  --muted: #6b4f3a;
  --stripe: #ffccbc;
  --max: 42rem;
  --font: "Fredoka", system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 196, 83, 0.35), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(198, 40, 40, 0.18), transparent 40%),
    repeating-linear-gradient(
      -18deg,
      var(--cream) 0 28px,
      #fff3e6 28px 56px
    );
  min-height: 100vh;
}

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

a {
  color: var(--red-deep);
}

/* Marquee ticker */

.ticker {
  overflow: hidden;
  background: var(--red);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding: 0.45rem 0;
  animation: scroll-x 28s linear infinite;
}

.ticker__track span {
  white-space: nowrap;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.7rem clamp(0.9rem, 3vw, 1.5rem);
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--stripe);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}

.brand__logo {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.topbar__nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.topbar__nav a:hover {
  color: var(--red);
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) 1.25rem 2.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.hero__stamp {
  position: absolute;
  top: 1.2rem;
  right: clamp(0.5rem, 6vw, 2rem);
  rotate: 12deg;
  padding: 0.35rem 0.65rem;
  border: 3px solid var(--red);
  border-radius: 0.35rem;
  color: var(--red);
  font-family: var(--hand);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.7);
  animation: stamp-wiggle 3.5s ease-in-out infinite;
}

.hero__apple {
  width: min(70vw, 16rem);
  height: auto;
  margin: 0.5rem 0 0.75rem;
  filter: drop-shadow(0 12px 18px rgba(198, 40, 40, 0.25));
  animation: bob 4s ease-in-out infinite;
}

.hero__brand {
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--gold);
}

.hero__title {
  margin: 0.6rem 0 0.75rem;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: var(--ink);
}

.hero__lede {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero__counter {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--hand);
}

.hero__wink {
  opacity: 0.75;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 3px solid var(--red-deep);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--gold);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--gold);
}

.btn--ghost {
  background: var(--cream);
  color: var(--red-deep);
}

/* Blocks */

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 4vw, 1.5rem);
}

.block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: var(--red-deep);
}

.block p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.block--appel {
  max-width: min(52rem, 100%);
}

.appel-grid {
  display: grid;
  gap: 1.25rem;
  background: var(--paper);
  border: 3px solid var(--red);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 6px 6px 0 rgba(46, 125, 50, 0.25);
}

.quote {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border-left: 6px solid var(--leaf);
  border-radius: 0.75rem;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: normal;
}

.hint {
  font-size: 0.98rem;
}

/* Gallery */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.shot {
  margin: 0;
}

.shot label {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px dashed var(--red);
  border-radius: 1rem;
  background:
    repeating-linear-gradient(
      45deg,
      #fff,
      #fff 10px,
      var(--paper) 10px,
      var(--paper) 20px
    );
  cursor: pointer;
}

.shot label:hover {
  border-style: solid;
  border-color: var(--leaf);
}

.shot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.shot__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--red);
  z-index: 0;
}

.shot__empty small {
  font-weight: 400;
  color: var(--muted);
}

.shot figcaption {
  margin-top: 0.4rem;
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--muted);
}

.shot.is-filled .shot__empty {
  display: none;
}

.shot.is-filled label {
  border-style: solid;
}

/* Rules */

.block--rules {
  background: color-mix(in srgb, var(--leaf-bright) 18%, transparent);
  border-block: 3px dotted var(--leaf);
  max-width: none;
  padding-inline: max(1rem, calc(50% - 21rem));
}

.rules {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink);
}

.rules li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.rules li::marker {
  color: var(--red);
  font-weight: 700;
}

/* Join */

.block--join {
  text-align: center;
  padding-bottom: 3rem;
}

.status {
  min-height: 1.5em;
  margin: 1rem auto 0;
  max-width: 26rem;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--leaf);
}

.status.is-pop {
  animation: pop-in 0.45s ease both;
}

/* Footer */

.footer {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem 2rem;
  border-top: 3px solid var(--gold);
  background: var(--red);
  color: #fff;
  text-align: center;
}

.footer a {
  color: var(--gold);
}

.footer p {
  margin: 0;
}

.footer__tiny {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Motion */

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-0.55rem) rotate(2deg);
  }
}

@keyframes stamp-wiggle {
  0%,
  100% {
    rotate: 12deg;
  }
  50% {
    rotate: 8deg;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 720px) {
  .appel-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
  }

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

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

  .ticker__track,
  .hero__apple,
  .hero__stamp,
  .status.is-pop {
    animation: none !important;
  }
}
