/* One stationery system for every section: matching corners, gold rule and spacing. */
:root {
  --ornament-leaf: url('/prestige/eucalyptus-corner.png');
  --ornament-size: clamp(210px, 34vw, 340px);
  --ornament-inset: 24px;
  --section-gutter: clamp(44px, 8vw, 100px);
  --ornament-rule: #a1875270;
}
main > section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: none !important;
  padding: 100px var(--section-gutter);
}
main > section::before,
main > section::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* Only the small lower ornament is rotated, never the full-height frame. */
main > section::before {
  right: calc(var(--ornament-inset) + 1px);
  bottom: calc(var(--ornament-inset) + 1px);
  width: var(--ornament-size);
  aspect-ratio: 3 / 2;
}
main > section::after {
  inset: 0;
  /* First background is painted on top: petals cover the frame beneath. */
  background-image:
    var(--ornament-leaf),
    linear-gradient(var(--ornament-rule), var(--ornament-rule)),
    linear-gradient(var(--ornament-rule), var(--ornament-rule)),
    linear-gradient(var(--ornament-rule), var(--ornament-rule)),
    linear-gradient(var(--ornament-rule), var(--ornament-rule));
  background-size:
    var(--ornament-size) auto,
    calc(100% - 2 * var(--ornament-inset)) 1px,
    calc(100% - 2 * var(--ornament-inset)) 1px,
    1px calc(100% - 2 * var(--ornament-inset)),
    1px calc(100% - 2 * var(--ornament-inset));
  background-position:
    left top,
    center var(--ornament-inset),
    center calc(100% - var(--ornament-inset)),
    var(--ornament-inset) center,
    calc(100% - var(--ornament-inset)) center;
  background-repeat: no-repeat;
  opacity: .78;
}
/* Keep the frame above the section background, including the long programme. */
main > section > div:not(.botanical-decor):not(.hero-scene) {
  position: relative;
  z-index: 1;
}
.botanical-decor,
.hero-paper-frame,
.hero-leaves,
#countdown > img,
#wedding-events > div:last-child,
#rsvp img[src*='rsvp-topiary'],
#rsvp img[src*='rsvp-envelope'] {
  display: none !important;
}
/* Fixed-size lower corner avoids transformed tall layers on desktop browsers. */
main > section::before {
  background: var(--ornament-leaf) left top / var(--ornament-size) auto no-repeat;
  transform: rotate(180deg);
  background-origin: border-box;
  opacity: .78;
}
#hero {
  padding: 0;
  min-height: 740px;
  --ornament-size: clamp(260px, 44vw, 440px);
}
.hero-scene { background: none; }
#hero > div.relative { padding-top: 0 !important; }
#hero .hero-kicker { top: 25%; }
#hero .hero-venue { bottom: 24%; }
#welcome, #countdown, #wedding-events, #day-program, #gifts, #faq, #rsvp {
  padding: 100px var(--section-gutter);
}
#welcome > div:last-child { display: none; }
#wedding-events > div:nth-child(2) {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  padding: 0;
}
#wedding-events > div:nth-child(2) > div > div > div { padding: 0; max-width: none; }
#countdown > div { padding: 0; }
#countdown > div > div { padding-inline: 0; }
#wedding-events h2, #gifts h2, #faq h2, #rsvp h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
}
.modular-copy { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; text-align: center; }
.modular-copy p { font-size: 18px; line-height: 1.8; color: #405642; margin-top: 24px; text-wrap: balance; }
#faq > div:not(.botanical-decor) { padding: 0; position: relative; z-index: 1; }
#faq > div:not(.botanical-decor) > div { width: 100%; max-width: 680px; margin-inline: auto; }
#faq h2 { margin-bottom: 32px; }
#faq button { background: #eee8dc; position: relative; }
#rsvp > div { max-width: 600px; }
#rsvp .max-w-\[62\%\] { max-width: 100%; }
main > footer { margin-top: 0; }
@media (max-width: 600px) {
  :root { --ornament-size: 180px; --ornament-inset: 16px; --section-gutter: 36px; }
  main > section::after { opacity: .7; }
  #hero { --ornament-size: 260px; }
  #welcome, #countdown, #wedding-events, #day-program, #gifts, #faq, #rsvp { padding: 88px var(--section-gutter); }
  #hero > div.relative { padding-inline: 36px; }
  #faq button { font-size: 15px; }
  .modular-copy p { font-size: 16px; }
  #countdown .tracking-\[0\.34em\] { letter-spacing: .15em; }
}

/* The programme must remain readable during fast scrolling. */
#day-program .schedule-row,
#day-program > div > div:first-child,
#day-program > div > p {
  opacity: 1 !important;
  transform: none !important;
}

/* Also hide the removed credit when an older application bundle is cached. */
main > footer p:has(a[href="https://www.thedigitalyes.com"]) { display: none; }

/* A quiet RSVP shortcut above the existing discovery cue. */
html { scroll-behavior: smooth; }
#rsvp { scroll-margin-top: 16px; }
#hero .hero-rsvp-link {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 26px;
  border: 1px solid #a18752;
  border-radius: 999px;
  background: #eee8dce8;
  color: #405642;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  animation: rsvp-pulse 2.8s ease-in-out infinite;
  transition: background-color .2s, color .2s;
}
#hero .hero-rsvp-link:hover {
  background: #405642;
  color: #fff9ec;
  animation-play-state: paused;
}
#hero .hero-rsvp-link:focus-visible {
  outline: 2px solid #405642;
  outline-offset: 5px;
  animation: none;
}
@keyframes rsvp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #a1875200; }
  50% { box-shadow: 0 0 0 7px #a1875220; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero .hero-rsvp-link { animation: none; transition: none; }
}
/* Leave breathing room above and below the additional action. */
#hero .hero-venue { bottom: 28%; }
#hero > button { bottom: 7.5%; }

/* Updated programme: event, location and supporting details stay distinct. */
#day-program .schedule-row > div > p:nth-child(2) { font-weight: 600; }
#day-program .schedule-row .schedule-location { font-size: 15px; font-style: italic; font-weight: 400; color: #657462; }
#day-program .schedule-row .schedule-description { font-size: 16px; font-weight: 400; color: #405642; }
#hero .hero-venue { white-space: pre-line; line-height: 1.5; }
@media(max-width:600px) { #hero .hero-venue { font-size: 16px; } }
#day-program .program-title { display: block; }
#day-program .program-date { display: block; margin-top: 16px; font-size: 18px; line-height: 1.5; letter-spacing: .05em; color: #917444; }

/* One restrained line-icon family throughout the programme. */
#day-program .has-program-icon > img,
#day-program .has-program-icon > .schedule-marker { display: none; }
#day-program .program-icon {
  width: 42px;
  height: 42px;
  justify-self: center;
  color: #a18752;
  overflow: visible;
}
@media(max-width:600px) {
  #day-program .program-icon { width: 32px; height: 32px; }
}

/* Identical typography for every FAQ question and expanded answer. */
#faq button span,
#faq p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: #405642;
  white-space: pre-line;
  padding-inline: 32px;
  margin: 0;
}
