@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/YoungSerif-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/NotoSans-latin.woff2') format('woff2');
}

:root {
  --teal: #00687a;
  --teal-dark: #004a57;
  --coral: #ff8a93;
  --coral-deep: #c2404f;
  --coral-deep-hover: #a83542;
  --peach: #ffc09e;
  --cream: #fce5cd;
  --ink: #1c1c1c;
  --paper: #fffaf3;

  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-display: 'Young Serif', serif;
  --font-body: 'Noto Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--teal);
  height: 64px;
  display: flex;
  align-items: center;
}

.site-header__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  background: var(--teal-dark);
  line-height: 0;
}

.hero__banner {
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 1024;
  max-height: 528px;
  object-fit: cover;
}

/* ---------- Intro ---------- */

.intro {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.intro__text h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.intro__text p {
  font-size: 1.05rem;
  max-width: 60ch;
}

.intro__image img {
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(0, 104, 122, 0.35);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--coral-deep);
  color: var(--paper);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--coral-deep-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(194, 64, 79, 0.5);
}

.btn--primary:active { transform: translateY(0); }

.btn--pending {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  opacity: 0.75;
}

/* ---------- Band ---------- */

.band {
  background: var(--coral);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.band h2 {
  color: var(--teal);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  text-align: center;
}

.sparkle {
  width: clamp(20px, 3vw, 32px);
  height: clamp(20px, 3vw, 32px);
  fill: var(--cream);
  flex-shrink: 0;
}

/* ---------- Events ---------- */

.events {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.events__heading {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.events__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.event-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(0, 104, 122, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px -20px rgba(0, 104, 122, 0.38);
}

.event-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.event-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
}

.event-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.1em;
}

.event-card__meta {
  font-weight: 600;
  color: var(--coral-deep);
  font-size: 0.9rem;
  margin: 0;
}

.event-card__body > p:not(.event-card__meta) {
  margin: 0 0 0.5rem;
  flex: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--coral);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter) 1.5rem;
}

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

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
  margin: 0;
}

.site-footer__email {
  text-decoration: none;
  font-weight: 600;
  color: var(--teal-dark);
}

.social-link {
  color: var(--teal);
  transition: transform 0.15s ease, color 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--teal-dark);
  transform: scale(1.08);
}

.site-footer__copyright {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  color: var(--teal-dark);
  opacity: 0.75;
}

/* ---------- Scroll reveal ---------- */

/* Reveal is opt-in: JS adds .pre-reveal only once it confirms it can also
   remove it again. Content is visible by default so a JS failure never
   hides it permanently. */
.reveal.pre-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.pre-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .intro__inner {
    grid-template-columns: 1fr;
  }

  .intro__image { order: -1; }

  .events__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 520px) {
  .nav { gap: 1rem; }
  .wordmark { font-size: 1.1rem; }
}
