/* =====================================================
   Adam & Kaia — "Pressed Flowers & Love Letters"
   ===================================================== */

:root {
  /* powder blue base */
  --paper:        #C7D7E4;   /* powder blue, a touch deeper */
  --paper-deep:   #B3C7D8;   /* deeper, for cards */
  --paper-soft:   #DDE7EF;   /* lightest, soft blue */
  --ink:          #5E7894;   /* dusty blue — body & headings */
  --ink-soft:     #8093AC;   /* lighter dusty blue — secondary text */
  --ink-faint:    #A6B5C8;   /* pale dusty blue — decorative */

  /* the bouquet palette — pastel garden */
  --blush:        #EFC4B0;   /* blush / peach (garden roses)   */
  --blush-deep:   #B0826E;   /* deeper, for accents & headings */
  --pink:         #EDC1C4;   /* soft pink (spray roses)        */
  --pink-deep:    #B8848A;
  --blue:         #B6CFE0;   /* baby blue (hydrangeas)         */
  --blue-deep:    #7E9DB5;
  --lavender:     #C2BFE0;   /* periwinkle (nigella)           */
  --lavender-deep:#8C88B2;
  --sage:         #B5C5A0;   /* light green (fern)             */
  --sage-deep:    #859778;

  /* antique gold — names + wax seal + small ornaments */
  --gold:         #B89968;
  --gold-deep:    #957A4F;
  --gold-soft:    #D4BB8A;

  /* accent aliases now route to dusty blue (was peach/blush) */
  --rose:         var(--ink);
  --rose-deep:    #4A6280;   /* slightly deeper dusty blue for eyebrows, dropcaps, accents */
  --rose-pale:    var(--ink-faint);
  --dove:         var(--blue);

  /* type */
  --display:  'Italiana', 'Cormorant Garamond', serif;
  --heading:  'Cormorant Garamond', 'EB Garamond', serif;
  --body:     'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --script:   'Pinyon Script', 'Lucida Handwriting', cursive;

  /* rhythm */
  --section-pad: clamp(5rem, 9vw, 8.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(900px 700px at 5% -5%, rgba(239,196,176,.28), transparent 60%),     /* blush peach */
    radial-gradient(800px 600px at 95% 3%, rgba(194,191,224,.24), transparent 60%),     /* lavender   */
    radial-gradient(1100px 850px at 50% 45%, rgba(255,255,255,.55), transparent 65%),   /* soft white airy wash */
    radial-gradient(900px 700px at 5% 102%, rgba(237,193,196,.24), transparent 60%),    /* soft pink  */
    radial-gradient(800px 600px at 95% 100%, rgba(181,197,160,.22), transparent 60%);   /* light sage */
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain overlay */
.paper-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.48 0 0 0 0 0.55 0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.paper-vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 199;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(126,157,181,.10) 100%);
}

/* =================== TYPOGRAPHY HELPERS =================== */
.script { font-family: var(--script); font-weight: 400; font-style: normal; }
.muted  { color: var(--ink-faint); }

::selection { background: var(--rose-pale); color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1.5px dashed var(--rose-deep); outline-offset: 4px; }

/* =================== MASTHEAD / NAV =================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "rule  rule  rule"
    "left  mark  right";
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem) 1.1rem;
  background: linear-gradient(to bottom, rgba(199,215,228,.94) 70%, rgba(199,215,228,0));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.masthead__rule {
  grid-area: rule;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-faint) 18%, var(--ink-faint) 82%, transparent);
  margin-bottom: .9rem;
  opacity: .55;
}
.masthead__mark {
  grid-area: mark;
  color: var(--gold-deep);
  line-height: 0;
  padding: 0 .25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
}
.masthead__monogram {
  width:  clamp(56px, 5vw, 78px);
  height: clamp(56px, 5vw, 78px);
  display: block;
  object-fit: contain;
  transition: transform .4s ease;
}
.masthead__mark:hover .masthead__monogram { transform: rotate(-3deg); }
.masthead__nav {
  display: flex;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
  font-family: var(--heading);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .1rem;
}
.masthead__nav--left  { grid-area: left;  justify-content: flex-end; }
.masthead__nav--right { grid-area: right; justify-content: flex-start; }
.masthead__nav a {
  position: relative;
  padding: .35rem .1rem;
  transition: color .3s ease;
  white-space: nowrap;
}
.masthead__nav a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--rose-deep);
  transition: left .35s ease, right .35s ease;
}
.masthead__nav a:hover { color: var(--rose-deep); }
.masthead__nav a:hover::after { left: 0; right: 0; }
.masthead__nav a.masthead__cta { color: var(--rose-deep); }
.masthead__nav a.is-active { color: var(--rose-deep); }
.masthead__nav a.is-active::after { left: 0; right: 0; }

/* tablet: tighten everything */
@media (max-width: 1100px) {
  .masthead__nav { font-size: .68rem; letter-spacing: .18em; gap: clamp(.4rem, 1.2vw, 1rem); }
}

