@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/font-26fb4610d4bc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/font-9fea608a947e.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #263c32;
  --purple: #593d79;
  --lime: #d3eb87;
  --cream: #fffaf0;
  --checks: repeating-conic-gradient(#36533f 0 25%, #fff6d8 0 50%) 0 0 / 14px 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background-color: #f8f6ec;
  background-image: radial-gradient(#56725117 .8px, transparent .8px);
  background-size: 8px 8px;
  font: 1.05rem/1.5 "DM Sans", system-ui, sans-serif;
}
.wrap { width: min(1120px, 92%); margin-inline: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #7d4db7; outline-offset: 4px; }
.back { padding-block: 1.05rem; font-size: .93rem; font-weight: 750; }
.back a, footer a { text-underline-offset: .2em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: "Baloo 2", "DM Sans", system-ui, sans-serif; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.7vw, 3rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 750; }
.invite {
  position: relative;
  text-align: center;
  overflow: hidden;
  border: 1px solid #adbf97;
  border-radius: 1.65rem;
  background: linear-gradient(130deg, #edf6d3, #f5f5df 52%, #fcf8e9);
  box-shadow: 0 9px 24px #30482f13;
}
.invite::before {
  content: "";
  height: .55rem;
  position: absolute;
  inset: 0 0 auto;
  background: var(--checks);
  z-index: 1;
  pointer-events: none;
}
.invite-copy {
  container-type: inline-size;
  padding: clamp(2rem, 4.5vw, 3.75rem) clamp(.8rem, 5vw, 4rem);
}
.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin-bottom: .95rem;
  font-size: .9rem;
  font-weight: 800;
  color: #42614b;
}
.flag {
  display: inline-block;
  width: 1.42rem;
  height: 1.08rem;
  background: var(--checks);
  background-size: 9px 9px;
  border-left: 2px solid #36533f;
  transform: rotate(-10deg);
  transform-origin: bottom left;
}
@media (prefers-reduced-motion: no-preference) {
  .flag { animation: start-wave .65s ease-in-out 3 alternate; }
  @keyframes start-wave { to { transform: rotate(5deg); } }
}
h1 { font-size: clamp(2.1rem, 14cqw, 4rem); font-weight: 800; line-height: .97; letter-spacing: -.045em; }
h1 em { color: var(--purple); font-style: normal; }
.intro { max-width: 50ch; margin: 1.05rem auto 1.35rem; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .85rem 1rem; }
.cta {
  display: inline-block;
  border-radius: .65rem;
  padding: .77rem 1.15rem;
  background: var(--purple);
  color: white;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 3px 0 #382947;
}
.cta span { margin-left: .3rem; }
.cta:hover { background: #483162; }
.lead-photo {
  margin: clamp(1.2rem, 3vw, 2rem) 0;
  padding: 7px;
  border: 1px solid #adbf97;
  border-radius: 49% 49% 20px 20px / 18% 18% 20px 20px;
  background: linear-gradient(125deg, #fffdf2, #dfecc9 40%, #e7def1 78%, #fff7df);
  box-shadow: 0 12px 25px #3b53252a;
  overflow: hidden;
}
.lead-photo img { display: block; width: 100%; height: auto; border-radius: inherit; }
.lead-photo figcaption { padding: .5rem; text-align: center; font-size: .86rem; }
.wishes {
  margin: clamp(1.4rem, 3.5vw, 2.8rem) 0;
  padding: clamp(1.15rem, 2.8vw, 2rem);
  border: 1px solid #c7b8d5;
  border-radius: 1.1rem;
  background: #f0eaf5;
}
.wishes h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); color: #453459; }
.wishes ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.wishes li { display: flex; align-items: center; gap: .65rem; font-weight: 650; line-height: 1.35; }
.wishes li::before {
  content: ""; width: .85rem; height: .85rem; flex: 0 0 .85rem; border: 3px solid #4b594c;
  border-radius: 50%; background: #e8d37b; box-shadow: 0 0 0 2px #f9f6ec;
}
.paddock { padding-block: clamp(1.3rem, 3vw, 2.2rem); text-align: center; }
.paddock h2::after {
  content: "";
  display: block;
  width: 7.5rem;
  height: .48rem;
  margin: .6rem auto .75rem;
  background: var(--checks);
  opacity: .5;
}
.section-lead { max-width: 58ch; margin: .5rem auto 1.2rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(13px, 3vw, 27px);
  padding: .75rem .35rem;
}
.gallery figure {
  position: relative;
  min-width: 0;
  padding: 7px;
  border: 1px solid #b9bfa8;
  border-radius: 4px;
  background: #fffdf7;
  box-shadow: 0 6px 14px #39453133;
}
.gallery figure:nth-child(3n+1) { transform: rotate(-2deg); }
.gallery figure:nth-child(3n+2) { transform: translateY(.6rem) rotate(1deg); }
.gallery figure:nth-child(3n) { transform: rotate(2deg); }
.gallery figure::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -.48rem;
  left: 37%;
  width: 26%;
  height: .85rem;
  background: repeating-linear-gradient(112deg, #d5e6b7 0 7px, #e7dcf0 7px 14px);
  pointer-events: none;
}
.gallery figure:nth-child(3n)::before { top: -7px; left: 35%; width: 31%; height: 15px; transform: rotate(-8deg); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.gallery .hippie-photo { object-position: center 53%; }
.gallery figcaption { padding: .5rem; text-align: center; font: italic bold 1.08rem Georgia, serif; overflow-wrap: anywhere; }
.gallery figcaption small { display: block; margin-top: .25em; font: .75rem/1.3 "DM Sans", system-ui, sans-serif; }
.questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(8rem, 18vw, 13rem);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-block: 2rem;
  padding: clamp(1.15rem, 3.5vw, 2.6rem);
  border: 1px solid #c6cdb9;
  border-radius: 1.25rem;
  background: #fffdf3;
}
.questions-copy { max-width: 68ch; }
.questions img { display: block; width: 100%; height: auto; }
.answers > div { margin-top: 1rem; }
.answers h3 { color: #433653; }
.answers p { margin-top: .4rem; }
.booking {
  text-align: center;
  padding: clamp(1.3rem, 3.5vw, 2.75rem);
  border-radius: 1.25rem; background: #324e3d; color: #fff8e7;
}
.booking p { max-width: 65ch; margin: .75rem auto 1.15rem; }
.booking .cta { color: #27372b; background: #dbef96; box-shadow: 0 3px #a9c167; }
.booking .cta:hover { background: #ebf6bb; }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.35rem; padding: 1.5rem 0 2rem; font-size: .92rem; }
.lightbox { width: min(92vw, 880px); max-height: 94dvh; padding: .8rem; border: 1px solid #b2c19e; border-radius: .8rem; color: var(--ink); background: var(--cream); }
.lightbox::backdrop { background: #17271de6; }
.lightbox form { text-align: right; margin: 0 0 .5rem; }
.lightbox button { padding: .45rem .8rem; border: 1px solid #a3ac91; border-radius: .4rem; background: white; color: inherit; font: inherit; cursor: pointer; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 70dvh; object-fit: contain; }
.lightbox figcaption { text-align: center; padding-top: .45rem; font-weight: 650; }
@media (max-width: 850px) {
  .wishes ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .invite-copy { padding: 1.9rem 1.15rem 1.4rem; }
  h1 { font-size: clamp(2.1rem, 10cqw, 3.85rem); }
  .intro { margin-block: .75rem 1.05rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .gallery figcaption { font-size: .84rem; }
  .questions { grid-template-columns: 1fr; gap: .8rem; }
  .questions img { width: 5.3rem; margin-inline: auto; grid-row: 1; }
}
@media (max-width: 650px) {
  .lead-photo { border-radius: 46% 46% 14px 14px / 12% 12% 14px 14px; }
  .gallery figure:nth-child(n) { transform: none; }
}
.gallery figure:nth-child(even) { transform: rotate(3deg) translateY(8px); }
@media (max-width: 450px) {
  .wishes ul { gap: .9rem; }
  .wishes li { align-items: flex-start; font-size: .93rem; }
  .wishes li::before { margin-top: .22em; }
}
