@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Black.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  --purple: #7b0165;
  --purple-dark: #4a003d;
  --red: #a70237;
  --cream: #fbf7f2;
  --paper: #ffffff;
  --ink: #241d24;
  --muted: #706671;
  --line: #e7dfe6;
  --shadow: 0 28px 70px rgba(73, 26, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--purple);
  font-weight: 900;
  text-decoration-color: rgba(123, 1, 101, 0.35);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

.shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.gate-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 20%, rgba(167, 2, 55, 0.12), transparent 28rem),
    radial-gradient(circle at 5% 90%, rgba(123, 1, 101, 0.1), transparent 32rem),
    var(--cream);
}

.gate {
  display: grid;
  width: min(560px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  align-content: center;
  gap: 52px;
  padding: 48px 0;
}

.gate__logo {
  width: min(360px, 90%);
  height: auto;
  margin: 0 auto;
}

.gate__form {
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid rgba(123, 1, 101, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.gate__label {
  display: block;
  margin-bottom: 12px;
  color: var(--purple-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.gate__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.gate__input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid rgba(123, 1, 101, 0.2);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}

.gate__input:focus {
  border-color: var(--purple);
  outline: 3px solid rgba(123, 1, 101, 0.14);
}

.gate__submit {
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: white;
  font-weight: 900;
}

.gate__submit:hover,
.gate__submit:focus-visible {
  background: var(--purple-dark);
}

.gate__error {
  margin: 14px 0 0;
  color: var(--red);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(118deg, rgba(61, 0, 51, 0.99), rgba(123, 1, 101, 0.97) 58%, rgba(167, 2, 55, 0.92));
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -38%;
  width: 64rem;
  height: 38rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-9deg);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.58;
}

.hero__glow--one {
  top: -18rem;
  right: 1%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(255, 102, 133, 0.32), transparent 66%);
}

.hero__glow--two {
  bottom: -20rem;
  left: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 66%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: min(760px, 82vh);
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(30px, 5vw, 64px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.hero__logo {
  width: clamp(190px, 24vw, 310px);
  height: auto;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  font-size: clamp(3.6rem, 9vw, 8.8rem);
}

h2 {
  max-width: 830px;
  margin-bottom: clamp(34px, 6vw, 62px);
  color: var(--purple);
  font-size: clamp(2.8rem, 6.2vw, 6.5rem);
}

.chapter-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(123, 1, 101, 0.1);
  background: rgba(251, 247, 242, 0.94);
  backdrop-filter: blur(16px);
}

.chapter-nav__inner {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-top: 17px;
  padding-bottom: 17px;
  scrollbar-width: none;
}

.chapter-nav__inner::-webkit-scrollbar {
  display: none;
}

.chapter-nav a {
  flex: 0 0 auto;
  color: var(--purple-dark);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible {
  color: var(--red);
}

.campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  padding-top: clamp(44px, 8vw, 104px);
  padding-bottom: 120px;
}

.campaign-content {
  min-width: 0;
}

.quick-actions {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  margin: 0 0 clamp(22px, 3vw, 30px);
}

.quick-donate {
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(123, 1, 101, 0.12);
  border-radius: 24px;
  color: var(--purple-dark);
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  font-weight: 900;
}

.quick-actions__followup {
  margin: 0 0 clamp(34px, 5vw, 56px);
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
}

.quick-donate__trigger,
.mailing-list-link {
  margin-left: 0.2em;
  padding: 0.38em 0.72em;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.14em;
}

.mailing-list-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
}

.quick-donate__trigger:hover,
.quick-donate__trigger:focus-visible,
.mailing-list-link:hover,
.mailing-list-link:focus-visible {
  background: var(--purple-dark);
  outline: 3px solid rgba(123, 1, 101, 0.2);
}

.chapter {
  scroll-margin-top: 84px;
  padding: clamp(84px, 11vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.chapter__number {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.chapter > p:not(.chapter__number) {
  max-width: 780px;
  margin: 0 0 1.55em;
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
}

.chapter > p:last-child {
  margin-bottom: 0;
}

.chapter strong {
  color: var(--red);
  font-weight: 900;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #160412;
  box-shadow: var(--shadow);
}

.carousel--activity {
  aspect-ratio: 4 / 3;
}

.carousel--theatre {
  aspect-ratio: 4 / 3;
  margin: clamp(48px, 8vw, 80px) 0;
}

.carousel__viewport,
.carousel__image {
  width: 100%;
  height: 100%;
}

.carousel__image {
  display: block;
  object-fit: cover;
  opacity: 1;
  transition: opacity 280ms ease;
}

.carousel--theatre .carousel__image {
  background: #100f11;
  object-fit: contain;
}

.carousel.is-changing .carousel__image {
  opacity: 0.18;
}

.carousel__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  background: rgba(36, 29, 36, 0.78);
  font-size: 1.35rem;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.carousel__control:hover,
.carousel__control:focus-visible {
  background: var(--purple);
  outline: 3px solid rgba(255, 255, 255, 0.42);
}

.carousel__control--previous {
  left: 18px;
}

.carousel__control--next {
  right: 18px;
}

.carousel__progress {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.carousel__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: white;
  transition: width 280ms ease;
}

.fundraising {
  position: static;
}

.fundraising__inner {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(130px, 0.58fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 118, 148, 0.25), transparent 50%),
    var(--purple-dark);
  box-shadow: var(--shadow);
}

.thermometer {
  position: relative;
  display: grid;
  height: 470px;
  place-items: center;
  padding: 45px 0 72px;
}

.thermometer__tube {
  position: relative;
  width: 38px;
  height: 100%;
  overflow: hidden;
  border: 5px solid white;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.14);
}

.thermometer__fill {
  position: absolute;
  right: 5px;
  bottom: 0;
  left: 5px;
  height: 0;
  border-radius: 999px 999px 0 0;
  background: #ff5e7a;
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.thermometer__bulb {
  position: absolute;
  bottom: 27px;
  width: 86px;
  height: 86px;
  border: 5px solid white;
  border-radius: 50%;
  background: #ff5e7a;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.12);
}

.thermometer__goal,
.thermometer__raised {
  position: absolute;
  left: 50%;
  color: white;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
}

.thermometer__goal {
  top: 0;
}

.thermometer__raised {
  bottom: 0;
}

.match-link {
  color: white;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-decoration-color: #ffb0c2;
}

.news {
  margin-top: 44px;
  padding-top: 25px;
  border-top: 5px solid var(--red);
}

.news h2 {
  margin: 0 0 22px;
  color: var(--purple-dark);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-transform: none;
}

.news__cards {
  display: grid;
  gap: 18px;
}

.news-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(123, 1, 101, 0.1);
  border-radius: 18px;
  color: var(--purple-dark);
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(73, 26, 62, 0.1);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.news-card:hover,
.news-card:focus-visible {
  color: var(--red);
  box-shadow: 0 20px 44px rgba(73, 26, 62, 0.17);
  outline: 3px solid rgba(123, 1, 101, 0.18);
  transform: translateY(-3px);
}

.news-card__image-wrap {
  display: block;
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
  background: var(--purple-dark);
}

.news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.news-card:hover .news-card__image,
.news-card:focus-visible .news-card__image {
  transform: scale(1.025);
}

.news-card__body {
  position: relative;
  display: block;
  padding: 18px 46px 21px 20px;
}

.news-card__body::after {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--red);
  content: "↗";
  font-size: 1.2rem;
  line-height: 1;
}

.news-card__publication,
.news-card__headline {
  display: block;
}

.news-card__publication {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.news-card__headline {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
}

.site-footer {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 70px 20px;
  background: var(--purple-dark);
}

.site-footer img {
  width: min(310px, 70vw);
  height: auto;
}

.donation-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 34px 100px rgba(24, 4, 19, 0.46);
}

.donation-dialog::backdrop {
  background: rgba(37, 3, 30, 0.76);
  backdrop-filter: blur(8px);
}

.donation-dialog__inner {
  position: relative;
  padding: clamp(34px, 7vw, 64px);
  background:
    radial-gradient(circle at 92% 8%, rgba(167, 2, 55, 0.1), transparent 18rem),
    var(--cream);
}

.donation-dialog h2 {
  max-width: 560px;
  margin: 0 0 34px;
  padding-right: 32px;
  font-size: clamp(2rem, 6vw, 3.7rem);
}

.donation-dialog p {
  margin: 0 0 1.35em;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.donation-dialog p:last-child {
  margin-bottom: 0;
}

.donation-dialog__close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--purple-dark);
  font-size: 2rem;
  line-height: 1;
}

.donation-dialog__close:hover,
.donation-dialog__close:focus-visible {
  background: var(--red);
  outline: 3px solid rgba(123, 1, 101, 0.2);
}

@media (max-width: 1040px) {
  .campaign-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .fundraising__inner {
    grid-template-columns: 100px 1fr;
    padding: 26px 20px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

  .hero,
  .hero__inner {
    min-height: 680px;
  }

  .chapter-nav__inner {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .campaign-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .fundraising {
    position: static;
    order: 2;
    width: 100%;
    margin-top: 70px;
  }

  .campaign-content {
    order: 1;
  }

  .fundraising__inner {
    grid-template-columns: minmax(110px, 180px) 1fr;
    padding: 34px;
  }

  .news {
    margin-top: 54px;
  }

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

  .thermometer {
    height: 410px;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.6;
  }

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

  .hero,
  .hero__inner {
    min-height: 600px;
  }

  h1 {
    font-size: clamp(2.5rem, 11.5vw, 4rem);
  }

  h2 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .quick-donate__trigger {
    display: block;
    margin: 14px 0 0;
  }

  .carousel {
    margin-right: -14px;
    margin-left: -14px;
    border-radius: 0;
  }

  .carousel__control {
    width: 44px;
    height: 44px;
  }

  .carousel__control--previous {
    left: 12px;
  }

  .carousel__control--next {
    right: 12px;
  }

  .fundraising__inner {
    grid-template-columns: 116px 1fr;
    gap: 20px;
    padding: 26px 20px;
  }

  .thermometer {
    height: 360px;
  }

  .match-link {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

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

  .donation-dialog {
    border-radius: 22px;
  }

  .donation-dialog__inner {
    padding: 42px 24px 30px;
  }

  .donation-dialog h2 {
    padding-right: 30px;
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