/* mobile: stack mark above a single wrapped nav */
@media (max-width: 880px) {
  .masthead {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rule"
      "mark"
      "left"
      "right";
    row-gap: .3rem;
  }
  .masthead__nav { font-size: .66rem; gap: .9rem; flex-wrap: wrap; justify-content: center; }
  .masthead__nav--right { padding-top: 0; }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__floral {
  position: absolute;
  width: clamp(180px, 22vw, 320px);
  color: var(--sage-deep);
  opacity: .5;
}
.hero__floral--tl {
  top: 5%; left: 3%;
  animation: sway 9s ease-in-out infinite alternate;
}
.hero__floral--br {
  bottom: 5%; right: 3%;
  transform: rotate(180deg);
  animation: sway 11s ease-in-out infinite alternate-reverse;
}
@keyframes sway {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-6px) rotate(2deg); }
}
.hero__floral--br { transform-origin: center; }
.hero__floral--br { animation-name: sway-rev; }
@keyframes sway-rev {
  from { transform: rotate(180deg) translateY(0); }
  to   { transform: rotate(178deg) translateY(-6px); }
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.hero__eyebrow {
  font-family: var(--heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: 0;
}
.hero__eyebrow span { color: var(--rose-deep); margin: 0 .5rem; letter-spacing: .35em; }

.hero__names {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.2rem, 14vw, 11rem);
  line-height: .92;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--gold-deep);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.3rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.hero__name { display: inline-block; }
.hero__amp {
  font-family: var(--script);
  font-size: 1.05em;
  color: var(--ink);
  margin-top: -.15em;
  font-weight: 400;
}

.hero__sub {
  font-family: var(--heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero__sub .rule {
  display: inline-block;
  width: clamp(40px, 8vw, 110px);
  height: 1px;
  background: var(--ink-faint);
}

.hero__photo { margin: 1.2rem auto 1rem; }

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin: 1.4rem 0 .5rem;
  flex-wrap: wrap;
}
.hero__meta > div { text-align: center; }
.hero__meta dt {
  font-family: var(--heading);
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .42em;
  color: var(--rose-deep);
  margin-bottom: .55rem;
}
.hero__meta dd {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}
.hero__meta dd.muted {
  font-family: var(--heading);
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-faint);
}
.hero__meta-divider { width: 24px; color: var(--blush-deep); }

.hero__scroll {
  margin-top: clamp(1.4rem, 4vw, 3rem);
  font-family: var(--heading);
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .35em;
  color: var(--ink-faint);
  text-transform: lowercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  justify-self: center;
}
.hero__scroll i {
  display: inline-block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0%   { transform: scaleY(.2); transform-origin: top; opacity: .3; }
  50%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1);  transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(.2); transform-origin: bottom; opacity: .3; }
}

