@font-face { font-family: "DM Sans"; src: url("/studio/assets/dm-sans-normal-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/studio/assets/dm-sans-normal-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
.w-page {
  --w-ink: #24372e; --w-accent: #a9bfa8; --w-paper: #fbfaf5; --w-scale: 1;
  --w-display: "Cormorant Garamond", Georgia, serif;
  --w-body: "DM Sans", system-ui, sans-serif;
  --w-line: color-mix(in srgb, var(--w-ink) 28%, var(--w-paper));
  --w-band: color-mix(in srgb, var(--w-accent) 30%, var(--w-paper));
  --w-band-strong: color-mix(in srgb, var(--w-accent) 55%, var(--w-paper));
  --w-soft-ink: color-mix(in srgb, var(--w-ink) 78%, var(--w-paper));
  --u: min(.1cqw, 1.4px);
  container-type: inline-size;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--w-ink);
  background: var(--w-paper) var(--w-paper-art, none) repeat;
  background-size: 384px auto;
  font: 400 1rem/1.5 var(--w-body);
  text-wrap: pretty;
}
.w-page *, .w-page *::before, .w-page *::after { box-sizing: border-box; }
.w-page :is(h1, h2, h3, h4, p, ol, ul, dl, dd, fieldset) { margin: 0; }
:where(.w-page) img { display: block; max-width: 100%; height: auto; }
:where(.w-page) a:where(:not(.w-button)) { color: inherit; }
.w-page a { text-underline-offset: .22em; }
.w-page :focus-visible { outline: 2px solid var(--w-ink); outline-offset: 3px; }
.w-page [id^="w-"] { scroll-margin-top: 4rem; }
.w-page summary { cursor: pointer; list-style: none; }
.w-page summary::-webkit-details-marker { display: none; }

.w-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: .6em; padding: .55em 1.1em; background: var(--w-ink); color: var(--w-paper); font: 600 .78rem/1 var(--w-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.w-button:disabled { opacity: .55; cursor: default; }

/* ---------- Header ---------- */
.w-header { display: flex; align-items: center; gap: 1.2rem; min-height: 3.4rem; padding: .35rem clamp(1rem, 2.4cqw, 2.2rem); border-bottom: 1px solid var(--w-line); }
.w-monogram { display: flex; align-items: center; flex: none; font: 500 1.45rem/1 var(--w-heading, var(--w-display)); text-decoration: none; }
.w-monogram span + span { margin-left: .4em; padding-left: .4em; border-left: 1px solid var(--w-line); }
.w-nav { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: .2rem 1rem; }
.w-nav a { font: 600 .68rem/1 var(--w-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .6rem 0; white-space: nowrap; }
.w-nav a:hover { text-decoration: underline; }
.w-header-actions { display: flex; align-items: center; gap: .9rem; flex: none; }
.w-languages { display: flex; gap: .15rem; padding: 0 .8rem; border-inline: 1px solid var(--w-line); }
.w-languages button { border: 0; background: none; color: inherit; font: 600 .7rem/1 var(--w-body); letter-spacing: .08em; padding: .55rem .25rem; cursor: pointer; }
.w-languages button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .25em; }
.w-header-rsvp { background: color-mix(in srgb, var(--w-ink) 72%, var(--w-accent)); padding: .5em .9em; font-size: .66rem; }

/* ---------- Hero ---------- */
.w-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 58% 1fr; min-height: calc(560 * var(--u)); }
.w-hero--type { grid-template-columns: 1fr; text-align: center; }
.w-hero-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(1.6rem, 4cqw, 3.5rem) clamp(1.2rem, 4cqw, 4rem); }
.w-emblem { position: relative; width: clamp(8rem, 20cqw, 15rem); }
.w-emblem-art { width: 100%; height: auto; }
.w-emblem-initials { position: absolute; inset: 0 0 12%; display: flex; align-items: center; justify-content: center; font: 500 clamp(1.3rem, 2.6cqw, 2.2rem)/1 var(--w-heading, var(--w-display)); }
.w-emblem-initials span + span { margin-left: .2em; padding-left: .2em; border-left: 1px solid var(--w-line); }
.w-kicker { display: flex; align-items: center; gap: 1.2rem; margin-top: 1rem; font: 600 clamp(.66rem, 1.05cqw, .85rem)/1.4 var(--w-body); letter-spacing: .42em; text-transform: uppercase; }
.w-kicker::before, .w-kicker::after { content: ""; width: 2.6rem; height: 1px; background: var(--w-line); }
.w-names { margin-top: .7rem !important; font: 500 calc(clamp(2.5rem, 5.4cqw, 4.9rem) * var(--w-scale))/1.04 var(--w-display); letter-spacing: -.03em; text-wrap: balance; }
.w-names span { display: block; }
.w-names i { font-weight: 500; }
.w-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 0; margin-top: 1.1rem !important; font: 600 clamp(.72rem, 1.15cqw, .98rem)/1.8 var(--w-body); letter-spacing: .09em; text-transform: uppercase; }
.w-facts span + span { margin-left: 1.2rem; padding-left: 1.2rem; border-left: 1px solid var(--w-line); }
.w-signoff { display: grid; justify-items: center; gap: .7rem; max-width: 34rem; margin-top: 1.2rem; }
.w-signoff-art { width: clamp(3.5rem, 7cqw, 6rem); mix-blend-mode: multiply; }
.w-signoff .w-text { font-size: clamp(.9rem, 1.15cqw, 1.05rem); line-height: 1.45; }
.w-hero-art { position: relative; min-height: 100%; }
.w-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.w-hero-art .w-hero-illustration { object-fit: contain; object-position: right center; mix-blend-mode: multiply; }
.w-comp--botanical .w-hero-art { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%); mask-image: linear-gradient(to right, transparent, #000 12%); }

/* ---------- Sections ---------- */
.w-sec { position: relative; padding: clamp(1.4rem, 3cqw, 2.6rem) clamp(1.1rem, 4.5cqw, 4.2rem); }
.w-sec-title { font: italic 500 calc(clamp(2rem, 3.3cqw, 3rem) * var(--w-scale))/1 var(--w-heading, var(--w-display)); letter-spacing: -.02em; }
.w-sec-head { display: grid; gap: .55rem; align-content: start; }
.w-sec-body { margin-top: 1rem; }
.w-text { max-width: 68ch; font-size: .95rem; white-space: pre-line; overflow-wrap: anywhere; }
.w-text + .w-text { margin-top: .6em !important; }
.w-subhead { margin: 1rem 0 .35rem !important; font: 600 .92rem/1.3 var(--w-body); }
.w-ornament { height: clamp(2.2rem, 3.6cqw, 3.1rem); width: auto; margin: 0 auto .5rem; mix-blend-mode: multiply; }
.w-photo { width: 100%; max-height: 30rem; object-fit: cover; margin: .9rem 0; border-radius: 2px; }
.w-link { display: inline-block; margin-top: .6rem; font-weight: 600; }
.w-hint { margin-top: .8rem !important; padding: .7rem .9rem; border: 1px dashed var(--w-line); font-size: .85rem; opacity: .8; }
.w-status, .w-toggle { display: inline-block; font: 600 .74rem/1.4 var(--w-body); letter-spacing: .16em; text-transform: uppercase; }
.w-status::after { display: block; content: ""; width: 2.4rem; height: 1px; margin: .7rem auto 0; background: var(--w-line); }
.w-toggle { letter-spacing: .04em; text-transform: none; font-size: .82rem; text-decoration: underline; }
.w-more[open] > .w-status, .w-more > summary:hover { text-decoration: underline; text-underline-offset: .22em; }
.w-detail { padding-top: .9rem; text-align: left; font-size: .9rem; }
.w-detail ul, .w-detail ol { margin: .3em 0 .7em; padding-left: 1.1em; }
.w-detail li + li { margin-top: .35em; }
.w-item-title { font-weight: 600; }
.w-events { display: grid; }
.w-event { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .4rem 1rem; padding: .7rem 0; border-top: 1px solid var(--w-line); }
.w-event-time { font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.w-event-date { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.w-event-title { font: 600 .98rem/1.3 var(--w-body); }
.w-event-place { font-weight: 600; font-size: .85rem; margin-top: .15rem !important; }
.w-event .w-text { margin-top: .45em !important; font-size: .88rem; }
.w-qa { border-bottom: 1px solid var(--w-line); }
.w-qa summary { position: relative; padding: .75rem 1.6rem .75rem 0; font-weight: 600; font-size: .92rem; }
.w-qa summary::after { content: ""; position: absolute; right: .5rem; top: 1.05rem; width: .5rem; height: .5rem; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.w-qa[open] summary::after { transform: rotate(225deg); top: 1.3rem; }
.w-qa .w-text { padding: 0 1rem .8rem 0; font-size: .88rem; }

/* Band: schedule summary row with icons */
.w-sec--band { display: grid; grid-template-columns: minmax(10rem, 22%) 1fr; gap: 1rem 0; background: var(--w-band); }
.w-sec--band .w-sec-head { align-content: center; padding-right: 1.5rem; border-right: 1px solid var(--w-line); }
.w-highlights { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0 0 0 1.5rem !important; list-style: none; }
.w-highlights li { position: relative; display: grid; justify-items: center; align-content: start; gap: .3rem; text-align: center; }
.w-highlights li + li::before { content: ""; position: absolute; left: -26%; width: 52%; top: 1.55rem; height: 1px; background: var(--w-line); }
.w-icon { height: 2.6rem; width: auto; margin-bottom: .4rem; }
.w-highlights h3 { font: 600 .88rem/1.25 var(--w-body); letter-spacing: .14em; text-transform: uppercase; }
.w-highlights p { font: 600 .74rem/1.3 var(--w-body); letter-spacing: .1em; text-transform: uppercase; }
.w-sec--band > .w-more { grid-column: 1 / -1; border-top: 1px solid var(--w-line); padding-top: .6rem; }

/* Strip: venue with banner art */
.w-sec--strip { display: grid; grid-template-columns: 40% minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; padding-block: 1.2rem; }
.w-strip-art { width: 100%; height: clamp(6rem, 11cqw, 9.5rem); object-fit: cover; mix-blend-mode: multiply; }
.w-sec--strip .w-ornament { display: none; }
.w-sec--strip .w-sec-head { margin-left: 2.4rem; padding: 1.4rem 0 1.4rem 2.4rem; border-left: 1px solid var(--w-line); }
.w-sec--strip .w-sec-body { margin: 0; padding-left: 2rem; border-left: 1px solid var(--w-line); }
.w-sec--strip:not(:has(.w-strip-art)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.w-sec--strip:not(:has(.w-strip-art)) .w-sec-head { margin-left: 0; border-left: 0; padding-left: 0; }

/* Script display faces: names only, slightly larger and not italic */
.w-script-names .w-names { font-size: calc(clamp(2.8rem, 6.2cqw, 5.6rem) * var(--w-scale)); letter-spacing: 0; line-height: 1.15; }
.w-script-names .w-sec-title { font-style: normal; }
.w-script-names .w-guide .w-subhead { font-family: var(--w-heading); }

/* Rows of compact sections */
.w-row { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 0 clamp(.5rem, 3cqw, 3rem); border-top: 1px solid var(--w-line); }
.w-row--2 { --cols: 2; } .w-row--3 { --cols: 3; }
.w-row--qa { grid-template-columns: 1.1fr 1fr; }
.w-row > .w-sec { padding-inline: clamp(.8rem, 1.6cqw, 1.6rem); }
.w-row > .w-sec + .w-sec { border-left: 1px solid var(--w-line); }
.w-sec--compact { text-align: center; }
.w-sec--compact .w-sec-head { justify-items: center; }
.w-sec--compact .w-sec-head .w-text { font-size: .88rem; }
.w-sec--compact .w-sec-title { font-size: calc(clamp(1.7rem, 2.6cqw, 2.4rem) * var(--w-scale)); }
.w-row--qa > .w-sec--compact { text-align: left; }
.w-row--qa > .w-sec--compact .w-sec-head { justify-items: start; }
.w-row--qa > .w-sec--compact .w-status::after { margin-inline: 0; }
.w-row--qa > .w-sec--compact .w-ornament { margin-inline: 0; }

/* Corner art, guide banner */
.w-corner-art { position: absolute; right: 0; bottom: 0; z-index: 0; width: clamp(5rem, 15cqw, 12rem); pointer-events: none; opacity: .9; }
.w-has-corner > :not(.w-corner-art) { position: relative; z-index: 1; }
.w-sec--rsvp .w-corner-art { right: auto; left: 0; width: clamp(5rem, 17cqw, 14rem); opacity: .75; }
.w-sec--strip ul, .w-sec--strip ol { list-style: none; padding: 0; }
.w-sec--guide { isolation: isolate; }
.w-guide-art { position: absolute; inset: 0 0 auto auto; z-index: -1; width: 48%; height: clamp(6rem, 12cqw, 9rem); object-fit: cover; object-position: bottom right; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
.w-more--inline { margin-top: .6rem; }
.w-more--inline > .w-toggle { margin-bottom: .2rem; }

/* Guide strip */
.w-sec--guide { background: var(--w-band); }
.w-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2rem; }
.w-guide .w-subhead { font: 500 1.5rem/1.1 var(--w-heading, var(--w-display)); }

/* RSVP band */
.w-sec--rsvp { display: grid; grid-template-columns: minmax(12rem, 30%) 1fr; gap: 1.2rem 2.5rem; background: var(--w-band-strong); }
.w-sec--rsvp .w-ornament { position: absolute; left: 0; bottom: 0; height: clamp(5rem, 14cqw, 10rem); margin: 0; opacity: .7; pointer-events: none; }
.w-sec--rsvp .w-sec-body { margin: 0; }
.w-sec--rsvp .w-text { font: 600 .74rem/1.7 var(--w-body); letter-spacing: .16em; text-transform: uppercase; }
.w-rsvp-form { display: grid; gap: .9rem; }
.w-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.w-rsvp-form label, .guest-rsvp label { display: grid; gap: .3rem; }
.w-rsvp-form label > span, .w-attendance legend { font: 600 .68rem/1.2 var(--w-body); letter-spacing: .13em; text-transform: uppercase; }
.w-rsvp-form input:not([type=radio]), .guest-rsvp :is(input, select) { width: 100%; min-height: 2.6rem; border: 1px solid var(--w-line); border-radius: .5rem; padding: .3em .7em; background: color-mix(in srgb, var(--w-paper) 85%, white); font: inherit; color: var(--w-ink); }
.w-attendance { display: flex; flex-wrap: wrap; gap: .6rem 2rem; border: 0; padding: 0; }
.w-attendance label { display: flex; align-items: center; gap: .45em; font: 600 1rem/1.2 var(--w-display); }
.w-rsvp-form .w-button { justify-self: start; min-height: 2.6rem; }
.w-form-note { font-size: .75rem; opacity: .8; }

/* Edit handles in the studio preview */
/* Editor: every part of the page is a button that opens its fields. --w-edit-k undoes the preview's zoom. */
.w-editable [data-section] { position: relative; cursor: pointer; }
.w-editable [data-section]:hover { outline: calc(2px * var(--w-edit-k, 1)) dashed color-mix(in srgb, var(--w-ink) 45%, transparent); outline-offset: calc(-4px * var(--w-edit-k, 1)); }
.w-editable [data-section].is-editing { outline: calc(2.5px * var(--w-edit-k, 1)) solid #2f6b4f; outline-offset: calc(-3px * var(--w-edit-k, 1)); }
.w-edit-handle { position: absolute; top: calc(.6rem * var(--w-edit-k, 1)); right: calc(.6rem * var(--w-edit-k, 1)); z-index: 3; padding: calc(.42rem * var(--w-edit-k, 1)) calc(.8rem * var(--w-edit-k, 1)); border: 0; border-radius: 999px; background: #1f2a24; color: #fff; font: 600 calc(.75rem * var(--w-edit-k, 1))/1 "DM Sans", system-ui, sans-serif; letter-spacing: .02em; opacity: 0; cursor: pointer; transition: opacity .12s; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.w-editable [data-section]:hover > .w-edit-handle, .w-edit-handle:focus-visible { opacity: 1; }
.w-editable [data-section].is-editing > .w-edit-handle { opacity: 1; background: #2f6b4f; }
@media (hover: none) { .w-editable .w-edit-handle { opacity: .94; } }

/* ---------- Compositions ---------- */
.w-comp--letterpress { padding: clamp(.6rem, 2cqw, 1.6rem); }
.w-comp--letterpress .w-main { border: 1px solid var(--w-line); }
.w-comp--letterpress .w-hero { grid-template-columns: 1fr; }
.w-comp--letterpress .w-hero-art { order: -1; height: clamp(10rem, 28cqw, 22rem); }
.w-comp--letterpress .w-hero-art img { object-fit: contain; object-position: center; }
.w-comp--editorial .w-hero { grid-template-columns: 1fr 1fr; }
.w-comp--editorial .w-hero-copy { align-items: flex-start; text-align: left; }
.w-comp--editorial .w-facts { justify-content: flex-start; }
.w-comp--editorial .w-signoff { justify-items: start; }
.w-comp--grid .w-main { display: grid; grid-template-columns: 1fr 1fr; }
.w-comp--grid .w-main > :is(.w-hero, .w-sec--band, .w-sec--rsvp, .w-row) { grid-column: 1 / -1; }
.w-comp--grid .w-main > .w-sec { border-top: 1px solid var(--w-line); }
.w-comp--card { padding: clamp(.8rem, 3cqw, 2.6rem); background-color: color-mix(in srgb, var(--w-paper) 70%, var(--w-accent)); }
.w-comp--card .w-main { display: grid; gap: clamp(.6rem, 1.6cqw, 1.2rem); max-width: 60rem; margin: 0 auto; }
.w-comp--card .w-main > * { background: var(--w-paper) var(--w-paper-art, none) repeat; background-size: 384px auto; border: 1px solid var(--w-line); margin: 0; }
.w-comp--card .w-hero { grid-template-columns: 1fr; }
.w-comp--card .w-hero-art { height: clamp(9rem, 24cqw, 18rem); }
.w-comp--dinner .w-hero { grid-template-columns: 1fr; border-top: clamp(1rem, 4cqw, 3.5rem) solid var(--w-ink); }
.w-comp--dinner .w-hero-art { height: clamp(8rem, 20cqw, 16rem); order: -1; }
.w-comp--dinner .w-hero-art img { object-fit: contain; object-position: center; }
.w-comp--dinner .w-sec { text-align: center; }
.w-comp--dinner .w-sec-head { justify-items: center; }
.w-comp--dinner .w-text { margin-inline: auto; }
.w-comp--immersive .w-hero { grid-template-columns: 1fr; min-height: clamp(26rem, 62cqw, 46rem); color: #fff; }
.w-comp--immersive .w-hero-art { position: absolute; inset: 0; z-index: -2; }
.w-comp--immersive .w-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0009, #0003); }
.w-comp--immersive .w-hero-art img { object-fit: cover; mix-blend-mode: normal; }
.w-comp--immersive .w-kicker::before, .w-comp--immersive .w-kicker::after { background: #fff8; }
.w-comp--immersive .w-emblem { background: var(--w-paper); border-radius: 50%; padding: 1rem; }

/* ---------- Narrow ---------- */
@container (max-width: 860px) {
  .w-comp--custom[data-nav] .w-nav { flex: 1 1 auto; min-width: 0; max-width: 100%; align-self: stretch; overflow-x: auto; flex-wrap: nowrap; justify-content: safe center; scrollbar-width: none; }
  .w-comp--custom[data-nav] .w-header { max-width: 100%; }
  .w-header { flex-wrap: wrap; gap: .35rem .8rem; }
  .w-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; border-top: 1px solid var(--w-line); scrollbar-width: none; }
  .w-header-actions { margin-left: auto; }
}
@container (max-width: 640px) {
  .w-hero, .w-comp--editorial .w-hero { grid-template-columns: 1fr; }
  .w-hero-copy, .w-comp--editorial .w-hero-copy { align-items: center; text-align: center; padding: 1.6rem 1.1rem 1.2rem; }
  .w-comp--editorial .w-facts { justify-content: center; }
  .w-hero-art { order: 2; height: 13rem; min-height: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  .w-hero-art .w-hero-illustration { object-fit: cover; object-position: center 40%; }
  .w-guide-art { width: 70%; opacity: .7; }
  .w-kicker { letter-spacing: .26em; gap: .7rem; }
  .w-kicker::before, .w-kicker::after { width: 1.4rem; }
  .w-facts span + span { margin-left: .6rem; padding-left: .6rem; }
  .w-sec--band { grid-template-columns: 1fr; }
  .w-sec--band .w-sec-head { border-right: 0; padding-right: 0; text-align: center; justify-items: center; }
  .w-highlights { padding: 0 !important; }
  .w-highlights h3 { font-size: .72rem; letter-spacing: .07em; }
  .w-highlights p { font-size: .64rem; }
  .w-icon { height: 2rem; }
  .w-sec--strip { grid-template-columns: 1fr; text-align: center; gap: .7rem; }
  .w-sec--strip .w-sec-head, .w-sec--strip .w-sec-body { margin: 0; padding: 0; border: 0; justify-items: center; }
  .w-row, .w-row--qa { grid-template-columns: 1fr; margin-inline: 1rem; }
  .w-row > .w-sec + .w-sec { border-left: 0; border-top: 1px solid var(--w-line); }
  .w-sec--compact { text-align: left; }
  .w-sec--compact:has(> .w-ornament) { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); column-gap: .8rem; }
  .w-sec--compact .w-ornament { grid-row: span 2; height: 1.9rem; margin: .2rem 0 0; }
  .w-sec--compact .w-sec-head { justify-items: start; }
  .w-sec--compact:has(> .w-ornament) .w-sec-body { grid-column: 2; margin-top: .4rem; }
  .w-sec--compact .w-status::after { margin-inline: 0; }
  .w-sec--rsvp { grid-template-columns: 1fr; }
  .w-form-fields { grid-template-columns: 1fr; }
  .w-event { grid-template-columns: 5rem minmax(0, 1fr); }
  .w-comp--grid .w-main { grid-template-columns: 1fr; }
  .w-languages { padding: 0 .4rem; }
}

/* ---------- Published-only guest forms ---------- */
.guest-rsvp, .guest-access { display: grid; gap: .8rem; max-width: 30rem; font: 400 1rem/1.4 "DM Sans", system-ui, sans-serif; }
.guest-access { margin: 12vh auto; padding: 1.5rem; }
.guest-access label { display: grid; gap: .3rem; }
.guest-access input { width: 100%; padding: .6rem; border: 1px solid #aaa; border-radius: .4rem; font: inherit; }
.guest-rsvp button, .guest-access button { justify-self: start; background: var(--w-ink, #272622); color: #fff; padding: .7rem 1.3rem; border: 0; border-radius: .5rem; cursor: pointer; font: 600 .8rem/1 "DM Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.w-emblem-initials.form-wordmark { font-size: clamp(.95rem, 1.7cqw, 1.45rem); padding-bottom: 3%; }

/* ---------- Custom designs (spec v1) ----------
   A long-scroll page. Structure comes from data-hero / data-rhythm / data-heading / data-schedule / data-nav on
   .w-page; a generated stylesheet then art-directs it. Everything below is the safe base it builds on. */
.w-comp--custom { --w-max: 66rem; --w-pad: clamp(1.2rem, 5cqw, 5rem); --w-gap: clamp(3rem, 7cqw, 6.5rem); --w-radius: 0px; --w-title: calc(clamp(2.1rem, 4.4cqw, 3.9rem) * var(--w-scale)); --w-tint: var(--w-band); }
.w-comp--custom .w-header { position: relative; z-index: 4; padding-inline: var(--w-pad); }
.w-comp--custom[data-nav="center"] .w-header { flex-direction: column; gap: .4rem; padding-block: 1.2rem .6rem; }
.w-comp--custom[data-nav="center"] .w-monogram { font-size: 1.9rem; }
.w-comp--custom[data-nav="center"] .w-nav { justify-content: center; gap: .2rem 2rem; flex: none; }
.w-comp--custom[data-nav="center"] .w-header-actions { position: absolute; right: var(--w-pad); top: 1.1rem; }
.w-comp--custom[data-nav="minimal"] .w-header { border-bottom: 0; }
.w-comp--custom[data-nav="minimal"] .w-nav { justify-content: flex-end; gap: .2rem 1.6rem; }

/* Hero */
.w-comp--custom .w-hero { grid-template-columns: 1fr 1fr; min-height: clamp(30rem, 54cqw, 46rem); }
.w-comp--custom .w-hero--type { grid-template-columns: 1fr; }
.w-comp--custom .w-hero-copy { gap: 0; padding: clamp(2rem, 5cqw, 4.5rem) var(--w-pad); }
.w-comp--custom .w-hero-art { min-height: 18rem; overflow: hidden; }
.w-comp--custom .w-hero-art .w-hero-scene { object-fit: cover; object-position: center; }
.w-comp--custom .w-hero-rsvp { margin-top: 1.6rem; padding: .95em 1.9em; font-size: .74rem; }
.w-comp--custom[data-hero="split"] .w-hero-art { order: 2; }
.w-comp--custom[data-hero="split-reverse"] .w-hero-art { order: -1; }
.w-comp--custom[data-hero="stack"] .w-hero { grid-template-columns: 1fr; min-height: 0; }
.w-comp--custom[data-hero="stack"] .w-hero-art { order: -1; height: clamp(15rem, 40cqw, 32rem); }
.w-comp--custom[data-hero="overlay"] .w-hero { grid-template-columns: 1fr; place-items: center; min-height: clamp(34rem, 62cqw, 52rem); padding: var(--w-pad); }
.w-comp--custom[data-hero="overlay"] .w-hero-art { position: absolute; inset: 0; z-index: -1; }
.w-comp--custom[data-hero="overlay"] .w-hero-copy { width: min(100%, 38rem); background: color-mix(in srgb, var(--w-paper) 94%, transparent); padding: clamp(1.8rem, 4cqw, 3.4rem); }
.w-comp--custom[data-hero="frame"] .w-hero { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding-top: clamp(2rem, 5cqw, 4rem); }
.w-comp--custom[data-hero="frame"] .w-hero-art { order: -1; width: min(24rem, 62cqw); aspect-ratio: 4 / 5; min-height: 0; border-radius: 999px 999px 0 0; }
.w-comp--custom[data-hero="frame"] .w-hero-copy { padding-top: clamp(1.4rem, 3cqw, 2.4rem); }

/* Sections */
.w-comp--custom .w-sec { padding: var(--w-gap) var(--w-pad); }
.w-comp--custom .w-sec-inner { position: relative; z-index: 1; display: grid; gap: clamp(1.4rem, 3cqw, 2.6rem); max-width: var(--w-max); margin: 0 auto; }
.w-comp--custom .w-sec-head { justify-items: center; text-align: center; gap: .7rem; }
.w-comp--custom .w-sec-icon { height: clamp(2.8rem, 5.4cqw, 4.2rem); width: auto; }
.w-comp--custom .w-sec-icon.w-icon--painted { min-width: 3.6rem; min-height: 3.6rem; object-fit: contain; }
.w-comp--custom .w-event-icon.w-icon--painted { min-width: 2.8rem; min-height: 2.8rem; object-fit: contain; }
.w-comp--custom .w-icon--line { color: var(--w-ink); }
.w-comp--custom :is(.w-header, .w-hero, .w-sec, .w-footer) { --w-line: color-mix(in srgb, var(--w-ink) 28%, var(--w-paper)); --w-band: color-mix(in srgb, var(--w-accent) 30%, var(--w-paper)); --w-band-strong: color-mix(in srgb, var(--w-accent) 55%, var(--w-paper)); --w-soft-ink: color-mix(in srgb, var(--w-ink) 78%, var(--w-paper)); color: var(--w-ink); }
.w-comp--custom .w-sec-count { font: 600 .7rem/1 var(--w-body); letter-spacing: .34em; opacity: .7; }
.w-comp--custom .w-sec-title { font: 500 var(--w-title)/1.05 var(--w-heading, var(--w-display)); font-style: normal; letter-spacing: -.015em; text-wrap: balance; }
/* The heading and body always span their column: a generated "max-width + auto margins" then centres them instead
   of shrinking them to their content (which collapses every grid inside to one narrow column). */
.w-comp--custom :is(.w-sec-head, .w-sec-body) { width: 100%; min-width: 0; box-sizing: border-box; }
.w-comp--custom .w-sec-body { margin: 0; display: grid; gap: 1.1rem; justify-items: center; }
.w-comp--custom .w-sec-body > * { width: 100%; }
.w-comp--custom .w-sec-body > .w-text { max-width: 60ch; text-align: center; font-size: clamp(.98rem, 1.25cqw, 1.12rem); line-height: 1.65; }
.w-comp--custom .w-subhead { margin: .4rem 0 0 !important; text-align: center; font: 600 .74rem/1.3 var(--w-body); letter-spacing: .2em; text-transform: uppercase; }
.w-comp--custom .w-sec-ornament { position: absolute; right: clamp(.5rem, 3cqw, 3rem); top: clamp(1rem, 3cqw, 2.6rem); height: clamp(2.4rem, 6cqw, 5rem); width: auto; opacity: .55; mix-blend-mode: multiply; pointer-events: none; }
.w-comp--custom .w-hint { text-align: center; max-width: 34rem; margin-inline: auto !important; }
.w-comp--custom[data-heading="left"] .w-sec-head { justify-items: start; text-align: left; }
.w-comp--custom[data-heading="left"] .w-sec-body { justify-items: start; }
.w-comp--custom[data-heading="left"] :is(.w-sec-body > .w-text, .w-subhead) { text-align: left; }
.w-comp--custom[data-heading="side"] .w-sec-inner { grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.2fr); align-items: start; column-gap: clamp(2rem, 6cqw, 5rem); }
.w-comp--custom[data-heading="side"] .w-sec-head { justify-items: start; text-align: left; padding-top: .9rem; border-top: 1px solid var(--w-ink); }
.w-comp--custom[data-heading="side"] .w-sec-body { justify-items: start; }
.w-comp--custom[data-heading="side"] :is(.w-sec-body > .w-text, .w-subhead) { text-align: left; }
.w-comp--custom[data-rhythm="bands"] .w-main > .w-sec:nth-of-type(odd) { background: var(--w-tint); }
.w-comp--custom[data-rhythm="cards"] .w-main { background: var(--w-tint); padding-bottom: var(--w-gap); }
.w-comp--custom[data-rhythm="cards"] .w-main > .w-sec { width: min(100% - 2 * var(--w-pad), var(--w-max) + 8rem); margin: clamp(1.2rem, 3cqw, 2.4rem) auto 0; padding: clamp(2rem, 5cqw, 4rem); background: var(--w-paper) var(--w-paper-art, none) repeat; background-size: 384px auto; border: 1px solid var(--w-line); border-radius: var(--w-radius); }
.w-comp--custom .w-divider { display: none; }
.w-comp--custom[data-rhythm="open"] .w-divider { display: block; width: min(22rem, 60%); height: clamp(1.6rem, 3.4cqw, 2.8rem); margin: 0 auto; background: var(--w-art-divider, linear-gradient(var(--w-line), var(--w-line)) center / 100% 1px no-repeat) center / contain no-repeat; }
.w-comp--custom[data-heading="side"] .w-sec-ornament { display: none; }

/* Blocks */
.w-comp--custom .w-events { display: grid; gap: 0; max-width: 46rem; padding: 0; list-style: none; }
.w-comp--custom .w-event { display: grid; grid-template-columns: 3.4rem 9rem minmax(0, 1fr); align-items: start; gap: .3rem 1.2rem; padding: 1.15rem 0; border-top: 1px solid var(--w-line); text-align: left; }
.w-comp--custom .w-event:last-child { border-bottom: 1px solid var(--w-line); }
.w-comp--custom .w-event-icon { height: 2.6rem; width: auto; justify-self: center; }
.w-comp--custom .w-event-time { font: 600 .8rem/1.5 var(--w-body); letter-spacing: .12em; text-transform: uppercase; padding-top: .3rem; }
.w-comp--custom .w-event-title { font: 500 1.4rem/1.2 var(--w-heading, var(--w-display)); }
.w-comp--custom .w-event-place { font: 400 .92rem/1.4 var(--w-body); opacity: .85; }
.w-comp--custom .w-event:not(:has(.w-event-icon)) { grid-template-columns: 9rem minmax(0, 1fr); }
.w-comp--custom[data-schedule="columns"] .w-events { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(.8rem, 2cqw, 1.6rem); max-width: none; }
.w-comp--custom[data-schedule="columns"] .w-event { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .5rem; padding: clamp(1.4rem, 3cqw, 2.2rem) 1.2rem; border: 1px solid var(--w-line); border-radius: var(--w-radius); }
.w-comp--custom[data-schedule="columns"] .w-event-icon { height: 3.2rem; }
.w-comp--custom .w-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(.8rem, 2cqw, 1.4rem); padding: 0; list-style: none; }
.w-comp--custom .w-card { display: grid; align-content: start; gap: .4rem; padding: 1.4rem 1.5rem; border: 1px solid var(--w-line); border-radius: var(--w-radius); text-align: left; }
.w-comp--custom .w-card .w-item-title { font: 500 1.3rem/1.2 var(--w-heading, var(--w-display)); text-decoration-thickness: 1px; }
.w-comp--custom .w-card .w-text { font-size: .92rem; }
.w-comp--custom .w-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(.6rem, 1.6cqw, 1.2rem); }
.w-comp--custom .w-figure { margin: 0; overflow: hidden; border-radius: var(--w-radius); }
.w-comp--custom .w-figure .w-photo { width: 100%; height: 100%; max-height: none; aspect-ratio: 4 / 5; margin: 0; object-fit: cover; }
.w-comp--custom .w-gallery:has(> :only-child) { max-width: 44rem; }
.w-comp--custom .w-gallery:has(> :only-child) .w-photo { aspect-ratio: 3 / 2; }
.w-comp--custom .w-qa { max-width: 46rem; margin-inline: auto; text-align: left; }
/* The yes / no choice must stay a tidy row whatever a generated stylesheet says about inputs and labels. */
.w-comp--custom .w-rsvp-form .w-attendance { display: flex; flex-wrap: wrap; gap: .7rem 2rem; min-width: 0; }
.w-comp--custom .w-rsvp-form .w-attendance label { display: flex !important; flex-direction: row !important; align-items: center; gap: .55rem; width: auto; margin: 0; }
.w-comp--custom .w-rsvp-form .w-attendance input[type=radio] { flex: none; width: 1.15rem !important; height: 1.15rem !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; accent-color: var(--w-ink); }
.w-comp--custom .w-rsvp-form .w-attendance label > span { display: inline !important; margin: 0 !important; white-space: nowrap; }
.w-comp--custom .w-qa summary { font: 500 1.2rem/1.3 var(--w-heading, var(--w-display)); padding-block: 1rem; }
.w-comp--custom .w-qa .w-text { font-size: .95rem; }
.w-comp--custom .w-link { justify-self: center; width: auto; }
.w-comp--custom .w-kind--rsvp { background: var(--w-band-strong); }
.w-comp--custom .w-kind--rsvp .w-sec-head .w-text { font: 600 .76rem/1.7 var(--w-body); letter-spacing: .16em; text-transform: uppercase; }
.w-comp--custom .w-rsvp-slot { max-width: 34rem; margin-inline: auto; padding: clamp(1.4rem, 3cqw, 2.2rem); background: var(--w-paper); border: 1px solid var(--w-line); border-radius: var(--w-radius); text-align: left; }
.w-comp--custom .w-footer { display: grid; justify-items: center; gap: .5rem; padding: clamp(2.4rem, 6cqw, 4.5rem) var(--w-pad); text-align: center; }
.w-comp--custom .w-footer-emblem { width: clamp(4rem, 8cqw, 6rem); mix-blend-mode: multiply; }
.w-comp--custom .w-footer-names { font: 500 clamp(1.5rem, 3cqw, 2.3rem)/1.1 var(--w-display); }
.w-comp--custom .w-footer-facts { font: 600 .7rem/1.6 var(--w-body); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

@container (max-width: 760px) {
  .w-comp--custom .w-hero, .w-comp--custom[data-heading="side"] .w-sec-inner { grid-template-columns: 1fr; }
  .w-comp--custom[data-hero="split"] .w-hero-art, .w-comp--custom[data-hero="split-reverse"] .w-hero-art { order: -1; height: clamp(14rem, 60cqw, 22rem); min-height: 0; }
  .w-comp--custom .w-hero-art .w-hero-illustration { object-fit: contain; object-position: center; }
  .w-comp--custom[data-hero="overlay"] .w-hero { min-height: 32rem; padding: 1.2rem; }
  .w-comp--custom[data-nav="center"] .w-header-actions { position: static; }
  .w-comp--custom[data-nav="center"] .w-header { flex-direction: row; }
  /* The page links scroll sideways on a phone: they must start at the left edge or the first ones are cut off. */
  .w-comp--custom .w-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; justify-content: flex-start !important; overflow-x: auto; gap: .2rem 1.2rem; }
  .w-comp--custom[data-nav="center"] .w-nav { flex: 1 1 100%; min-width: 0; }
  .w-comp--custom .w-event, .w-comp--custom .w-event:not(:has(.w-event-icon)) { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .w-comp--custom .w-event:not(:has(.w-event-icon)) { grid-template-columns: 1fr; }
  .w-comp--custom .w-event-icon { grid-row: span 2; height: 2.1rem; }
  .w-comp--custom .w-event:has(.w-icon--painted) { grid-template-columns: 3rem minmax(0, 1fr); }
  .w-comp--custom[data-schedule="columns"] .w-event { grid-template-columns: 1fr; }
  .w-comp--custom[data-schedule="columns"] .w-event-icon { grid-row: auto; }
  .w-comp--custom .w-sec-ornament { display: none; }
  .w-comp--custom[data-rhythm="cards"] .w-main > .w-sec { width: calc(100% - 1.6rem); padding: 1.6rem 1.1rem; }
}
.guest-rsvp label[hidden] { display: none; }
/* A part of the page that chat just changed glows for a moment. */
.w-editable .is-flash { animation: w-flash 2.4s ease-out; }
@keyframes w-flash { 0%, 30% { box-shadow: inset 0 0 0 3px #2f6b4f, 0 0 0 6px rgb(47 107 79 / 18%); } 100% { box-shadow: inset 0 0 0 3px transparent, 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .w-editable .is-flash { animation: none; outline: 3px solid #2f6b4f; } }

/* ===============================================================================================   Templates (.w-tpl). A template = layout axes (data-hero, data-rhythm, …) + the rules below. Everything is read
   from the theme: palette roles (--r-*), type tokens (--t-*), fonts, art (--w-art-*) and details
   (data-rule, data-button, data-frame, data-title, data-icon-color, data-art). No template knows a theme by name.
   ====================================================================================================== */
.w-tpl {
  --w-ink: var(--r-ink); --w-paper: var(--r-page); --w-accent: var(--r-accent);
  --w-pad: clamp(1.25rem, 6cqw, 6rem); --w-gap: clamp(3.5rem, 8cqw, 7.5rem); --w-max: 68rem;
  --w-title: calc(clamp(2.2rem, 4.6cqw, 4.2rem) * var(--t-title-scale, 1) * var(--w-scale));
  --w-names-size: calc(clamp(3.1rem, 8.2cqw, 7.6rem) * var(--t-names-scale, 1) * var(--w-scale));
  --tint: color-mix(in srgb, var(--r-accent) 11%, var(--r-page));
  --ground: color-mix(in srgb, var(--r-accent) 18%, var(--r-page));
  --w-tint: var(--tint); --w-band: var(--tint); --w-band-strong: var(--tint);
  background-color: var(--r-page);
  color: var(--r-ink);
  font: 400 var(--t-body-size, 1.06rem)/var(--t-leading, 1.65) var(--w-body);
}
.w-tpl[data-schedule="columns"] .w-events { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); max-width: var(--w-max); }
.w-tpl :is(.w-header, .w-hero, .w-sec, .w-footer) { --w-line: var(--r-line); --w-band: var(--tint); --w-band-strong: var(--tint); --w-soft-ink: var(--r-soft-ink); color: var(--r-ink); }
.w-tpl .w-text { color: var(--r-ink); }
.w-tpl[data-link="rule"] a:not(.w-button) { text-decoration: none; border-bottom: 1px solid var(--r-accent-ink); }
.w-tpl[data-link="none"] a:not(.w-button) { text-decoration: none; }

/* Labels: one voice for every small line of text */
.w-tpl :is(.w-kicker, .w-facts, .w-event-time, .w-subhead, .w-nav a, .w-button, .w-footer-facts, .w-sec-count, .w-languages button, .w-event-date, .w-rsvp-form label > span, .w-attendance legend) {
  font-family: var(--w-label-font); font-weight: var(--t-label-weight, 600); text-transform: var(--t-label-case, uppercase); letter-spacing: var(--t-label-tracking, .18em);
}
.w-tpl .w-nav a { font-size: .7rem; }
.w-tpl .w-monogram { font: 400 1.5rem/1 var(--w-title-font); text-transform: var(--t-names-case); letter-spacing: .04em; }
.w-tpl .w-monogram span + span { border-color: var(--r-accent); }

/* Names */
.w-tpl .w-names { margin-top: .9rem !important; font: var(--t-names-style, normal) var(--t-names-weight, 400) var(--w-names-size)/var(--t-names-leading, 1.02) var(--w-display); letter-spacing: var(--t-names-tracking); text-transform: var(--t-names-case); }
.w-tpl .w-names i { font-family: var(--w-accent-font); font-style: var(--t-amp-style, italic); font-weight: 400; text-transform: none; color: var(--r-accent-ink-2); font-size: .78em; letter-spacing: 0; padding-inline: .06em; }
.w-tpl[data-script-names] .w-names { letter-spacing: 0; text-transform: none; font-style: normal; }
.w-tpl .w-kicker { margin-top: 1.1rem; font-size: clamp(.68rem, 1cqw, .82rem); color: var(--r-soft-ink); }
.w-tpl .w-kicker::before, .w-tpl .w-kicker::after { background: var(--r-accent); }
.w-tpl .w-facts { margin-top: 1.2rem !important; font-size: clamp(.74rem, 1.1cqw, .92rem); }
.w-tpl .w-facts span + span { border-color: var(--r-accent); }
.w-tpl .w-signoff { margin-top: 1rem; }
.w-tpl .w-signoff-art { display: none; }
.w-tpl .w-signoff .w-text { font-size: clamp(1rem, 1.3cqw, 1.15rem); color: var(--r-soft-ink); max-width: 32rem; }
.w-tpl .w-hero-rsvp { margin-top: 1.8rem; }

/* Titles */
.w-tpl .w-sec-title { font: var(--t-title-style, normal) var(--t-title-weight, 400) var(--w-title)/1.05 var(--w-title-font); letter-spacing: var(--t-title-tracking); text-transform: var(--t-title-case); }
.w-tpl .w-sec-count, .w-tpl .w-sec-icon, .w-tpl .w-sec-ornament { display: none; }
.w-tpl[data-title="numbered"] .w-sec-count { display: block; font: italic 400 clamp(2.4rem, 5cqw, 4.4rem)/1 var(--w-accent-font); letter-spacing: 0; text-transform: none; opacity: 1; color: var(--r-soft-ink); }
.w-tpl[data-title="rules"] .w-sec-title { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 2cqw, 1.6rem); width: 100%; }
.w-tpl[data-title="rules"] .w-sec-title::before, .w-tpl[data-title="rules"] .w-sec-title::after { content: ""; flex: 1 1 0; max-width: 10rem; height: 1px; background: var(--r-accent); }
.w-tpl[data-title="plaque"] .w-sec-title { position: relative; white-space: nowrap; padding: .55em 1.6em .5em; font-size: calc(var(--w-title) * .62); border: 1px solid var(--r-accent); outline: 1px solid var(--r-accent); outline-offset: 4px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.w-tpl[data-title="plaque"] .w-sec-head { justify-items: center; }
.w-tpl[data-title="sprig"] .w-sec-head::before { content: ""; display: block; width: clamp(4rem, 8cqw, 6rem); height: clamp(1.6rem, 3cqw, 2.4rem); margin: 0 auto .2rem; background: var(--w-art-ornament-1, none) center / contain no-repeat; }
.w-tpl[data-title="sprig"][data-heading="side"] .w-sec-head::before, .w-tpl[data-title="sprig"][data-heading="left"] .w-sec-head::before { margin-inline: 0; }

/* Rules: under the facts and between sections */
.w-tpl .w-tpl-rule, .w-tpl .w-divider { display: block; width: min(16rem, 60%); height: 1px; margin: 1.4rem auto 0; background: var(--r-accent); }
.w-tpl .w-divider { margin: 0 auto; }
.w-tpl:not([data-rhythm="open"]) .w-divider { display: none; }
.w-tpl[data-rule="double"] :is(.w-tpl-rule, .w-divider) { height: 5px; background: linear-gradient(var(--r-accent), var(--r-accent)) top / 100% 1px no-repeat, linear-gradient(var(--r-accent), var(--r-accent)) bottom / 100% 1px no-repeat; }
.w-tpl[data-rule="heavy"] :is(.w-tpl-rule, .w-divider) { width: 100%; max-width: none; height: 2px; background: var(--r-ink); }
.w-tpl[data-rule="heavy"] .w-divider { width: calc(100% - 2 * var(--w-pad)); }
.w-tpl[data-rule="deco"] :is(.w-tpl-rule, .w-divider) { position: relative; width: min(22rem, 70%); height: 12px; background: linear-gradient(var(--r-accent), var(--r-accent)) center / 100% 1px no-repeat; }
.w-tpl[data-rule="deco"] :is(.w-tpl-rule, .w-divider)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: 1px solid var(--r-accent); background: var(--r-page); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 4px var(--r-page); }
.w-tpl[data-rule="sprig"] :is(.w-tpl-rule, .w-divider) { width: min(18rem, 64%); height: clamp(1.6rem, 3cqw, 2.4rem); background: var(--w-art-divider, linear-gradient(var(--r-accent), var(--r-accent)) center / 100% 1px no-repeat) center / contain no-repeat; }
.w-tpl[data-rule="tile"] :is(.w-tpl-rule, .w-divider) { height: clamp(2rem, 3.4cqw, 3rem); background: var(--w-art-pattern, radial-gradient(circle, var(--r-accent) 0 2px, transparent 2.5px)) left center / auto 100% repeat-x; }
.w-tpl:not([style*="--w-art-pattern"]) .w-hero::before, .w-tpl:not([style*="--w-art-pattern"]) .w-hero::after, .w-tpl[data-rule="tile"]:not([style*="--w-art-pattern"]) :is(.w-tpl-rule, .w-divider) { background-size: 14px 100%; height: 14px; }
.w-tpl[data-rule="tile"] .w-divider { display: block; width: 100%; max-width: none; }
.w-tpl[data-rule="tile"] .w-tpl-rule { width: min(20rem, 70%); }

/* Buttons */
.w-tpl .w-button { border-radius: 0; padding: 1em 2em; background: var(--r-ink); color: var(--r-page); font-size: .72rem; }
.w-tpl[data-button="pill"] .w-button { border-radius: 999px; }
.w-tpl[data-button="outline"] .w-button { background: transparent; color: var(--r-ink); box-shadow: inset 0 0 0 1px var(--r-accent); }
.w-tpl[data-button="outline"] .w-button:hover { background: var(--r-accent); color: var(--r-on-accent); }
.w-tpl[data-button="solid"] .w-button { background: var(--r-accent); color: var(--r-on-accent); }
.w-tpl .w-header-rsvp { padding: .75em 1.2em; font-size: .64rem; }

/* Frames: the RSVP card and the cards in lists */
.w-tpl :is(.w-rsvp-slot, .w-card, .w-panel) { position: relative; background: var(--r-surface); border: 1px solid var(--r-line); border-radius: 0; }
.w-tpl[data-frame="double"] :is(.w-rsvp-slot, .w-card, .w-panel) { border: 3px double var(--r-accent); }
.w-tpl[data-frame="deco"] :is(.w-rsvp-slot, .w-card, .w-panel) { border: 1px solid var(--r-accent); box-shadow: inset 0 0 0 5px var(--r-surface), inset 0 0 0 6px color-mix(in srgb, var(--r-accent) 70%, var(--r-surface)); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }
.w-tpl[data-frame="tile"] :is(.w-rsvp-slot, .w-card, .w-panel) { border: clamp(10px, 1.3cqw, 14px) solid transparent; background: linear-gradient(var(--r-surface), var(--r-surface)) padding-box, var(--w-art-pattern, linear-gradient(var(--r-accent2), var(--r-accent2))) 0 0 / 56px 56px border-box; }
.w-tpl[data-frame="ruled"] :is(.w-rsvp-slot, .w-card, .w-panel) { border: 0; border-top: 2px solid var(--r-ink); border-bottom: 1px solid var(--r-line); background: transparent; }
.w-tpl[data-frame="corners"] :is(.w-rsvp-slot, .w-card, .w-panel) { border-color: color-mix(in srgb, var(--r-accent) 45%, var(--r-surface)); }
.w-tpl[data-frame="corners"] .w-rsvp-slot::before, .w-tpl[data-frame="corners"] .w-rsvp-slot::after { content: ""; position: absolute; width: clamp(4.5rem, 10cqw, 7.5rem); aspect-ratio: 1; background: var(--w-art-frame, none) top left / contain no-repeat; pointer-events: none; }
.w-tpl[data-frame="corners"] .w-rsvp-slot::before { left: -1.6rem; top: -1.6rem; }
.w-tpl[data-frame="corners"] .w-rsvp-slot::after { right: -1.6rem; bottom: -1.6rem; transform: scale(-1, -1); }
.w-tpl .w-kind--rsvp { background: var(--tint); }
.w-tpl .w-rsvp-slot { max-width: 36rem; padding: clamp(1.6rem, 4cqw, 2.8rem); }
.w-tpl .w-rsvp-form input:not([type=radio]) { border-radius: 0; background: var(--r-page); border-color: var(--r-line); color: var(--r-ink); }
.w-tpl .w-attendance label { font-family: var(--w-title-font); font-size: 1.1rem; }

/* Icons: one-colour packs are masks painted with the theme's icon colour */
.w-icon--mask { display: inline-block; flex: none; width: 2.6rem; height: 2.6rem; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.w-tpl { --icon-color: var(--r-accent-ink); }
.w-tpl[data-icon-color="accent2"] { --icon-color: var(--r-accent-ink-2); }
.w-tpl[data-icon-color="ink"] { --icon-color: var(--r-ink); }
.w-tpl[data-dark] { --icon-color: var(--r-accent); --tint: var(--r-surface); --ground: color-mix(in srgb, var(--r-page) 70%, #000); }
.w-tpl :is(.w-event-icon, .w-card-icon).w-icon--mask, .w-tpl .w-icon--line { color: var(--icon-color); }
.w-tpl .w-event-icon.w-icon--mask { width: 2.8rem; height: 2.8rem; }
.w-tpl .w-card-icon { width: 2.4rem; height: 2.4rem; margin-bottom: .4rem; object-fit: contain; }
.w-tpl .w-card .w-item-title { font: var(--t-title-style) 400 1.45rem/1.15 var(--w-title-font); text-transform: var(--t-title-case); letter-spacing: calc(var(--t-title-tracking) * .6); text-decoration: none; }
.w-tpl .w-event-title { font: var(--t-title-style) 400 clamp(1.35rem, 2cqw, 1.7rem)/1.15 var(--w-title-font); text-transform: var(--t-title-case); letter-spacing: calc(var(--t-title-tracking) * .5); }
.w-tpl .w-event-time { font-size: .74rem; color: var(--r-soft-ink); }
.w-tpl .w-event-place { color: var(--r-soft-ink); }
.w-tpl .w-qa summary { font: var(--t-title-style) 400 1.3rem/1.3 var(--w-title-font); text-transform: var(--t-title-case); letter-spacing: calc(var(--t-title-tracking) * .4); }
.w-tpl .w-qa { border-color: var(--r-line); }
.w-tpl[data-schedule="columns"] .w-event { background: var(--r-surface); border-color: var(--r-line); }

/* Art: cut-outs sit on the paper; scenes are cropped to their frame */
.w-tpl .w-hero-art .w-hero-illustration { mix-blend-mode: normal; }
.w-tpl[data-art="cutout"] .w-hero-art .w-hero-illustration { object-fit: contain; object-position: center; padding: clamp(1rem, 3cqw, 3rem); }
.w-tpl[data-art="scene"] .w-hero-art .w-hero-illustration, .w-tpl .w-hero-art .w-hero-photo { object-fit: cover; object-position: center; padding: 0; }
.w-tpl .w-emblem-art { mix-blend-mode: normal; }
.w-tpl .w-emblem-initials { font-family: var(--w-title-font); text-transform: var(--t-names-case); }
.w-tpl .w-emblem-initials span + span { border-color: var(--r-accent); }
.w-tpl .w-footer { gap: .6rem; padding-block: clamp(3rem, 7cqw, 5.5rem); border-top: 1px solid var(--r-line); }
.w-tpl .w-footer .w-footer-mark { position: relative; inset: auto; transform: none; filter: none; -webkit-mask: none; mask: none; padding: 0; background: none; display: block; }
.w-tpl .w-footer-mark { width: clamp(5rem, 9cqw, 7rem); }
.w-tpl .w-footer-names { font: var(--t-names-style) 400 clamp(1.7rem, 3.4cqw, 2.6rem)/1.1 var(--w-display); text-transform: var(--t-names-case); letter-spacing: var(--t-names-tracking); }
.w-tpl .w-footer-names, .w-tpl .w-footer-facts { color: var(--r-ink); }
.w-tpl[data-dark] :is(.w-ornament, .w-sec-ornament, .w-footer-emblem) { mix-blend-mode: normal; }
.w-tpl[data-dark] .w-rsvp-form input:not([type=radio]) { background: color-mix(in srgb, var(--r-page) 80%, black); }

/* ---- Editorial split: big names beside tall art; side headings; ruled timeline ---- */
.w-tpl--editorial .w-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: clamp(34rem, 58cqw, 50rem); }
.w-tpl--editorial .w-hero-art { order: -1; background: var(--tint); }
.w-tpl--editorial .w-hero-copy { align-items: flex-start; text-align: left; padding: clamp(2.5rem, 6cqw, 6rem) var(--w-pad); }
.w-tpl--editorial .w-hero .w-emblem { display: none; }
.w-tpl--editorial .w-kicker { margin-top: 0; }
.w-tpl--editorial .w-kicker::before { display: none; }
.w-tpl--editorial .w-kicker::after { width: 3.5rem; }
.w-tpl--editorial .w-names span { display: block; }
.w-tpl--editorial .w-facts { justify-content: flex-start; }
.w-tpl--editorial .w-tpl-rule { margin-inline: 0; width: 100%; max-width: 30rem; }
.w-tpl--editorial .w-signoff { justify-items: start; }
.w-tpl--editorial .w-signoff .w-text { text-align: left; }

/* ---- Full-bleed art: art covers the opening; names on a paper plate ---- */
.w-tpl--fullbleed .w-hero { min-height: clamp(36rem, 66cqw, 56rem); padding: var(--w-pad); background: var(--tint); }
.w-tpl--fullbleed .w-hero-copy { width: min(100%, 40rem); padding: clamp(2rem, 5cqw, 4rem) clamp(1.6rem, 4cqw, 3.5rem); background: color-mix(in srgb, var(--r-surface) 94%, transparent); box-shadow: 0 0 0 1px var(--r-line), 0 30px 60px -30px rgb(0 0 0 / .35); }
.w-tpl--fullbleed .w-hero .w-emblem { width: clamp(5rem, 9cqw, 7rem); }
.w-tpl--fullbleed .w-names { font-size: calc(var(--w-names-size) * .78); }
.w-tpl--fullbleed[data-art="cutout"] .w-hero-art .w-hero-illustration { padding: 0; object-fit: contain; }
.w-tpl--fullbleed .w-hero-art { background: var(--tint); }
.w-tpl--fullbleed[data-rhythm="bands"] .w-main > .w-sec:nth-of-type(odd) { background: var(--tint); }
.w-tpl--fullbleed[data-rhythm="bands"] .w-main > .w-sec:nth-of-type(even) { background: var(--r-page); }

/* ---- Invitation card: the page is a framed card on a tinted ground ---- */
.w-tpl--invitation { background: var(--ground); padding: clamp(.6rem, 3cqw, 3rem) clamp(.6rem, 4cqw, 4rem); }
.w-tpl--invitation .w-header { background: transparent; border: 0; max-width: 66rem; margin: 0 auto; }
.w-tpl--invitation .w-main { position: relative; max-width: 66rem; margin: 0 auto; background: var(--r-page) var(--w-paper-art, none) repeat; background-size: 384px auto; outline: 1px solid var(--r-accent); outline-offset: -10px; box-shadow: inset 0 0 0 14px var(--r-page), inset 0 0 0 15px color-mix(in srgb, var(--r-accent) 55%, var(--r-page)), 0 40px 80px -40px rgb(0 0 0 / .4); }
.w-tpl--invitation .w-hero { grid-template-columns: 1fr; padding-top: clamp(2.5rem, 6cqw, 5rem); min-height: 0; }
.w-tpl--invitation .w-hero-art { order: 3; height: clamp(10rem, 22cqw, 16rem); min-height: 0; margin-bottom: 1rem; }
.w-tpl--invitation .w-hero .w-emblem { width: clamp(7rem, 13cqw, 10rem); }
.w-tpl--invitation .w-names { font-size: calc(var(--w-names-size) * .8); }
.w-tpl--invitation .w-sec { padding-inline: clamp(1.4rem, 6cqw, 5rem); }
.w-tpl--invitation .w-kind--rsvp { background: transparent; }

/* ---- Botanical border: painted corners frame a centred block ---- */
.w-tpl--border .w-hero { grid-template-columns: 1fr; min-height: clamp(38rem, 62cqw, 52rem); overflow: hidden; }
.w-tpl--border .w-hero-copy { padding: clamp(5rem, 11cqw, 9rem) var(--w-pad) clamp(4rem, 9cqw, 7rem); }
.w-tpl--border .w-tpl-corner { position: absolute; z-index: -1; width: clamp(12rem, 34cqw, 30rem); height: auto; pointer-events: none; }
.w-tpl--border .w-tpl-corner--tl { left: 0; top: 0; }
.w-tpl--border .w-tpl-corner--br { right: 0; bottom: 0; transform: scale(-1, -1); }
.w-tpl--border .w-hero:has(.w-tpl-corner) .w-hero-art { display: none; }
.w-tpl--border .w-hero:not(:has(.w-tpl-corner)) .w-hero-art { order: -1; height: clamp(12rem, 30cqw, 22rem); }
.w-tpl--border .w-hero .w-emblem { width: clamp(7rem, 12cqw, 9.5rem); }

/* ---- Deco symmetry: mirrored stepped frame, sunburst crown, gold lines ---- */
.w-tpl--deco .w-hero { grid-template-columns: 1fr; min-height: 0; padding: clamp(2rem, 5cqw, 4rem) var(--w-pad) clamp(3rem, 6cqw, 5rem); }
.w-tpl--deco .w-hero-art { display: none; }
.w-tpl--deco .w-hero-copy { position: relative; width: min(100%, 56rem); margin: 0 auto; padding: clamp(1.4rem, 3cqw, 2.4rem) clamp(1.2rem, 5cqw, 4rem) clamp(2.4rem, 5cqw, 4rem); }
.w-tpl--deco .w-hero-copy::before, .w-tpl--deco .w-hero-copy::after { content: ""; position: absolute; pointer-events: none; border: 1px solid var(--r-accent); clip-path: polygon(22px 0, calc(100% - 22px) 0, calc(100% - 22px) 10px, calc(100% - 10px) 10px, calc(100% - 10px) 22px, 100% 22px, 100% calc(100% - 22px), calc(100% - 10px) calc(100% - 22px), calc(100% - 10px) calc(100% - 10px), calc(100% - 22px) calc(100% - 10px), calc(100% - 22px) 100%, 22px 100%, 22px calc(100% - 10px), 10px calc(100% - 10px), 10px calc(100% - 22px), 0 calc(100% - 22px), 0 22px, 10px 22px, 10px 10px, 22px 10px); }
.w-tpl--deco .w-hero-copy::before { inset: clamp(7rem, 13cqw, 10rem) 0 0; }
.w-tpl--deco .w-hero-copy::after { inset: calc(clamp(7rem, 13cqw, 10rem) + 8px) 8px 8px; border-color: color-mix(in srgb, var(--r-accent) 55%, transparent); }
.w-tpl--deco .w-tpl-crown { width: min(44rem, 96%); height: clamp(7rem, 13cqw, 10rem); margin: 0 auto -1px; background: repeating-conic-gradient(from 270deg at 50% 100%, var(--r-accent) 0 1.2deg, transparent 1.2deg 9deg) bottom / 100% 200% no-repeat; -webkit-mask: radial-gradient(circle at 50% 100%, #000 0 70%, transparent 70.5%); mask: radial-gradient(circle at 50% 100%, #000 0 70%, transparent 70.5%); }
.w-tpl--deco .w-tpl-crown:has(img) { background: none; -webkit-mask: none; mask: none; }
.w-tpl--deco .w-tpl-crown img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.w-tpl--deco .w-hero .w-emblem { width: clamp(5.5rem, 9cqw, 7rem); margin-top: 1.4rem; }
.w-tpl--deco .w-names { font-size: calc(var(--w-names-size) * .84); }
.w-tpl--deco[data-rhythm="bands"] .w-main > .w-sec:nth-of-type(odd) { background: var(--r-surface); }
.w-tpl--deco[data-schedule="columns"] .w-events { gap: 0; }
.w-tpl--deco[data-schedule="columns"] .w-event { background: transparent; border: 0; border-left: 1px solid var(--r-accent); }
.w-tpl--deco[data-schedule="columns"] .w-event:first-child { border-left: 0; }

/* ---- Quiet type: the names are the art ---- */
.w-tpl--quiet .w-hero { grid-template-columns: 1fr; min-height: 0; }
.w-tpl--quiet .w-hero-copy { align-items: stretch; text-align: left; padding: clamp(3rem, 8cqw, 7rem) var(--w-pad) clamp(2.5rem, 5cqw, 4rem); }
.w-tpl--quiet .w-hero .w-emblem { display: none; }
.w-tpl--quiet .w-kicker { order: -1; margin: 0 0 .5rem; justify-content: flex-start; }
.w-tpl--quiet .w-kicker::before { display: none; }
.w-tpl--quiet .w-names { font-size: calc(var(--w-names-size) * 1.45); }
.w-tpl--quiet .w-names span { display: block; }
.w-tpl--quiet .w-tpl-rule { order: 3; width: 100%; max-width: none; margin: 1.4rem 0 0; height: 2px; background: var(--r-ink); }
.w-tpl--quiet .w-facts { order: 4; justify-content: space-between; margin-top: .9rem !important; }
.w-tpl--quiet .w-facts span + span { border: 0; }
.w-tpl--quiet .w-signoff { order: 5; justify-items: start; margin-top: 2rem; }
.w-tpl--quiet .w-signoff .w-text { text-align: left; }
.w-tpl--quiet .w-hero-rsvp { order: 6; align-self: flex-start; }
.w-tpl--quiet .w-sec-head { border-top: 1px solid var(--r-line); padding-top: 1.2rem; }

/* ---- Postcard: arched art with a stamp, pattern bands, cards ---- */
.w-tpl--postcard .w-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(34rem, 56cqw, 48rem); padding-block: clamp(2.4rem, 5cqw, 4.5rem); }
.w-tpl--postcard .w-hero::before, .w-tpl--postcard .w-hero::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(2rem, 3.4cqw, 3rem); background: var(--w-art-pattern, radial-gradient(circle, var(--r-accent) 0 2px, transparent 2.5px)) left center / auto 100% repeat-x; }
.w-tpl--postcard .w-hero::before { top: 0; } .w-tpl--postcard .w-hero::after { bottom: 0; }
.w-tpl--postcard .w-hero-art { margin: clamp(2rem, 4cqw, 3.4rem) 0 clamp(2rem, 4cqw, 3.4rem) var(--w-pad); min-height: 26rem; border-radius: 999px 999px 0 0 / 40% 40% 0 0; overflow: hidden; background: var(--tint); box-shadow: 0 0 0 clamp(5px, .7cqw, 8px) var(--r-page), 0 0 0 calc(clamp(5px, .7cqw, 8px) + 2px) var(--r-accent2); }
.w-tpl--postcard .w-hero-copy { align-items: flex-start; text-align: left; padding: clamp(2rem, 5cqw, 4rem) var(--w-pad); }
.w-tpl--postcard .w-hero .w-emblem { position: absolute; z-index: 2; right: var(--w-pad); top: clamp(4.4rem, 7cqw, 6rem); width: clamp(7rem, 11cqw, 9.5rem); padding: .55rem; background: var(--r-surface); outline: 1.5px dashed color-mix(in srgb, var(--r-accent2) 70%, var(--r-surface)); outline-offset: -5px; box-shadow: 0 6px 16px rgb(0 0 0 / .16); transform: rotate(4deg); }
.w-tpl--postcard .w-kicker::before { display: none; }
.w-tpl--postcard .w-names span { display: block; }
.w-tpl--postcard .w-facts { justify-content: flex-start; }
.w-tpl--postcard .w-tpl-rule { margin-inline: 0; }
.w-tpl--postcard .w-signoff { justify-items: start; }
.w-tpl--postcard .w-signoff .w-text { text-align: left; }
.w-tpl--postcard[data-rhythm="cards"] .w-main { background: var(--tint); }
.w-tpl--postcard[data-rhythm="cards"] .w-main > .w-sec { border: 0; box-shadow: 0 1px 0 var(--r-line), 0 20px 40px -30px rgb(0 0 0 / .3); }
.w-tpl--postcard[data-rhythm="cards"] .w-main > .w-hero { background: var(--r-page); }

/* ---- Crest formal: a large crest leads, then a wide art banner ---- */
.w-tpl--crest .w-hero { grid-template-columns: 1fr; min-height: 0; }
.w-tpl--crest .w-hero-copy { padding: clamp(3rem, 6cqw, 5rem) var(--w-pad) clamp(2.4rem, 4cqw, 3.4rem); }
.w-tpl--crest .w-hero .w-emblem { width: clamp(10rem, 20cqw, 15rem); }
.w-tpl--crest .w-names { font-size: calc(var(--w-names-size) * .86); }
.w-tpl--crest .w-hero-art { height: clamp(14rem, 30cqw, 24rem); min-height: 0; border-block: 1px solid var(--r-line); background: var(--tint); }
.w-tpl--crest[data-art="cutout"] .w-hero-art .w-hero-illustration { padding: 1rem; }
.w-tpl--crest[data-rhythm="bands"] .w-main > .w-sec:nth-of-type(even) { background: var(--tint); }

@container (max-width: 760px) {
  .w-tpl { --w-names-size: calc(clamp(2.7rem, 13cqw, 4.2rem) * var(--t-names-scale, 1) * var(--w-scale)); --w-title: calc(clamp(1.9rem, 8.5cqw, 2.6rem) * var(--t-title-scale, 1) * var(--w-scale)); }
  .w-tpl .w-hero { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .w-tpl .w-hero-art { order: -1 !important; height: clamp(15rem, 72cqw, 22rem) !important; min-height: 0 !important; margin: 0 !important; }
  .w-tpl--editorial .w-hero-copy, .w-tpl--postcard .w-hero-copy { padding: 2rem 1.3rem 2.4rem; }
  .w-tpl--postcard .w-hero-art { margin: 1.8rem 1.2rem 0 !important; height: clamp(17rem, 80cqw, 24rem) !important; }
  .w-tpl--postcard .w-hero .w-emblem { top: 3.4rem; right: 2rem; width: 4.8rem; }
  .w-tpl[data-schedule="columns"] .w-events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .w-tpl[data-schedule="columns"] .w-event { padding: 1.2rem .7rem; min-width: 0; overflow-wrap: anywhere; }
  .w-tpl--deco[data-schedule="columns"] .w-event:nth-child(2n+1) { border-left: 0; }
  .w-tpl--fullbleed[data-hero] .w-hero { padding: 0; }
  .w-tpl--fullbleed .w-hero-art { position: relative !important; inset: auto !important; z-index: 0 !important; width: 100%; justify-self: stretch; }
  .w-tpl--fullbleed .w-hero-copy { width: auto; margin: -3rem 1rem 1.4rem; position: relative; }
  .w-tpl--invitation { padding: .5rem; }
  .w-tpl--invitation .w-hero-art { order: 3 !important; height: 12rem !important; }
  .w-tpl--border .w-tpl-corner { width: 46cqw; }
  .w-tpl--border .w-hero-copy { padding: 8.5rem 1.4rem 7rem; }
  .w-tpl--deco .w-hero { padding-inline: .8rem; }
  .w-tpl--deco .w-tpl-crown { height: 6.5rem; }
  .w-tpl--deco .w-hero-copy::before { inset: 6.5rem 0 0; }
  .w-tpl--deco .w-hero-copy::after { inset: calc(6.5rem + 6px) 6px 6px; }
  .w-tpl--deco[data-schedule="columns"] .w-event { border-top: 1px solid var(--r-accent); }
  .w-tpl--deco[data-schedule="columns"] .w-event:nth-child(-n+2) { border-top: 0; }
  .w-tpl--quiet .w-names { font-size: calc(var(--w-names-size) * 1.2); }
  .w-tpl--quiet .w-facts { flex-direction: column; gap: .2rem; }
  .w-tpl--crest .w-hero .w-emblem { width: 9rem; }
  .w-tpl[data-title="rules"] .w-sec-title::before, .w-tpl[data-title="rules"] .w-sec-title::after { max-width: 3rem; }
  .w-tpl .w-facts { flex-direction: column; align-items: inherit; gap: .15rem; }
  .w-tpl .w-facts span + span { border: 0; margin: 0; padding: 0; }
}
.guest-rsvp textarea { width: 100%; min-height: 4.5rem; border: 1px solid var(--w-line, #ccc); border-radius: .5rem; padding: .5em .7em; font: inherit; box-sizing: border-box; }

/* ---- Photos: the theme's frame and colour treatment (data-photo-frame, data-photo-tone; a couple can turn the tone off) ---- */
.w-tpl .w-figure { position: relative; overflow: visible; }
.w-tpl .w-figure .w-photo, .w-tpl .w-hero-photo { transition: filter .3s; }
.w-tpl[data-photo-tone="mono"] :is(.w-photo, .w-hero-photo) { filter: grayscale(1) contrast(1.06); }
.w-tpl[data-photo-tone="warm"] :is(.w-photo, .w-hero-photo) { filter: sepia(.16) saturate(.92) contrast(1.02); }
.w-tpl[data-photo-tone="soft"] :is(.w-photo, .w-hero-photo) { filter: saturate(.78) brightness(.92) sepia(.1); }
.w-tpl[data-photo-frame="rounded"] .w-figure .w-photo { border-radius: 1.2rem; }
.w-tpl[data-photo-frame="oval"] .w-figure .w-photo { border-radius: 50%; aspect-ratio: 4 / 5 !important; }
.w-tpl[data-photo-frame="arch"] .w-figure .w-photo { border-radius: 999px 999px 0 0 / 36% 36% 0 0; aspect-ratio: 4 / 5 !important; }
.w-tpl[data-photo-frame="arch"][data-dark] .w-figure .w-photo, .w-tpl[data-photo-frame="hairline"] .w-figure .w-photo { box-shadow: 0 0 0 7px var(--r-page), 0 0 0 8px var(--r-accent); }
.w-tpl[data-photo-frame="tile"] .w-figure .w-photo { border: clamp(9px, 1.2cqw, 13px) solid transparent; background: var(--w-art-pattern, linear-gradient(var(--r-accent2), var(--r-accent2))) 0 0 / 52px 52px border-box; box-sizing: border-box; }
.w-tpl[data-photo-frame="print"] .w-figure .w-photo { border: 10px solid var(--r-surface); outline: 1.5px dashed color-mix(in srgb, var(--r-accent2) 60%, var(--r-surface)); outline-offset: -6px; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .35); transform: rotate(-1.2deg); }
.w-tpl :is(.w-gallery:has(> :only-child)) { max-width: 40rem; margin-inline: auto; }
.w-tpl[data-photo-frame="oval"] .w-gallery:has(> :only-child), .w-tpl[data-photo-frame="arch"] .w-gallery:has(> :only-child) { max-width: 24rem; }

/* ---- Story and travel set differently per template ---- */
/* Editorial and Quiet: a lede paragraph in the display face; travel and stays as a ruled list */
.w-tpl:is(.w-tpl--editorial, .w-tpl--quiet) .w-kind--story .w-sec-body > .w-text:first-child { font: var(--t-title-style) 400 clamp(1.35rem, 2.2cqw, 1.9rem)/1.3 var(--w-title-font); letter-spacing: -.005em; max-width: 34ch; }
.w-tpl:is(.w-tpl--editorial, .w-tpl--quiet, .w-tpl--crest) :is(.w-kind--travel, .w-kind--stays, .w-kind--city-guide) .w-cards { grid-template-columns: 1fr; gap: 0; }
.w-tpl:is(.w-tpl--editorial, .w-tpl--quiet, .w-tpl--crest) :is(.w-kind--travel, .w-kind--stays, .w-kind--city-guide) .w-card { grid-template-columns: 2.6rem minmax(0, 12rem) minmax(0, 1fr); align-items: baseline; column-gap: 1.2rem; padding: 1.1rem 0; border: 0; border-top: 1px solid var(--r-line); background: none; box-shadow: none; clip-path: none; }
.w-tpl:is(.w-tpl--editorial, .w-tpl--quiet, .w-tpl--crest) :is(.w-kind--travel, .w-kind--stays, .w-kind--city-guide) .w-card:not(:has(.w-card-icon)) { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
.w-tpl:is(.w-tpl--editorial, .w-tpl--quiet, .w-tpl--crest) :is(.w-kind--travel, .w-kind--stays) .w-card-icon { margin: 0; align-self: center; }
.w-tpl--quiet .w-kind--story .w-gallery:has(> :only-child) { max-width: none; }
.w-tpl--quiet .w-kind--story .w-gallery:has(> :only-child) .w-photo { aspect-ratio: 21 / 9; }
/* Crest: the story set in two columns */
.w-tpl--crest .w-kind--story .w-sec-body { display: block; column-count: 2; column-gap: 3rem; }
.w-tpl--crest .w-kind--story .w-sec-body > .w-text { margin-bottom: 1rem; text-align: left; }
.w-tpl--crest .w-kind--story .w-gallery { column-span: all; margin-top: 1.4rem; }
/* Full-bleed and Postcard: photo beside the words */
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(.w-gallery) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: clamp(1.5rem, 5cqw, 4rem); justify-items: start; }
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(.w-gallery) > .w-text { grid-column: 2; text-align: left; }
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(.w-gallery) > .w-gallery { grid-column: 1; grid-row: 1 / span 6; max-width: none; margin: 0; }
/* Full-bleed and Border: travel as open columns of icons, no boxes */
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--border) :is(.w-kind--travel, .w-kind--stays) .w-card { justify-items: center; text-align: center; border: 0; background: none; box-shadow: none; padding: 1rem .6rem; }
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--border) :is(.w-kind--travel, .w-kind--stays) .w-card-icon { width: 3rem; height: 3rem; }
.w-tpl--border :is(.w-kind--travel, .w-kind--stays) .w-card + .w-card { border-left: 1px solid var(--r-line); }
/* Invitation: travel as a centred list between hairlines */
.w-tpl--invitation :is(.w-kind--travel, .w-kind--stays) .w-cards { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; gap: 0; }
.w-tpl--invitation :is(.w-kind--travel, .w-kind--stays) .w-card { justify-items: center; text-align: center; border: 0; border-bottom: 1px solid var(--r-line); background: none; box-shadow: none; clip-path: none; padding: 1.2rem 0; }
.w-tpl--invitation .w-kind--story .w-sec-body > .w-text { font-size: 1.12rem; }
/* Deco: the story photo in an arch, centred and narrow */
.w-tpl--deco .w-kind--story .w-gallery { max-width: 24rem; }
/* The hero vignette carries the opening (cut-outs are trimmed to what is painted, then given room) */
.w-tpl--invitation .w-hero-art { height: clamp(16rem, 34cqw, 26rem) !important; }
.w-tpl--invitation[data-art="cutout"] .w-hero-art .w-hero-illustration { padding: .5rem; }
.w-tpl--editorial[data-art="cutout"] .w-hero-art .w-hero-illustration { padding: clamp(.8rem, 2cqw, 2rem); }
.w-tpl--postcard[data-art="cutout"] .w-hero-art .w-hero-illustration { padding: clamp(1.2rem, 3cqw, 2.4rem); }

@container (max-width: 760px) {
  .w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(.w-gallery) { grid-template-columns: 1fr; }
  .w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(.w-gallery) > :is(.w-text, .w-gallery) { grid-column: 1; grid-row: auto; }
  .w-tpl--crest .w-kind--story .w-sec-body { column-count: 1; }
  .w-tpl:is(.w-tpl--editorial, .w-tpl--quiet, .w-tpl--crest) :is(.w-kind--travel, .w-kind--stays, .w-kind--city-guide) .w-card { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .w-tpl:is(.w-tpl--editorial, .w-tpl--quiet, .w-tpl--crest) :is(.w-kind--travel, .w-kind--stays, .w-kind--city-guide) .w-card > .w-text { grid-column: 2; }
  .w-tpl:is(.w-tpl--fullbleed, .w-tpl--border) :is(.w-kind--travel, .w-kind--stays) .w-card + .w-card { border-left: 0; border-top: 1px solid var(--r-line); }
  .w-tpl--invitation .w-hero-art { height: 15rem !important; }
}

/* ---- Pattern bands: one thin band at the top of the page and at most one per section break ---- */
.w-tpl--postcard .w-hero::after { content: none; }
.w-tpl--postcard .w-hero::before, .w-tpl[data-rule="tile"] .w-divider { height: clamp(.9rem, 1.3cqw, 1.15rem); background: var(--w-art-band, var(--w-art-pattern, radial-gradient(circle, var(--r-accent) 0 2px, transparent 2.5px))) left center / auto 100% repeat-x; }
.w-tpl[data-rule="tile"] .w-tpl-rule { width: min(16rem, 60%); height: 1.5rem; background: var(--w-art-pattern, linear-gradient(var(--r-accent), var(--r-accent))) center / 1.5rem 1.5rem no-repeat, linear-gradient(var(--r-accent), var(--r-accent)) center / 100% 1px no-repeat; }
.w-tpl--postcard .w-tpl-rule, .w-tpl--editorial .w-tpl-rule { background-position: 0 50%, center; }
/* Deco: a larger crown over the frame */
.w-tpl--deco .w-tpl-crown { height: clamp(9rem, 17cqw, 13.5rem); width: min(52rem, 98%); }
.w-tpl--deco .w-hero-copy::before { inset: clamp(9rem, 17cqw, 13.5rem) 0 0; }
.w-tpl--deco .w-hero-copy::after { inset: calc(clamp(9rem, 17cqw, 13.5rem) + 8px) 8px 8px; }
.w-tpl--deco .w-hero .w-emblem { width: clamp(6.5rem, 11cqw, 8.5rem); }
/* Crest set in letters: the couple's initials large, no ring (used when the banner art already carries the motif) */
.w-tpl--crest[data-crest="letters"] .w-hero .w-emblem { width: auto; }
.w-tpl--crest[data-crest="letters"] .w-hero .w-emblem-art { display: none; }
.w-tpl--crest[data-crest="letters"] .w-hero .w-emblem-initials { position: static; inset: auto; padding: .4rem 1.6rem; font: var(--t-names-style) 400 clamp(3.4rem, 7cqw, 5.6rem)/1 var(--w-display); border-block: 1px solid var(--r-accent); }
.w-tpl--crest[data-crest="letters"] .w-hero .w-emblem-initials span + span { margin-left: .25em; padding-left: .25em; }
@container (max-width: 760px) {
  .w-tpl--deco .w-tpl-crown { height: 8.5rem; }
  .w-tpl--deco .w-hero-copy::before { inset: 8.5rem 0 0; }
  .w-tpl--deco .w-hero-copy::after { inset: calc(8.5rem + 6px) 6px 6px; }
  /* Light text on a dark page reads thin on a phone: one step heavier and larger */
  .w-tpl[data-dark] { font-weight: var(--t-body-weight-dark, 500); }
  .w-tpl[data-dark] .w-sec-body > .w-text, .w-tpl[data-dark] .w-signoff .w-text { font-size: 1.06rem; }
}
.w-tpl .w-hero-art .w-hero-illustration.is-scene { object-fit: cover; object-position: center; padding: 0; }


/* ======================================================================================================
   Content blocks (docs/sections.md): story timeline and two photos, stays, registries, gift items, cash funds,
   dress code, open FAQ, and the sheets for giving and marking a gift as bought. Theme tokens only.
   ====================================================================================================== */
.w-tpl .w-panel { padding: clamp(1rem, 2.2cqw, 1.5rem); text-align: left; }
.w-tpl .w-button--quiet { background: transparent; color: var(--r-ink); box-shadow: inset 0 0 0 1px var(--r-ink); }
.w-tpl .w-link-button { border: 0; background: none; padding: .3rem 0; color: var(--r-soft-ink); font: 500 .85rem/1.3 var(--w-body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.w-tpl .w-disclosure, .w-tpl .w-hint-small { font-size: .8rem; color: var(--r-soft-ink); text-align: center; }
.w-tpl :is(.w-stays, .w-registries, .w-gift-items, .w-funds, .w-timeline, .w-give-ways, .w-swatches) { list-style: none; padding: 0; margin: 0; }
.w-tpl :is(.w-stay-name, .w-registry-name, .w-gift-name, .w-fund-name, .w-moment-title, .w-attire-code, .w-sheet-title) { font: var(--t-title-style) 400 clamp(1.25rem, 2cqw, 1.6rem)/1.15 var(--w-title-font); text-transform: var(--t-title-case); letter-spacing: calc(var(--t-title-tracking) * .5); margin: 0; }
.w-tpl :is(.w-stay-meta, .w-gift-meta, .w-moment-date, .w-progress-text, .w-gift-done, .w-bank-title) { font: var(--t-label-weight) .72rem/1.4 var(--w-label-font); text-transform: var(--t-label-case); letter-spacing: var(--t-label-tracking); color: var(--r-soft-ink); margin: 0; }
.w-tpl .w-progress { display: grid; gap: .35rem; }
.w-tpl .w-progress-bar { height: 6px; border-radius: 6px; background: var(--r-line); overflow: hidden; }
.w-tpl .w-progress-bar span { display: block; height: 100%; background: var(--r-accent); border-radius: inherit; }

/* Story: timeline */
.w-tpl .w-timeline { position: relative; display: grid; gap: 0; max-width: 46rem; margin-inline: auto; }
.w-tpl .w-timeline::before { content: ""; position: absolute; left: 7.5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--r-line); }
.w-tpl .w-moment { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: .4rem 2.2rem; align-items: start; padding: 1.1rem 0; text-align: left; }
.w-tpl .w-moment::before { content: ""; position: absolute; left: calc(7.5rem - 5px); top: 1.55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--r-accent); box-shadow: 0 0 0 4px var(--r-page); }
.w-tpl .w-moment-date { padding-top: .25rem; }
.w-tpl .w-moment-body { display: grid; gap: .3rem; }
.w-tpl .w-moment-photo { width: 7.5rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.w-tpl--quiet .w-timeline::before, .w-tpl--quiet .w-moment::before { display: none; }
.w-tpl--quiet .w-moment { grid-template-columns: 10rem minmax(0, 1fr) auto; border-top: 1px solid var(--r-line); }
.w-tpl--quiet .w-moment-date { font: italic 400 1.6rem/1 var(--w-accent-font); text-transform: none; letter-spacing: 0; color: var(--r-ink); }
.w-tpl--deco .w-moment::before { border-radius: 0; transform: rotate(45deg); background: var(--r-page); box-shadow: 0 0 0 1px var(--r-accent); }
.w-tpl--invitation .w-timeline::before { left: 50%; }
.w-tpl--invitation .w-moment { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 1.4rem 0; }
.w-tpl--invitation .w-moment::before { left: calc(50% - 5px); top: -.1rem; }
.w-tpl--invitation .w-moment-body { background: var(--r-page); padding: .4rem 1rem; }

/* Story: two photos beside the words */
.w-tpl [data-variant="photos"] .w-sec-body:has(> .w-gallery) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 4cqw, 3.5rem); justify-items: start; }
.w-tpl [data-variant="photos"] .w-sec-body > .w-gallery { grid-column: 1; grid-row: 1 / span 4; grid-template-columns: 1fr 1fr; max-width: none; margin: 0; gap: clamp(.6rem, 1.4cqw, 1.2rem); }
.w-tpl [data-variant="photos"] .w-sec-body > .w-gallery .w-figure:nth-child(2) { margin-top: clamp(2rem, 6cqw, 4rem); }
.w-tpl [data-variant="photos"] .w-sec-body > .w-text { grid-column: 2; text-align: left; }

/* Stays */
.w-tpl .w-stays { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(.8rem, 2cqw, 1.4rem); }
.w-tpl .w-stay { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.w-tpl :is(.w-stay-photo, .w-stay-art) { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.w-tpl .w-stay-art { display: grid; place-items: center; background: var(--tint); }
.w-tpl .w-stay-art .w-stay-icon { width: 3.4rem; height: 3.4rem; color: var(--icon-color); }
.w-tpl .w-stay-body { display: grid; gap: .45rem; align-content: start; padding: clamp(1rem, 2cqw, 1.4rem); }
.w-tpl .w-stay-book { justify-self: start; margin-top: .4rem; }
.w-tpl .w-stay--search { display: grid; align-content: center; gap: .6rem; padding: clamp(1.2rem, 2.6cqw, 1.8rem); background: var(--r-accent); color: var(--r-on-accent); border-color: transparent; }
.w-tpl .w-stay--search :is(.w-stay-name, .w-text) { color: var(--r-on-accent); }
.w-tpl .w-stay--search .w-button { background: var(--r-on-accent); color: var(--r-accent); justify-self: start; }
.w-tpl [data-variant="list"] .w-stays { grid-template-columns: 1fr; gap: 0; }
.w-tpl [data-variant="list"] .w-stay { grid-template-columns: 9rem minmax(0, 1fr); grid-template-rows: auto; align-items: center; border: 0; border-top: 1px solid var(--r-line); background: none; box-shadow: none; clip-path: none; }
.w-tpl [data-variant="list"] :is(.w-stay-photo, .w-stay-art) { aspect-ratio: 4 / 3; }
.w-tpl [data-variant="list"] .w-stay-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.4rem; }
.w-tpl [data-variant="list"] .w-stay-body > :not(.w-stay-book) { grid-column: 1; }
.w-tpl [data-variant="list"] .w-stay-book { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.w-tpl [data-variant="list"] .w-stay--search { grid-template-columns: 1fr; margin-top: 1rem; }

/* Gifts: registries, items, funds */
.w-tpl .w-kind--gifts .w-sec-body { gap: clamp(1.4rem, 3cqw, 2.4rem); }
.w-tpl .w-registries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(.8rem, 2cqw, 1.2rem); }
.w-tpl .w-registry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.w-tpl .w-registry-mark { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--r-accent); color: var(--r-on-accent); font: 400 1.5rem/1 var(--w-title-font); }
.w-tpl .w-gift-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: clamp(.8rem, 2cqw, 1.2rem); }
.w-tpl .w-gift { display: grid; gap: .5rem; align-content: start; }
.w-tpl .w-gift-photo { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .3rem; }
.w-tpl .w-gift[data-status="bought"] { opacity: .62; }
.w-tpl .w-gift[data-status="bought"] .w-gift-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.w-tpl .w-gift-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .3rem; }
.w-tpl .w-funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(.8rem, 2cqw, 1.2rem); }
.w-tpl .w-fund { display: grid; gap: .6rem; align-content: start; border-color: var(--r-accent); }
.w-tpl .w-fund-give { justify-self: start; }
.w-tpl [data-variant="list"] :is(.w-gift-items, .w-funds, .w-registries) { grid-template-columns: 1fr; gap: 0; }
.w-tpl [data-variant="list"] :is(.w-gift, .w-fund, .w-registry) { border: 0; border-top: 1px solid var(--r-line); background: none; box-shadow: none; clip-path: none; padding-inline: 0; }
.w-tpl [data-variant="list"] .w-gift { grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; column-gap: 1.2rem; }
.w-tpl [data-variant="list"] .w-gift > :not(.w-gift-photo):not(.w-gift-actions):not(.w-gift-done) { grid-column: 2; }
.w-tpl [data-variant="list"] .w-gift-photo { grid-row: 1 / span 3; margin: 0; }
.w-tpl [data-variant="list"] :is(.w-gift-actions, .w-gift-done) { grid-column: 3; grid-row: 1 / span 3; margin: 0; }
.w-tpl [data-variant="list"] .w-fund { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.4rem; }
.w-tpl [data-variant="list"] .w-fund > :not(.w-fund-give) { grid-column: 1; }
.w-tpl [data-variant="list"] .w-fund-give { grid-column: 2; grid-row: 1 / span 3; }
.w-tpl--deco .w-registry-mark { transform: rotate(45deg) scale(.82); }
.w-tpl--deco .w-registry-mark { font-size: 1.3rem; }
.w-tpl--postcard .w-gift-photo, .w-tpl--postcard .w-stay-photo { border: 8px solid var(--r-surface); box-shadow: 0 6px 16px -10px rgb(0 0 0 / .4); }

/* Dress code */
.w-tpl .w-attire { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.4rem; max-width: 50rem; margin-inline: auto; }
.w-tpl .w-attire-icon { width: 3rem; height: 3rem; color: var(--icon-color); }
.w-tpl .w-attire-body { display: grid; gap: .35rem; }
.w-tpl .w-swatches { display: flex; gap: .5rem; }
.w-tpl .w-swatches li { width: 2.2rem; height: 2.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }

/* FAQ: open, two columns */
.w-tpl [data-variant="open"] .w-sec-body:has(> .w-qa) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 3rem; justify-items: stretch; }
.w-tpl [data-variant="open"] .w-sec-body > :not(.w-qa) { grid-column: 1 / -1; }
.w-tpl [data-variant="open"] .w-qa { border: 0; max-width: none; margin: 0; }
.w-tpl [data-variant="open"] .w-qa summary { cursor: default; pointer-events: none; padding: .8rem 0 .3rem; }
.w-tpl [data-variant="open"] .w-qa summary::after { display: none; }

/* Sheets: giving, and marking a gift as bought */
.w-tpl .w-sheet { width: min(30rem, calc(100% - 2rem)); max-height: 86vh; overflow: auto; padding: clamp(1.4rem, 4vw, 2rem); border: 0; border-radius: 1.1rem; background: var(--r-surface); color: var(--r-ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.w-tpl .w-sheet::backdrop { background: rgb(20 20 20 / .45); }
.w-tpl .w-sheet[open] { display: grid; gap: .8rem; }
.w-tpl .w-sheet-close { justify-self: end; border: 0; background: none; color: var(--r-soft-ink); font: 600 .78rem/1 var(--w-body); text-decoration: underline; cursor: pointer; padding: .3rem 0; }
.w-tpl .w-sheet-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.w-tpl .w-give-primary:empty { display: none; }
.w-tpl .w-give-ways { display: grid; gap: .5rem; }
.w-tpl .w-give-way { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--r-line); border-radius: .6rem; }
.w-tpl .w-give-way .w-button { padding: .7em 1.2em; }
.w-tpl .w-give-way-name { font-weight: 600; }
.w-tpl .w-give-handle { color: var(--r-soft-ink); margin-right: auto; }
.w-tpl .w-bank { display: grid; gap: .4rem; margin: 0; }
.w-tpl .w-bank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .8rem; padding: .6rem .8rem; border: 1px solid var(--r-line); border-radius: .6rem; }
.w-tpl .w-bank-row dt { font-size: .72rem; color: var(--r-soft-ink); }
.w-tpl .w-bank-row dd { margin: 0; grid-column: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.w-tpl .w-bank-row .w-copy { grid-column: 2; grid-row: 1 / span 2; }
.w-tpl .w-copy { border: 1px solid var(--r-ink); border-radius: 999px; background: none; color: var(--r-ink); padding: .45rem .9rem; font: 600 .75rem/1 var(--w-body); cursor: pointer; min-height: 2.2rem; }

@container (max-width: 760px) {
  .w-tpl .w-timeline::before { left: .45rem; }
  .w-tpl .w-moment { grid-template-columns: minmax(0, 1fr); padding-left: 1.8rem; gap: .25rem; }
  .w-tpl .w-moment::before { left: 0; }
  .w-tpl .w-moment-photo { width: 100%; max-width: 16rem; }
  .w-tpl--quiet .w-moment { padding-left: 0; }
  .w-tpl--invitation .w-moment { padding-left: 0; }
  .w-tpl [data-variant="photos"] .w-sec-body:has(> .w-gallery) { grid-template-columns: 1fr; }
  .w-tpl [data-variant="photos"] .w-sec-body > :is(.w-gallery, .w-text) { grid-column: 1; grid-row: auto; }
  .w-tpl [data-variant="list"] .w-stay { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .w-tpl [data-variant="list"] .w-stay-body { grid-template-columns: 1fr; }
  .w-tpl [data-variant="list"] .w-stay-book { grid-column: 1; grid-row: auto; justify-self: start; }
  .w-tpl .w-registry { grid-template-columns: auto minmax(0, 1fr); }
  .w-tpl .w-registry > .w-button { grid-column: 1 / -1; justify-self: start; }
  .w-tpl .w-gift-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-tpl [data-variant="list"] .w-gift-items { grid-template-columns: 1fr; }
  .w-tpl [data-variant="list"] .w-gift { grid-template-columns: 4rem minmax(0, 1fr); }
  .w-tpl [data-variant="list"] :is(.w-gift-actions, .w-gift-done) { grid-column: 2; grid-row: auto; }
  .w-tpl [data-variant="list"] .w-fund { grid-template-columns: 1fr; }
  .w-tpl [data-variant="list"] .w-fund-give { grid-column: 1; grid-row: auto; }
  .w-tpl .w-attire { grid-template-columns: auto minmax(0, 1fr); }
  .w-tpl .w-swatches { grid-column: 1 / -1; }
  .w-tpl [data-variant="open"] .w-sec-body:has(> .w-qa) { grid-template-columns: 1fr; }
  .w-tpl .w-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 1.2rem 1.2rem 0 0; }
}

/* Column schedules: cards may shrink below their longest title */
.w-tpl[data-schedule="columns"] .w-events { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.w-tpl[data-schedule="columns"] .w-event { min-width: 0; }
.w-tpl[data-schedule="columns"] .w-event-title { font-size: clamp(1.05rem, 1.7cqw, 1.45rem); overflow-wrap: anywhere; hyphens: auto; }

/* ---- Section polish (review 3) ---- */
/* Sentences never under 16px, labels never under 12px */
.w-tpl :is(.w-sec-body, .w-panel, .w-sheet) .w-text, .w-tpl .w-event .w-text, .w-tpl .w-event-place, .w-tpl .w-qa .w-text, .w-tpl .w-card .w-text { font-size: max(1rem, 1em); }
.w-tpl :is(.w-stay-meta, .w-gift-meta, .w-moment-date, .w-progress-text, .w-gift-done, .w-bank-title, .w-event-time, .w-event-date, .w-kicker, .w-facts, .w-subhead) { font-size: max(.78rem, 12px); }
.w-tpl .w-disclosure, .w-tpl .w-hint-small { font-size: .95rem; }
.w-tpl .w-bank-row dt { font-size: .78rem; }

/* Stays without a photo: compact, icon beside the name */
.w-tpl .w-stay--compact { grid-template-rows: auto; }
.w-tpl .w-stay-head { display: flex; align-items: center; gap: .7rem; }
.w-tpl .w-stay-head .w-stay-icon { width: 2.2rem; height: 2.2rem; flex: none; color: var(--icon-color); }
.w-tpl [data-variant="list"] .w-stay--compact { grid-template-columns: minmax(0, 1fr); }
/* Find more places: a wide strip with the theme's pattern or art at low strength when there are few hotels */
.w-tpl .w-stay--search { position: relative; isolation: isolate; overflow: hidden; }
.w-tpl .w-stay--search::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; background: var(--w-art-pattern, var(--w-art-ornament-1, none)) center / 7rem auto repeat; }
.w-tpl .w-stay--strip { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; column-gap: 2rem; }
.w-tpl .w-stay--strip > :not(.w-button) { grid-column: 1; }
.w-tpl .w-stay--strip > .w-button { grid-column: 2; grid-row: 1 / span 2; }
/* Gift items without a photo: the store's initial */
.w-tpl .w-gift-mark { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--tint); color: var(--r-ink); font: 400 1.4rem/1 var(--w-title-font); }
.w-tpl :is(.w-gift-photo, .w-stay-photo, .w-moment-photo) { transition: filter .3s; }
.w-tpl[data-photo-tone="mono"] :is(.w-gift-photo, .w-stay-photo, .w-moment-photo) { filter: grayscale(1) contrast(1.06); }
.w-tpl[data-photo-tone="warm"] :is(.w-gift-photo, .w-stay-photo, .w-moment-photo) { filter: sepia(.16) saturate(.92) contrast(1.02); }
.w-tpl[data-photo-tone="soft"] :is(.w-gift-photo, .w-stay-photo, .w-moment-photo) { filter: saturate(.78) brightness(.92) sepia(.1); }
/* Give sheet: a link opens the provider, a handle copies */
.w-tpl .w-give-way { justify-content: space-between; }
.w-tpl .w-give-way-name { font-weight: 600; min-width: 5rem; }
.w-tpl .w-give-open { margin-left: auto; padding: .75em 1.2em; }
/* Deco and any arched photo frame: timeline photos at a readable size, in the arch */
.w-tpl[data-photo-frame="arch"] .w-moment { grid-template-columns: 6.5rem minmax(0, 1fr) 11rem; }
.w-tpl[data-photo-frame="arch"] .w-moment-photo { width: 11rem; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0 / 36% 36% 0 0; box-shadow: 0 0 0 5px var(--r-page), 0 0 0 6px var(--r-accent); }
@container (max-width: 760px) {
  .w-tpl .w-stay--strip { grid-template-columns: 1fr; }
  .w-tpl .w-stay--strip > .w-button { grid-column: 1; grid-row: auto; justify-self: start; }
  .w-tpl[data-photo-frame="arch"] .w-moment { grid-template-columns: minmax(0, 1fr); }
  .w-tpl[data-photo-frame="arch"] .w-moment-photo { width: 10rem; }
}

/* Caps-only display faces (Cinzel) read as all capitals in running text: the story lead uses the body face there. */
.w-tpl[data-caps-display] .w-kind--story .w-sec-body > .w-text:first-child { font-family: var(--w-body); font-style: italic; }

.w-made-with { display: inline-block; margin-top: 1.4rem; font: 400 .72rem/1.4 var(--w-body, 'DM Sans', sans-serif); color: inherit; opacity: .72; text-decoration: underline; text-underline-offset: .2em; }

/* ---- Couples' photos (slots listed in app/studio/photo-slot-map.js) ----
   Every slot has a fixed shape, so nothing moves while a photo loads; photos are cropped to it (object-fit: cover,
   focal point from object-position), never stretched or letterboxed. */
.w-tpl .w-gallery { display: grid; gap: clamp(.6rem, 1.4cqw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.w-tpl .w-gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-tpl .w-gallery:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-tpl .w-gallery:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; margin-inline: auto; }
.w-tpl .w-figure { margin: 0; min-width: 0; }
.w-tpl .w-figure .w-photo { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; margin: 0; }
.w-tpl .w-gallery:has(> :only-child) .w-figure .w-photo { aspect-ratio: 3 / 2; }
.w-tpl .w-kind--story .w-timeline + .w-gallery, .w-tpl .w-kind--story .w-moments + .w-gallery { margin-top: clamp(1.4rem, 3cqw, 2.2rem); }
@container (max-width: 640px) {
  .w-tpl .w-gallery:has(> :nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-tpl .w-gallery:has(> :nth-child(3):last-child) > :first-child { grid-column: 1 / -1; }
  .w-tpl .w-gallery:has(> :nth-child(3):last-child) > :first-child .w-photo { aspect-ratio: 3 / 2; }
}

/* Opening photo inside Border, Deco and Quiet (renderTemplateHero adds .w-hero-own) */
.w-tpl .w-hero-own { margin: clamp(1.1rem, 2.6cqw, 1.9rem) auto 0; width: min(100%, 34rem); }
.w-tpl .w-hero-own .w-hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.w-tpl--deco .w-hero-own { width: min(100%, 19rem); margin: .4rem auto 1.4rem; }
.w-tpl--deco .w-hero-own .w-hero-photo { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0 / 30% 30% 0 0;
  box-shadow: 0 0 0 6px var(--r-page), 0 0 0 7px var(--r-accent), 0 0 0 12px var(--r-page), 0 0 0 13px var(--r-accent); }
.w-tpl--quiet .w-hero-own { width: 100%; max-width: none; }
.w-tpl--quiet .w-hero-own .w-hero-photo { aspect-ratio: 21 / 9; }
@container (max-width: 640px) { .w-tpl--quiet .w-hero-own .w-hero-photo { aspect-ratio: 3 / 2; } }

/* Invitation timeline: moment photos as small round thumbnails above each moment */
.w-tpl--invitation .w-moment-photo { display: block; width: 5.5rem; height: 5.5rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 auto .6rem; box-shadow: 0 0 0 4px var(--r-page), 0 0 0 5px var(--r-accent); }

/* The theme's photo style reaches every slot, not only the story gallery: corner shape and edge per frame. */
.w-tpl { --w-photo-radius: 3px; --w-photo-edge: none; }
.w-tpl[data-photo-frame="rounded"] { --w-photo-radius: 1rem; }
.w-tpl[data-photo-frame="oval"] { --w-photo-radius: 1.4rem; }
.w-tpl[data-photo-frame="arch"] { --w-photo-radius: 999px 999px 4px 4px / 34% 34% 4px 4px; }
.w-tpl[data-photo-frame="print"] { --w-photo-edge: 0 0 0 6px var(--r-surface), 0 6px 18px rgb(0 0 0 / .14); }
.w-tpl[data-photo-frame="hairline"] { --w-photo-edge: 0 0 0 4px var(--r-page), 0 0 0 5px var(--r-accent); }
.w-tpl[data-photo-frame="tile"] { --w-photo-edge: 0 0 0 4px var(--r-accent2); }
.w-tpl :where(.w-hero-own .w-hero-photo, .w-gift-photo, .w-moment-photo) { border-radius: var(--w-photo-radius); box-shadow: var(--w-photo-edge); }
.w-tpl :where(.w-stay-photo) { border-radius: var(--w-photo-radius) var(--w-photo-radius) 0 0; }
.w-tpl[data-photo-frame="oval"] .w-hero-own .w-hero-photo { border-radius: 50%; aspect-ratio: 4 / 5; }
.w-tpl[data-photo-frame="oval"] .w-hero-own { width: min(100%, 22rem); }
.w-tpl[data-photo-frame="arch"] .w-hero-own .w-hero-photo { aspect-ratio: 4 / 5; }
.w-tpl[data-photo-frame="arch"] .w-hero-own { width: min(100%, 22rem); }
.w-tpl--quiet[data-photo-frame] .w-hero-own { width: 100%; }
.w-tpl--quiet .w-hero-own .w-hero-photo { border-radius: 0 !important; }
/* A photo that cannot load leaves no broken picture behind (guest.js hides its frame); a very small photo is shown
   at most at 1.5x its own size, centred, rather than blown up and blurry. */
.w-tpl .is-small-photo { background: var(--r-surface); overflow: hidden; }

/* Three or more story photos get the full width under the words (no thumbnails squeezed into a side column). */
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(> .w-gallery > :nth-child(3)) { display: block; }
.w-tpl:is(.w-tpl--fullbleed, .w-tpl--postcard) .w-kind--story .w-sec-body:has(> .w-gallery > :nth-child(3)) > .w-gallery { margin-top: clamp(1.2rem, 3cqw, 2rem); }
.w-tpl--deco .w-kind--story .w-gallery:has(> :nth-child(2)) { max-width: 40rem; }
.w-tpl [data-variant="photos"] .w-sec-body:has(> .w-gallery > :nth-child(5)) { display: block; }
.w-tpl [data-variant="photos"] .w-sec-body:has(> .w-gallery > :nth-child(5)) > .w-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.4rem; }

/* Quiet keeps its wide band whatever the theme's photo frame */
.w-tpl--quiet[data-photo-frame] .w-hero-own .w-hero-photo { aspect-ratio: 21 / 9; border-radius: 0; }
@container (max-width: 640px) { .w-tpl--quiet[data-photo-frame] .w-hero-own .w-hero-photo { aspect-ratio: 3 / 2; } }
