:root {
  --blue: #0648b8;
  --blue-dark: #042e77;
  --sky: #5ac7ef;
  --yellow: #fec945;
  --red: #cf313a;
  --green: #1f9d61;
  --ink: #161616;
  --muted: #59606d;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(4, 46, 119, 0.18);
  --outline: #073d9a;
  --gold: #ffd84d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #45b9ef;
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: rgba(4, 46, 119, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--gold);
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Trebuchet MS", "Arial Black", Arial, sans-serif;
  -webkit-text-stroke: 0;
  text-shadow:
    -2px -2px 0 var(--outline),
    0 -2px 0 var(--outline),
    2px -2px 0 var(--outline),
    -2px 0 0 var(--outline),
    2px 0 0 var(--outline),
    -2px 2px 0 var(--outline),
    0 2px 0 var(--outline),
    2px 2px 0 var(--outline),
    5px 5px 0 #082d62;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(18px, 5vw, 64px);
  display: grid;
  min-width: 210px;
  padding: 8px;
  border-radius: 8px;
  background: var(--blue-dark);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(32px, 7vw, 92px) clamp(18px, 6vw, 80px) 26px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(75, 190, 240, 0.98), rgba(6, 86, 196, 0.95) 46%, rgba(4, 48, 122, 0.98)),
    radial-gradient(circle at 78% 26%, rgba(254, 201, 69, 0.74), transparent 36%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 330px;
  height: 330px;
  border: 22px solid rgba(254, 201, 69, 0.28);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
  transform: translateY(clamp(22px, 5vh, 62px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
}

.hero-lastname {
  margin: 14px 0 0;
  color: var(--gold);
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Trebuchet MS", "Arial Black", Arial, sans-serif;
  font-weight: 1000;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  transform: rotate(-1deg);
  text-shadow:
    -2px -2px 0 var(--outline),
    0 -2px 0 var(--outline),
    2px -2px 0 var(--outline),
    -2px 0 0 var(--outline),
    2px 0 0 var(--outline),
    -2px 2px 0 var(--outline),
    0 2px 0 var(--outline),
    2px 2px 0 var(--outline),
    5px 5px 0 #082d62;
}

.age-badge {
  display: inline-block;
  margin: 18px 0 0;
  padding: 10px 24px;
  border-radius: 8px;
  color: var(--yellow);
  background: var(--red);
  box-shadow: var(--shadow);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-transform: uppercase;
}

.western-title {
  color: var(--gold);
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Trebuchet MS", "Arial Black", Arial, sans-serif;
  font-weight: 1000;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0;
  transform: rotate(-1deg);
  text-shadow:
    -3px -3px 0 var(--outline),
    0 -3px 0 var(--outline),
    3px -3px 0 var(--outline),
    -3px 0 0 var(--outline),
    3px 0 0 var(--outline),
    -3px 3px 0 var(--outline),
    0 3px 0 var(--outline),
    3px 3px 0 var(--outline),
    7px 7px 0 #082d62;
}

.western-title.small {
  color: var(--gold);
  -webkit-text-stroke: 0;
  transform: rotate(-0.5deg);
  text-shadow:
    -2px -2px 0 var(--outline),
    0 -2px 0 var(--outline),
    2px -2px 0 var(--outline),
    -2px 0 0 var(--outline),
    2px 0 0 var(--outline),
    -2px 2px 0 var(--outline),
    0 2px 0 var(--outline),
    2px 2px 0 var(--outline),
    5px 5px 0 #082d62;
}

.cloud {
  position: absolute;
  z-index: 1;
  width: clamp(78px, 12vw, 170px);
  opacity: 0.95;
  filter: drop-shadow(0 8px 8px rgba(4, 46, 119, 0.14));
  pointer-events: none;
  animation: cloudFloat 9s ease-in-out infinite;
}

.cloud-a {
  top: 110px;
  left: 6%;
}

.cloud-b {
  top: 168px;
  right: 18%;
  width: clamp(64px, 8vw, 120px);
  animation-delay: -2s;
}

.cloud-c {
  bottom: 90px;
  left: 34%;
  width: clamp(70px, 9vw, 130px);
  animation-delay: -5s;
}

.cloud-d {
  top: 58%;
  right: 6%;
  width: clamp(66px, 9vw, 136px);
  animation-delay: -3s;
}

.cloud-e {
  top: 38%;
  left: 46%;
  width: clamp(58px, 7vw, 108px);
  animation-delay: -7s;
}

@keyframes cloudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -10px, 0);
  }
}

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.intro {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  outline: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.23);
}