/* hero entrance */
.hero__eyebrow,
.hero__names,
.hero__sub,
.hero__photo,
.hero__meta,
.hero__scroll {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s ease forwards;
}
.hero__eyebrow { animation-delay: .15s; }
.hero__names   { animation-delay: .35s; }
.hero__sub     { animation-delay: .65s; }
.hero__photo   { animation-delay: .85s; }
.hero__meta    { animation-delay: 1.05s; }
.hero__scroll  { animation-delay: 1.4s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* =================== SECTION SHELL =================== */
.section {
  position: relative;
  padding: var(--section-pad) clamp(1.25rem, 5vw, 4rem);
  max-width: 1240px;
  margin: 0 auto;
}
.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section__num {
  font-family: var(--heading);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .55em;
  color: var(--rose-deep);
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.section__title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1;
  color: var(--ink);
}
.section__kicker {
  font-family: var(--heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: .02em;
}

/* =================== POLAROIDS =================== */
.polaroid {
  background: #FFFFFF;
  padding: 14px 14px 50px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 12px 22px -10px rgba(87,74,69,.18),
    0 30px 60px -30px rgba(87,74,69,.28);
  display: inline-block;
  position: relative;
  text-align: center;
  border: 1px solid rgba(191,177,166,.4);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.polaroid__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #F5DDD2 0%, #EDC1C4 24%, #C2BFE0 48%, #B6CFE0 72%, #B5C5A0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* polaroid with a real photo — overrides gradient via inline background-image */
.polaroid__img--photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.polaroid__img--photo::before { content: none !important; }
.polaroid__img::before {
  content: attr(data-label);
  font-family: var(--heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  letter-spacing: .04em;
  padding: 0 1rem;
  text-align: center;
}
.polaroid__caption {
  font-family: var(--script);
  font-size: 1.4rem;
  color: var(--ink-soft);
  margin: .9rem 0 0;
  line-height: 1;
}
.polaroid__tape {
  position: absolute;
  width: 80px; height: 22px;
  background: rgba(241, 222, 219, .55);
  border: 1px solid rgba(217,168,163,.35);
  box-shadow: 0 1px 2px rgba(87,74,69,.08);
  top: -10px;
}
.polaroid__tape--l { left: 14px; transform: rotate(-7deg); }
.polaroid__tape--r { right: 14px; transform: rotate(8deg); }

.polaroid--feature {
  width: min(420px, 70vw);
  transform: rotate(-1.2deg);
}
.polaroid--rot-l { transform: rotate(-3deg); }
.polaroid--rot-r { transform: rotate(2.4deg); }
.polaroid--offset { margin-top: 3rem; margin-left: -2.5rem; }
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }

/* =================== STORY =================== */
.section--story { background: transparent; }
.story { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.story__chapter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story__chapter--reverse { grid-template-columns: 1fr 1.1fr; }
.story__chapter--reverse .story__copy { order: 2; }
.story__chapter--reverse .story__art  { order: 1; }

.chapter-label {
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .78rem;
  color: var(--rose-deep);
  margin: 0 0 1rem;
}
.chapter-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.dropcap::first-letter {
  font-family: var(--display);
  font-size: 3.6em;
  float: left;
  line-height: .85;
  padding: .15em .12em 0 0;
  color: var(--rose-deep);
  font-style: italic;
}
.story__copy p { margin: 0 0 1rem; color: var(--ink-soft); }

.story__art { display: flex; align-items: center; justify-content: center; min-height: 460px; }

.story__divider {
  color: var(--gold);
  text-align: center;
  margin: 0 auto;
  width: min(400px, 60vw);
}
.story__divider svg { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .story__chapter, .story__chapter--reverse { grid-template-columns: 1fr; }
  .story__chapter--reverse .story__copy { order: 1; }
  .story__chapter--reverse .story__art  { order: 2; }
}

/* =================== DETAILS / CARDS =================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.4rem);
}
.card {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.8rem 2.6rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 30%),
    var(--paper-soft);
  border: 1px solid rgba(167,139,115,.35);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.4),
    0 1px 0 rgba(255,255,255,.6),
    0 20px 40px -28px rgba(60,36,25,.35);
  transition: transform .5s ease, box-shadow .5s ease;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  opacity: .8;
}
.card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.card::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.card--center { transform: translateY(-14px); border-color: rgba(176, 130, 110, .42); }
.card:hover   { transform: translateY(-6px); box-shadow: 0 30px 55px -28px rgba(60,36,25,.45); }
.card--center:hover { transform: translateY(-20px); }

.card__ornament {
  display: block;
  margin: 0 auto 1.25rem;
  width: 60px;
  color: var(--gold);
}
.card__eyebrow {
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5em;
  font-size: .72rem;
  color: var(--rose-deep);
  margin: 0 0 .55rem;
}
.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  margin: 0 0 .35rem;
  color: var(--ink);
  line-height: 1.1;
}
.card__time {
  font-family: var(--script);
  font-size: 1.4rem;
  color: var(--rose-deep);
  margin: 0 0 1rem;
  line-height: 1;
}
.card__rule {
  width: 40px; height: 1px;
  background: var(--ink-faint);
  margin: 0 auto 1rem;
}
.card__body {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
}
.card__addr {
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .25em;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card--center { transform: none; }
  .card--center:hover { transform: translateY(-6px); }
}

/* =================== SCHEDULE =================== */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  max-width: 760px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background:
    repeating-linear-gradient(to bottom, var(--ink-faint) 0 5px, transparent 5px 11px);
  opacity: .55;
}
.timeline li {
  display: grid;
  grid-template-columns: 100px 30px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 0;
  position: relative;
}
.timeline__time {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--rose-deep);
  text-align: right;
  line-height: 1;
  padding-top: .2rem;
}
.timeline__mark {
  width: 30px; height: 30px;
  display: inline-block;
  color: var(--sage-deep);
  background: var(--paper);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 0 6px var(--paper);
}
.timeline__mark svg { display: block; width: 100%; height: 100%; }
.timeline__copy h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin: 0 0 .25rem;
  line-height: 1.1;
  color: var(--ink);
}
.timeline__copy p {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
}

@media (max-width: 580px) {
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 60px 24px 1fr; }
  .timeline__time { font-size: 1.25rem; }
  .timeline__mark { width: 24px; height: 24px; }
}

