:root {
  --paper: #f6f1ea;
  --ink: #2b2724;
  --muted: #57534c;
  --accent: #b41a00;
  --shadow: 4px 11px 15px #a9a59e;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--paper);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Balsamiq Sans", system-ui, sans-serif;
  background-color: var(--paper);
  position: relative;
  overflow-x: hidden;
}

.paper {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/paper.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 100% auto;
  opacity: 0.38;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
}

.script {
  font-family: Caveat, "Balsamiq Sans", cursive;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.script--sm { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h2.script { font-size: clamp(3rem, 10vw, 6rem); text-align: center; margin: 0 0 24px; }
.title {
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 12px;
}
.title__star { width: 28px; height: 28px; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--muted); }
.center { text-align: center; }

.hero {
  position: relative;
  min-height: min(78vh, 860px);
  padding: 16px 0 32px;
  overflow: visible;
}

.hero__center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.bunting {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 72px;
  pointer-events: none;
}
.bunting svg {
  display: block;
  width: 100%;
  height: 72px;
  filter: drop-shadow(0 2px 3px rgb(80 60 40 / 20%));
}

.deco--b {
  width: min(18vw, 120px);
  height: auto;
  filter: drop-shadow(2px 8px 10px #a9a59e);
  z-index: 1;
}
.deco--b1 { top: 18%; left: 4%; }
.deco--b2 { top: 38%; left: 10%; width: min(14vw, 90px); }
.deco--b3 { top: 16%; right: 8%; }
.deco--b4 { top: 42%; right: 4%; width: min(16vw, 100px); }
.deco--b5 { top: 8%; right: 22%; width: min(12vw, 80px); }

.deco--star-b {
  width: min(16vw, 110px);
  height: auto;
  filter: drop-shadow(2px 8px 10px #a9a59e);
  z-index: 1;
}
.deco--sb1 { top: 52%; left: 2%; }
.deco--sb2 { top: 58%; right: 6%; }

.deco--star { width: 22px; height: 22px; z-index: 1; }
.deco--s1 { top: 28%; left: 28%; }
.deco--s2 { top: 12%; right: 32%; width: 18px; }
.deco--s3 { top: 48%; right: 26%; width: 16px; }

.month { margin: 0; }
.dates {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 8px 0 12px;
}
.date {
  position: relative;
  min-width: 64px;
  padding: 8px 10px;
  font-family: Caveat, cursive;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1;
  color: var(--muted);
}
.date-sep {
  width: 2px;
  height: 2.2em;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}
.date--on { color: var(--ink); }
.date__circle {
  position: absolute;
  inset: -18% -12%;
  width: 124%;
  height: 136%;
  pointer-events: none;
}

.time { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 8px; }

.invite {
  max-width: 22rem;
  margin: 16px auto 20px;
  text-align: center;
}
.invite__hello {
  font-size: clamp(2rem, 7vw, 3.2rem);
  margin: 0 0 8px;
  line-height: 1.05;
}
.invite__copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.host { position: relative; display: inline-block; }
.host__photo {
  width: min(100%, 520px);
  height: auto;
  background: transparent;
  filter: drop-shadow(var(--shadow));
}
.host__caption {
  position: absolute;
  right: -8%;
  top: 42%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--accent);
  font-family: Caveat, cursive;
  text-align: left;
  max-width: 160px;
}
.hero .host__arrow {
  width: 56px;
  height: auto;
  transform: scaleX(-1) rotate(18deg);
}

section {
  position: relative;
  margin: 0;
  padding: 36px 0;
}

.vibes__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.team img {
  width: 100%;
  background: transparent;
  filter: drop-shadow(var(--shadow));
}

.team figcaption { text-align: center; font-size: 2rem; margin-top: 8px; }

.acts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
}

.acts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  overflow: hidden;
  padding-bottom: 4px;
}

.acts img {
  width: 118%;
  max-width: none;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(var(--shadow));
  margin: -8% 0 -2%;
}

.acts span {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.need__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 32px 0;
}

.need__list li { text-align: center; }
.need__list img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(var(--shadow));
  margin-bottom: 12px;
}

.hats {
  text-align: center;
  margin-top: 48px;
  padding-top: 8px;
}
.hats__row { position: relative; min-height: 280px; }
.hat {
  display: none;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hat.is-on { display: grid; }
.hat img {
  width: min(100%, 280px);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(var(--shadow));
}
.hat__copy {
  text-align: center;
  max-width: 34rem;
}
.hat__copy p {
  margin: 0 auto 8px;
  text-align: center;
}
.hat__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 8px auto;
  text-align: center;
}
.hats__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}
.icon-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.icon-btn img { width: 40px; height: 40px; }
.flip { transform: scaleX(-1); }

.menu-sec {
  display: flex;
  justify-content: center;
}
.menu-card {
  position: relative;
  z-index: 1;
  border: 2px dashed var(--ink);
  padding: 40px 48px;
  transform: rotate(3deg);
  text-align: center;
  background: transparent;
}
.menu-card ul { list-style: none; padding: 0; margin: 0; }
.menu-card li { font-size: 1.5rem; font-weight: 700; color: var(--muted); margin: 12px 0; }
.deco--menu-l {
  left: 8%;
  top: 30%;
  width: 90px;
  filter: drop-shadow(var(--shadow));
}
.deco--menu-r {
  right: 10%;
  top: 18%;
  width: 100px;
  filter: drop-shadow(var(--shadow));
}

