/* WeDo wedding sites: shared structure + one block per theme.
   Mobile first. Layout switches use container queries on .site (from Tap Konek), so the
   studio's phone preview shows the true phone layout and "See it full size" the desktop one.
   Fonts are self-hosted (SIL OFL); a site only downloads the ones it uses. */

@font-face { font-family: 'WD Cormorant'; src: url('/fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'WD Cormorant'; src: url('/fonts/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'WD Playfair'; src: url('/fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'WD Playfair'; src: url('/fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'WD Lora'; src: url('/fonts/lora.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'WD Lora'; src: url('/fonts/lora-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'WD Jost'; src: url('/fonts/jost.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'WD Marcellus'; src: url('/fonts/marcellus.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'WD Great Vibes'; src: url('/fonts/great-vibes.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'WD Pinyon'; src: url('/fonts/pinyon-script.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'WD Cinzel'; src: url('/fonts/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'WD Ephesis'; src: url('/fonts/ephesis.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ── Page shell (live pages) ───────────────────────────────────────────── */
html.site-page {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
html.site-page,
html.site-page body {
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  html.site-page {
    scroll-behavior: auto;
  }
}
.s-preview-bar {
  margin: 0;
  padding: 10px 16px;
  background: #fff4d6;
  color: #5c3d00;
  font: 400 0.875rem/1.5 system-ui, sans-serif;
  text-align: center;
}

/* ── Shared structure ─────────────────────────────────────────────────── */
.site {
  --bg: #ffffff;
  --surface: #ffffff;
  --band: #f6f3ee;
  --ink: #26221f;
  --muted: #5d5650;
  --line: #e6dfd5;
  --f-head: 'WD Cormorant', Georgia, serif;
  --f-names: 'WD Pinyon', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --names-style: normal;
  --radius: 14px;
  --nav-h: 64px;
  --h1-size: clamp(3.2rem, 15cqi, 6.4rem);
  --h2-size: clamp(2rem, 8cqi, 3.2rem);
  container: site / inline-size;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}
.site img {
  display: block;
  max-width: 100%;
  height: auto;
}
:where(.site) a {
  color: inherit;
}
.site h1,
.site h2,
.site h3 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 500;
  line-height: 1.12;
  overflow-wrap: break-word;
  hyphens: auto;
}
.site p {
  margin: 0;
}
.site :focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}
.s-ico {
  flex: none;
}
.s-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.s-ph {
  color: var(--muted);
  font-style: italic;
  opacity: 0.85;
}
.s-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.s-center {
  margin-inline: auto;
  text-align: center;
}

/* Header (sticky, section links; a menu on phones) */
.s-nav {
  position: sticky;
  top: var(--nav-top, 0px);
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(8px);
  -webkit-backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.s-nav .s-wrap {
  max-width: 1320px;
}
.s-nav-in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-h);
}
.s-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  font: 500 1.15rem/1.2 var(--f-head);
  text-decoration: none;
}
.s-mark {
  /* A row: with grid, the two letters and the "&" would stack. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-ink);
  font: var(--names-style) 400 1.2rem/1 var(--f-names);
  white-space: nowrap;
}
.s-mark i {
  font-style: normal;
  font-size: 0.7em;
  margin: 0 0.05em;
}
.s-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-links,
.s-nav-cta {
  display: none !important;
}
.s-menu {
  position: relative;
}
.s-menu summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  list-style: none;
  cursor: pointer;
  border-radius: 12px;
}
.s-menu summary::-webkit-details-marker {
  display: none;
}
.s-burger,
.s-burger::before,
.s-burger::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.s-burger {
  position: relative;
}
.s-burger::before,
.s-burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.s-burger::before {
  top: -7px;
}
.s-burger::after {
  top: 7px;
}
.s-menu[open] .s-burger {
  background: transparent;
}
.s-menu[open] .s-burger::before {
  transform: translateY(7px) rotate(45deg);
}
.s-menu[open] .s-burger::after {
  transform: translateY(-7px) rotate(-45deg);
}
.s-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / 16%);
}
.s-menu nav a,
.s-links a {
  padding: 12px 14px;
  border-radius: 10px;
  font: 500 0.95rem/1.2 var(--f-body);
  text-decoration: none;
}
.s-menu nav a:hover,
.s-links a:hover {
  background: var(--tint);
  color: var(--ink);
}

/* Buttons */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--f-body);
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.s-btn:hover {
  transform: translateY(-1px);
}
.s-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.s-btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.s-btn--ghost {
  border-color: currentColor;
  background: transparent;
}
.s-btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.85rem;
}
.s-btn--block {
  width: 100%;
}
.s-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* Hero */
.s-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  isolation: isolate;
  text-align: center;
}
.s-bgl,
.s-deco,
.s-sdeco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.s-hero-in {
  display: grid;
  justify-items: center;
  gap: 0;
}
.s-eyebrow {
  margin-bottom: 18px !important;
  font: 600 0.8rem/1.4 var(--f-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.s-h1 {
  display: grid;
  justify-items: center;
  font-family: var(--f-names) !important;
  font-style: var(--names-style);
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--accent-ink);
  max-width: 100%;
}
.s-h1 .s-n {
  max-width: 100%;
}
.s-amp {
  font-family: var(--f-head);
  font-style: italic;
  font-size: 0.38em;
  line-height: 1.5;
  color: var(--accent-ink);
}
.s-rule {
  width: min(320px, 80%);
  margin: 18px auto;
  color: var(--accent);
}
.s-rule svg {
  display: block;
  width: 100%;
  height: auto;
}
.s-date {
  font: 500 clamp(1.2rem, 4.6cqi, 1.6rem)/1.35 var(--f-head);
}
.s-nw {
  white-space: nowrap;
}
.s-city {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.s-lede {
  max-width: 34rem;
  margin-top: 22px !important;
  color: var(--muted);
}

/* Sections */
.s-sec {
  position: relative;
  padding: 72px 0;
  isolation: isolate;
  overflow: hidden;
}
.s-band {
  background: var(--band);
}
.s-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-align: center;
}
.s-head svg {
  display: block;
  width: 168px;
  height: auto;
  color: var(--accent);
}
.s-head h2,
.s-media-copy h2,
.s-foot-title {
  letter-spacing: 0.01em;
  /* Even lines, so a heading never ends on one lonely word. */
  text-wrap: balance;
}
.s-prose {
  display: grid;
  gap: 14px;
  max-width: 40rem;
}
.s-when {
  margin-bottom: 4px !important;
  color: var(--accent-ink);
  font: 600 0.78rem/1.4 var(--f-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Countdown */
.s-count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 2.4cqi, 18px);
  max-width: 620px;
  margin: 0 auto;
}
.s-count-cell {
  display: grid;
  justify-items: center;
  padding: 16px 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
}
.s-count b {
  font: 500 clamp(1.8rem, 8cqi, 3rem)/1.1 var(--f-head);
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}
.s-count span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.s-count-done {
  margin-top: 18px !important;
  text-align: center;
  font: var(--names-style) 400 2.2rem/1.2 var(--f-names);
  color: var(--accent-ink);
}

/* Our story: text and a timeline of milestones */
.s-miles {
  position: relative;
  display: grid;
  gap: 26px;
  max-width: 640px;
  margin: 36px auto 0;
  padding: 0 0 0 44px;
  list-style: none;
}
.s-miles::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}
.s-mile {
  position: relative;
}
.s-mile-dot {
  position: absolute;
  left: -44px;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent-ink);
}
.s-mile h3 {
  font-size: 1.45rem;
}
.s-mile p:not(.s-when) {
  color: var(--muted);
}

/* Cards (venues) */
.s-cards {
  display: grid;
  gap: 18px;
}
.s-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.s-card-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--shade);
}
.s-card-label {
  font: 600 0.78rem/1.4 var(--f-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.s-card h3 {
  font-size: 1.6rem;
}
.s-addr {
  color: var(--muted);
}
.s-when-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.s-when-line .s-ico {
  color: var(--accent-ink);
}
.s-card-cta {
  margin-top: 8px !important;
}
.s-note {
  max-width: 36rem;
  margin: 26px auto 0;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Program */
.s-prog {
  display: grid;
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.s-prog li {
  position: relative;
  display: grid;
  grid-template-columns: 5.4em 22px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 22px;
}
.s-prog li::after {
  content: '';
  position: absolute;
  left: calc(5.4em + 22px);
  top: 18px;
  bottom: 0;
  width: 1.5px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
.s-prog li:last-child::after {
  display: none;
}
.s-prog time {
  text-align: right;
  font: 500 1.1rem/1.3 var(--f-head);
  color: var(--accent-ink);
}
.s-prog-dot {
  justify-self: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}
.s-prog h3 {
  font-size: 1.25rem;
}

/* Entourage */
.s-ent {
  display: grid;
  gap: 28px 32px;
  text-align: center;
}
.s-role h3 {
  margin-bottom: 8px;
  font: 600 0.78rem/1.4 var(--f-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.s-role ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 1.2rem/1.55 var(--f-head);
}

/* Dress code */
.s-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.s-sw {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 5.5px color-mix(in srgb, var(--accent) 55%, transparent);
}
.s-band .s-sw {
  box-shadow:
    0 0 0 4px var(--band),
    0 0 0 5.5px color-mix(in srgb, var(--accent) 55%, transparent);
}
.s-sw1 { background: var(--m1); }
.s-sw2 { background: var(--m2); }
.s-sw3 { background: var(--m3); }
.s-sw4 { background: var(--m4); }
.s-sw5 { background: var(--m5); }
.s-sw6 { background: var(--m6); }
.s-avoid {
  margin-top: 22px !important;
  text-align: center;
  color: var(--muted);
}

/* Image + Text (from Tap Konek) */
.s-media-in {
  display: grid;
  gap: 26px;
  align-items: center;
}
.s-media-img {
  margin: 0;
}
.s-media-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.s-media-copy {
  display: grid;
  gap: 14px;
}
.s-media--text .s-media-copy {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

/* Gallery (from Tap Konek: six, then View more; a tap opens the viewer) */
.s-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-grid--1 {
  grid-template-columns: 1fr;
}
.s-grid li.is-extra {
  display: none;
}
.s-grid.is-open li.is-extra {
  display: block;
}
.s-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
}
.s-shot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.s-shot:hover img {
  transform: scale(1.04);
}
.s-more-wrap {
  margin-top: 22px !important;
  text-align: center;
}
.s-more {
  padding: 8px 6px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 1rem var(--f-body);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.s-lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(10 10 10 / 94%);
  color: #fff;
}
.s-lb[open] {
  display: grid;
  place-items: center;
}
.s-lb::backdrop {
  background: rgb(0 0 0 / 70%);
}
.s-lb-fig {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 64px 12px;
}
.s-lb-fig img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  touch-action: pan-y;
}
.s-lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  cursor: pointer;
}
.s-lb-close {
  top: 14px;
  right: 14px;
}
.s-lb-prev {
  left: 10px;
  top: 50%;
  translate: 0 -50%;
}
.s-lb-next {
  right: 10px;
  top: 50%;
  translate: 0 -50%;
}
.s-lb-count {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font: 500 0.9rem system-ui, sans-serif;
}

/* Video (loads on tap) */
.s-video {
  max-width: 820px;
  margin: 0 auto;
}
.s-yt,
.s-video iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.s-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.s-yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.s-yt-play .s-ico {
  fill: currentColor;
  margin-left: 4px;
}

/* FAQ */
.s-qs {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.s-q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.s-q summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  font: 500 1.2rem/1.35 var(--f-head);
  cursor: pointer;
}
.s-q summary::-webkit-details-marker {
  display: none;
}
.s-q summary::after {
  content: '+';
  flex: none;
  font: 300 1.5rem/1 var(--f-body);
  color: var(--accent-ink);
  transition: transform 0.2s ease;
}
.s-q[open] summary::after {
  transform: rotate(45deg);
}
.s-a {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
  color: var(--muted);
}

/* Reminders */
.s-rem {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.s-rem li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.s-rem-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--shade);
}
.s-rem h3 {
  font-size: 1.25rem;
}
.s-rem p {
  color: var(--muted);
}

/* Gift notes */
.s-gifts {
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin: 28px auto 0;
}
.s-gift-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-gift-list li {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.s-gift-list h3 {
  font-size: 1.25rem;
}
.s-gift-list p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.s-copy {
  min-height: 32px;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 0.8rem var(--f-body);
  cursor: pointer;
}
.s-qr {
  max-width: 240px;
  margin: 0 auto;
}
.s-qr img {
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
}

/* RSVP */
.s-invite,
.s-deadline {
  text-align: center;
  margin-top: 16px !important;
}
.s-closed {
  max-width: 34rem;
  margin: 24px auto 0 !important;
  padding: 22px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
}
.s-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: 26px auto 0;
  padding: clamp(22px, 6cqi, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.s-f {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 500;
}
.s-f > span,
.s-f legend {
  padding: 0;
  font-size: 0.95rem;
}
.s-f em {
  font-style: normal;
  color: var(--muted);
}
.s-form input:not([type='radio']),
.s-form select,
.s-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 var(--f-body);
}
.s-form textarea {
  min-height: 92px;
  resize: vertical;
}
.s-yn {
  gap: 10px;
}
.s-yn label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 10px;
  font-weight: 400;
  cursor: pointer;
}
.s-yn label:has(input:checked) {
  border-color: var(--accent);
  background: var(--tint);
  color: var(--ink);
}
.s-yn input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.s-yes,
.s-guest {
  display: grid;
  gap: 14px;
}
.s-yes[hidden],
.s-guest[hidden] {
  display: none;
}
.s-guest {
  padding: 14px;
  border-radius: 10px;
  background: var(--band);
}
.s-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.s-status {
  min-height: 1.5em;
  text-align: center;
  font-weight: 500;
}
.s-status.is-error {
  color: #a3222f;
}
.s-thanks {
  max-width: 520px;
  margin: 26px auto 0;
  padding: 30px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
}
.s-thanks h3 {
  margin-bottom: 8px;
  font: var(--names-style) 400 2.4rem/1.1 var(--f-names);
  color: var(--accent-ink);
}

/* Footer */
.s-foot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 32px;
  text-align: center;
}
.s-foot-in {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.s-foot-mono {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  color: var(--accent);
}
.s-foot-mono svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.s-foot-mono span {
  position: relative;
  font: var(--names-style) 400 2.4rem/1 var(--f-names);
  color: var(--accent-ink);
  white-space: nowrap;
}
.s-foot-mono i {
  font-style: normal;
  font-size: 0.6em;
}
.s-foot-title {
  font-size: var(--h2-size);
}
.s-foot-text {
  max-width: 30rem;
  color: var(--muted);
}
.s-sign {
  margin-top: 8px !important;
  font: var(--names-style) 400 2.2rem/1.2 var(--f-names);
  color: var(--accent-ink);
}
.s-foot-date {
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}
.s-verse {
  max-width: 32rem;
  margin: 18px auto 4px;
  padding: 18px 8px 0;
  border-top: 1px solid var(--line);
  font: italic 400 1.15rem/1.6 var(--f-head);
  color: var(--ink);
}
.s-verse p {
  margin: 0 0 8px;
}
.s-verse cite {
  display: block;
  color: var(--accent-ink);
  font: normal 500 0.78rem/1.4 var(--f-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.s-tag {
  font: italic 500 1.2rem/1.3 var(--f-head);
  color: var(--accent-ink);
  overflow-wrap: anywhere;
}
.s-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  width: 100%;
  margin-top: 36px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.s-credit a {
  font-weight: 600;
  color: var(--accent-ink);
}

/* Music: tap to play (never on its own), with a mute button */
.s-music {
  position: fixed;
  z-index: 40;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}
.s-music[hidden] {
  display: none;
}
.s-music button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow:
    0 10px 24px -10px rgb(0 0 0 / 45%),
    inset 0 0 0 1.5px var(--accent);
  cursor: pointer;
}
.s-music button[hidden] {
  display: none;
}
.s-music .s-ic-pause,
.s-music .s-ic-mute,
.s-music-play[aria-pressed='true'] .s-ic-play,
.s-music-mute[aria-pressed='true'] .s-ic-vol {
  display: none;
}
.s-music-play[aria-pressed='true'] .s-ic-pause,
.s-music-mute[aria-pressed='true'] .s-ic-mute {
  display: block;
}

/* ── Section backgrounds: a pattern in the accent colour (from Tap Konek) ── */
.site[data-bg='pattern'] .s-bgable .s-bgl {
  background: var(--accent);
  opacity: 0.12;
  -webkit-mask: var(--pattern) 0 0 / var(--pattern-size, 28px) repeat;
  mask: var(--pattern) 0 0 / var(--pattern-size, 28px) repeat;
}
.site[data-bg='pattern'] .s-foot .s-bgl {
  background: var(--accent);
  opacity: 0.06;
  -webkit-mask: var(--pattern) 0 0 / var(--pattern-size, 28px) repeat;
  mask: var(--pattern) 0 0 / var(--pattern-size, 28px) repeat;
}
.site[data-pattern='dots'] {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='3'/%3E%3C/svg%3E");
}
.site[data-pattern='grid'] {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M0 .5h32M.5 0v32' stroke='%23000' fill='none'/%3E%3C/svg%3E");
  --pattern-size: 32px;
}
.site[data-pattern='diagonal'] {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M-5 5l10-10M0 20L20 0M15 25l10-10' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E");
  --pattern-size: 20px;
}
.site[data-pattern='waves'] {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M0 12c10-10 20-10 30 0s20 10 30 0' stroke='%23000' stroke-width='2.4' fill='none'/%3E%3C/svg%3E");
  --pattern-size: 60px 24px;
}
.site[data-pattern='circles'] {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='14' stroke='%23000' stroke-width='2' fill='none'/%3E%3Ccircle cx='0' cy='0' r='6' stroke='%23000' stroke-width='2' fill='none'/%3E%3Ccircle cx='48' cy='48' r='6' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  --pattern-size: 48px;
}
.site[data-pattern='triangles'] {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath d='M20 6l12 22H8z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E");
  --pattern-size: 40px 36px;
}

/* ── Hero photo with its black layer (from Tap Konek) ─────────────────── */
.site[data-hero='image'] .s-hero {
  --hero-layer: linear-gradient(rgb(0 0 0 / var(--hero-dim, 50%)), rgb(0 0 0 / var(--hero-dim, 50%)));
  background: var(--hero-layer), var(--hero-img-sm, var(--hero-img)) center / cover !important;
  color: #ffffff !important;
  padding: 120px 0 128px;
}
@container site (min-width: 700px) {
  .site[data-hero='image'] .s-hero {
    background: var(--hero-layer), var(--hero-img) center / cover !important;
  }
}
.site[data-hero='image'] .s-hero :is(.s-h1, .s-amp, .s-eyebrow, .s-date, .s-city, .s-lede, .s-rule) {
  color: #ffffff !important;
}
.site[data-hero='image'] .s-hero :is(.s-city, .s-lede) {
  opacity: 0.92;
}
.site[data-hero='image'] .s-hero .s-deco {
  display: none;
}
.site[data-hero='image'] .s-hero .s-btn--primary {
  background: #ffffff;
  color: #1f1b18;
}
.site[data-hero='image'] .s-hero .s-btn--ghost {
  color: #ffffff;
}

/* ── Decorations: placed in the section corners and sides ───────────── */
.dc {
  position: absolute;
  color: var(--accent);
}
.dc-tl {
  top: 14px;
  left: 14px;
}
.dc-tr {
  top: 14px;
  right: 14px;
}
.dc-bl {
  bottom: 14px;
  left: 14px;
}
.dc-br {
  bottom: 14px;
  right: 14px;
}
.dc-l {
  left: 6px;
  top: 50%;
  translate: 0 -50%;
}
.dc-r {
  right: 6px;
  top: 50%;
  translate: 0 -50%;
}

/* ── Desktop (container width) ────────────────────────────────────────── */
/* The section links sit in the bar once they fit on one row; until then the menu button lists them. */
.s-links a {
  white-space: nowrap;
}
@container site (min-width: 1080px) {
  .s-nav:not(.s-nav--many) .s-links {
    display: flex !important;
    flex: none;
    gap: 2px;
  }
  .s-nav:not(.s-nav--many) .s-menu {
    display: none;
  }
}
@container site (min-width: 1260px) {
  .s-nav--many .s-links {
    display: flex !important;
    flex: none;
    gap: 0;
  }
  .s-nav--many .s-menu {
    display: none;
  }
}
@container site (min-width: 760px) {
  .s-wrap {
    padding: 0 40px;
  }
  .s-nav-cta {
    display: inline-flex !important;
    min-height: 42px;
    padding: 0 20px;
    white-space: nowrap;
  }
  .s-hero {
    padding: 112px 0 120px;
  }
  .s-sec {
    padding: 104px 0;
  }
  .s-cards--2 {
    grid-template-columns: 1fr 1fr;
  }
  .s-cards--1 {
    max-width: 520px;
    margin: 0 auto;
  }
  .s-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .s-grid--1 {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
  }
  .s-grid--2,
  .s-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
  }
  .s-ent {
    grid-template-columns: 1fr 1fr;
  }
  .s-role--wide {
    grid-column: 1 / -1;
  }
  .s-role--wide ul {
    columns: 2;
    column-gap: 40px;
  }
  .s-media-in {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .s-media--right .s-media-img {
    order: 2;
  }
  .s-media--text .s-media-in {
    grid-template-columns: 1fr;
  }
  .s-gifts.has-qr {
    grid-template-columns: 1fr 240px;
    align-items: start;
  }
  .s-miles {
    max-width: 760px;
    padding: 0;
  }
  .s-miles::before {
    left: 50%;
  }
  .s-mile {
    width: 50%;
    padding-right: 44px;
    text-align: right;
  }
  .s-mile:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 0 44px;
    text-align: left;
  }
  .s-mile-dot {
    left: auto;
    right: -18px;
  }
  .s-mile:nth-child(even) .s-mile-dot {
    right: auto;
    left: -18px;
  }
}

/* ── Reveal on scroll (site.js adds .in; nothing hides without it) ──── */
.site.js-reveal [data-r] {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site.js-reveal.anim-elegant [data-r] {
  transform: translateY(26px);
}
.site.js-reveal.anim-elegant [data-r='left'] {
  transform: translateX(-34px);
}
.site.js-reveal.anim-elegant [data-r='right'] {
  transform: translateX(34px);
}
.site.js-reveal.anim-soft [data-r] {
  transition-duration: 1.3s;
}
.site.js-reveal [data-r].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .site.js-reveal [data-r] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Long words (from Tap Konek): headings shrink to fit their longest word ──
   Each theme sets --h1-size / --h2-size. A site whose heading has a word too long for some screen
   width also carries --fit-*-m (phones) and --fit-*-d (760 px up), made by fitVars in site-html.ts
   from src/lib/site-fit.ts; the smaller size wins, never below a minimum. */
.site .s-h1 {
  font-size: max(2rem, min(var(--h1-size), var(--fit-h1-m, 1e4px)));
}
.site :is(.s-head, .s-media-copy) h2 {
  font-size: max(1.4rem, min(var(--h2-size), var(--fit-m, 1e4px)));
}
.site #countdown { --fit-m: var(--fit-countdown-m); --fit-d: var(--fit-countdown-d); }
.site #story { --fit-m: var(--fit-story-m); --fit-d: var(--fit-story-d); }
.site #details { --fit-m: var(--fit-details-m); --fit-d: var(--fit-details-d); }
.site #program { --fit-m: var(--fit-program-m); --fit-d: var(--fit-program-d); }
.site #entourage { --fit-m: var(--fit-entourage-m); --fit-d: var(--fit-entourage-d); }
.site #attire { --fit-m: var(--fit-attire-m); --fit-d: var(--fit-attire-d); }
.site #gallery { --fit-m: var(--fit-gallery-m); --fit-d: var(--fit-gallery-d); }
.site #video { --fit-m: var(--fit-video-m); --fit-d: var(--fit-video-d); }
.site #faq { --fit-m: var(--fit-faq-m); --fit-d: var(--fit-faq-d); }
.site #reminders { --fit-m: var(--fit-reminders-m); --fit-d: var(--fit-reminders-d); }
.site #gifts { --fit-m: var(--fit-gifts-m); --fit-d: var(--fit-gifts-d); }
.site #rsvp { --fit-m: var(--fit-rsvp-m); --fit-d: var(--fit-rsvp-d); }
.site #more-1 { --fit-m: var(--fit-more-1-m); --fit-d: var(--fit-more-1-d); }
.site #more-2 { --fit-m: var(--fit-more-2-m); --fit-d: var(--fit-more-2-d); }
.site #more-3 { --fit-m: var(--fit-more-3-m); --fit-d: var(--fit-more-3-d); }
@container site (min-width: 760px) {
  .site .s-h1 {
    font-size: max(2rem, min(var(--h1-size), var(--fit-h1-d, 1e4px)));
  }
  .site :is(.s-head, .s-media-copy) h2 {
    font-size: max(1.4rem, min(var(--h2-size), var(--fit-d, 1e4px)));
  }
}
/* Grid and flex children may shrink below their longest word, so nothing stretches past the screen. */
.site :is(.s-hero-in, .s-media-in, .s-cards, .s-ent, .s-count, .s-prog li, .s-rem li, .s-gifts, .s-foot-in) > * {
  min-width: 0;
}
/* The safety net: anything still too long breaks inside its own box. */
.site :is(h1, h2, h3, .s-n, .s-eyebrow, .s-lede, .s-prose, .s-card, .s-role, .s-q summary, .s-a, .s-btn, .s-note, .s-foot, .s-media-copy, .s-mile) {
  overflow-wrap: anywhere;
}
.site .s-btn {
  max-width: 100%;
  text-align: center;
}
.site .s-nav .s-brand-name {
  overflow-wrap: normal;
}

/* ════════════════════════════════════════════════════════════════════════
   Ivory & Gold: ivory paper, fine gold rules, flourished corners, a crest
   ════════════════════════════════════════════════════════════════════════ */
.theme-ivory {
  --bg: #fbf8f1;
  --surface: #fffdf8;
  --band: #f4eee2;
  --ink: #2a2620;
  --muted: #5f574b;
  --line: #e4d9c5;
  --f-head: 'WD Playfair', Georgia, serif;
  --f-names: 'WD Pinyon', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --radius: 4px;
  --h1-size: clamp(3.4rem, 16cqi, 6.8rem);
  --h2-size: clamp(2rem, 8.4cqi, 3.1rem);
}
.theme-ivory .s-hero {
  background: radial-gradient(ellipse at 50% 40%, var(--surface) 30%, var(--bg) 75%);
}
.theme-ivory .s-hero::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 4px double color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
}
.theme-ivory .s-deco .iv-corner {
  position: absolute;
  width: clamp(76px, 22cqi, 150px);
  height: auto;
  color: var(--accent);
  opacity: 0.85;
}
.theme-ivory .iv-corner--tl {
  top: 22px;
  left: 22px;
}
.theme-ivory .iv-corner--tr {
  top: 22px;
  right: 22px;
  transform: scaleX(-1);
}
.theme-ivory .iv-corner--bl {
  bottom: 22px;
  left: 22px;
  transform: scaleY(-1);
}
.theme-ivory .iv-corner--br {
  bottom: 22px;
  right: 22px;
  transform: scale(-1);
}
.theme-ivory .iv-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92cqi, 620px);
  translate: -50% -50%;
  color: var(--accent);
  opacity: 0.35;
}
.theme-ivory .s-date {
  font-variant: small-caps;
  letter-spacing: 0.1em;
}
.theme-ivory .s-head h2 {
  font-weight: 400;
}
.theme-ivory .s-card,
.theme-ivory .s-form,
.theme-ivory .s-count-cell {
  border: 3px double color-mix(in srgb, var(--accent) 55%, transparent);
}
.theme-ivory .s-card-ic {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent-ink);
}
.theme-ivory .s-role h3::before,
.theme-ivory .s-role h3::after {
  content: '—';
  margin: 0 0.6em;
  color: var(--accent-ink);
}
.theme-ivory .s-shot {
  border-radius: 2px;
  outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}