.button.full {
  width: 100%;
}

.hero-art {
  position: relative;
  z-index: 2;
  align-self: end;
}

.hero-art {
  min-height: 620px;
}

.toy-group {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: min(720px, 90%);
  opacity: 0.88;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
}

.aura-main {
  position: absolute;
  right: clamp(120px, 17vw, 240px);
  bottom: 0;
  width: min(410px, 46%);
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.34));
  animation: auraPop 5s ease-in-out infinite;
}

@keyframes auraPop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.details-band {
  padding: clamp(46px, 8vw, 96px) clamp(18px, 6vw, 80px);
  background:
    url("assets/cloud.png") 6% 12% / 128px auto no-repeat,
    url("assets/cloud.png") 92% 28% / 108px auto no-repeat,
    url("assets/cloud.png") 34% 82% / 92px auto no-repeat,
    linear-gradient(180deg, var(--white), #f1fbff 62%, #e4f7ff);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading .eyebrow,
.rsvp .eyebrow {
  color: var(--red);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.detail-card {
  min-height: 138px;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  transition: transform 160ms ease;
}

.detail-card:nth-child(2) {
  transform: rotate(1deg);
}

.detail-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

.detail-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.detail-card.red {
  background: var(--red);
}

.detail-card.yellow {
  color: var(--ink);
  background: var(--yellow);
}

.detail-card.blue {
  background: var(--blue);
}

.detail-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-card strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.story-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 360px);
  align-items: end;
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--green), var(--blue) 74%),
    var(--blue);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-panel > div,
.story-panel > img {
  position: relative;
  z-index: 2;
}

.story-panel p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.6;
}

.story-panel img {
  width: min(310px, 100%);
  margin: 0 auto -50px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.26));
}

.rsvp {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 480px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 6vw, 80px);
  background:
    linear-gradient(180deg, #fff8df, #fff1bb);
}

.rsvp-copy {
  position: relative;
  min-height: 520px;
}

.rsvp-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.rsvp-copy img {
  position: absolute;
  right: 0;
  bottom: -58px;
  width: min(285px, 54vw);
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.2));
}


.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field,
.field-full,
.form-note {
  min-width: 0;
}

.field-full,
.form-note {
  grid-column: 1 / -1;
}

.rsvp-form label,
.rsvp-form legend {
  color: var(--blue-dark);
  font-weight: 900;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 12px;
  border: 2px solid #d9e4ef;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(6, 72, 184, 0.18);
}

.rsvp-form textarea {
  min-height: 96px;
  max-height: 220px;
  resize: vertical;
}

fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #d9e4ef;
  border-radius: 8px;
  background: #fbfdff;
}

.choice input {
  width: auto;
  margin: 0;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.form-note.success {
  color: var(--green);
  font-weight: 900;
}

.footer {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 36px 18px 42px;
  color: var(--white);
  text-align: center;
  background: var(--blue-dark);
}

.footer img {
  width: 86px;
  height: 120px;
  object-fit: contain;
  object-position: top;
}

.footer p {
  margin: 0;
  color: var(--yellow);
  font-weight: 900;
}

.admin-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-link:hover {
  color: var(--yellow);
}

.intro-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  min-height: 100%;
  padding: 28px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  color: var(--white);
  background-color: var(--blue-dark);
  background-image:
    radial-gradient(circle at 50% 22%, rgba(254, 201, 69, 0.5), transparent 42%),
    linear-gradient(180deg, #45b9ef, #0656c4 48%, #042e77 99%);
  transition: opacity 520ms ease, visibility 520ms ease;
}

.intro-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-cover-inner {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
}

.intro-cover-eyebrow {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-cover-photo {
  width: min(250px, 60vw);
  max-height: 48vh;
  max-height: 48svh;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.36));
  animation: auraPop 5s ease-in-out infinite;
}

