/* ---------------------------------------------------------------------------
   West End Family Pride — brand styles
   Palette and texture pulled from the poster/brand Figma assets.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Kokoschka";
  src: url("../assets/fonts/Kokoschka.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #e8dbce;
  --cream-soft: #efe5da;
  --ink: #262626;
  --red: #c43131;
  --orange: #d4821e;
  --yellow: #c9bf19;
  --green: #026b1b;
  --blue: #1a42a3;
  --purple: #7e3c88;
  --pink: #d98bb5;

  --font-display: "Kokoschka", "Luckiest Guy", "Arial Black", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* keep blend-mode layers (grain) composited against this element */
  isolation: isolate;
  overflow-x: clip;
}

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

a { color: var(--blue); }

::selection { background: var(--yellow); color: var(--ink); }

/* Paper grain over everything, multiplied like the posters ------------------ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: url("../assets/texture.png");
  background-size: 1100px auto;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* Type ---------------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0.35em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link ------------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Header --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__logo img {
  display: block;
  width: clamp(140px, 18vw, 200px);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav a:hover { color: var(--red); }

.site-nav .nav-hide-sm { display: none; }
@media (min-width: 640px) {
  .site-nav .nav-hide-sm { display: inline; }
}

/* Buttons -------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 0.85rem 1.6rem 0.65rem; /* Luckiest Guy sits high; rebalance */
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 0.25rem 0.25rem 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover, .btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 0.45rem 0.45rem 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0.1rem 0.1rem 0 var(--ink);
}

.btn--donate { background: var(--red); color: var(--cream); }
.btn--ghost { background: var(--cream); color: var(--ink); }
.btn--big { font-size: clamp(1.4rem, 2.5vw, 1.9rem); padding: 1.1rem 2.2rem 0.85rem; }

.site-header .btn {
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem 0.45rem;
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
}

/* Hero ------------------------------------------------------------------------ */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x) clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__figures { position: relative; }

.hero__figures img {
  display: block;
  width: 116%;
  max-width: none;
  margin-left: -8%;
  animation: sway 9s ease-in-out infinite alternate;
  transform-origin: 50% 55%;
}

@keyframes sway {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg); }
}

.hero__title {
  position: relative;
  font-size: clamp(3.4rem, 10.5vw, 8rem);
  line-height: 0.88;
}

.hero__title > span:not(.hero__free-badge) { display: block; }

.hero__when {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  color: var(--red);
}

.hero__where {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--blue);
}

.hero__blurb {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.hero__cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* sits in the negative space to the right of "PRIDE"; em-based so it
   scales with the title type */
.hero__free-badge {
  position: absolute;
  right: 0.3em;
  bottom: -0.35em;
  width: 3.6em;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.36em;
  border-radius: 50%;
  border: 3px solid var(--ink);
  rotate: 12deg;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .hero__figures { max-width: 320px; margin: 0 auto; }
  .hero__blurb { margin-inline: auto; }
  .hero__cta { justify-content: center; }
}

/* Activity ticker -------------------------------------------------------------- */
.ticker {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: 0.8rem 0 0.55rem;
  background: var(--cream-soft);
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker__track span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  white-space: nowrap;
}

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

.c-red    { color: var(--red); }
.c-orange { color: var(--orange); }
.c-yellow { color: #a89f0e; } /* darkened yellow for legibility on cream */
.c-green  { color: var(--green); }
.c-blue   { color: var(--blue); }
.c-purple { color: var(--purple); }
.c-pink   { color: #c0589a; }

/* Sections ---------------------------------------------------------------------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x);
}

.section__intro {
  max-width: 42rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
}

/* Schedule ------------------------------------------------------------------------
   The schedule is the full poster artwork dropped in as one SVG
   (assets/schedule.svg); its text is outlined, so an accessible text
   version lives alongside it in the markup. On small screens it scrolls
   sideways instead of shrinking into illegibility. */
.schedule-figure {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-figure img {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

/* Artists --------------------------------------------------------------------------- */
.artists__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: start;
}

.artist-card {
  text-align: center;
}

.artist-card__poster {
  display: block;
  border: 3px solid var(--ink);
  border-radius: 0.75rem;
  box-shadow: 0.5rem 0.5rem 0 var(--ink);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.artist-card:nth-child(1) .artist-card__poster { rotate: -1.4deg; }
.artist-card:nth-child(2) .artist-card__poster { rotate: 1.1deg; }
.artist-card:nth-child(3) .artist-card__poster { rotate: -0.9deg; }

.artist-card__poster img { display: block; }

.artist-card:hover .artist-card__poster {
  transform: translate(-3px, -6px) scale(1.015);
  box-shadow: 0.8rem 0.9rem 0 var(--ink);
}

.artist-card h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.artist-card__time {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.45rem 1rem 0.3rem;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
}

.artist-card:nth-child(1) .artist-card__time { background: var(--yellow); color: var(--ink); }
.artist-card:nth-child(2) .artist-card__time { background: var(--green); color: var(--cream); }
.artist-card:nth-child(3) .artist-card__time { background: var(--blue); color: var(--cream); }

.artist-card p {
  max-width: 30rem;
  margin: 0.75rem auto 0;
  font-weight: 700;
}

/* Donate band ------------------------------------------------------------------------ */
.donate-band {
  background: var(--ink);
  color: var(--cream);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.donate-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: center;
}

.donate-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--cream); }

.donate-band h2 .c-red { color: #e06464; }

.donate-band p { font-weight: 700; max-width: 34rem; }

.donate-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.donate-band .btn { border-color: var(--cream); box-shadow: 0.3rem 0.3rem 0 rgb(232 219 206 / 45%); }
.donate-band .btn:hover { box-shadow: 0.5rem 0.5rem 0 rgb(232 219 206 / 45%); }

.donate-band__volunteer { color: var(--cream); font-weight: 800; }

@media (max-width: 760px) {
  .donate-band__inner { grid-template-columns: 1fr; text-align: center; }
  .donate-band p { margin-inline: auto; }
  .donate-band__actions { align-items: center; }
}

/* Footer ------------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__logo img { width: 180px; display: block; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.site-footer a:hover { color: var(--red); }

.site-footer__meta {
  flex-basis: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
}

/* About page ----------------------------------------------------------------------------- */
.about {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) clamp(3rem, 7vw, 5rem);
}

.about h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 1.5rem; }

.about p { margin: 0 0 1.35rem; font-size: 1.1rem; }

.about p:last-of-type { margin-bottom: 2.25rem; }

.about__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Intro / scroll reveal animations --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal--pop {
  transform: translateY(18px) scale(0.94);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* If JS never runs, never hide content */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__figures img { animation: none; }
  .ticker__track { animation: none; }
  .btn, .sched-card, .artist-card__poster { transition: none; }
}