.sauna {
  width: min(100%, 440px);
  margin: 24px auto 8px;
}
.sauna__stage {
  display: block;
}
.sauna__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #e8e2d8;
  touch-action: pan-y;
  cursor: grab;
}
.sauna__viewport:active { cursor: grabbing; }
.sauna__track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}
.sauna__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.sauna__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.sauna__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.sauna__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.sauna__dot.is-on {
  background: var(--accent);
}

.place__addr { margin: 8px 0; }
.place__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin: 0;
}
.place__gcal,
.place__maps a {
  color: var(--accent);
  font-weight: 700;
}
.map-embed {
  width: min(100%, 710px);
  margin: 16px auto 0;
  aspect-ratio: 710 / 420;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e2d8;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.place__maps { margin: 12px 0 0; }

.reel {
  position: relative;
  display: block;
  overflow: hidden;
  height: 200px;
  margin: 16px 0 24px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.reel__track {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.reel__item {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0.5;
  filter: blur(0.6px);
  margin: 0;
  transform: scale(0.92);
  background: #e8e2d8;
}
.reel__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.reel__item--focus {
  opacity: 1;
  filter: none;
  transform: scale(1.45);
  z-index: 1;
}
.reel__item--gone { opacity: 0.38; }
.pointer { display: block; width: 40px; margin: 0 auto 8px; transform: rotate(180deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 40px;
  padding: 10px 40px;
  font: 700 1.5rem "Balsamiq Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 3px solid var(--accent);
  padding: 8px 28px;
  font-size: 1.15rem;
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.prizes { text-align: center; }
.prizes.is-locked .reel { pointer-events: none; }
.spin-msg { min-height: 1.5em; font-weight: 700; }
.spin-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.rsvp {
  display: block;
}
.rsvp__form { max-width: 36rem; margin: 0 auto; }

.corner-kid {
  position: relative;
  width: min(68vw, 280px);
  margin: 0;
  margin-left: calc(50% - 50vw);
  line-height: 0;
  font-size: 0;
  clip-path: inset(-48px -24px 0 -24px);
}
.corner-kid__photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  background: transparent;
  filter: drop-shadow(var(--shadow));
}
.deco--rsvp-star {
  position: absolute;
  right: 6%;
  top: -10%;
  left: auto;
  width: 56px;
  z-index: 1;
  filter: drop-shadow(var(--shadow));
}

.field {
  display: block;
  border-bottom: 3px solid var(--accent);
  margin: 0 0 24px;
  padding: 4px 0 8px;
}
.field span {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font: 400 1.1rem "Balsamiq Sans", sans-serif;
  color: var(--ink);
  outline: none;
}
.field textarea {
  resize: none;
  min-height: 1.6em;
  max-height: 12em;
  line-height: 1.4;
  field-sizing: content;
  overflow-x: hidden;
  overflow-y: auto;
}
.choice {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}
.choice legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.choice__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.choice__btn {
  cursor: pointer;
  margin: 0;
}
.choice__btn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.choice__btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 28px;
  border: 3px solid var(--accent);
  border-radius: 40px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
}
.choice__btn input:checked + span,
.choice__btn:has(input:checked) span {
  background: var(--accent);
  color: #fff;
}
.choice__btn input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
form.is-locked .choice__btn,
.choice:disabled .choice__btn {
  cursor: default;
}
form.is-locked .field input,
form.is-locked .field textarea {
  opacity: 0.85;
}
.errorlist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}
.ok { color: var(--accent); font-weight: 700; }

.wishlist {
  text-align: center;
}
.wishlist__copy {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}
.wishlist a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
}

.blocked {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  max-width: 36rem;
  margin: 0 auto;
}
.blocked h1 {
  font-family: Caveat, "Balsamiq Sans", cursive;
  font-size: clamp(2.4rem, 8vw, 4rem);
  color: var(--accent);
  margin: 0 0 12px;
}
.blocked p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

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

@media (max-width: 860px) {
  .page { padding-top: 0; padding-bottom: 0; }
  section { padding: 32px 0; }
  .hero { min-height: 0; padding: 8px 0 24px; }
  .hats { margin-top: 40px; }
  .vibes__grid {
    grid-template-columns: 1fr;
  }
  .need__list { grid-template-columns: 1fr 1fr; }
  .date { min-width: 48px; padding: 4px 8px; }
  .host__caption {
    position: static;
    max-width: none;
    align-items: center;
    margin-top: 2px;
    text-align: center;
    gap: 0;
  }
  .hero .host__arrow {
    width: 44px;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    margin: -6px 0 0;
  }
  .sauna { width: 100%; }
  .deco--b,
  .deco--star-b { width: 64px; }
  .deco--b1 { top: 28%; }
  .deco--b3 { top: 26%; }
  .deco--b5 { top: 32%; right: 16%; }
  .deco--menu-l,
  .deco--menu-r { display: none; }
}

@media (max-width: 430px) {
  .hero { padding-top: 6px; }
  .title { margin-top: 2px; }
  .invite { margin: 14px auto 16px; }
  .corner-kid {
    width: min(68vw, 280px);
  }
}

.page-end {
  position: relative;
  display: block;
  margin: 24px 0 0;
  padding: 0;
  line-height: 0;
}

.page-end img {
  display: block;
}

.easter {
  position: absolute;
  right: calc(50vw - 50% + 12px);
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  color: color-mix(in srgb, var(--paper) 88%, var(--ink) 12%);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