.theme-ivory .s-band::before,
.theme-ivory .s-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.theme-ivory .s-band::before {
  top: 10px;
}
.theme-ivory .s-band::after {
  bottom: 10px;
}
.theme-ivory .iv-c {
  width: clamp(54px, 13cqi, 96px);
  height: auto;
  opacity: 0.5;
}
.theme-ivory .dc-tr.iv-c {
  transform: scaleX(-1);
}
.theme-ivory .dc-bl.iv-c {
  transform: scaleY(-1);
}
.theme-ivory .dc-br.iv-c {
  transform: scale(-1);
}
.theme-ivory .iv-sprig {
  width: clamp(28px, 7cqi, 54px);
  height: auto;
  opacity: 0.35;
}
.theme-ivory .dc-r.iv-sprig {
  transform: scaleX(-1);
}
.theme-ivory .s-foot {
  background: var(--band);
}
.theme-ivory .s-foot::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 4px double color-mix(in srgb, var(--accent) 45%, transparent);
  pointer-events: none;
}
@container site (max-width: 420px) {
  .theme-ivory .s-sdeco .dc-l,
  .theme-ivory .s-sdeco .dc-r {
    display: none;
  }
}

/* Edges for section bands: each pseudo-element is painted in the page colour, shaped by a mask,
   so the band itself gets a torn, wavy or lace edge (inside the section, never outside it). */