/* =================== TRAVEL =================== */
.travel {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.travel__col { display: grid; gap: 1.6rem; }
.travel__h {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  margin: 0 0 .5rem;
  color: var(--rose-deep);
  line-height: 1;
}
.travel__block {
  border-top: 1px solid var(--ink-faint);
  padding-top: 1.2rem;
}
.travel__name {
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .85rem;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.travel__line { margin: 0 0 .55rem; color: var(--ink-soft); }
.kvp { display: inline-flex; gap: .8rem; align-items: baseline; }
.kvp b {
  font-family: var(--heading); font-weight: 500;
  text-transform: uppercase; font-size: .72rem; letter-spacing: .26em;
  color: var(--ink-faint);
}
.kvp i { font-style: normal; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }

.travel__divider { color: var(--blue-deep); opacity: .7; width: 24px; align-self: center; height: 100%; display: flex; align-items: center; justify-content: center; }
.travel__divider svg { width: 24px; height: 100%; max-height: 320px; }

.ribbon-link {
  display: inline-block;
  font-family: var(--heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose-deep);
  border-bottom: 1px solid var(--rose-deep);
  padding-bottom: 2px;
  margin-top: .4rem;
  transition: color .3s ease, letter-spacing .3s ease;
}
.ribbon-link::after { content: ' →'; transition: transform .3s ease; display: inline-block; }
.ribbon-link:hover { color: var(--ink); letter-spacing: .04em; }
.ribbon-link:hover::after { transform: translateX(4px); }

@media (max-width: 820px) {
  .travel { grid-template-columns: 1fr; }
  .travel__divider { transform: rotate(90deg); margin: 0 auto; height: 60px; }
}

/* =================== RSVP / REPLY CARD =================== */
.section--rsvp { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.rsvp { display: flex; justify-content: center; }
.reply-card {
  position: relative;
  max-width: 640px;
  width: 100%;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(255,255,255,.5), transparent 60%),
    var(--paper-soft);
  padding: clamp(2.5rem, 4vw, 4rem) clamp(1.6rem, 4vw, 3.6rem) clamp(2.5rem, 4vw, 4rem);
  border: 1px solid rgba(167,139,115,.45);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.4),
    0 30px 80px -40px rgba(60,36,25,.5);
  text-align: center;
}
.reply-card__corner {
  position: absolute;
  width: 50px; height: 50px;
  border: 1px solid var(--rose-deep);
  opacity: .75;
}
.reply-card__corner--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.reply-card__corner--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.reply-card__corner--bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.reply-card__corner--br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.reply-card__top {
  font-family: var(--heading);
  font-style: italic;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin: 0 0 .6rem;
  font-size: .95rem;
}
.reply-card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin: 0 0 .25rem;
  color: var(--ink);
  line-height: 1;
}
.reply-card__sub {
  font-family: var(--heading);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.reply-form { text-align: left; }
.field { margin-bottom: 1.3rem; display: block; }
.field label,
.field legend {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .72rem;
  color: var(--rose-deep);
  margin-bottom: .45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  padding: .55rem .2rem;
  outline: none;
  border-radius: 0;
  transition: border-color .3s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); font-style: italic; font-family: var(--heading); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--rose-deep); }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
                    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field--radio { border: none; padding: 0; margin: 0 0 1.5rem; }
