:root {
  --mist: #f2f4ee;
  --paper: #fbfbf7;
  --spruce: #2e3b33;
  --spruce-soft: #5d6b61;
  --sage: #8a9b82;
  --sage-wash: #dfe6d8;
  --sandstone: #d9b49a;
  --blush: #f3e4d8;
  --dusk: #bccdd3;
  --line: #d5dccd;
  --error: #9b4a3c;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --arch: 999px 999px 18px 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--spruce);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--spruce); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 34rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 340;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- site header ---------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 1.25rem;
}
.site-head .mark { font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.25rem; text-decoration: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-head nav a { text-decoration: none; font-size: 0.95rem; color: var(--spruce-soft); padding-block: 0.35rem; }
.site-head nav a:hover { color: var(--spruce); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 6rem); text-align: center; }
.hero h1 { font-size: clamp(3.25rem, 13vw, 8.5rem); font-weight: 300; }
.hero h1 .amp { font-style: italic; color: var(--sage); padding-inline: 0.06em; }
.hero .when { margin: 1.1rem 0 0; font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: clamp(1.2rem, 3.2vw, 1.6rem); color: var(--spruce-soft); }

.arches {
  display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: end;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 6vw, 4rem);
}
.arch {
  margin: 0; overflow: hidden; border-radius: var(--arch);
  background: var(--sage-wash); aspect-ratio: 2 / 3;
}
.arch:nth-child(1) { background: var(--blush); aspect-ratio: 3 / 4; }
.arch:nth-child(3) { background: var(--dusk); aspect-ratio: 3 / 4; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 40rem) {
  .arches { grid-template-columns: 1fr 1fr; }
  .arch:nth-child(2) { grid-column: 1 / -1; grid-row: 1; width: 82%; margin-inline: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .arch { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
  .arch:nth-child(2) { animation-delay: 80ms; }
  .arch:nth-child(1) { animation-delay: 260ms; }
  .arch:nth-child(3) { animation-delay: 380ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.band { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
.band .lede { max-width: 34rem; margin: 1rem 0 0; color: var(--spruce-soft); }
.split { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 46rem) { .split { grid-template-columns: 1fr; } }

.days { list-style: none; margin: 0; padding: 0; }
.days li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.days li:first-child { padding-top: 0; }
.days .what { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.35rem; }
.days .detail { color: var(--spruce-soft); }
@media (max-width: 30rem) { .days li { grid-template-columns: 1fr; gap: 0.15rem; } }

.site-foot { padding-block: 2.5rem 3.5rem; border-top: 1px solid var(--line); color: var(--spruce-soft); font-size: 0.95rem; text-align: center; }
.site-foot .mark { font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.5rem; color: var(--spruce); display: block; margin-bottom: 0.25rem; }

/* ---------- gallery ---------- */
.gallery-wrap { container-type: inline-size; }
.gallery {
  --gap: clamp(0.6rem, 1.6vw, 1.1rem); --cols: 4;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap);
  grid-auto-flow: dense; margin-top: clamp(1.5rem, 4vw, 2.5rem);
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.125);
}
@media (max-width: 46rem) { .gallery { --cols: 2; } }
.gallery figure { margin: 0; overflow: hidden; border-radius: 20px; background: var(--sage-wash); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- forms ---------- */
.card { background: var(--paper); border-radius: 28px; padding: clamp(1.5rem, 5vw, 2.5rem); box-shadow: 0 1px 0 rgba(46,59,51,.05), 0 24px 48px -32px rgba(46,59,51,.28); }
.field { margin: 1.75rem 0 0; border: 0; padding: 0; min-width: 0; }
.field:first-child { margin-top: 0; }
.field > label, .field > legend { display: block; padding: 0; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.7rem; }
.hint { display: block; font-family: var(--body); font-size: 0.92rem; color: var(--spruce-soft); margin-top: 0.3rem; }
input[type="text"], input[type="password"], textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choice label { position: relative; display: block; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: block; text-align: center; padding: 0.95rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.2rem; cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}
.choice input:checked + span { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--spruce); outline-offset: 3px; }

.stepper { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem; }
.stepper button { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--sage-wash); color: var(--spruce); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper output { min-width: 3rem; text-align: center; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.7rem; }

.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms ease; }
.reveal > div { overflow: hidden; visibility: hidden; transition: visibility 320ms; }
.reveal.open { grid-template-rows: 1fr; }
.reveal.open > div { visibility: visible; padding-top: 1.75rem; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal > div, .choice span { transition: none; } }

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--spruce); color: var(--paper); border: 1px solid var(--spruce); border-radius: 999px; padding: 0.9rem 1.75rem;
}
.btn:hover { background: #24302a; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.quiet { background: transparent; color: var(--spruce); border-color: var(--line); font-weight: 500; padding: 0.55rem 1.1rem; }
.btn.quiet:hover { background: var(--sage-wash); }
.btn.wide { width: 100%; margin-top: 2rem; }
label.btn:has(+ input:focus-visible) { outline: 2px solid var(--spruce); outline-offset: 3px; }
.error { color: var(--error); margin: 1rem 0 0; }
.error:empty { display: none; }
.trap { position: absolute; left: -9999px; }

/* ---------- luncheon page ---------- */
.rsvp-top { text-align: center; padding-block: 1rem 2rem; }
.rsvp-top .arch { width: min(46vw, 11rem); margin: 0 auto 1.5rem; aspect-ratio: 3 / 4; }
.rsvp-top h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
.rsvp-top p { margin: 0.75rem auto 0; color: var(--spruce-soft); max-width: 26rem; }
.thanks { text-align: center; }
.thanks h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.thanks p { color: var(--spruce-soft); }

/* ---------- host page ---------- */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-block: 1.5rem; }
.totals div { background: var(--paper); border-radius: 20px; padding: 1.1rem 1.25rem; }
.totals b { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 340; font-size: 2.6rem; line-height: 1; }
.totals span { color: var(--spruce-soft); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; background: var(--paper); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--spruce-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--spruce-soft); text-decoration: underline; cursor: pointer; }
.host-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.host-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--sage-wash); }
.host-photos select { width: 100%; margin: 0.5rem 0 0.25rem; font: inherit; font-size: 0.9rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; }
.host-photos .link-btn { font-size: 0.9rem; }