.site {
  --edge-torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0h200v9l-7 4-9-6-8 5-10-3-7 6-9-5-8 4-10-6-6 5-9-3-8 6-10-5-7 3-9-5-8 6-9-4-10 5-7-6-9 4-8-3-10 6-6-5-9 4-8-6-7 5z'/%3E%3C/svg%3E");
  --edge-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v8c-15 8-30 8-45 0S45 0 30 8 15 12 0 8z'/%3E%3C/svg%3E");
  --edge-lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M0 0h40v4a10 10 0 0 1-20 0 10 10 0 0 1-20 0z'/%3E%3Ccircle cx='20' cy='11' r='2'/%3E%3C/svg%3E");
}
.s-band::before,
.s-band::after {
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   Modern Minimal: white space, big type, numbered sections, hairlines
   ════════════════════════════════════════════════════════════════════════ */
.theme-modern {
  --bg: #ffffff;
  --surface: #ffffff;
  --band: #f3f3f1;
  --ink: #141414;
  --muted: #595959;
  --line: #e2e2df;
  --f-head: 'WD Marcellus', Georgia, serif;
  --f-names: 'WD Marcellus', Georgia, serif;
  --f-body: 'WD Jost', system-ui, sans-serif;
  --radius: 0px;
  --h1-size: clamp(3rem, 15cqi, 7.2rem);
  --h2-size: clamp(2rem, 8.6cqi, 3.4rem);
}
.theme-modern .s-hero {
  padding: 96px 0 88px;
  text-align: left;
}
.theme-modern .s-hero-in {
  justify-items: start;
}
.theme-modern .s-h1 {
  justify-items: start;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.94 !important;
  color: var(--ink);
}
.theme-modern .s-amp {
  margin: 4px 0;
  font: 400 0.24em/1.4 var(--f-body);
  letter-spacing: 0.3em;
  color: var(--accent-ink);
}
.theme-modern .s-rule {
  width: 100%;
  max-width: 560px;
  margin: 28px 0 22px;
  color: var(--ink);
}
.theme-modern .s-eyebrow {
  color: var(--muted);
  letter-spacing: 0.4em;
}
.theme-modern .s-date {
  font: 500 1.1rem/1.4 var(--f-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.theme-modern .s-actions {
  justify-content: flex-start;
}
.theme-modern .s-btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}
.theme-modern .mo-frame {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  color: var(--ink);
  opacity: 0.35;
}
.theme-modern .s-head {
  justify-items: start;
  text-align: left;
  gap: 14px;
}
.theme-modern .s-head svg {
  width: 48px;
  color: var(--ink);
}
.theme-modern .s-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.theme-modern :is(.s-card, .s-count-cell, .s-form, .s-q, .s-thanks) {
  border: 1px solid var(--ink);
  border-radius: 0;
}
.theme-modern .s-card {
  justify-items: start;
  text-align: left;
}
.theme-modern .s-card-ic {
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
}
.theme-modern .s-prose.s-center,
.theme-modern .s-note,
.theme-modern .s-avoid {
  margin-left: 0;
  text-align: left;
}
.theme-modern .s-swatches,
.theme-modern .s-ent {
  justify-content: flex-start;
  text-align: left;
}
.theme-modern .s-sw {
  border-radius: 0;
  width: 64px;
  height: 64px;
}
.theme-modern .s-shot {
  border-radius: 0;
}
.theme-modern .s-mile-dot,
.theme-modern .s-prog-dot {
  border-radius: 0;
}
.theme-modern .s-sign {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.theme-modern .s-foot {
  border-top: 1px solid var(--ink);
}
.theme-modern .mo-mark {
  width: 18px;
  height: 18px;
  color: var(--ink);
  opacity: 0.5;
}
@container site (min-width: 760px) {
  .theme-modern .s-hero {
    padding: 140px 0 128px;
  }
  .theme-modern .s-hero-in {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: end;
  }
  .theme-modern .s-hero-in > * {
    grid-column: 2;
  }
  .theme-modern .s-hero-in > .s-eyebrow {
    grid-column: 1 / -1;
  }
  .theme-modern .s-hero-in > .s-h1 {
    grid-column: 1;
    grid-row: 2 / span 6;
    align-self: center;
  }
  .theme-modern .s-rule {
    margin-top: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Garden Floral: sage and cream, drawn blooms, arched frames
   ════════════════════════════════════════════════════════════════════════ */
.theme-garden {
  --bg: #f8f7f1;
  --surface: #fffffb;
  --band: #eef1e6;
  --ink: #2c3328;
  --muted: #5a6355;
  --line: #dde3d2;
  --f-head: 'WD Cormorant', Georgia, serif;
  --f-names: 'WD Pinyon', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --radius: 22px;
  --h1-size: clamp(3.4rem, 16cqi, 6.6rem);
  --h2-size: clamp(2.3rem, 9.6cqi, 3.6rem);
}
.theme-garden .s-hero {
  background:
    radial-gradient(60% 50% at 50% 45%, var(--surface), transparent 70%),
    linear-gradient(180deg, var(--band), var(--bg) 60%);
  padding-top: 110px;
  padding-bottom: 120px;
}
.theme-garden .ga-spray {
  position: absolute;
  width: clamp(130px, 40cqi, 300px);
  height: auto;
  color: var(--accent);
  opacity: 0.8;
}
.theme-garden .ga-spray--tl {
  top: -8px;
  left: -8px;
  transform: scale(-1, -1) rotate(0deg);
}
.theme-garden .ga-spray--br {
  right: -8px;
  bottom: -8px;
}
.theme-garden .s-head h2 {
  font-weight: 500;
  font-style: italic;
}
.theme-garden .s-head svg {
  width: 150px;
}
.theme-garden .s-card {
  padding-top: 44px;
  border-radius: 999px 999px var(--radius) var(--radius);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.theme-garden .s-count-cell {
  aspect-ratio: 1;
  align-content: center;
  border-radius: 50%;
}
.theme-garden .s-shot,
.theme-garden .s-media-img img {
  border-radius: 999px 999px 18px 18px;
}
.theme-garden .s-shot img {
  aspect-ratio: 4 / 5;
}
.theme-garden .s-form {
  border-radius: 28px;
}
.theme-garden .s-band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 16px;
  background: var(--bg);
  -webkit-mask: var(--edge-wave) 0 0 / 120px 16px repeat-x;
  mask: var(--edge-wave) 0 0 / 120px 16px repeat-x;
}
.theme-garden .ga-c {
  width: clamp(90px, 26cqi, 180px);
  height: auto;
  opacity: 0.38;
}
.theme-garden .dc-tr.ga-c {
  top: -10px;
  right: -10px;
  transform: scaleX(-1) rotate(90deg);
}
.theme-garden .dc-tl.ga-c {
  top: -10px;
  left: -10px;
  transform: rotate(180deg) scaleX(-1);
}
.theme-garden .dc-bl.ga-c {
  bottom: -10px;
  left: -10px;
}
.theme-garden .ga-sprig {
  width: clamp(30px, 7cqi, 56px);
  height: auto;
  opacity: 0.4;
}
.theme-garden .dc-r.ga-sprig {
  transform: scaleX(-1);
}
.theme-garden .s-foot {
  background: var(--band);
}
@container site (max-width: 420px) {
  .theme-garden .s-sdeco .dc-l,
  .theme-garden .s-sdeco .dc-r {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Coastal Breeze: sea and sand, waves, shells and palms
   ════════════════════════════════════════════════════════════════════════ */
.theme-coastal {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --band: #e9f1f2;
  --ink: #1f2d33;
  --muted: #4e5f66;
  --line: #d5e2e4;
  --f-head: 'WD Cormorant', Georgia, serif;
  --f-names: 'WD Great Vibes', cursive;
  --f-body: 'WD Jost', system-ui, sans-serif;
  --radius: 20px;
  --h1-size: clamp(3.4rem, 17cqi, 7rem);
  --h2-size: clamp(2.2rem, 9cqi, 3.4rem);
}
.theme-coastal .s-hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 70%);
  padding-bottom: 150px;
}
.theme-coastal .co-sun {
  position: absolute;
  top: 34px;
  left: 50%;
  width: clamp(200px, 60cqi, 380px);
  height: auto;
  translate: -50% 0;
  color: var(--accent);
  opacity: 0.22;
}
.theme-coastal .co-palm {
  position: absolute;
  bottom: 40px;
  width: clamp(110px, 30cqi, 240px);
  height: auto;
  color: var(--accent);
  opacity: 0.45;
}
.theme-coastal .co-palm--l {
  left: -24px;
}
.theme-coastal .co-palm--r {
  right: -24px;
  transform: scaleX(-1);
}
.theme-coastal .co-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  color: var(--accent);
}
.theme-coastal .s-head h2 {
  font-weight: 500;
  letter-spacing: 0.04em;
}
.theme-coastal .s-head svg {
  width: 140px;
}
.theme-coastal .s-band::before,
.theme-coastal .s-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: 16px;
  background: var(--bg);
  -webkit-mask: var(--edge-wave) 0 0 / 120px 16px repeat-x;
  mask: var(--edge-wave) 0 0 / 120px 16px repeat-x;
}
.theme-coastal .s-band::before {
  top: 0;
}
.theme-coastal .s-band::after {
  bottom: 0;
  transform: scaleY(-1);
}
.theme-coastal :is(.s-card, .s-count-cell, .s-form, .s-q) {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--accent) 80%, transparent);
}
.theme-coastal .s-count-cell {
  border-radius: 999px;
}
.theme-coastal .s-shot {
  border-radius: 20px;
}
.theme-coastal .co-shell,
.theme-coastal .co-star {
  width: clamp(48px, 12cqi, 84px);
  height: auto;
  opacity: 0.4;
}
.theme-coastal .s-foot {
  background: linear-gradient(180deg, var(--band), color-mix(in srgb, var(--accent) 16%, var(--bg)));
}

/* ════════════════════════════════════════════════════════════════════════
   Rustic Linen: linen weave, kraft tag, stitched edges, wheat
   ════════════════════════════════════════════════════════════════════════ */
.theme-rustic {
  --bg: #f6f0e6;
  --surface: #fbf7f0;
  --band: #ece2d1;
  --ink: #33281f;
  --muted: #5e5043;
  --line: #dccdb6;
  --f-head: 'WD Lora', Georgia, serif;
  --f-names: 'WD Great Vibes', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --radius: 6px;
  --h1-size: clamp(3.4rem, 17cqi, 6.8rem);
  --h2-size: clamp(1.9rem, 8cqi, 2.9rem);
  background-image:
    repeating-linear-gradient(0deg, rgb(120 90 60 / 3%) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(120 90 60 / 3%) 0 1px, transparent 1px 4px);
}
.theme-rustic .s-hero {
  padding-bottom: 150px;
}
.theme-rustic .s-hero-in {
  max-width: 660px;
  padding: 44px 22px;
  border-radius: 8px;
  background: var(--surface);
  outline: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: -10px;
  box-shadow: 0 24px 50px -36px rgb(60 40 20 / 60%);
}
.theme-rustic .ru-bundle {
  position: absolute;
  bottom: -6px;
  width: clamp(100px, 28cqi, 200px);
  height: auto;
  color: var(--accent);
  opacity: 0.55;
}
.theme-rustic .ru-bundle--l {
  left: 0;
  transform: rotate(-12deg);
}
.theme-rustic .ru-bundle--r {
  right: 0;
  transform: scaleX(-1) rotate(-12deg);
}
.theme-rustic .s-head h2 {
  font-style: italic;
  font-weight: 500;
}
.theme-rustic :is(.s-card, .s-count-cell, .s-form, .s-thanks) {
  border: 0;
  background: var(--surface);
  outline: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: -8px;
  box-shadow: 0 14px 30px -24px rgb(60 40 20 / 55%);
}
.theme-rustic .s-q {
  border-style: dashed;
}
.theme-rustic .s-shot {
  padding: 6px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 10px 22px -16px rgb(60 40 20 / 60%);
}
.theme-rustic .s-band {
  background-image: repeating-linear-gradient(45deg, rgb(120 90 60 / 4%) 0 2px, transparent 2px 8px);
  border-block: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.theme-rustic .ru-c {
  width: clamp(70px, 18cqi, 130px);
  height: auto;
  opacity: 0.35;
}
.theme-rustic .dc-tl.ru-c {
  transform: rotate(180deg);
}
.theme-rustic .dc-bl.ru-c {
  transform: scaleX(-1);
}

/* ════════════════════════════════════════════════════════════════════════
   Art Deco Noir: black and gold, sunbursts, stepped frames, capitals
   ════════════════════════════════════════════════════════════════════════ */
.theme-deco {
  --bg: #101614;
  --surface: #1b2522;
  --band: #17201d;
  --ink: #efe7d6;
  --muted: #b9b2a3;
  --line: #34433e;
  --f-head: 'WD Cinzel', Georgia, serif;
  --f-names: 'WD Cinzel', Georgia, serif;
  --f-body: 'WD Jost', system-ui, sans-serif;
  --radius: 0px;
  --h1-size: clamp(2.6rem, 12.5cqi, 5.8rem);
  --h2-size: clamp(1.6rem, 7cqi, 2.6rem);
}
.theme-deco .s-nav {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.theme-deco .s-hero {
  padding: 110px 0 130px;
  background: radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.theme-deco .de-burst {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(140cqi, 1000px);
  height: auto;
  translate: -50% 0;
  color: var(--accent);
  opacity: 0.28;
}
.theme-deco .de-corner {
  position: absolute;
  width: clamp(56px, 16cqi, 110px);
  height: auto;
  color: var(--accent);
  opacity: 0.8;
}
.theme-deco .de-corner--tl {
  top: 16px;
  left: 16px;
}
.theme-deco .de-corner--tr {
  top: 16px;
  right: 16px;
  transform: scaleX(-1);
}
.theme-deco .de-corner--bl {
  bottom: 16px;
  left: 16px;
  transform: scaleY(-1);
}
.theme-deco .de-corner--br {
  bottom: 16px;
  right: 16px;
  transform: scale(-1);
}
.theme-deco .s-h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.04 !important;
}
.theme-deco .s-amp {
  font-family: var(--f-head);
  font-style: normal;
  font-size: 0.4em;
  margin: 6px 0;
}
.theme-deco .s-rule {
  margin: 22px auto;
}
.theme-deco .s-date {
  font-family: var(--f-body);
  font-size: 1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.theme-deco .s-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.theme-deco .s-btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}
.theme-deco .s-btn--ghost {
  border-color: var(--accent);
}
.theme-deco :is(.s-card, .s-count-cell, .s-form, .s-q, .s-thanks) {
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 0;
  outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 4px;
}
.theme-deco .s-card-ic {
  border-radius: 0;
  rotate: 45deg;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
}
.theme-deco .s-card-ic .s-ico {
  rotate: -45deg;
}
.theme-deco .s-shot {
  border-radius: 0;
  outline: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
}
.theme-deco .s-band::before,
.theme-deco .s-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  border-block: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.theme-deco .s-band::before {
  top: 12px;
}
.theme-deco .s-band::after {
  bottom: 12px;
}
.theme-deco .de-c {
  width: clamp(44px, 12cqi, 80px);
  height: auto;
  color: var(--accent);
  opacity: 0.5;
}
.theme-deco .dc-tr.de-c {
  transform: scaleX(-1);
}
.theme-deco .dc-bl.de-c {
  transform: scaleY(-1);
}
.theme-deco .dc-br.de-c {
  transform: scale(-1);
}
.theme-deco .s-sign {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.theme-deco .s-foot {
  background: var(--band);
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ════════════════════════════════════════════════════════════════════════
   Boho Sunset: terracotta arches, pampas, a setting sun
   ════════════════════════════════════════════════════════════════════════ */
.theme-boho {
  --bg: #fbf4ec;
  --surface: #fffaf5;
  --band: #f3e2d3;
  --ink: #3a2a22;
  --muted: #6a5246;
  --line: #ead3c0;
  --f-head: 'WD Cormorant', Georgia, serif;
  --f-names: 'WD Ephesis', cursive;
  --f-body: 'WD Jost', system-ui, sans-serif;
  --radius: 18px;
  --h1-size: clamp(3.8rem, 19cqi, 8rem);
  --h2-size: clamp(2.3rem, 9.4cqi, 3.6rem);
}
.theme-boho .s-hero {
  padding: 120px 0 140px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--bg)) 0%, var(--bg) 65%);
}
.theme-boho .bo-arch {
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(88cqi, 560px);
  height: calc(100% - 40px);
  translate: -50% 0;
  color: var(--accent);
  opacity: 0.55;
}
.theme-boho .bo-pampas {
  position: absolute;
  bottom: 0;
  width: clamp(90px, 26cqi, 210px);
  height: auto;
  color: var(--accent);
  opacity: 0.5;
}
.theme-boho .bo-pampas--l {
  left: -10px;
}
.theme-boho .bo-pampas--r {
  right: -10px;
  transform: scaleX(-1);
}
.theme-boho .s-head h2 {
  font-style: italic;
  font-weight: 500;
}
.theme-boho .s-head svg {
  width: 110px;
}
.theme-boho .s-card,
.theme-boho .s-count-cell {
  border-radius: 999px 999px var(--radius) var(--radius);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.theme-boho .s-card {
  padding-top: 48px;
}
.theme-boho .s-count-cell {
  padding-top: 24px;
}
.theme-boho .s-shot,
.theme-boho .s-media-img img {
  border-radius: 999px 999px 0 0;
}
.theme-boho .s-shot img {
  aspect-ratio: 3 / 4;
}
.theme-boho .s-band {
  background: linear-gradient(180deg, var(--band), color-mix(in srgb, var(--band) 60%, var(--bg)));
}
.theme-boho .bo-sun {
  width: clamp(80px, 22cqi, 150px);
  height: auto;
  opacity: 0.35;
}
.theme-boho .bo-c {
  width: clamp(70px, 18cqi, 130px);
  height: auto;
  opacity: 0.32;
}
.theme-boho .dc-br.bo-c {
  transform: scaleX(-1);
}
.theme-boho .dc-tl.bo-c {
  transform: rotate(180deg) scaleX(-1);
}
.theme-boho .dc-tr.bo-c {
  transform: rotate(180deg);
}
.theme-boho .s-foot {
  background: var(--band);
}

/* ════════════════════════════════════════════════════════════════════════
   Romantic Blush: soft pink, roses, ribbons, flowing script
   ════════════════════════════════════════════════════════════════════════ */
.theme-blush {
  --bg: #fdf6f5;
  --surface: #fffbfb;
  --band: #f8e6e5;
  --ink: #3d2a2e;
  --muted: #6e5257;
  --line: #efd7d8;
  --f-head: 'WD Playfair', Georgia, serif;
  --f-names: 'WD Great Vibes', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --radius: 24px;
  --h1-size: clamp(3.6rem, 18cqi, 7.4rem);
  --h2-size: clamp(2rem, 8.4cqi, 3.1rem);
}
.theme-blush .s-hero {
  background: radial-gradient(70% 60% at 50% 40%, var(--surface), var(--band));
  padding: 120px 0 130px;
}
.theme-blush .bl-roses {
  position: absolute;
  width: clamp(120px, 36cqi, 280px);
  height: auto;
  color: var(--accent);
  opacity: 0.6;
}
.theme-blush .bl-roses--tl {
  top: -6px;
  left: -6px;
  transform: scale(-1);
}
.theme-blush .bl-roses--br {
  bottom: -6px;
  right: -6px;
}
.theme-blush .s-head h2 {
  font-style: italic;
  font-weight: 400;
}
.theme-blush :is(.s-card, .s-count-cell, .s-form, .s-q, .s-thanks) {
  border: 0;
  box-shadow: 0 22px 44px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.theme-blush .s-q {
  border-radius: 18px;
}
.theme-blush .s-shot {
  border-radius: 24px;
}
.theme-blush .s-role h3::before,
.theme-blush .s-role h3::after {
  content: '♡';
  content: '♡' / '';
  margin: 0 0.6em;
  letter-spacing: 0;
}
.theme-blush .s-band {
  background: radial-gradient(80% 120% at 50% 0%, var(--surface), var(--band) 70%);
}
.theme-blush .bl-c {
  width: clamp(90px, 24cqi, 170px);
  height: auto;
  opacity: 0.35;
}
.theme-blush .dc-tr.bl-c {
  top: -8px;
  right: -8px;
  transform: rotate(-90deg);
}
.theme-blush .dc-tl.bl-c {
  top: -8px;
  left: -8px;
  transform: scale(-1);
}
.theme-blush .dc-bl.bl-c {
  bottom: -8px;
  left: -8px;
  transform: scaleX(-1);
}
.theme-blush .s-foot {
  background: var(--band);
}

/* ════════════════════════════════════════════════════════════════════════
   Midnight Garden: deep wine, candlelight, dark florals, stars
   ════════════════════════════════════════════════════════════════════════ */
.theme-moody {
  --bg: #1a1418;
  --surface: #261d24;
  --band: #221a20;
  --ink: #f3e8e6;
  --muted: #c2b2b2;
  --line: #3b2e37;
  --f-head: 'WD Cormorant', Georgia, serif;
  --f-names: 'WD Pinyon', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --radius: 6px;
  --h1-size: clamp(3.4rem, 16cqi, 6.8rem);
  --h2-size: clamp(2.3rem, 9.6cqi, 3.8rem);
}
.theme-moody .s-hero {
  padding: 120px 0 130px;
  background: radial-gradient(55% 45% at 50% 55%, rgb(255 190 120 / 12%), transparent 70%);
}
.theme-moody .md-floral {
  position: absolute;
  width: clamp(140px, 42cqi, 320px);
  height: auto;
  color: var(--accent);
  opacity: 0.7;
}
.theme-moody .md-floral--tl {
  top: -20px;
  left: -20px;
  transform: rotate(180deg);
}
.theme-moody .md-floral--br {
  bottom: -20px;
  right: -20px;
}
.theme-moody .md-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.55;
}
.theme-moody .s-head h2 {
  font-weight: 400;
  font-style: italic;
}
.theme-moody :is(.s-card, .s-count-cell, .s-form, .s-q, .s-thanks) {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--surface);
}
.theme-moody .s-shot {
  border-radius: 4px;
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 90%);
}
.theme-moody .s-band {
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 8%, var(--band)), var(--band));
}
.theme-moody .md-c {
  width: clamp(100px, 28cqi, 200px);
  height: auto;
  opacity: 0.4;
}
.theme-moody .dc-tr.md-c {
  top: -16px;
  right: -16px;
  transform: rotate(-90deg);
}
.theme-moody .dc-tl.md-c {
  top: -16px;
  left: -16px;
  transform: rotate(180deg);
}
.theme-moody .dc-bl.md-c {
  bottom: -16px;
  left: -16px;
  transform: rotate(90deg);
}
.theme-moody .s-foot {
  background: var(--band);
}

