/* Baptism model "Castel de poveste": a storybook castle on clouds, a gold crown and gold stars.
   The color theme sets --accent (roofs, titles, buttons) and --tint (the soft color of the sky). */
.castle-baptism {
  --gold: #c9a24b;
  --gold-soft: #ecdcb0;
  --ink: #46394a;
  --ink-soft: #77697a;
  --accent-deep: color-mix(in srgb, var(--accent) 78%, #2b1830);
  --tint-soft: color-mix(in srgb, var(--tint) 42%, #fff);
  --line: color-mix(in srgb, var(--tint) 72%, var(--accent));
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.7 "Lora", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
.castle-baptism *, .castle-baptism *::before, .castle-baptism *::after { box-sizing: border-box; }
.castle-baptism h1, .castle-baptism h2, .castle-baptism h3, .castle-baptism p, .castle-baptism figure { margin: 0; }
.castle-baptism .skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); transform: translateY(-220%); }
.castle-baptism .skip-link:focus { transform: translateY(0); }
.castle-baptism .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.castle-baptism .container { width: min(100% - 40px, 880px); margin-inline: auto; }
.castle-baptism .section { padding: clamp(52px, 7.5vw, 80px) 0; }
.castle-baptism h2 { color: var(--accent-deep); font: 600 clamp(25px, 4vw, 36px)/1.25 "Cinzel", Georgia, serif; letter-spacing: .04em; text-align: center; text-wrap: balance; }
.castle-baptism .section-eyebrow { color: var(--accent-deep); font: 600 clamp(13px, 1.7vw, 15px)/1.5 "Cinzel", Georgia, serif; letter-spacing: .22em; text-transform: uppercase; }

/* Crown */
.castle-baptism .crown { display: block; height: auto; }
.castle-baptism .crown-gold { fill: var(--gold); }
.castle-baptism .crown-jewel { fill: var(--accent); }
.castle-baptism .crown-jewel--light { fill: #fff; }

/* Gold stars */
.castle-baptism .sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.castle-baptism .sparkle { position: absolute; fill: var(--gold); animation: sparkle-twinkle 3.4s ease-in-out infinite; }
.castle-baptism .sparkle--1 { top: 9%; left: 7%; width: clamp(18px, 2.6vw, 30px); }
.castle-baptism .sparkle--2 { top: 20%; right: 9%; width: clamp(14px, 2vw, 22px); animation-delay: -1.1s; }
.castle-baptism .sparkle--3 { top: 44%; left: 13%; width: clamp(10px, 1.5vw, 16px); animation-delay: -2.2s; }
.castle-baptism .sparkle--4 { top: 52%; right: 6%; width: clamp(18px, 2.8vw, 32px); animation-delay: -.6s; }
.castle-baptism .sparkle--5 { top: 78%; left: 5%; width: clamp(12px, 1.8vw, 20px); animation-delay: -1.7s; }
.castle-baptism .sparkle--6 { top: 6%; right: 26%; width: clamp(9px, 1.3vw, 14px); animation-delay: -2.8s; }
.castle-baptism .sparkle--7 { top: 33%; left: 27%; width: clamp(8px, 1.2vw, 12px); animation-delay: -.3s; }
.castle-baptism .sparkle--8 { top: 70%; right: 17%; width: clamp(10px, 1.5vw, 16px); animation-delay: -2s; }

/* Hero */
.castle-baptism .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 6vw, 66px) 20px 0;
  background:
    radial-gradient(ellipse 34% 9% at 8% 86%, rgba(255, 255, 255, .95), transparent 72%),
    radial-gradient(ellipse 30% 8% at 93% 80%, rgba(255, 255, 255, .95), transparent 72%),
    radial-gradient(ellipse 22% 6% at 84% 34%, rgba(255, 255, 255, .7), transparent 72%),
    radial-gradient(ellipse 20% 6% at 14% 28%, rgba(255, 255, 255, .7), transparent 72%),
    linear-gradient(180deg, var(--tint) 0%, var(--tint-soft) 60%, #fff 100%);
  text-align: center;
}
.castle-baptism .hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.castle-baptism .crown--hero { width: clamp(52px, 7vw, 74px); margin-bottom: 12px; filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--gold) 40%, transparent)); }
.castle-baptism .hero-eyebrow { color: var(--accent-deep); font: 600 clamp(13px, 1.7vw, 16px)/1.5 "Cinzel", Georgia, serif; letter-spacing: .22em; text-transform: uppercase; }
.castle-baptism h1 { margin: 6px 0 10px; padding: 0 .14em; color: var(--accent-deep); font: 400 clamp(78px, 13vw, 142px)/1.08 "Great Vibes", cursive; overflow-wrap: anywhere; }
/* Two children: the two first names stay whole, and the line breaks between them. */
.castle-baptism .hero-title--two { font-size: clamp(58px, 9.6vw, 106px); line-height: 1.14; overflow-wrap: normal; }
.castle-baptism .hero-name { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.castle-baptism .hero-and { color: var(--gold); font-size: .78em; }
/* The date on a ribbon with two tails */
.castle-baptism .hero-date { display: inline-block; padding: 10px 36px; background: var(--accent-deep); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); color: #fff; font: 600 clamp(12.5px, 1.6vw, 15px)/1.4 "Cinzel", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; }

.castle-baptism .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 26px;
  padding: 12px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--gold), 0 14px 26px color-mix(in srgb, var(--accent) 30%, transparent);
  color: #fff;
  cursor: pointer;
  font: 600 14px/1.3 "Cinzel", Georgia, serif;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .15s ease, background-color .15s ease;
}
.castle-baptism .button:hover { background: color-mix(in srgb, var(--accent-deep) 88%, #000); transform: translateY(-2px); }
.castle-baptism .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 7px; }

/* Castle */
.castle-baptism .castle { position: relative; z-index: 1; display: block; width: min(100%, 660px); height: auto; margin: clamp(10px, 2.4vw, 26px) auto 0; }
.castle-baptism .castle-wall { fill: #fffaf6; stroke: var(--line); stroke-width: 1.2; }
.castle-baptism .castle-wall-shade { fill: color-mix(in srgb, var(--tint) 58%, #fff); }
.castle-baptism .castle-trim { fill: color-mix(in srgb, var(--tint) 86%, #fff); stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; }
.castle-baptism .castle-roof { fill: var(--accent); }
.castle-baptism .castle-roof-shade { fill: color-mix(in srgb, var(--accent) 76%, #2b1830); }
.castle-baptism .castle-pole { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; }
.castle-baptism .castle-flag { fill: var(--accent); }
.castle-baptism .castle-flag--gold { fill: var(--gold); }
.castle-baptism .castle-heart { fill: var(--accent); }
.castle-baptism .castle-window { fill: color-mix(in srgb, var(--accent) 46%, #4a3550); }
.castle-baptism .castle-gate-frame { fill: var(--gold); }
.castle-baptism .castle-gate { fill: color-mix(in srgb, var(--accent) 66%, #3a2238); }
.castle-baptism .castle-gate-line { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 2; }
.castle-baptism .castle-knob { fill: var(--gold); }
.castle-baptism .castle-cloud { fill: #fff; }
.castle-baptism .castle-cloud--back { fill: color-mix(in srgb, var(--tint) 46%, #fff); }

/* Message and portraits */
.castle-baptism .story { padding-top: clamp(40px, 6vw, 60px); }
.castle-baptism .story-inner { max-width: 680px; text-align: center; }
.castle-baptism .story-message { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }
.castle-baptism .story-message p + p { margin-top: 12px; }
.castle-baptism .portraits { display: flex; align-items: flex-start; justify-content: center; gap: clamp(16px, 5vw, 46px); margin-bottom: 34px; }
.castle-baptism .portrait { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.castle-baptism .crown--portrait { position: relative; z-index: 1; width: clamp(48px, 9vw, 64px); margin-bottom: -12px; }
.castle-baptism .portrait-frame { width: clamp(190px, 40vw, 250px); aspect-ratio: 4 / 5; padding: 8px; border: 2px solid var(--gold); border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px var(--gold-soft), 0 22px 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.castle-baptism .portrait-frame img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.castle-baptism .portraits--two .portrait-frame { width: clamp(128px, 35vw, 208px); }
.castle-baptism .portraits--two .crown--portrait { width: clamp(40px, 8vw, 54px); margin-bottom: -10px; }
.castle-baptism .portrait figcaption { margin-top: 16px; color: var(--accent-deep); font: 400 clamp(30px, 6vw, 38px)/1.1 "Great Vibes", cursive; overflow-wrap: anywhere; }

/* Parents and godparents */
.castle-baptism .family-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 26px; }
.castle-baptism .family-card { padding: 32px 24px 28px; border: 1.5px solid var(--gold); border-radius: 16px; outline: 1px solid var(--gold-soft); outline-offset: -9px; background: #fff; text-align: center; }
.castle-baptism .family-card h3 { margin-bottom: 6px; color: var(--ink-soft); font: 600 13px/1.5 "Cinzel", Georgia, serif; letter-spacing: .26em; text-transform: uppercase; }
.castle-baptism .family-card p { color: var(--accent-deep); font: 400 clamp(32px, 5vw, 40px)/1.22 "Great Vibes", cursive; overflow-wrap: anywhere; text-wrap: balance; }

/* Line with a gold diamond */
.castle-baptism .divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 30px; }
.castle-baptism .divider::before, .castle-baptism .divider::after { width: min(26vw, 150px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); content: ""; }
.castle-baptism .divider::after { transform: scaleX(-1); }
.castle-baptism .divider span { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

/* Countdown: each box has the top of a castle wall */
.castle-baptism .countdown { padding-right: 20px; padding-left: 20px; text-align: center; }
.castle-baptism .countdown-parts { display: flex; align-items: stretch; justify-content: center; gap: clamp(8px, 2vw, 16px); margin-top: 20px; }
.castle-baptism .countdown-part { display: flex; flex-direction: column; align-items: center; justify-content: center; width: clamp(70px, 19vw, 108px); padding: 26px 4px 14px; background: var(--tint); clip-path: polygon(0 0, 20% 0, 20% 10px, 40% 10px, 40% 0, 60% 0, 60% 10px, 80% 10px, 80% 0, 100% 0, 100% 100%, 0 100%); }
.castle-baptism .countdown-part strong { color: var(--accent-deep); font: 700 clamp(26px, 6.2vw, 40px)/1.1 "Cinzel", Georgia, serif; font-variant-numeric: tabular-nums; }
.castle-baptism .countdown-part span { margin-top: 2px; color: var(--ink-soft); font: 600 clamp(10px, 2.4vw, 12px)/1.3 "Cinzel", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; }

/* Schedule: each event is a tower with a pointed roof */
.castle-baptism .events { background: linear-gradient(180deg, #fff 0%, var(--tint-soft) 100%); }
.castle-baptism .events-date { margin-top: 8px; color: var(--ink-soft); text-align: center; }
.castle-baptism .events-date::first-letter, .castle-baptism .footer-date::first-letter { text-transform: uppercase; }
.castle-baptism .event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 44px clamp(34px, 7vw, 64px); width: min(100%, 700px); margin: 50px auto 0; padding: 0 14px; }
.castle-baptism .event-tower { position: relative; display: flex; flex-direction: column; }
.castle-baptism .tower-roof { display: block; width: calc(100% + 28px); height: clamp(118px, 17vw, 156px); margin: 0 -14px -1px; }
.castle-baptism .tower-roof-fill { fill: var(--accent); }
.castle-baptism .tower-roof-shade { fill: color-mix(in srgb, var(--accent) 76%, #2b1830); }
.castle-baptism .tower-flag { position: absolute; top: -20px; left: calc(50% - 3px); width: 30px; height: 34px; }
.castle-baptism .tower-flag-pole { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; }
.castle-baptism .tower-flag-cloth { fill: var(--gold); }
.castle-baptism .tower-body { flex: 1; padding: 24px 22px 28px; border: 1.5px solid var(--line); border-top: 12px solid color-mix(in srgb, var(--tint) 86%, #fff); border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 12%, transparent); text-align: center; }
.castle-baptism .event-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 10px; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--tint-soft); }
.castle-baptism .event-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-deep); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.castle-baptism .event-tower h3 { color: var(--accent-deep); font: 600 22px/1.3 "Cinzel", Georgia, serif; letter-spacing: .04em; }
.castle-baptism .event-time { display: block; margin-top: 4px; color: var(--ink); font: 700 36px/1.15 "Cinzel", Georgia, serif; font-variant-numeric: tabular-nums; }
.castle-baptism .event-date { color: var(--ink-soft); font-size: 15px; }
.castle-baptism .event-location { margin-top: 10px; font-weight: 600; }
.castle-baptism .event-address, .castle-baptism .event-description { color: var(--ink-soft); font-size: 15.5px; }
.castle-baptism .event-description { margin-top: 8px; font-style: italic; }
.castle-baptism .invitation-navigation a { border-color: var(--line); border-radius: 999px; color: var(--accent-deep); font-weight: 600; }

/* Gallery */
.castle-baptism .gallery { padding-top: clamp(40px, 6vw, 60px); background: var(--tint-soft); }
.castle-baptism .invitation-story-gallery__photo { border-radius: 16px; }

/* RSVP */
.castle-baptism .rsvp { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 100px) 20px; background: linear-gradient(180deg, var(--tint-soft) 0%, var(--tint) 100%); }
.castle-baptism .rsvp-card { position: relative; z-index: 1; width: min(100%, 680px); margin: 0 auto; padding: clamp(28px, 5vw, 48px); border: 1.5px solid var(--gold); border-radius: 20px; outline: 1px solid var(--gold-soft); outline-offset: -10px; background: #fff; box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 16%, transparent); }
.castle-baptism .crown--rsvp { width: 56px; margin: 0 auto 8px; }
.castle-baptism .rsvp-intro { margin-top: 10px; color: var(--ink-soft); text-align: center; }
.castle-baptism .rsvp-deadline { text-align: center; }
.castle-baptism #rsvp .invitation-rsvp-information { --rsvp-info-radius: 12px; }
.castle-baptism .guest-greeting { margin-top: 16px; text-align: center; }
.castle-baptism .form-status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #e6f5ec; color: #1f6b43; text-align: center; }
.castle-baptism .form-status--error { background: #fde9e9; color: #9b2c2c; }
.castle-baptism .rsvp-form { margin-top: 24px; }
.castle-baptism .attendance-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.castle-baptism .attendance-field label { position: relative; display: block; cursor: pointer; }
.castle-baptism .attendance-field input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.castle-baptism .attendance-field span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--accent-deep); border-radius: 999px; background: #fff; color: var(--accent-deep); font: 600 16px/1.3 "Lora", Georgia, serif; text-align: center; transition: background-color .15s ease, color .15s ease; }
.castle-baptism .attendance-field input:checked + span { background: var(--accent-deep); color: #fff; }
.castle-baptism .attendance-field input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.castle-baptism .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.castle-baptism .form-field--full { grid-column: 1 / -1; }
.castle-baptism .form-field[hidden] { display: none; }
.castle-baptism .form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.castle-baptism .form-field input, .castle-baptism .form-field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.castle-baptism .form-field textarea { resize: vertical; }
.castle-baptism .form-field input:focus, .castle-baptism .form-field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--tint); }
.castle-baptism .button--submit { width: calc(100% - 9px); margin: 26px 4.5px 4.5px; }
.castle-baptism .form-feedback { min-height: 1.5em; margin-top: 14px; color: var(--accent-deep); font-weight: 600; text-align: center; }

/* Footer */
.castle-baptism .invitation-footer { padding: 42px 20px 40px; background: var(--tint); text-align: center; }
.castle-baptism .crown--footer { width: 46px; margin: 0 auto; }
.castle-baptism .footer-message { margin-top: 6px; color: var(--accent-deep); font: 400 clamp(40px, 7vw, 56px)/1.15 "Great Vibes", cursive; text-wrap: balance; }
.castle-baptism .footer-name { margin-top: 6px; color: var(--ink); font: 600 15px/1.5 "Cinzel", Georgia, serif; letter-spacing: .22em; text-transform: uppercase; overflow-wrap: anywhere; }
.castle-baptism .footer-date { color: var(--ink-soft); }
.castle-baptism .wedday-credit { display: inline-block; margin-top: 18px; color: var(--ink-soft); font-size: 13px; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: .35; scale: .8; }
  50% { opacity: 1; scale: 1.1; }
}

@media (max-width: 560px) {
  .castle-baptism .form-grid { grid-template-columns: minmax(0, 1fr); }
  .castle-baptism .attendance-field { gap: 8px; }
  .castle-baptism .attendance-field span { padding: 10px 6px; font-size: 15px; }
  .castle-baptism .hero-date { padding: 9px 28px; letter-spacing: .1em; }
  .castle-baptism .rsvp-card { outline-offset: -7px; }
}

@media (prefers-reduced-motion: reduce) {
  .castle-baptism .sparkle { animation: none; opacity: .9; }
  .castle-baptism .button { transition: none; }
}
