:root {
  --paper: #faf6ec;
  --cream: #fffdf8;
  --ink: #2f2620;
  --muted: #7a6f61;
  --faint: #cbc3b4;
  --brand: #8a5a30;
  --sand: #f2ebd7;

  --frame: clamp(9px, 0.85vw, 16px);
  --radius: clamp(16px, 1.5vw, 26px);

  /* Driven by script.js */
  --p: 0;    /* hero shrink 0 → 1 */
  --q: 0;    /* collage entrance 0 → 1 */
  --nav: 0;  /* nav pill solidify 0 → 1 */

  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", Didot, "Bodoni 72", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- nav pill */

/* Sits flush and transparent over the hero, then condenses into a floating
   pill as --nav goes 0 → 1. */
.pill {
  --nav-w0: calc(100% - var(--frame) * 2);
  --nav-w1: min(920px, 74%);

  align-items: center;
  backdrop-filter: blur(calc(var(--nav) * 16px)) saturate(calc(1 + var(--nav) * 0.25));
  -webkit-backdrop-filter: blur(calc(var(--nav) * 16px)) saturate(calc(1 + var(--nav) * 0.25));
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(60, 45, 30, calc(var(--nav) * 0.35));
  color: color-mix(in srgb, var(--ink) calc(var(--nav) * 100%), var(--cream));
  display: flex;
  gap: 1.4rem;
  isolation: isolate;
  justify-content: space-between;
  left: 50%;
  padding-block: calc(var(--nav) * 0.55rem);
  padding-left: calc(2rem + (1.7rem - 2rem) * var(--nav));
  padding-right: calc(2rem + (0.6rem - 2rem) * var(--nav));
  position: fixed;
  top: calc(var(--frame) + 1.35rem + (2px - 1.35rem) * var(--nav));
  transform: translateX(-50%);
  width: calc(var(--nav-w0) + (var(--nav-w1) - var(--nav-w0)) * var(--nav));
  z-index: 50;
}

/* frosted rather than solid: the blur on .pill shows through the cream */
.pill::before {
  background: var(--cream);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: calc(var(--nav) * 0.68);
  position: absolute;
  z-index: -1;
}

.pill__mark {
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pill__links { display: flex; gap: clamp(0.8rem, 2vw, 1.8rem); }

.pill__links a {
  font-size: 0.95rem;
  opacity: 0.92;
  padding: 0.2rem 0;
  transition: opacity 180ms ease;
}

.pill__links a:hover, .pill__links a:focus-visible { opacity: 0.6; }

.pill__cta {
  background: var(--brand);
  border-radius: 999px;
  color: #fdf7ef;
  font-size: 0.95rem;
  padding: 0.72rem 1.35rem;
  transition: background-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.pill__cta:hover, .pill__cta:focus-visible { background: #77492473; background: #774924; transform: translateY(-1px); }

/* Narrow screens fold the links into a card that drops from the pill. */
.pill__burger {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: none;
  flex: none;
  height: 2.6rem;
  margin-left: -0.4rem;
  padding: 0;
  position: relative;
  width: 2.6rem;
}

.pill__burger i {
  background: currentColor;
  border-radius: 2px;
  height: 1.6px;
  left: 50%;
  position: absolute;
  top: 50%;
  transition: transform 280ms cubic-bezier(0.3, 0.7, 0.3, 1);
  width: 1.4rem;
}

.pill__burger i:first-child { transform: translate(-50%, -4px); }
.pill__burger i:last-child  { transform: translate(-50%, 3px); }
.pill.is-open .pill__burger i:first-child { transform: translate(-50%, -0.5px) rotate(45deg); }
.pill.is-open .pill__burger i:last-child  { transform: translate(-50%, -0.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .pill__burger { display: block; }
  .pill__cta { margin-left: auto; }

  .pill__links {
    background: var(--cream);
    border-radius: 22px;
    box-shadow: 0 22px 44px -18px rgba(60, 45, 30, 0.38);
    flex-direction: column;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 0.6rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(0.3, 0.7, 0.3, 1), visibility 0s linear 280ms;
    visibility: hidden;
  }

  .pill.is-open .pill__links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
    visibility: visible;
  }

  .pill__links a {
    border-radius: 14px;
    color: var(--ink);
    font-size: 1.05rem;
    opacity: 1;
    padding: 0.85rem 1rem;
  }

  .pill__links a:hover, .pill__links a:focus-visible { background: var(--sand); opacity: 1; }
}

/* -------------------------------------------------------- 1. hero → collage */

.stage { height: 240svh; position: relative; }

.stage__pin {
  /* One gap value, used between every photo and the hero and between rows,
     so the collage reads as evenly spaced at any width. */
  --hero-w: clamp(240px, 39%, 660px);
  --gap: clamp(10px, 1.1vw, 18px);
  --edge: clamp(12px, 1.6vw, 30px);
  --col: calc(50% - var(--hero-w) / 2 - var(--gap) - var(--edge));

  height: 100svh;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.hero-card {
  --w0: calc(100% - var(--frame) * 2);
  --h0: calc(100% - var(--frame) * 2);
  --w1: var(--hero-w);
  --h1: clamp(340px, 78%, 920px);
  --r1: 22px;

  background: #3f3027;
  border-radius: calc(var(--radius) + (var(--r1) - var(--radius)) * var(--p));
  height: calc(var(--h0) + (var(--h1) - var(--h0)) * var(--p));
  left: 50%;
  margin: 0;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--w0) + (var(--w1) - var(--w0)) * var(--p));
  will-change: width, height;
  z-index: 1;
}

.hero-card__img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-card__veil {
  background:
    linear-gradient(180deg, rgba(18, 13, 10, 0.34) 0%, rgba(18, 13, 10, 0.02) 36%, rgba(14, 10, 8, 0.46) 100%);
  inset: 0;
  opacity: calc(1 - var(--p) * 1.8);
  pointer-events: none;
  position: absolute;
}

.hero-card__title {
  color: var(--cream);
  opacity: calc(1 - var(--p) * 2.4);
  pointer-events: none;
}

.hero-card__title { inset: auto 2rem 1.65rem; position: absolute; }

.eyebrow, .hero-card time {
  font-size: 0.68rem;
  letter-spacing: 0.075em;
  margin: 0;
  text-transform: uppercase;
}

/* the date sits on the eyebrow's line, at the other end */
.hero-card time { position: absolute; right: 0.1rem; top: 0; }

.hero-card h1 {
  align-items: baseline;
  display: flex;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(5.5rem, 17.3vw, 18.5rem);
  font-weight: 400;
  justify-content: space-between;
  letter-spacing: -0.065em;
  line-height: 0.66;
  margin: clamp(0.9rem, 3vw, 2.6rem) -0.035em 0;
  text-shadow: 0 2px 28px rgba(25, 17, 12, 0.12);
  white-space: nowrap;
}

.hero-card h1 i { font-size: 0.55em; font-style: italic; letter-spacing: -0.08em; margin: 0 0.11em; }

/* satellite photos that slide in around the shrinking hero */

.sat {
  border-radius: 18px;
  margin: 0;
  opacity: calc(var(--q) * 1.5);
  overflow: hidden;
  position: absolute;
  transform: translateX(calc(var(--from) * (1 - var(--q))));
  will-change: transform;
  z-index: 2;
}

.sat img { height: 100%; object-fit: cover; width: 100%; }

.sat--a { --from: -140%; height: 46%; left: var(--edge);  top: 6%; width: var(--col); }
.sat--b { --from: -160%; height: 26%; left: var(--edge);  top: calc(52% + var(--gap)); width: var(--col); }
.sat--c { --from:  160%; height: 26%; right: var(--edge); top: 18%; width: var(--col); }
.sat--d { --from:  140%; height: 44%; right: var(--edge); top: calc(44% + var(--gap)); width: var(--col); }

/* placeholder tones — visible until real photos are dropped in */
.sat--a { background: linear-gradient(155deg, #1d2a4a, #b8752e 62%, #e0b070); }
.sat--b { background: linear-gradient(155deg, #4a4a4a, #9a9a9a 60%, #d6d6d6); }
.sat--c { background: linear-gradient(155deg, #2c4636, #6f8a63 58%, #a9bd93); }
.sat--d { background: linear-gradient(155deg, #4a3226, #a05f42 60%, #d79a72); }

/* ------------------------------------------------------- 2. invitation line */

.lit { height: 200svh; position: relative; }

.lit__pin {
  align-items: center;
  display: flex;
  height: 100svh;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  position: sticky;
  top: 0;
}

.lit__line {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

.lit__line .word {
  --lit: 0;
  color: color-mix(in srgb, var(--ink) calc(var(--lit) * 100%), var(--faint));
  display: inline-block;
}

.lit--invite .lit__line { font-size: clamp(2.1rem, 5.6vw, 5.2rem); max-width: 26ch; }

.lit--vision .lit__pin { justify-content: center; }

.lit--vision .lit__line {
  font-size: clamp(1.7rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.18;
  max-width: 30ch;
  text-align: center;
}

/* ------------------------------------------------------------ 3. our story */

.story { position: relative; }

.story__pin {
  /* The card and its chapter share one anchor so they always line up.
     --stack-y is the card's centre, --card-w its width. */
  --stack-y: 61%;
  --card-w: clamp(260px, 30vw, 500px);

  height: 100svh;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.story__title {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 400;
  left: 50%;
  line-height: 0.9;
  margin: 0;
  position: absolute;
  text-align: center;
  pointer-events: none;
  top: clamp(3.2rem, 9svh, 8rem);
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 4;
}

/* centred on the card beside it; script.js adds --rise as it fades in */
.chapter {
  position: absolute;
  top: var(--stack-y);
  transform: translateY(calc(-50% + var(--rise, 0px)));
  width: clamp(15rem, 22%, 22rem);
  z-index: 2;
}

.chapter--left  { left: 8%;  text-align: right; }
.chapter--right { right: 8%; text-align: left; }

.chapter h3 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 0.9rem;
}

.chapter p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.55;
  margin: 0;
}

.stack { inset: 0; position: absolute; z-index: 3; }

.polaroid {
  background: #fbf9f4;
  border-radius: 14px;
  box-shadow: 0 30px 55px -26px rgba(60, 45, 30, 0.45);
  left: 50%;
  margin: 0;
  padding: 0.9rem 0.9rem 0;
  position: absolute;
  top: var(--stack-y);
  width: var(--card-w);
  will-change: transform, opacity;
}

.polaroid__frame { aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; }
.polaroid__frame img { height: 100%; object-fit: cover; width: 100%; }

.polaroid figcaption {
  font-size: clamp(0.85rem, 1.05vw, 1.05rem);
  padding: 1rem 0.25rem 1.05rem;
  text-align: center;
}

.polaroid:nth-of-type(1) .polaroid__frame { background: linear-gradient(150deg, #55606b, #9aa7b0 58%, #cfd7dc); }
.polaroid:nth-of-type(2) .polaroid__frame { background: linear-gradient(150deg, #3a3a3a, #8c8c8c 60%, #cccccc); }
.polaroid:nth-of-type(3) .polaroid__frame { background: linear-gradient(150deg, #1f4d6e, #4e94b8 58%, #b8dcea); }
.polaroid:nth-of-type(4) .polaroid__frame { background: linear-gradient(150deg, #4a3a22, #9c7c3f 60%, #e0c98a); }
.polaroid:nth-of-type(5) .polaroid__frame { background: linear-gradient(150deg, #2b2140, #7b5a86 58%, #e2b199); }
.polaroid:nth-of-type(6) .polaroid__frame { background: linear-gradient(150deg, #2f4632, #6f8a63 58%, #bcd0a5); }

/* ---------------------------------------------------------------- responsive */

/* Short windows: keep the stack clear of the heading. */
@media (max-height: 820px) {
  .story__title { font-size: clamp(3.4rem, 10vw, 7rem); }
  .story__pin { --stack-y: 62%; --card-w: clamp(220px, 24vw, 380px); }
}

@media (max-width: 900px) {
  /* Too narrow for text beside the card, so it reads top to bottom: the
     title, the chapter right under it, then the card with room to breathe,
     and the next card rising from the bottom of the screen. */
  .story__pin {
    --title-top: 5.4rem;
    --title-size: clamp(3rem, 9vw, 5.5rem);
    --chapter-top: calc(var(--title-top) + var(--title-size) * 0.95 + 1.1rem);
    --card-w: min(66vw, 380px);
    --half: calc(var(--card-w) * 0.375 + 1.3rem);
    /* clear of a four-line chapter, or lower still on tall screens */
    --stack-y: max(calc(var(--chapter-top) + 9.5rem + var(--half)), 58svh);
  }
  .story__title { font-size: var(--title-size); top: var(--title-top); }
  .chapter,
  .chapter--left,
  .chapter--right {
    left: 50%;
    right: auto;
    text-align: center;
    top: var(--chapter-top);
    transform: translate(-50%, var(--rise, 0px));
    width: min(88%, 32rem);
  }
  .chapter h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
  .chapter p { color: var(--muted); font-size: 1rem; }
  .sat--b, .sat--c { display: none; }
}

@media (max-width: 640px) {
  :root { --frame: 8px; --radius: 16px; }

  .pill {
    --nav-w1: 90%;
    gap: 0.6rem;
    padding-block: calc(var(--nav) * 0.45rem);
    padding-left: calc(1rem + (1.05rem - 1rem) * var(--nav));
    padding-right: calc(1rem + (0.45rem - 1rem) * var(--nav));
  }
  .pill__mark { font-size: 1rem; }
  .pill__cta { font-size: 0.85rem; padding: 0.62rem 1rem; }

  .hero-card__title { inset: auto 1rem 1.3rem; }
  .hero-card time { font-size: 0.58rem; right: 0; }
  .eyebrow { font-size: 0.58rem; }
  .hero-card h1 { font-size: clamp(3.6rem, 19vw, 8.2rem); margin-top: 1rem; }

  /* A phone has no room for side columns, so the collage goes vertical: the
     hero rises and shortens into the top of the screen and two photos slide
     up side by side beneath it. */
  .hero-card {
    --w1: calc(100% - var(--edge) * 2);
    --h1: 50%;
    top: calc(50% - var(--p) * 12%);
  }
  .hero-card__img { object-position: 18% 30%; }

  .sat {
    bottom: 4%;
    height: auto;
    top: calc(63% + var(--gap));
    transform: translateY(calc(var(--from) * (1 - var(--q))));
    width: calc(50% - var(--edge) - var(--gap) / 2);
  }
  .sat--a { --from: 120%; left: var(--edge); }
  .sat--d { --from: 150%; right: var(--edge); }

  .story__pin { --card-w: 74vw; --title-size: clamp(2.8rem, 12vw, 3.6rem); }
  .polaroid figcaption { padding: 0.75rem 0.25rem 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------- 4. the day + confetti */

.join {
  align-items: center;
  background: var(--sand);
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(5rem, 14svh, 10rem) clamp(1.25rem, 5vw, 5rem);
  position: relative;
}

.join__confetti {
  /* A canvas is a replaced element: inset alone leaves it at its intrinsic
     size, so the box has to be sized explicitly. */
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.join__inner { position: relative; text-align: center; z-index: 1; }

.join__lead {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 3rem);
  font-weight: 400;
  margin: 0;
}

.join__date {
  font-family: var(--display);
  font-size: clamp(3rem, 9.2vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: clamp(1.6rem, 4vw, 3.4rem) 0 clamp(2.4rem, 6vw, 5rem);
}

.countdown {
  align-items: flex-start;
  display: flex;
  gap: clamp(0.8rem, 2.4vw, 2.4rem);
  justify-content: center;
}

.unit { display: flex; flex-direction: column; gap: 0.6rem; min-width: clamp(3.5rem, 7vw, 6rem); }

.unit__value {
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.unit__label {
  color: var(--muted);
  font-size: clamp(0.6rem, 0.85vw, 0.78rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.countdown__sep {
  color: var(--faint);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.1;
}

@media (max-width: 560px) {
  .countdown { flex-wrap: wrap; gap: 1rem 0.6rem; }
  .countdown__sep { display: none; }
  .unit { min-width: 4.4rem; }
}

/* ------------------------------------------- 5. the two ceremonies, as tickets */

.venues {
  background: var(--paper);
  /* the tickets slide in from the sides; without this a phone widens the page */
  overflow-x: clip;
  padding: clamp(5rem, 14svh, 10rem) clamp(1.25rem, 5vw, 5rem) clamp(6rem, 16svh, 12rem);
}

.venues__head { margin: 0 auto clamp(3rem, 7vw, 5.5rem); max-width: 60rem; text-align: center; }

.venues__eyebrow {
  color: var(--muted);
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  letter-spacing: 0.24em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

.venues__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.venues__grid {
  align-items: stretch;
  display: grid;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 78rem;
}

/* the ornamental "&" on the seam between the two tickets */
.venues__divider {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.venues__divider::before {
  background: linear-gradient(180deg, transparent, var(--faint) 18%, var(--faint) 82%, transparent);
  content: "";
  inset: 0 auto;
  position: absolute;
  width: 1px;
}

.venues__divider span {
  background: var(--paper);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-style: italic;
  padding: 0.7rem 0.5rem;
  position: relative;
}

/* --- the ticket ------------------------------------------------------------ */

.venue {
  --tilt: 0deg;
  --enter: 0px;
  --accent: var(--brand);
  --card: #fbf9f4;

  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 34px 60px -34px rgba(60, 45, 30, 0.42);
  display: flex;
  flex-direction: column;
  opacity: 0;
  position: relative;
  transform: translateX(var(--enter));
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.venue--trad  { --accent: #a4552e; --card: #f8f0e4; --enter: -46px; --tilt: -1.1deg; }
.venue--white { --accent: #6c7c66; --card: #fbfaf5; --enter:  46px; --tilt:  1.1deg; }

.venue.is-in { opacity: 1; transform: translateX(0) rotate(var(--tilt)); }
.venue.is-in:hover { transform: translateX(0) rotate(0deg) translateY(-8px); }

.venue__stamp {
  background: var(--accent);
  border-radius: 999px;
  color: #fdf8f1;
  font-size: 0.62rem;
  left: 1.4rem;
  letter-spacing: 0.2em;
  padding: 0.5rem 0.9rem;
  position: absolute;
  text-transform: uppercase;
  top: 1.4rem;
  z-index: 2;
}

.venue__art {
  aspect-ratio: 5 / 4;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 78%, #1d1712), var(--accent) 55%, color-mix(in srgb, var(--accent) 32%, #fff6e6));
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.venue__art img { height: 100%; object-fit: cover; width: 100%; }

/* the perforated tear-line between the picture and the details */
.venue__perf {
  height: 26px;
  position: relative;
}

.venue__perf::before {
  border-top: 1.5px dashed color-mix(in srgb, var(--accent) 38%, transparent);
  content: "";
  left: 1.6rem;
  position: absolute;
  right: 1.6rem;
  top: 50%;
}

.venue__notch {
  background: var(--paper);
  border-radius: 50%;
  height: 26px;
  position: absolute;
  top: 0;
  width: 26px;
}

.venue__notch--l { left: -13px; }
.venue__notch--r { right: -13px; }

.venue__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.4rem clamp(1.4rem, 2.6vw, 2.4rem) clamp(1.8rem, 3vw, 2.4rem);
}

.venue__kicker {
  color: var(--accent);
  font-size: clamp(0.64rem, 0.85vw, 0.78rem);
  letter-spacing: 0.22em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.venue__name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.9vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 1.6rem;
}

.venue__facts { display: grid; gap: 0.9rem; margin: 0 0 1.9rem; }

.venue__facts > div {
  align-items: baseline;
  border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  display: grid;
  gap: 1rem;
  grid-template-columns: 5.5rem 1fr;
  padding-top: 0.9rem;
}

.venue__facts dt {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.venue__facts dd { font-size: clamp(0.95rem, 1.15vw, 1.08rem); line-height: 1.45; margin: 0; }

.venue__link {
  align-self: flex-start;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-bottom: 0.35rem;
  transition: border-color 200ms ease;
}

.venue__link:hover, .venue__link:focus-visible { border-bottom-color: var(--accent); }

.venues__divider { opacity: 0; transition: opacity 900ms ease 200ms; }
.venues__divider.is-in { opacity: 1; }

@media (max-width: 900px) {
  .venues__grid { gap: 2rem; grid-template-columns: 1fr; max-width: 34rem; }
  .venues__divider { height: 5rem; }
  .venues__divider::before { height: 1px; inset: auto 0; top: 50%; width: auto; background: linear-gradient(90deg, transparent, var(--faint) 18%, var(--faint) 82%, transparent); }
  .venue--trad, .venue--white { --enter: 0px; --tilt: 0deg; }
}

@media (max-width: 480px) {
  .venue__facts > div { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .venue, .venues__divider { opacity: 1; transform: none; }
}

/* Fail visible: without JS the tickets simply appear, rather than never. */
@media (scripting: none) {
  .venue, .venues__divider { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ 6. RSVP */

.rsvp {
  align-items: center;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82svh;
  padding: clamp(5rem, 14svh, 10rem) clamp(1.25rem, 5vw, 5rem);
  text-align: center;
}

.rsvp__title {
  font-family: var(--display);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}

.rsvp__deadline {
  color: var(--muted);
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
  letter-spacing: 0.18em;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(2.2rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
}

.rsvp__button {
  background: var(--brand);
  border-radius: 999px;
  color: #fdf7ef;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  letter-spacing: 0.18em;
  padding: clamp(1.1rem, 1.8vw, 1.5rem) clamp(2.4rem, 4vw, 3.4rem);
  text-transform: uppercase;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.rsvp__button:hover, .rsvp__button:focus-visible {
  background: #774924;
  box-shadow: 0 18px 34px -18px rgba(90, 55, 25, 0.7);
  transform: translateY(-2px);
}

/* -------------------------------------------------- 7. additional details grid */

.sr-only {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.details {
  background: var(--paper);
  padding: clamp(5rem, 14svh, 10rem) clamp(1.25rem, 5vw, 5rem) clamp(6rem, 16svh, 12rem);
}

.details__head { margin: 0 auto clamp(3rem, 6vw, 4.5rem); max-width: 56rem; text-align: center; }

.details__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.2rem;
}

.details__sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  margin: 0;
}

.details__grid {
  display: grid;
  gap: clamp(1.1rem, 1.8vw, 1.7rem);
  /* Three across, so the cards stay large rather than shrinking to fit more. */
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 86rem;
}

@media (max-width: 1000px) { .details__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .details__grid { grid-template-columns: 1fr; } }

/* --- one card -------------------------------------------------------------- */

.detail {
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, #3b3128, #7d6450 55%, #c8ac89);
  border-radius: 22px;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  scroll-margin-top: 7rem;
}

.detail__img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -3;
}

.detail__scrim {
  background: linear-gradient(180deg, rgba(20, 14, 10, 0) 28%, rgba(20, 14, 10, 0.82));
  inset: 0;
  position: absolute;
  z-index: -2;
}

/* Title and blurb sit over the photo, at the bottom, clear of the + button. */
.detail__inner {
  color: var(--cream);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  padding-right: clamp(4.4rem, 6vw, 5.4rem);
  position: relative;
}

.detail__title {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 0.45rem;
  text-shadow: 0 1px 12px rgba(20, 14, 10, 0.35);
}

.detail__blurb {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  line-height: 1.4;
  margin: 0;
  opacity: 0.92;
  text-shadow: 0 1px 12px rgba(20, 14, 10, 0.35);
}

.detail__toggle {
  align-items: center;
  appearance: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 253, 248, 0.22);
  border: 0;
  border-radius: 50%;
  bottom: clamp(1.3rem, 2.2vw, 1.9rem);
  cursor: pointer;
  display: flex;
  height: clamp(2.6rem, 3.4vw, 3.2rem);
  justify-content: center;
  position: absolute;
  right: clamp(1.3rem, 2.2vw, 1.9rem);
  transition: background-color 220ms ease, transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: clamp(2.6rem, 3.4vw, 3.2rem);
  z-index: 2;
}

.detail:hover .detail__toggle, .detail__toggle:hover { background: rgba(255, 253, 248, 0.4); }

/* the + drawn as two bars, so it turns cleanly into an × */
.detail__plus { display: block; height: 1.6rem; position: relative; width: 1.6rem; }

.detail__plus::before,
.detail__plus::after {
  background: var(--cream);
  content: "";
  inset: 50% 0 auto;
  height: 1.5px;
  position: absolute;
  transform: translateY(-50%);
}

.detail__plus::after { transform: translateY(-50%) rotate(90deg); }



/* --- the sheet a card opens into ------------------------------------------- */

.sheet {
  background: var(--paper);
  border: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 70px -30px rgba(20, 14, 10, 0.5);
  color: var(--ink);
  height: 94svh;
  margin: auto auto 0;
  max-height: 94svh;
  max-width: 100%;
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  transform: translateY(4%);
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 300ms ease;
  width: 100%;
}

.sheet.is-open { opacity: 1; transform: translateY(0); }

.sheet::backdrop { background: rgba(20, 14, 10, 0); transition: background-color 420ms ease; }
.sheet.is-open::backdrop { background: rgba(20, 14, 10, 0.58); }

.sheet__bar {
  align-items: center;
  background: var(--paper);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1.3rem, 2.2vw, 2rem) clamp(1.25rem, 4vw, 3.4rem);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sheet__eyebrow {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.sheet__close {
  align-items: center;
  appearance: none;
  background: rgba(47, 38, 32, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex: none;
  height: clamp(2.6rem, 3.2vw, 3.1rem);
  justify-content: center;
  transition: background-color 200ms ease;
  width: clamp(2.6rem, 3.2vw, 3.1rem);
}

.sheet__close:hover { background: rgba(47, 38, 32, 0.16); }

.sheet__x { display: block; height: 1.15rem; position: relative; width: 1.15rem; }

.sheet__x::before,
.sheet__x::after {
  background: var(--ink);
  content: "";
  height: 1.6px;
  inset: 50% 0 auto;
  position: absolute;
  transform: translateY(-50%) rotate(45deg);
}

.sheet__x::after { transform: translateY(-50%) rotate(-45deg); }

.sheet__body {
  margin: 0 auto;
  max-width: 54rem;
  padding: clamp(1rem, 2vw, 2rem) clamp(1.25rem, 4vw, 3.4rem) clamp(5rem, 12svh, 8rem);
  width: 100%;
}

.sheet__hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, #3b3128, #7d6450 55%, #c8ac89);
  border-radius: 18px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  object-fit: cover;
  width: 100%;
}

.sheet__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.3rem;
}

.sheet__lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  max-width: 46ch;
}

.sheet__block { border-top: 1px solid rgba(47, 38, 32, 0.12); padding: clamp(1.8rem, 3vw, 2.6rem) 0 0; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }

.sheet__kicker {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.sheet__heading {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
}

.sheet__block p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  margin: 0 0 0.7rem;
}

.sheet__block strong { color: var(--ink); font-weight: 500; }

/* the wedding party: a portrait and a name for each person */
.people {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 1.8rem) clamp(0.9rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 42%), 1fr));
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.person__photo {
  align-items: center;
  aspect-ratio: 4 / 5;
  /* a shade darker than the sheet, so a photo-less tile still reads as a tile */
  background: rgba(47, 38, 32, 0.07);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.person__photo img { height: 100%; object-fit: cover; object-position: center 25%; width: 100%; }

.person__photo span {
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
}

.sheet__block .person__name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.sheet__block .person__role {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0.15rem 0 0;
}
.sheet__block a { border-bottom: 1px solid rgba(47, 38, 32, 0.3); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .sheet { transition: opacity 1ms; transform: none; }
}

/* ------------------------------------------------------ 9. questions & answers */

.qa {
  background: var(--paper);
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(16rem, 26rem) 1fr;
  margin: 0 auto;
  max-width: 84rem;
  padding: clamp(5rem, 14svh, 10rem) clamp(1.25rem, 5vw, 5rem) clamp(6rem, 16svh, 12rem);
}

.qa__aside { align-self: start; position: sticky; top: 8rem; }

.qa__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 clamp(1.8rem, 3.5vw, 3rem);
}

.qa__help { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); margin: 0 0 0.7rem; }

.qa__contact {
  border-bottom: 1px solid currentColor;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  padding-bottom: 0.15rem;
  transition: opacity 200ms ease;
}

.qa__contact:hover, .qa__contact:focus-visible { opacity: 0.6; }

.qa__item { border-top: 1px solid rgba(47, 38, 32, 0.14); }
.qa__list > .qa__item:last-child { border-bottom: 1px solid rgba(47, 38, 32, 0.14); }

.qa__row { margin: 0; }

.qa__q {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  gap: 1.5rem;
  justify-content: space-between;
  padding: clamp(1.4rem, 2.2vw, 1.9rem) 0;
  text-align: left;
  width: 100%;
}

.qa__q:hover { opacity: 0.66; }

.qa__chev {
  align-items: center;
  background: rgba(47, 38, 32, 0.07);
  border-radius: 7px;
  display: flex;
  flex: none;
  height: 1.9rem;
  justify-content: center;
  transition: transform 340ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 200ms ease;
  width: 1.9rem;
}

.qa__q:hover .qa__chev { background: rgba(47, 38, 32, 0.14); }
.qa__q[aria-expanded="true"] .qa__chev { transform: rotate(180deg); }

/* the chevron itself: two borders of a rotated square */
.qa__chev::before {
  border-bottom: 1.6px solid var(--ink);
  border-right: 1.6px solid var(--ink);
  content: "";
  height: 0.42rem;
  margin-top: -0.2rem;
  transform: rotate(45deg);
  width: 0.42rem;
}

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.qa__item.is-open .qa__a { grid-template-rows: 1fr; }

.qa__a-inner { min-height: 0; overflow: hidden; }

.qa__a-inner p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  margin: 0;
  max-width: 58ch;
  padding: 0 0 clamp(1.5rem, 2.4vw, 2rem);
}

.qa__a-inner strong { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .qa { grid-template-columns: 1fr; }
  .qa__aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .qa__a, .qa__chev { transition: none; }
}

/* ------------------------------------------------------------- 10. closing note */

.closing {
  align-items: center;
  background: linear-gradient(155deg, #3a2f24, #7c6247 55%, #c3a683);
  border-radius: var(--radius);
  display: flex;
  isolation: isolate;
  justify-content: center;
  margin: var(--frame);
  min-height: calc(100svh - var(--frame) * 2);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(4.5rem, 9svh, 7rem);
  position: relative;
  text-align: center;
}

.closing__img {
  filter: sepia(0.34) saturate(0.85) contrast(0.96);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.closing__veil {
  background: linear-gradient(180deg, rgba(58, 44, 32, 0.42), rgba(38, 28, 20, 0.56));
  inset: 0;
  position: absolute;
  z-index: -1;
}

.closing__quote {
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.6vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  max-width: 22ch;
  text-shadow: 0 2px 30px rgba(30, 20, 12, 0.3);
}

.closing__credit {
  bottom: clamp(1.4rem, 3svh, 2.4rem);
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.8rem;
  left: 0;
  letter-spacing: 0.04em;
  margin: 0;
  position: absolute;
  right: 0;
}

/* ------------------------------------------------------------ 0. entry gate */

body.is-gated { overflow: hidden; }

/* A dark room and one line, written in letter by letter. When it is done the
   room lightens to the site's paper and the guest walks in. */
.gate {
  align-items: center;
  background: #29241f;
  color: #fbf6ec;
  cursor: default;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: 0 clamp(1.25rem, 6vw, 4rem);
  position: fixed;
  transition: background-color 1100ms ease;
  z-index: 200;
}

.gate { overflow: hidden; }

.gate.is-ready { cursor: pointer; }

/* The photos that drop in behind the line. gate.js places each piece. */
.gate__stack { inset: 0; position: absolute; z-index: 0; }

.gate__piece { padding: 3px; position: absolute; visibility: hidden; will-change: transform; }
.gate.is-stacking .gate__piece { visibility: visible; }

.gate__piece img {
  background: #3a322b;
  border-radius: 4px;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  width: 100%;
}

/* darkens the middle so the line still reads over the photos */
.gate__veil {
  background: radial-gradient(ellipse 62% 48% at 50% 50%, rgba(26, 21, 17, 0.84), rgba(26, 21, 17, 0.5) 72%, rgba(26, 21, 17, 0.34));
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 1800ms ease;
  z-index: 1;
}

.gate.is-stacking .gate__veil { opacity: 1; }
.gate.is-leaving .gate__veil { opacity: 0; transition-duration: 900ms; }

/* the line lets go first, then the room lightens behind it */
.gate.is-leaving { background-color: var(--paper); transition: background-color 1200ms ease 450ms; }

.gate__line {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
  position: relative;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  transition: opacity 700ms ease, filter 700ms ease;
  z-index: 2;
}

.gate__word { display: inline-block; white-space: nowrap; }

.gate__char {
  display: inline-block;
  filter: blur(10px);
  opacity: 0;
  transform: translateY(0.12em);
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 55ms + 400ms);
}

.gate.is-writing .gate__char { filter: blur(0); opacity: 1; transform: none; }

.gate.is-leaving .gate__line {
  filter: blur(8px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 800ms ease, filter 800ms ease, transform 1200ms ease;
}

/* Arriving from the welcome screen: the site rises out of the same paper,
   and the photo settles as it comes. */
html.is-arriving { background: var(--paper); }
html.is-arriving body { animation: arrive 1300ms ease both; }
html.is-arriving .hero-card__img { animation: settle 2600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes arrive { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.06); } }

.gate__hint {
  bottom: clamp(2.5rem, 8svh, 5rem);
  color: rgba(251, 246, 236, 0.78);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  z-index: 2;
  font-size: 0.68rem;
  left: 0;
  letter-spacing: 0.32em;
  margin: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 900ms ease;
}

.gate.is-ready .gate__hint { opacity: 1; }

/* over the photos the hint sits in a small dark pill so it stays legible */
.gate__hint span {
  border-radius: 999px;
  display: inline-block;
  padding: 0.6rem 1.1rem 0.6rem 1.42rem;
  transition: background-color 900ms ease;
}

.gate.is-stacking .gate__hint span {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(26, 21, 17, 0.6);
}
.gate.is-leaving .gate__hint,
.gate.is-unlocked .gate__hint { opacity: 0; transition-duration: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .gate__char { filter: none; transform: none; transition: opacity 400ms ease; transition-delay: 0s; }
  .gate, .gate.is-leaving, .gate.is-leaving .gate__line { transition-duration: 300ms; transition-delay: 0s; }
  html.is-arriving body { animation-duration: 300ms; }
  html.is-arriving .hero-card__img { animation: none; }
}

/* ------------------------------------------------- gate password + preview */

.gate__lock {
  display: flex;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 7svh, 4rem);
  opacity: 0;
  pointer-events: none;
  position: relative;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
  width: min(22rem, 100%);
  z-index: 2;
}

.gate.is-unlocked .gate__lock { opacity: 1; pointer-events: auto; transform: none; }
.gate.is-leaving .gate__lock { opacity: 0; }

.gate__lock input {
  background: rgba(251, 246, 236, 0.06);
  border: 1px solid rgba(251, 246, 236, 0.22);
  border-radius: 999px;
  color: #fbf6ec;
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
}

.gate__lock input::placeholder { color: rgba(251, 246, 236, 0.45); }
.gate__lock input:focus { border-color: rgba(251, 246, 236, 0.6); outline: none; }

.gate__lock button {
  background: #fbf6ec;
  border: 0;
  border-radius: 50%;
  color: #29241f;
  cursor: pointer;
  flex: none;
  font-size: 1.1rem;
  height: 3rem;
  width: 3rem;
}

.gate__error {
  bottom: -2rem;
  color: #e8a58c;
  font-size: 0.82rem;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.preview-flag {
  background: #8a5a30;
  color: #fff8ee;
  font-size: 0.7rem;
  left: 0;
  letter-spacing: 0.2em;
  padding: 0.4rem;
  position: fixed;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  top: 0;
  z-index: 300;
}

/* --------------------------------------------------- prayers and wishes */

.wishes {
  background: var(--sand);
  padding: clamp(5rem, 14svh, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.wishes__head { margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); max-width: 46rem; text-align: center; }

.wishes__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.wishes__lead { color: var(--muted); font-size: clamp(0.98rem, 1.3vw, 1.15rem); line-height: 1.6; margin: 0; }

.wish-wall {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  justify-content: center;
  margin: 0 auto;
  max-width: 72rem;
}

/* Cards hug their message rather than stretching, so a short blessing does not
   leave a wide empty band. */
.wish {
  background: #fffdf8;
  border: 1px solid rgba(47, 38, 32, 0.09);
  border-radius: 18px;
  box-shadow: 0 20px 36px -30px rgba(60, 45, 30, 0.55);
  flex: 0 1 auto;
  margin: 0;
  max-width: 24rem;
  padding: clamp(1.5rem, 2.2vw, 1.9rem);
}

.wish__kind {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.wish blockquote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.4;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.wish blockquote::before { content: "“"; }
.wish blockquote::after { content: "”"; }

.wish figcaption {
  color: var(--muted);
  font-size: 0.88rem;
}

.wish figcaption::before { content: "— "; }

.wish--prayer { border-color: rgba(138, 90, 48, 0.28); }
.wish--prayer .wish__kind { color: var(--brand); }

/* --- only ever seen by a signed-in admin ------------------------------------- */

.adminnote {
  align-items: center;
  background: #2f2620;
  color: #fdf7ef;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.82rem;
  gap: 0.4rem 1rem;
  justify-content: center;
  left: 0;
  padding: 0.6rem 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 300;
}

.adminnote strong { font-weight: 500; }
.adminnote a { border-bottom: 1px solid rgba(253, 247, 239, 0.4); color: inherit; }
.adminnote a:hover { border-bottom-color: currentColor; }
.adminnote__go { background: var(--brand); border: 0; border-radius: 999px; padding: 0.3rem 0.8rem; }
.adminnote__go:hover { background: #a06c3c; }
