/* ============================================
   Roodstock 13 — styles.css
   Mobile-first. Palette pulled from the event poster.
   ============================================ */

:root {
  --red: #cf2027;
  --red-dark: #a91922;
  --black: #161311;
  --white: #ffffff;
  --cream: #fbf3e1;
  --blue: #3f8fc0;
  --blue-dark: #2f6d94;
  --yellow: #f2d675;
  --yellow-dark: #e0b93f;
  --olive: #7c8a34;
  --olive-dark: #5f6a27;

  --font-display: "Fredoka", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

section {
  padding: 3.25rem 0;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  max-width: 62ch;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 3px solid transparent;
  transition: transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-olive {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 4px solid var(--black);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand .num {
  color: var(--red);
  font-style: italic;
}

.nav-toggle-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--black);
  border-radius: 8px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-nav {
  display: none;
  width: 100%;
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
}

.site-nav .donate-link {
  color: var(--red);
}

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

.hero {
  position: relative;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(207, 32, 39, 0.88) 0%, rgba(169, 25, 34, 0.93) 60%, rgba(22, 19, 17, 0.9) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.hero-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  margin: -0.3em 0 1.1em;
}

.ribbon {
  display: inline-block;
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  max-width: 32ch;
}

.hero-tagline {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  max-width: 40ch;
}

/* ---------- Invite section ---------- */

.invite {
  background: var(--white);
}

.invite-grid {
  display: grid;
  gap: 2rem;
}

.invite p {
  font-size: 1.05rem;
}

.invite-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--black);
}

/* ---------- Anniversary callout ---------- */

.anniversary {
  background: var(--blue);
  color: var(--white);
  position: relative;
}

.anniversary h2 {
  color: var(--white);
}

.anniversary .section-label {
  color: var(--yellow);
}

.anniversary-box {
  background: rgba(0, 0, 0, 0.18);
  border: 3px solid var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- What to Expect ---------- */

.expect {
  background: var(--cream);
}

.card-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(22, 19, 17, 0.12);
}

.card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
}

.card-sponsor {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--olive-dark);
  text-decoration: none;
}

a.card-sponsor:hover {
  text-decoration: underline;
}

.card-links {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.card-links a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
}

/* ---------- Gallery ---------- */

.gallery {
  background: var(--black);
  color: var(--white);
}

.gallery .section-label {
  color: var(--yellow);
}

.gallery h2 {
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.gallery-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

/* ---------- Highlights video ---------- */

.highlights {
  background: var(--olive);
  color: var(--white);
}

.highlights .section-label {
  color: var(--cream);
}

.highlights h2 {
  color: var(--white);
}

.video-frame {
  margin-top: 1.6rem;
  border: 4px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  max-width: 420px;
}

.video-frame video {
  width: 100%;
}

/* ---------- What to bring ---------- */

.bring {
  background: var(--yellow);
}

.bring-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  max-width: 40ch;
}

.bring-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bring-list li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: var(--red);
  border: 2px solid var(--black);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ---------- Foundation / Donate ---------- */

.foundation {
  background: var(--red);
  color: var(--white);
}

.foundation h2 {
  color: var(--white);
}

.foundation .section-label {
  color: var(--yellow);
}

.foundation-box {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  margin-top: 1.6rem;
}

.foundation p {
  font-size: 1.02rem;
}

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

.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 2.4rem 0 1.6rem;
  font-size: 0.9rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.sponsor-line {
  margin: 0.8rem 0;
  opacity: 0.9;
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.7;
  font-size: 0.8rem;
}

/* ============================================
   Tablet and up
   ============================================ */

@media (min-width: 700px) {
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
  }

  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 1.8rem;
  }

  .hero {
    padding: 6rem 0 5rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-date {
    font-size: 2rem;
  }

  .invite-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

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

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

  .bring-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .foundation-box {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

@media (min-width: 980px) {
  .hero-title {
    font-size: 5.5rem;
  }

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

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