@font-face {
  font-family: "Bright Heart";
  src: url("assets/bright-heart.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --pink: #ed4a9c;
  --pink-dark: #ba1269;
  --blush: #fff0f7;
  --brown: #5f301f;
  --cream: #fffaf7;
  --gold: #bc7f35;
  --page: #fff3f8;
  --sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--brown); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--brown); outline-offset: 4px; }
::selection { background: #f7acd4; color: var(--brown); }

.page-shell { min-height: 100vh; overflow: hidden; }
.site-header { width: min(100% - 36px, 1240px); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { width: 105px; height: 72px; display: flex; align-items: center; justify-content: center; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.header-date { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(95,48,31,.28); border-radius: 999px; color: var(--brown); font-weight: 800; font-size: 12px; letter-spacing: .045em; white-space: nowrap; }
.date-divider { width: 1px; height: 14px; background: rgba(95,48,31,.35); }

.hero { width: min(100% - 36px, 1240px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.hero-copy { display: contents; }
.event-label { order: 1; margin: 19px 0 14px; color: var(--pink-dark); font-size: 10px; font-weight: 900; letter-spacing: .075em; line-height: 1.5; }
.event-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--pink); border-radius: 50%; vertical-align: 1px; }
h1 { order: 2; max-width: 720px; margin: 0; font-size: clamp(2.25rem, 8.7vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 900; text-wrap: balance; }
h1 em { color: var(--pink); font-family: "Bright Heart", cursive; font-size: 1.16em; font-weight: 400; font-style: normal; letter-spacing: 0; line-height: .8; white-space: nowrap; }
.highlight { color: var(--pink-dark); }
.hero-visual { order: 3; position: relative; width: min(100%, 430px); height: 310px; margin: 24px auto 26px; }
.visual-backdrop { position: absolute; inset: 15px -7px -8px 7px; border-radius: 180px 180px 18px 18px; background: var(--pink); transform: rotate(3deg); }
.portrait-wrap { position: absolute; inset: 0; overflow: hidden; border-radius: 180px 180px 18px 18px; background: #e3d7d1; }
.portrait-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.photo-caption { position: absolute; right: -8px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; padding: 10px 15px 11px; border-radius: 12px 0 0 12px; background: var(--cream); box-shadow: 0 8px 24px rgba(95,48,31,.16); transform: rotate(-3deg); }
.photo-caption span:first-child { color: var(--pink-dark); font-family: "Bright Heart", cursive; font-size: 25px; line-height: .9; }
.photo-caption span:last-child { font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.hero-lead { order: 4; margin: 0 0 17px; max-width: 640px; font-size: 15px; line-height: 1.6; }
.hero-lead strong { font-weight: 850; }
.audience { order: 5; margin: 0 0 24px; max-width: 640px; color: #794a39; font-size: 14px; line-height: 1.5; }
.action-group { order: 6; }
.primary-button, .mobile-cta, .dialog-confirm { border: 0; background: var(--pink); color: white; cursor: pointer; font-weight: 850; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.primary-button { width: 100%; min-height: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 18px; border-radius: 15px; box-shadow: 0 10px 24px rgba(186,18,105,.2); font-size: 15px; }
.primary-button svg { width: 21px; height: 21px; flex: none; }
.primary-button:hover, .mobile-cta:hover, .dialog-confirm:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(186,18,105,.2); }
.primary-button:active, .mobile-cta:active, .dialog-confirm:active { transform: translateY(0); }
.fine-print { margin: 13px auto 0; max-width: 400px; color: #755848; font-size: 11px; line-height: 1.5; text-align: center; }
.site-footer { width: min(100% - 36px, 1240px); margin: 48px auto 100px; display: flex; flex-direction: column; gap: 7px; color: #8b6657; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-align: center; }
.site-footer span:first-child { color: var(--pink-dark); font-weight: 900; letter-spacing: .14em; }
.mobile-cta { position: fixed; left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; min-height: 54px; padding: 10px 18px; border-radius: 15px; box-shadow: 0 8px 24px rgba(95,48,31,.28); font-size: 14px; }
.mobile-cta span { margin-left: 6px; font-size: 20px; line-height: 0; vertical-align: -1px; }
.cta-pulse { animation: cta-pulse 2.4s ease-in-out infinite; }
.cta-pulse:hover, .cta-pulse:focus-visible { animation-play-state: paused; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(186,18,105,.2), 0 0 0 0 rgba(237,74,156,.3); }
  50% { box-shadow: 0 10px 28px rgba(186,18,105,.28), 0 0 0 9px rgba(237,74,156,0); }
}

.signup-dialog { width: min(calc(100% - 32px), 460px); max-height: min(92dvh, 720px); padding: 0; border: 0; border-radius: 22px; color: var(--brown); background: var(--cream); box-shadow: 0 25px 80px rgba(39,19,15,.27); }
.signup-dialog::backdrop { background: rgba(49,23,36,.58); }
.dialog-inner { position: relative; padding: 20px 24px 26px; text-align: center; }
.dialog-inner img { width: 75px; height: 75px; object-fit: contain; }
.dialog-inner h2 { margin: -1px 0 7px; color: var(--pink-dark); font-size: 27px; line-height: 1.1; }
.dialog-intro { margin: 0 auto 20px; max-width: 36ch; font-size: 14px; line-height: 1.45; }
.dialog-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: var(--brown); cursor: pointer; font-size: 30px; line-height: 1; }
.form-field { margin: 0 0 14px; text-align: left; }
.form-field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 800; }
.form-field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #c6aaa2; border-radius: 11px; outline: none; background: white; color: var(--brown); font: 500 15px var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input::placeholder { color: #8d7269; }
.form-field input:focus { border-color: var(--pink-dark); box-shadow: 0 0 0 3px rgba(237,74,156,.2); }
.form-field input[aria-invalid="true"] { border-color: #b52e43; }
.dialog-confirm { width: 100%; min-height: 50px; margin-top: 5px; border-radius: 12px; }
.dialog-confirm:disabled { cursor: wait; opacity: .7; transform: none; animation: none; }
.form-privacy { margin: 12px 0 0; color: #806e68; font-size: 10px; line-height: 1.3; }
.form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-error { margin: 8px 0; color: #a5263b; font-size: 13px; line-height: 1.4; text-align: left; }
.form-result h3 { margin: 6px 0 10px; color: var(--pink-dark); font-size: 22px; }
.form-result p { margin: 0 0 20px; font-size: 14px; line-height: 1.5; }

.group-page { display: flex; flex-direction: column; }
.group-page main { flex: 1; }
.group-hero { width: min(100% - 36px, 1240px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.group-copy { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; padding-top: 36px; }
.group-check { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--pink); color: white; box-shadow: 0 9px 23px rgba(186,18,105,.2); font-size: 27px; font-weight: 900; }
.group-copy h1 { order: 0; max-width: 700px; font-size: clamp(2.7rem, 11vw, 4.5rem); }
.group-copy h1 em { display: inline-block; }
.group-lead { max-width: 540px; margin: 25px 0 20px; font-size: 17px; line-height: 1.65; }
.group-event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; color: var(--pink-dark); font-size: 14px; font-weight: 800; }
.group-event strong { font-weight: 900; }
.group-button { width: 100%; max-width: 390px; text-decoration: none; text-align: center; }
.group-visual { position: relative; width: min(100%, 440px); height: 320px; margin: 38px auto 10px; }
.group-visual .visual-backdrop { inset: 14px -8px -8px 8px; }
.group-visual .portrait-wrap img { object-position: center 48%; }
.group-page .site-footer { margin-top: 45px; margin-bottom: 26px; }

@media (max-width: 360px) {
  .event-label { font-size: 9px; gap: 4px; letter-spacing: .035em; }
  h1 { font-size: 2.1rem; }
}

@media (min-width: 700px) {
  .site-header { height: 105px; width: min(100% - 64px, 1240px); }
  .brand { width: 138px; height: 98px; }
  .header-date { font-size: 13px; padding: 12px 18px; }
  .hero { width: min(100% - 64px, 1240px); min-height: 610px; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); column-gap: clamp(32px, 5vw, 86px); align-items: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding: 16px 0 30px; }
  .event-label { order: initial; margin: 0 0 24px; font-size: 11px; letter-spacing: .09em; }
  h1 { order: initial; font-size: clamp(2.9rem, 3.65vw, 4rem); line-height: 1.05; }
  .hero-lead { order: initial; margin: 28px 0 16px; font-size: 16px; line-height: 1.65; }
  .audience { order: initial; margin: 0 0 26px; font-size: 15px; }
  .action-group { order: initial; width: min(100%, 380px); }
  .primary-button { min-height: 62px; font-size: 16px; }
  .hero-visual { grid-column: 2; grid-row: 1; width: 100%; max-width: 510px; height: clamp(540px, 45vw, 660px); margin: 4px auto 26px; }
  .visual-backdrop { inset: 17px -13px -13px 10px; border-radius: 260px 260px 24px 24px; }
  .portrait-wrap { border-radius: 260px 260px 24px 24px; }
  .portrait-wrap img { object-position: center 49%; }
  .photo-caption { right: -18px; bottom: 36px; padding: 14px 21px 15px; }
  .photo-caption span:first-child { font-size: 32px; }
  .photo-caption span:last-child { font-size: 10px; }
  .site-footer { width: min(100% - 64px, 1240px); margin: 4px auto 26px; flex-direction: row; justify-content: space-between; }
  .mobile-cta { display: none; }
  .group-hero { width: min(100% - 64px, 1240px); min-height: 610px; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); column-gap: clamp(32px, 5vw, 86px); align-items: center; }
  .group-copy { padding: 20px 0 44px; }
  .group-check { width: 58px; height: 58px; margin-bottom: 32px; font-size: 31px; }
  .group-copy h1 { font-size: clamp(3.6rem, 4.6vw, 5.1rem); }
  .group-lead { margin: 32px 0 23px; font-size: 19px; }
  .group-event { margin-bottom: 34px; font-size: 16px; }
  .group-button { min-height: 66px; }
  .group-visual { grid-column: 2; grid-row: 1; width: 100%; max-width: 510px; height: clamp(510px, 43vw, 650px); margin: 4px auto 30px; }
  .group-visual .visual-backdrop { inset: 17px -13px -13px 10px; }
  .group-page .site-footer { margin-top: 4px; }
}

@media (min-width: 1200px) {
  .hero { min-height: calc(100vh - 160px); }
  .hero-visual { height: min(68vh, 690px); min-height: 600px; }
}

/* Landing page: keep the event date visible and put the signup above the fold. */
body:has(.event-banner) { padding-top: 52px; }
.event-banner { position: fixed; inset: 0 0 auto; z-index: 10; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; background: var(--pink-dark); color: white; box-shadow: 0 4px 18px rgba(95,48,31,.18); font-size: 11px; font-weight: 900; letter-spacing: .045em; line-height: 1.25; text-align: center; animation: banner-pulse 2.6s ease-in-out infinite; }
.event-banner .event-dot { flex: none; margin: 0 5px 0 0; background: white; }
.banner-cookies { display: inline-flex; align-items: center; flex: none; width: 33px; height: 24px; margin-right: 3px; }
.cookie-mark { position: relative; display: block; flex: none; width: 19px; height: 19px; border: 2px solid #78401f; border-radius: 50%; background: #c88941; box-shadow: inset 2px 2px 0 #e4a657; transform: rotate(-17deg); }
.cookie-mark + .cookie-mark { width: 16px; height: 16px; margin-left: -6px; transform: rotate(20deg); }
.cookie-mark::before { content: ""; position: absolute; top: 3px; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: #4d240d; box-shadow: 7px 3px 0 #4d240d, 2px 8px 0 #4d240d; }
@keyframes banner-pulse { 0%, 100% { background: var(--pink-dark); box-shadow: 0 4px 18px rgba(95,48,31,.18); } 50% { background: #e32387; box-shadow: 0 6px 25px rgba(186,18,105,.42); } }
.page-shell:has(.event-banner) { min-height: calc(100vh - 52px); }
.hero { padding-top: 22px; }
.action-group { order: 4; width: 100%; margin: 0 0 20px; }
.hero-visual { order: 3; margin-top: 22px; margin-bottom: 18px; }
.hero-lead { order: 5; }
.audience { order: 6; }
h1 { text-align: center; }
.cta-pulse { animation: cta-pulse-strong 1.75s ease-in-out infinite; }
@keyframes cta-pulse-strong { 0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(186,18,105,.28), 0 0 0 0 rgba(237,74,156,.55); } 50% { transform: scale(1.045); box-shadow: 0 16px 34px rgba(186,18,105,.4), 0 0 0 12px rgba(237,74,156,0); } }

@media (min-width: 700px) {
  .hero { min-height: calc(100dvh - 52px); padding-top: 0; grid-template-rows: auto auto; row-gap: 20px; align-content: center; }
  .hero-copy { grid-row: 1; justify-content: flex-end; align-items: center; padding: 0; }
  .hero-lead { margin: 20px 0 12px; line-height: 1.5; }
  .audience { margin-bottom: 18px; }
  .action-group { order: initial; grid-column: 1; grid-row: 2; max-width: 510px; margin: 0 auto; }
  .hero-visual { order: initial; grid-row: 1 / 3; height: min(68dvh, 580px); min-height: 380px; margin: 0 auto; align-self: center; }
}

@media (max-width: 699px) {
  .hero { padding-top: 16px; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-visual { height: min(300px, 36dvh); min-height: 240px; }
  .fine-print { margin-top: 9px; }
}

.group-page { min-height: calc(100dvh - 52px); }
.group-hero { padding-top: 16px; }
.group-copy { display: contents; }
.group-check { order: 1; margin: 0 auto 8px; }
.group-copy h1 { order: 2; width: 100%; max-width: none; margin: 0; text-align: center; }
.group-visual { order: 3; height: min(300px, 36dvh); min-height: 240px; margin: 22px auto 18px; }
.group-action { order: 4; width: 100%; text-align: center; }
.group-button { max-width: none; }
.redirect-countdown { margin: 9px 0 0; color: #806e68; font-size: 11px; line-height: 1.35; }
.group-lead { order: 5; margin: 24px 0 14px; }
.group-event { order: 6; margin: 0 0 24px; }

@media (min-width: 700px) {
  .group-hero { min-height: calc(100dvh - 52px); padding-top: 0; grid-template-rows: auto auto; row-gap: 20px; align-content: center; }
  .group-copy { display: flex; grid-column: 1; grid-row: 1; align-items: center; padding: 0; }
  .group-check { margin: 0 auto 22px; }
  .group-copy h1 { max-width: 700px; }
  .group-lead { margin: 24px 0 18px; }
  .group-event { margin-bottom: 0; }
  .group-visual { grid-column: 2; grid-row: 1 / 3; height: min(68dvh, 580px); min-height: 380px; margin: 0 auto; align-self: center; }
  .group-action { grid-column: 1; grid-row: 2; max-width: 510px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button, .mobile-cta, .dialog-confirm { transition: none; }
  .cta-pulse { animation: none; }
  .event-banner { animation: none; }
}
