/* Sampson Calling — invitation-inspired restyle */

:root {
  --navy: #28485b;
  --orange: #fa9114;
  --red: #fa331a;
  --blue: #a7bdcb;
  --brown: #983800;
  --cream: #f6f0df;
  --ink: #11100e;
  --green: #0c9c8d;
  --pink: #d81159;

  --display: "Fredoka", Impact, "Arial Black", sans-serif;
  --body: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --frame: clamp(18px, 4vw, 58px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--red) 0 50%, var(--orange) 50% 100%);
  font-family: var(--body);
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .055;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, #000 0 0.6px, transparent .8px 3px);
  mix-blend-mode: multiply;
}

h1, h2, h3, .tagline, .main-date, .lineup-date, .time, .cta-button {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  color: var(--ink);
}

p { margin: .55rem 0; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.28; }

.header-poster,
.main-content,
.footer {
  width: min(100%, 1120px);
  margin-inline: auto;
  border-left: var(--frame) solid transparent;
  border-right: var(--frame) solid transparent;
}

/* Poster header */
.header-poster {
  position: relative;
  min-height: min(760px, 92vh);
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding: 18rem clamp(1rem, 4vw, 3rem) 4.5rem;
  background: var(--blue);
}

.header-poster::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 58px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 16px,
    var(--orange) 16px 31px
  );
  z-index: 8;
}

.header-poster::after {
  content: "";
  position: absolute;
  inset: 58px 0 auto;
  height: 18px;
  background: var(--red);
  z-index: 7;
}

.header-graphic { position: absolute; inset: 76px 0 0; overflow: hidden; }

.mountain {
  position: absolute;
  bottom: 0;
  width: 68%;
  height: 62%;
  background: var(--green);
  clip-path: polygon(0 100%, 15% 62%, 28% 18%, 40% 0, 52% 38%, 62% 72%, 72% 42%, 85% 10%, 100% 100%);
}
.mountain-1 { left: -5%; }
.mountain-2 {
  right: -8%;
  left: auto;
  transform: scaleX(-1);
  background: #077b6e;
  height: 59%;
}

.sun {
  position: absolute;
  left: 48%;
  bottom: 8%;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
  box-shadow:
    0 -105px 0 -76px var(--orange),
    74px -74px 0 -76px var(--orange),
    105px 0 0 -76px var(--orange),
    -74px -74px 0 -76px var(--orange),
    -105px 0 0 -76px var(--orange);
}

.birds { display: none; }

.poster-content {
  position: relative;
  z-index: 5;
  width: min(100%, 900px);
  padding: clamp(1.3rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2rem);
  background: var(--cream);
  border-radius: 14px;
  transform: rotate(-1.4deg);
  box-shadow: 0 10px 0 rgb(40 72 91 / 15%);
}

.invite-intro {
  margin: 0 0 .8rem;
  font-weight: 650;
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.festival-title {
  margin: 0;
  font-size: clamp(4.4rem, 13vw, 9.8rem);
  line-height: .76;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.tagline {
  margin: 1.3rem 0 .35rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .9;
}

.main-date {
  margin-top: 1.3rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.stripe-border {
  position: absolute;
  z-index: 9;
  left: 0;
  width: 100%;
  height: 28px;
  background: repeating-linear-gradient(90deg, var(--green) 0 13px, var(--cream) 13px 25px);
}
.top-border { top: 0; display: none; }
.bottom-border { bottom: 0; }

/* Main poster body */
.main-content {
  padding: 0;
  background: var(--cream);
}

.info-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.3rem, 7vw, 6rem);
  background: var(--cream);
  border-bottom: 14px solid var(--red);
}

.info-section:nth-child(even) { border-bottom-color: var(--orange); }
.alternate-bg { background: var(--cream); }

.section-heading {
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: .82;
  letter-spacing: -.025em;
  max-width: 900px;
}

.details-container {
  max-width: 700px;
  margin: auto;
}
.details-container p { font-size: clamp(1.1rem, 2.1vw, 1.45rem); }
.details-container strong {
  display: inline-block;
  margin: .8rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: .9;
}

.line-up::before,
.faq-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 16px, var(--orange) 16px 32px);
}

.lineup-date {
  margin: -1rem 0 3rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 3rem;
  max-width: 900px;
  margin: auto;
  text-align: left;
}

/* Line-up timeline */
.schedule-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: auto;
  padding-left: 2.4rem;
  text-align: left;
}

.schedule-grid::before {
  content: "";
  position: absolute;
  left: 7px;
  top: .6rem;
  bottom: .6rem;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--navy) 0 9px, transparent 9px 16px);
}

.schedule-item {
  position: relative;
  font-family: var(--body);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.25;
  padding: 0 0 1.6rem;
}

.schedule-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: .5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--navy);
}

.schedule-item:last-child { padding-bottom: 0; }

.schedule-item .time {
  display: block;
  margin-bottom: .3rem;
  color: var(--pink);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: .95;
}

.faq-item {
  padding: 0 0 1.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.faq-item h3 {
  margin: 0 0 .3rem;
  color: var(--brown);
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  line-height: 1;
}

.faq-item p {
  margin: 0;
  font-family: var(--body);
}

.rsvp-section {
  background: var(--orange);
  border-bottom: 0;
}

.rsvp-section .section-heading { color: var(--ink); }
.rsvp-text { max-width: 650px; margin: .8rem auto; }

.rsvp-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 550px;
  margin: 1.8rem auto 0;
}

.rsvp-input {
  flex: 1 1 220px;
  padding: .75em 1.1em;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  text-align: center;
}
.rsvp-input::placeholder { color: rgb(17 16 14 / 55%); }
.rsvp-input:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; }

.rsvp-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.rsvp-confirmation {
  max-width: 550px;
  margin: 1.8rem auto 0;
}

.rsvp-change-link {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: .8em 1.6em;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  box-shadow: 7px 7px 0 var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta-button--small {
  margin-top: 1.6rem;
  padding: .55em 1.4em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  box-shadow: 5px 5px 0 var(--ink);
}
.cta-button--small:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.cta-button:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--ink); }
.cta-button:focus-visible { outline: 4px solid var(--navy); outline-offset: 5px; }

.rsvp-buttons .cta-button { margin-top: 0; }

.cta-button--no {
  background: var(--cream);
  color: var(--ink);
}

.footer {
  padding: 2.5rem 1rem 4rem;
  background: var(--navy);
  color: var(--cream);
  border-top: 28px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--green) 0 13px, var(--cream) 13px 25px) 28;
}
.footer p { font-size: 1rem; }

@media (max-width: 720px) {
  :root { --frame: 14px; }

  .header-poster {
    min-height: 680px;
    padding: 14rem .8rem 3.5rem;
  }

  .header-poster::before { height: 42px; }
  .header-poster::after { top: 42px; height: 13px; }
  .header-graphic { inset: 55px 0 0; }

  .mountain { width: 82%; height: 53%; }
  .sun { width: 120px; }

  .festival-title { font-size: clamp(4rem, 21vw, 6rem); }
  .section-heading { font-size: clamp(3.5rem, 17vw, 6rem); }

  .faq-grid { grid-template-columns: 1fr; gap: .6rem; }

  .schedule-grid { padding-left: 1.8rem; }
  .schedule-item::before { left: -1.8rem; }

  .info-section { padding-inline: 1.4rem; }
}
