/* Shared styling, matched to the wedding invitation: watercolour paper, evergreen ink,
   eucalyptus sage, winter berries and a teal tartan bow. */
[x-cloak] { display: none !important; }

body.invite-bg {
  background-color: #FBFCF6; /* the invitation's paper */
  /* faint watercolour-paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: #0F2E2C;
  -webkit-font-smoothing: antialiased;
}
/* Full-width wrapper: the arch and thistles reach past the content on narrow phones; stop sideways scrolling. */
.page-clip { overflow-x: clip; }

.invite-card {
  position: relative;
  background: rgba(255, 255, 252, .88);
  border: 1px solid #CFDFD8;
  box-shadow: 0 0 0 5px rgba(255, 255, 252, .88), 0 0 0 6px #E3ECE7, 0 18px 40px -22px rgba(15, 46, 44, .35);
}

.thistle { position: absolute; pointer-events: none; }
.thistle svg { display: block; width: 100%; height: 100%; }

.heading-serif { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: .08em; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; color: #0F3634; letter-spacing: 0; }

/* ---------- invitation header on the guest page ----------
   The invitation's whole floral arch (text painted out) fills the header edge to edge;
   the date, title, photo and tartan bow sit inside it. Sizes use cqw (1% of the header's
   width) so everything keeps its place in the arch at any screen width. */
.hero {
  position: relative; container-type: inline-size;
  width: calc(100% + 2rem); max-width: 500px; margin: 0 -1rem; /* bleed past the page padding */
  aspect-ratio: 900 / 1274; text-align: center;
}
@media (min-width: 500px) { .hero { margin: 0 auto; width: 100%; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(/static/wreath.jpg) center / 100% 100% no-repeat;
  mix-blend-mode: darken; /* the artwork's paper melts into the page's paper */
}
.hero > * { position: absolute; left: 0; right: 0; margin: 0 auto; }
.hero-title { top: 29cqw; font-size: 7.6cqw; line-height: 1.08; }
.hero-portrait { top: 54cqw; width: 35cqw; height: 35cqw; z-index: 1; }
.hero-bow {
  top: 83.5cqw; width: 29cqw; height: auto; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(15, 46, 44, .25));
}

/* ---------- shared pieces ---------- */
.ribbon {
  position: relative;
  height: 22px;
  background-color: #14324A;
  background-image:
    repeating-linear-gradient(90deg, rgba(46, 104, 105, .75) 0 9px, transparent 9px 14px, rgba(31, 111, 120, .6) 14px 19px, transparent 19px 23px, rgba(200, 167, 90, .65) 23px 24px, transparent 24px 28px),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .15));
  box-shadow: 0 2px 6px rgba(15, 46, 44, .3);
}
.ribbon .bow { position: absolute; left: 50%; top: 50%; width: 120px; height: 58px; transform: translate(-50%, -42%); }

.tartan {
  background-color: #14324A;
  background-image:
    repeating-linear-gradient(0deg, rgba(46, 104, 105, .45) 0 7px, transparent 7px 12px, rgba(31, 111, 120, .55) 12px 16px, transparent 16px 20px, rgba(200, 167, 90, .6) 20px 21px, transparent 21px 24px),
    repeating-linear-gradient(90deg, rgba(46, 104, 105, .45) 0 7px, transparent 7px 12px, rgba(31, 111, 120, .55) 12px 16px, transparent 16px 20px, rgba(200, 167, 90, .6) 20px 21px, transparent 21px 24px);
}

.portrait {
  border-radius: 9999px;
  object-fit: cover;
  border: 4px solid #FFFFFC;
  box-shadow: 0 0 0 1.5px #9FBDB3, 0 10px 24px -12px rgba(15, 46, 44, .5);
}

.field {
  width: 100%;
  border: 1.5px solid #CFDFD8;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  font-size: 17px; /* >=16px stops iOS zooming on focus */
  color: #0F2E2C;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus { border-color: #2E6869; box-shadow: 0 0 0 4px rgba(46, 104, 105, .15); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border-radius: 12px;
  background: #1F4F4C;
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 15px 20px;
  font-size: 17px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: #173E3B; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #A9C0B9; box-shadow: none; cursor: not-allowed; }