.field--radio legend { margin-bottom: .9rem; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: 1.8rem;
  font-family: var(--display);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.radio input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  display: inline-block;
  margin: 0;
  position: relative;
  flex: 0 0 18px;
  cursor: pointer;
}
.radio input:checked {
  border-color: var(--rose-deep);
}
.radio input:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--rose-deep);
}
.radio input:checked + span { color: var(--ink); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 580px) { .field-row { grid-template-columns: 1fr; } }

/* wax seal submit */
.seal-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.wax-seal {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  font-family: inherit;
  transition: transform .3s ease;
}
.wax-seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #E8CC92 0%, #B89968 45%, #7E6638 92%);
  box-shadow:
    0 18px 35px -14px rgba(126,102,56,.55),
    inset 0 2px 6px rgba(255,255,255,.45),
    inset 0 -6px 10px rgba(80,60,28,.32);
}
.wax-seal::after {
  /* uneven wax edge */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 47%, rgba(94,46,39,.0) 47%, rgba(94,46,39,.6) 50%, transparent 51%);
  filter: blur(.5px);
  clip-path: polygon(50% 0%, 60% 8%, 72% 4%, 80% 14%, 92% 14%, 96% 30%, 100% 42%, 92% 54%, 100% 66%, 92% 78%, 78% 82%, 70% 96%, 56% 90%, 44% 100%, 34% 90%, 22% 96%, 14% 84%, 6% 78%, 4% 64%, 0% 50%, 6% 36%, 0% 24%, 14% 18%, 22% 6%, 36% 8%, 44% 0%);
  background-color: #957A4F;
  opacity: .9;
  z-index: -1;
}
.wax-seal__inner {
  position: relative;
  width: 86px; height: 86px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #FCEFC9;
}
.wax-seal__monogram {
  width: 70px; height: 70px;
  display: block;
  object-fit: contain;
  /* lift gold artwork toward cream so it reads against the gold wax */
  filter:
    brightness(0) saturate(100%) invert(95%) sepia(20%) saturate(540%)
    hue-rotate(355deg) brightness(105%) contrast(98%)
    drop-shadow(0 1px 1px rgba(80,60,28,.45))
    drop-shadow(0 -1px 0 rgba(255,255,255,.25));
}
.wax-seal__hint {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--heading);
  font-style: italic;
  font-size: .8rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.wax-seal:hover { transform: rotate(-6deg) scale(1.03); }
.wax-seal:active { transform: rotate(-3deg) scale(.97); }

.reply-card__sealed {
  font-family: var(--script);
  font-size: 1.6rem;
  text-align: center;
  margin: 1.6rem 0 0;
  color: var(--rose-deep);
  height: 0; overflow: hidden;
  opacity: 0;
  transition: opacity .6s ease;
}
.reply-card.is-sealed .reply-form > *:not(.reply-card__sealed) {
  opacity: .25;
  pointer-events: none;
  transition: opacity .6s ease;
}
.reply-card.is-sealed .reply-card__sealed {
  height: auto;
  opacity: 1;
}