/* ════════════════════════════════════════════════════════════════════════
   Filipiniana: capiz windows, sampaguita, piña lace, banig weave
   ════════════════════════════════════════════════════════════════════════ */
.theme-filipiniana {
  --bg: #fbf7ef;
  --surface: #fffcf6;
  --band: #f3ead9;
  --ink: #2e2420;
  --muted: #5f5148;
  --line: #e6d8bf;
  --f-head: 'WD Cinzel', Georgia, serif;
  --f-names: 'WD Pinyon', cursive;
  --f-body: 'WD Lora', Georgia, serif;
  --radius: 4px;
  --h1-size: clamp(3.4rem, 16cqi, 6.6rem);
  --h2-size: clamp(1.6rem, 7cqi, 2.6rem);
}
.theme-filipiniana .s-hero {
  padding: 130px 0 120px;
}
.theme-filipiniana .fi-capiz {
  position: absolute;
  top: 50%;
  width: clamp(70px, 18cqi, 150px);
  height: auto;
  translate: 0 -50%;
  color: var(--accent);
  opacity: 0.4;
}
.theme-filipiniana .fi-capiz--l {
  left: clamp(-40px, -6cqi, 16px);
}
.theme-filipiniana .fi-capiz--r {
  right: clamp(-40px, -6cqi, 16px);
}
.theme-filipiniana .fi-garland {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(62cqi, 300px);
  height: auto;
  translate: -50% 0;
  color: var(--accent);
  opacity: 0.75;
}
.theme-filipiniana .s-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.theme-filipiniana .s-band::before,
.theme-filipiniana .s-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: 16px;
  background: var(--bg);
  -webkit-mask: var(--edge-lace) 0 0 / 40px 16px repeat-x;
  mask: var(--edge-lace) 0 0 / 40px 16px repeat-x;
}
.theme-filipiniana .s-band::before {
  top: 0;
}
.theme-filipiniana .s-band::after {
  bottom: 0;
  transform: scaleY(-1);
}
.theme-filipiniana :is(.s-card, .s-form, .s-thanks) {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow:
    inset 0 0 0 6px var(--surface),
    inset 0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent);
}
.theme-filipiniana .s-count-cell {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background:
    radial-gradient(circle, transparent 55%, color-mix(in srgb, var(--accent) 7%, transparent) 56%) center / 100% 100%,
    var(--surface);
}
.theme-filipiniana .s-shot {
  border-radius: 2px;
  border: 6px solid var(--surface);
  outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.theme-filipiniana .fi-s {
  width: clamp(34px, 8cqi, 54px);
  height: auto;
  opacity: 0.45;
}
.theme-filipiniana .fi-c {
  width: clamp(54px, 13cqi, 90px);
  height: auto;
  opacity: 0.22;
}
.theme-filipiniana .s-foot {
  background: var(--band);
}
@container site (max-width: 520px) {
  .theme-filipiniana .fi-capiz {
    display: none;
  }
}
@container site (min-width: 760px) {
  .theme-filipiniana .s-hero {
    padding-top: 170px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Editorial: a magazine cover, big italic type, columns and rules
   ════════════════════════════════════════════════════════════════════════ */
.theme-editorial {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --band: #ecebe5;
  --ink: #111111;
  --muted: #555555;
  --line: #d6d4cc;
  --f-head: 'WD Playfair', Georgia, serif;
  --f-names: 'WD Playfair', Georgia, serif;
  --f-body: 'WD Jost', system-ui, sans-serif;
  --names-style: italic;
  --radius: 0px;
  --h1-size: clamp(3.4rem, 17cqi, 8.4rem);
  --h2-size: clamp(2.2rem, 10cqi, 4.2rem);
}
.theme-editorial .s-hero {
  padding: 56px 0 80px;
  text-align: left;
}
.theme-editorial .s-hero-in {
  justify-items: stretch;
}
.theme-editorial .s-eyebrow {
  margin-bottom: 30px !important;
  padding: 10px 0;
  border-block: 3px double var(--ink);
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  text-align: center;
}
.theme-editorial .s-h1 {
  justify-items: start;
  font-weight: 400 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.theme-editorial .s-h1 .s-n:last-child {
  justify-self: end;
}
.theme-editorial .s-amp {
  justify-self: center;
  font-size: 0.5em;
  line-height: 1;
  color: var(--accent-ink);
}
.theme-editorial .s-rule {
  width: 100%;
  margin: 26px 0 18px;
  color: var(--ink);
}
.theme-editorial .s-date {
  font: 600 0.95rem/1.4 var(--f-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.theme-editorial .s-city {
  margin-top: 4px !important;
}
.theme-editorial .s-lede {
  font: italic 400 1.25rem/1.55 var(--f-head);
  color: var(--ink);
}
.theme-editorial .s-actions {
  justify-content: flex-start;
}
.theme-editorial .s-btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}
.theme-editorial .s-head {
  justify-items: start;
  text-align: left;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.theme-editorial .s-head svg {
  display: none;
}
.theme-editorial .s-head h2 {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.theme-editorial .s-story .s-prose > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font: 400 4.4em/0.8 var(--f-head);
  color: var(--accent-ink);
}
.theme-editorial .s-prose.s-center,
.theme-editorial .s-note,
.theme-editorial .s-avoid {
  margin-left: 0;
  text-align: left;
}
.theme-editorial :is(.s-card, .s-count-cell, .s-q) {
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.theme-editorial .s-card {
  justify-items: start;
  text-align: left;
  padding: 22px 0 0;
}
.theme-editorial .s-card-ic {
  display: none;
}
.theme-editorial .s-form {
  border: 1px solid var(--ink);
  border-radius: 0;
}
.theme-editorial .s-shot {
  border-radius: 0;
}
.theme-editorial .s-ent,
.theme-editorial .s-swatches {
  justify-content: flex-start;
  text-align: left;
}
.theme-editorial .s-sw {
  border-radius: 0;
}
.theme-editorial .s-foot {
  border-top: 3px double var(--ink);
}
.theme-editorial .s-sign {
  font-size: 2.6rem;
}
@container site (min-width: 760px) {
  .theme-editorial .s-hero {
    padding: 72px 0 110px;
  }
  .theme-editorial .s-hero-in {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    column-gap: 48px;
  }
  .theme-editorial .s-hero-in > * {
    grid-column: 2;
  }
  .theme-editorial .s-hero-in > :is(.s-eyebrow, .s-rule) {
    grid-column: 1 / -1;
  }
  .theme-editorial .s-hero-in > .s-h1 {
    grid-column: 1 / -1;
  }
  .theme-editorial .s-hero-in > .s-date {
    grid-column: 1;
  }
  .theme-editorial .s-hero-in > .s-city {
    grid-column: 1;
    grid-row: auto;
  }
  .theme-editorial .s-hero-in > .s-lede {
    grid-row: span 3;
    margin-top: 0 !important;
  }
  .theme-editorial .s-hero-in > .s-actions {
    grid-column: 1;
  }
  .theme-editorial .s-story .s-prose {
    max-width: none;
    columns: 2;
    column-gap: 48px;
  }
  .theme-editorial .s-grid li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Keepsake: paper and peach, torn edges, line drawings, a scrapbook
   (inspired by the owner's own wedding site; placeholder content only)
   ════════════════════════════════════════════════════════════════════════ */
.theme-keepsake {
  --bg: #f7f5f1;
  --surface: #fffdf9;
  --band: #fbe3c6;
  --ink: #2d2e32;
  --muted: #5b5753;
  --line: #e7d6c0;
  --f-head: 'WD Cinzel', Georgia, serif;
  --f-names: 'WD Ephesis', cursive;
  --f-body: 'WD Cormorant', Georgia, serif;
  --radius: 10px;
  --h1-size: clamp(3.8rem, 19cqi, 8rem);
  --h2-size: clamp(1.7rem, 7.4cqi, 2.7rem);
  font-size: 1.15rem;
  background-image: radial-gradient(rgb(120 100 80 / 5%) 1px, transparent 1px);
  background-size: 6px 6px;
}
.theme-keepsake .s-nav {
  background: var(--accent);
  color: var(--on-accent);
  border-bottom: 0;
}
.theme-keepsake .s-nav .s-mark {
  border-color: currentColor;
  color: inherit;
}
.theme-keepsake .s-nav .s-links a:hover {
  background: color-mix(in srgb, var(--on-accent) 14%, transparent);
  color: inherit;
}
.theme-keepsake .s-nav .s-nav-cta {
  background: var(--on-accent);
  color: var(--accent);
}
.theme-keepsake .s-menu nav {
  color: var(--ink);
}
.theme-keepsake .s-hero {
  padding: 110px 0 120px;
}
.theme-keepsake .ke-sprig {
  position: absolute;
  width: clamp(120px, 34cqi, 250px);
  height: auto;
  color: var(--accent);
  opacity: 0.7;
}
.theme-keepsake .ke-sprig--tl {
  top: 0;
  left: 0;
  transform: scale(-1);
}
.theme-keepsake .ke-sprig--br {
  bottom: 0;
  right: 0;
}
.theme-keepsake .s-rule {
  width: min(220px, 70%);
}
.theme-keepsake .s-date {
  font-family: var(--f-head);
  letter-spacing: 0.08em;
}
.theme-keepsake .s-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.theme-keepsake .s-head svg {
  width: 150px;
}
.theme-keepsake .s-band::before,
.theme-keepsake .s-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: 18px;
  background: var(--bg);
  -webkit-mask: var(--edge-torn) 0 0 / 200px 18px repeat-x;
  mask: var(--edge-torn) 0 0 / 200px 18px repeat-x;
}
.theme-keepsake .s-band::before {
  top: 0;
}
.theme-keepsake .s-band::after {
  bottom: 0;
  transform: scaleY(-1);
}
.theme-keepsake .s-count-cell {
  border: 0;
  background: transparent;
}
.theme-keepsake .s-count-cell + .s-count-cell {
  position: relative;
}
.theme-keepsake .s-count-cell + .s-count-cell::before {
  content: ':';
  content: ':' / '';
  position: absolute;
  left: calc(-0.5 * clamp(6px, 2.4cqi, 18px) - 0.2em);
  top: 10px;
  font: 500 clamp(1.8rem, 8cqi, 3rem)/1.1 var(--f-head);
  color: var(--accent-ink);
}
.theme-keepsake .s-card,
.theme-keepsake .s-form {
  border: 0;
  box-shadow: 0 16px 34px -26px rgb(80 50 30 / 50%);
}
.theme-keepsake .s-q {
  border: 0;
  background: rgb(102 102 102 / 9%);
}
.theme-keepsake .s-shot {
  padding: 8px 8px 22px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 12px 24px -14px rgb(60 40 20 / 55%);
  rotate: -2deg;
}
.theme-keepsake .s-grid li:nth-child(even) .s-shot {
  rotate: 2.2deg;
}
.theme-keepsake .s-grid li:nth-child(3n) .s-shot {
  rotate: -1deg;
}
.theme-keepsake .s-media-img img {
  border: 8px solid #ffffff;
  border-radius: 2px;
  box-shadow: 0 12px 24px -14px rgb(60 40 20 / 55%);
  rotate: -1.5deg;
}
.theme-keepsake .ke-c {
  width: clamp(90px, 24cqi, 170px);
  height: auto;
  opacity: 0.4;
}
.theme-keepsake .dc-tr.ke-c {
  top: 0;
  right: 0;
  transform: scaleY(-1);
}
.theme-keepsake .dc-tl.ke-c {
  top: 0;
  left: 0;
  transform: scale(-1);
}
.theme-keepsake .dc-bl.ke-c {
  bottom: 0;
  left: 0;
  transform: scaleX(-1);
}
.theme-keepsake .s-foot {
  background: var(--band);
}
.theme-keepsake .s-verse {
  font-family: var(--f-names);
  font-style: normal;
  font-size: 1.7rem;
  line-height: 1.3;
}