.intro-cover-title {
  margin: 4px 0 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.intro-cover .age-badge {
  margin: 6px 0 0;
}

.intro-cover-btn {
  margin-top: 12px;
  gap: 8px;
  padding: 15px 32px;
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
}

.intro-cover-note {
  font-size: 1.3rem;
}

.intro-cover-hint {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

@media (max-height: 700px) {
  .intro-cover {
    padding: 12px 18px;
  }

  .intro-cover-inner {
    gap: 6px;
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
  }

  .intro-cover-eyebrow {
    font-size: 0.72rem;
  }

  .intro-cover-photo {
    max-height: 43vh;
    max-height: 43svh;
  }

  .intro-cover-title {
    margin-top: 0;
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .intro-cover .age-badge {
    margin-top: 2px;
    padding: 7px 15px;
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .intro-cover-btn {
    margin-top: 4px;
    min-height: 44px;
    padding: 11px 22px;
  }

  .intro-cover-hint {
    font-size: 0.8rem;
  }
}

.music-toggle {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: var(--blue-dark);
  box-shadow: 0 12px 26px rgba(4, 46, 119, 0.34);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.music-toggle:hover {
  transform: scale(1.07);
}

.music-toggle:focus-visible {
  outline: 3px solid rgba(255, 216, 77, 0.55);
  outline-offset: 3px;
}

.music-toggle.playing {
  color: var(--white);
  background: var(--red);
  animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    box-shadow: 0 12px 26px rgba(4, 46, 119, 0.34), 0 0 0 0 rgba(255, 216, 77, 0.5);
  }
  50% {
    box-shadow: 0 12px 26px rgba(4, 46, 119, 0.34), 0 0 0 13px rgba(255, 216, 77, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle.playing {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .rsvp,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    transform: none;
  }

  .hero-main {
    margin: 24px auto 0;
  }

  .hero-art {
    min-height: 680px;
    margin-top: 20px;
  }

  .cloud-a {
    display: none;
  }

  .toy-group {
    right: -72px;
    bottom: 4px;
    width: 620px;
    max-width: none;
  }

  .aura-main {
    right: 50%;
    bottom: 26px;
    width: min(320px, 74vw);
    max-width: none;
    transform: translateX(50%);
    animation-name: auraPopMobile;
  }

  @keyframes auraPopMobile {
    0%,
    100% {
      transform: translateX(50%) translateY(0);
    }
    50% {
      transform: translateX(50%) translateY(-8px);
    }
  }

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

  .rsvp-copy {
    min-height: auto;
    padding-bottom: 0;
  }

  .rsvp-copy img {
    position: static;
    width: 170px;
    margin: 18px auto -8px;
    transform: none;
  }

}

@media (max-width: 520px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-art {
    min-height: 520px;
    margin-top: 24px;
  }

  .toy-group {
    right: -170px;
    bottom: 8px;
    width: 560px;
  }

  .aura-main {
    bottom: 8px;
    width: min(250px, 70vw);
  }

  fieldset {
    grid-template-columns: 1fr;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .western-title,
  .hero-lastname {
    -webkit-text-stroke: 0;
    text-shadow:
      -2px -2px 0 var(--outline),
      0 -2px 0 var(--outline),
      2px -2px 0 var(--outline),
      -2px 0 0 var(--outline),
      2px 0 0 var(--outline),
      -2px 2px 0 var(--outline),
      0 2px 0 var(--outline),
      2px 2px 0 var(--outline),
      5px 5px 0 #082d62;
  }

  .cloud-a,
  .cloud-b,
  .cloud-d {
    display: none;
  }

  .cloud-c {
    left: 64%;
    bottom: 48px;
  }

  .cloud-e {
    top: 56%;
    left: 10%;
  }

}