/* =================== WEDDING PARTY =================== */
.party {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.party__divider { color: var(--lavender-deep); opacity: .7; align-self: stretch; display: flex; justify-content: center; }
.party__divider svg { width: 24px; height: 100%; }
.party__side-title {
  font-family: var(--script);
  font-size: clamp(2rem, 3vw, 2.6rem);
  text-align: center;
  color: var(--rose-deep);
  margin: 0 0 2rem;
  line-height: 1;
}
.party__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.portrait {
  margin: 0;
  text-align: center;
}
.portrait__img {
  aspect-ratio: 1 / 1.15;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #F5DDD2 0%, #EDC1C4 28%, #C2BFE0 55%, #B6CFE0 80%, #B5C5A0 100%);
  position: relative;
  border: 8px solid #FFFFFF;
  outline: 1px solid rgba(191,177,166,.4);
  box-shadow: 0 12px 24px -12px rgba(87,74,69,.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: transform .5s ease;
}
.portrait__img::before {
  content: attr(data-label);
  font-family: var(--heading);
  font-style: italic;
  color: var(--ink-soft);
  font-size: .9rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.portrait:hover .portrait__img { transform: scale(1.02) rotate(-.6deg); }
.portrait__role {
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .7rem;
  color: var(--rose-deep);
  margin: 0 0 .3rem;
}
.portrait__name {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.portrait--feature .portrait__img { aspect-ratio: 1 / 1.2; }
.portrait--feature .portrait__name {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--rose-deep);
}

@media (max-width: 820px) {
  .party { grid-template-columns: 1fr; }
  .party__divider { transform: rotate(90deg); height: 60px; }
}

/* =================== GALLERY =================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
  margin: 0 auto;
}
.gallery .polaroid {
  width: 100%;
  margin: 0;
}
.polaroid--g1 { grid-column: 1 / span 5; margin-top: 0; }
.polaroid--g2 { grid-column: 7 / span 5; margin-top: 4rem; }
.polaroid--g3 { grid-column: 2 / span 5; margin-top: 2rem; }
.polaroid--g4 { grid-column: 8 / span 5; margin-top: -1.5rem; }

@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .polaroid { grid-column: span 1 !important; margin-top: 0 !important; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
}

/* =================== REGISTRY =================== */
.registry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}
.reg-card {
  display: block;
  padding: 2.4rem 1.8rem;
  background: var(--paper-soft);
  border: 1px solid rgba(167,139,115,.35);
  text-align: center;
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease, background .4s ease;
}
.reg-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(176,130,110,.45);
  pointer-events: none;
}
.reg-card__top {
  font-family: var(--script);
  color: var(--rose-deep);
  font-size: 1.25rem;
  margin: 0 0 .25rem;
  line-height: 1;
}
.reg-card__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 .35rem;
  color: var(--ink);
  line-height: 1.1;
}
.reg-card__line {
  font-family: var(--heading);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.reg-card__cta {
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  color: var(--rose-deep);
  margin: 0;
}
.reg-card:hover {
  transform: translateY(-4px);
  background: #FBF5E5;
  box-shadow: 0 20px 40px -28px rgba(60,36,25,.45);
}

@media (max-width: 820px) { .registry { grid-template-columns: 1fr; } }

/* =================== FAQ =================== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-top: 1px solid rgba(167,139,115,.4);
  padding: 1.6rem 0;
  position: relative;
}
.faq details:last-of-type { border-bottom: 1px solid rgba(167,139,115,.4); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--ink);
  transition: color .3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rose-deep); }
.faq__plus {
  width: 22px; height: 22px;
  position: relative;
  flex: 0 0 22px;
}
.faq__plus::before,
.faq__plus::after {
  content: '';
  position: absolute;
  background: var(--rose-deep);
  transition: transform .35s ease;
}
.faq__plus::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq__plus::after  { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq details[open] .faq__plus::after { transform: translateX(-50%) rotate(90deg); }
.faq details p {
  margin: 1rem 0 .25rem;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 70ch;
}
.faq details p a {
  color: var(--rose-deep);
  border-bottom: 1px solid var(--rose-deep);
}

/* =================== FOOTER =================== */
.footer {
  text-align: center;
  padding: clamp(4rem, 7vw, 7rem) 1.25rem clamp(3rem, 5vw, 4.5rem);
  margin-top: 2rem;
  position: relative;
}
.footer__ornament {
  color: var(--gold);
  width: min(400px, 60vw);
  margin: 0 auto 2rem;
}
.footer__ornament svg { width: 100%; height: auto; display: block; }
.footer__script {
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 4.6rem);
  color: var(--gold-deep);
  margin: 0 0 .4rem;
  line-height: 1;
}
.footer__date {
  font-family: var(--display);
  letter-spacing: .35em;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.footer__line {
  font-family: var(--heading);
  font-style: italic;
  color: var(--ink-soft);
  margin: .3rem 0;
}
.footer__line a {
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
}
.footer__fineprint {
  margin-top: 2rem;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .68rem;
  color: var(--ink-faint);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
