/* =====================================================================
   GRACE: cathedral light & a printed Order of Service
   Ivory booklet pages on limestone, rubrics in red, stained glass.
   Motion uses transform & opacity only; calm under reduced motion.
   ===================================================================== */

:root {
  --stone: #E6DFD1;
  --stone-2: #D8CFBD;
  --paper: #FBF6EA;
  --paper-2: #F4ECDA;
  --ink: #2B241F;
  --ink-2: #594C41;
  --ink-3: #8C7D6D;
  --rule: #9C7C4B;
  --ruby: #A3192F;
  --ruby-2: #C42A3F;
  --cobalt: #1F4FA8;
  --emerald: #1C7A4E;
  --amber: #DE9D2A;
  --lead: #231D19;
  --gilt: #C9A55A;
  --oak: #4A2D1C;

  --f-text: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --f-black: "Grenze Gotisch", "EB Garamond", Georgia, serif;
  --f-init: "Cinzel Decorative", "EB Garamond", Georgia, serif;
  --f-script: "Imperial Script", "Snell Roundhand", cursive;

  --wv-accent: var(--ruby);
  --wv-ink: var(--ink);
  --wv-paper: var(--paper);
  --wv-font: var(--f-text);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--stone);
  background-image: var(--noise), radial-gradient(120% 80% at 50% 0%, #EFE9DD 0%, rgba(230, 223, 209, 0) 60%);
  color: var(--ink);
  font: 400 18px/1.62 var(--f-text);
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-intro, html.is-intro body { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--ruby); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 40px 20px; text-align: center; }
main { display: block; position: relative; z-index: 1; outline: none; }

.x { display: inline-block; width: .62em; height: .93em; vertical-align: -.1em; }
.x circle { fill: currentColor; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------
   Stained glass (shared by the intro window, oculus, quatrefoils, initial)
   --------------------------------------------------------------- */
.gls .g { stroke: var(--lead); stroke-width: .8; stroke-linejoin: round; transition: opacity .6s ease calc(var(--d, 0) * var(--rs, 1.2s) + var(--r0, .25s)); }
.rose, .ring, .qf svg, .dc { overflow: visible; }
.rose .g, .ring .g, .qf .g, .dc .g { opacity: .16; }
.rose__bg { fill: #2A221C; }
.rose__tr circle { fill: none; stroke: #3A2F27; stroke-width: 2.6; }
.rose__rim { fill: none; stroke: #3A2F27; stroke-width: 9; }
.rose__sh { opacity: 0; transition: opacity 1.2s ease .5s; }
.oc.is-in .g, .plt.is-in .g, .bk__rose.is-in .g, .qf.is-in .g, .msg.is-in .dc .g { opacity: 1; }
.oc.is-in .rose__sh, .plt.is-in .rose__sh, .bk__rose.is-in .rose__sh { opacity: 1; }

/* ---------------------------------------------------------------
   Opening: the rose window in a dark nave
   --------------------------------------------------------------- */
.intro {
  --win: min(80vw, 45vh, 470px);
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 4.2vh, 44px);
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(90% 62% at 50% 34%, #27304A 0%, #161B2C 46%, #090B12 100%);
  color: #F1E6CF; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .75s ease;
}
.intro[hidden] { display: none; }
.intro.is-gone { opacity: 0; pointer-events: none; }
.intro .rose__bg { fill: #0B0D15; }
.intro .rose__tr circle, .intro .rose__rim { stroke: #2C2A30; }
.intro .rose .g { opacity: 0; stroke: #07080D; }
.intro .rose.is-dim .g { opacity: .26; --rs: .9s; --r0: .1s; }
.intro .rose.is-lit .g { opacity: 1; --rs: 1.05s; --r0: 0s; transition-duration: .45s; }
.intro .rose.is-lit .rose__sh { opacity: 1; transition-delay: .7s; }

.in__stage { position: relative; flex: none; width: var(--win); height: var(--win); }
.in__arch { position: absolute; left: -20%; top: -45%; width: 140%; height: 200%; overflow: visible; pointer-events: none; }
.in__arch path { fill: none; stroke: url(#archFade); stroke-width: .7; }
.in__btn { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform 1.3s var(--ease), opacity .9s ease; }
.in__btn:focus-visible { outline: 1px solid rgba(226, 194, 124, .6); outline-offset: 10px; }
.in__btn .rose { display: block; width: 100%; height: 100%; }
.in__halo, .in__glow { position: absolute; inset: -32%; border-radius: 50%; pointer-events: none; }
.in__halo { background: radial-gradient(closest-side, rgba(120, 150, 255, .2), rgba(120, 150, 255, 0)); animation: halo 4.5s ease-in-out infinite alternate; }
.in__glow { z-index: 1; background: radial-gradient(closest-side, rgba(255, 214, 140, .6), rgba(255, 190, 110, .2) 55%, rgba(255, 190, 110, 0)); opacity: 0; transform: scale(.7); transition: opacity 1.3s ease .25s, transform 1.8s var(--ease) .25s; }
.is-opening .in__glow { opacity: 1; transform: scale(1.08); }
.in__beam {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 400vmax; height: 175vh; margin-left: -200vmax;
  transform-origin: 50% 0; transform: rotate(-11deg) scaleY(.12); opacity: 0; pointer-events: none;
  background: conic-gradient(from 161deg at 50% 0, rgba(255, 232, 180, 0) 0deg, rgba(255, 228, 175, .26) 9deg, rgba(255, 243, 212, .5) 19deg, rgba(255, 228, 175, .26) 29deg, rgba(255, 232, 180, 0) 38deg, rgba(255, 232, 180, 0) 360deg);
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 40%, rgba(0, 0, 0, 0) 94%);
  mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 40%, rgba(0, 0, 0, 0) 94%);
  transition: transform 1.25s cubic-bezier(.3, .6, .2, 1), opacity .6s ease;
}
.is-beam .in__beam { transform: none; opacity: 1; }
.in__bloom {
  position: absolute; z-index: 5; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.06);
  background: radial-gradient(closest-side, #FFFEF8 0%, #FCF7EC 50%, rgba(251, 246, 234, .9) 70%, rgba(251, 246, 234, 0) 100%);
  transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity .45s ease;
}
.is-bloom .in__bloom { transform: none; opacity: 1; }
.in__pools { position: absolute; left: 0; right: 0; bottom: -6vh; height: 34vh; pointer-events: none; }
.in__pools i { position: absolute; bottom: 0; width: 42vw; height: 22vh; border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity 1.2s ease, transform 1.6s var(--ease); }
.in__pools i:nth-child(1) { left: 6%; background: radial-gradient(closest-side, rgba(40, 96, 198, .55), transparent); transition-delay: .25s; }
.in__pools i:nth-child(2) { left: 30%; bottom: 3vh; background: radial-gradient(closest-side, rgba(242, 188, 69, .55), transparent); transition-delay: .1s; }
.in__pools i:nth-child(3) { left: 54%; background: radial-gradient(closest-side, rgba(195, 42, 64, .5), transparent); transition-delay: .35s; }
.in__pools i:nth-child(4) { left: 34%; bottom: -4vh; background: radial-gradient(closest-side, rgba(34, 152, 92, .42), transparent); transition-delay: .45s; }
.is-beam .in__pools i { opacity: 1; transform: none; }

.in__txt { position: relative; z-index: 4; max-width: 520px; transition: opacity .6s ease, transform .9s var(--ease); }
.is-beam .in__txt { opacity: 0; transform: translateY(10px); }
.in__txt p { margin: 0; }
.in__k { font: 600 clamp(24px, 6.6vw, 34px)/1 var(--f-black); color: #E2C27C; letter-spacing: .01em; }
.in__n { margin: .12em 0 .06em !important; font: 400 clamp(46px, 13.5vw, 84px)/1.1 var(--f-script); color: #FBF2DE; }
.in__amp { font-size: .6em; margin: 0 .34em 0 .26em; color: #E2C27C; }
.in__w { font-size: 15px; letter-spacing: .2em; font-variant-caps: all-small-caps; font-variant-numeric: lining-nums; color: rgba(241, 230, 207, .78); }
.in__g { margin-top: 10px !important; font: italic 400 18px/1.4 var(--f-text); color: #F6EAD2; }
.in__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(16px, 3vh, 28px) !important; font-size: 14px; letter-spacing: .22em; font-variant-caps: all-small-caps; color: #E2C27C; }
.in__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #E2C27C; }
.in__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #E2C27C; animation: pulse 2s ease-out infinite; }
.in__flood { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(80% 60% at 50% 38%, #FFFDF6 0%, #FBF6EA 55%, #EFE7D8 100%); transition: opacity .8s ease; }
.is-flood .in__flood { opacity: 1; }
.is-bloom .in__btn { transform: scale(1.18); }
.is-flood .in__btn { opacity: 0; }

@keyframes halo { from { opacity: .45; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* ---------------------------------------------------------------
   The booklet: pages on limestone
   --------------------------------------------------------------- */
.booklet { position: relative; max-width: 640px; margin: 0 auto; padding: 10px 10px 30px; }
.spread { position: relative; display: grid; gap: 16px; margin: 0 0 16px; }
.spread--couple { grid-auto-rows: 1fr; gap: 46px; }
.pg { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pg--plate { display: none; }
.pg::before {
  content: ""; position: absolute; inset: 3px; pointer-events: none;
  box-shadow: 0 1px 2px rgba(70, 50, 20, .14), 0 16px 34px -12px rgba(70, 50, 20, .38);
}
.sheet {
  position: relative; flex: 1; display: flex; flex-direction: column;
  padding: 10px;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 50% 42%, rgba(255, 253, 245, .85) 0%, rgba(255, 253, 245, 0) 62%),
    radial-gradient(140% 100% at 50% 50%, rgba(0, 0, 0, 0) 70%, rgba(150, 110, 50, .1) 100%),
    var(--fibre), var(--noise);
  clip-path: var(--dk);
}
.sheet__in {
  position: relative; flex: 1; display: flex; flex-direction: column;
  padding: 16px 18px 12px;
  border: 1.5px solid var(--rule);
}
.sheet__in::before { content: ""; position: absolute; inset: 3px; border: .75px solid var(--rule); opacity: .75; pointer-events: none; }
.pg__body { flex: 1 0 auto; }
.rh { margin: 0 0 20px; text-align: center; font-size: 12px; line-height: 1.3; letter-spacing: .26em; font-variant-caps: all-small-caps; color: var(--ink-3); }
.folio { margin: 26px 0 0; text-align: center; font: italic 400 15px/1 var(--f-text); color: var(--ink-3); }
.folio::before, .folio::after { content: "\2014"; margin: 0 .5em; color: rgba(156, 124, 75, .6); }

/* Section heading: Roman numeral in red, blackletter title, rubric */
.sh { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.sh__n { display: grid; place-items: center; min-width: 46px; padding: 4px 14px 4px 0; border-right: 1px solid var(--rule); font: 700 28px/1 var(--f-init); color: var(--ruby); }
.sh__n .x { width: 20px; height: 30px; }
.sh__t { margin: 0; font: 600 clamp(27px, 7.4vw, 34px)/1.06 var(--f-black); color: var(--ink); letter-spacing: .005em; }
.sh__r { margin: 4px 0 0; font: italic 400 16px/1.35 var(--f-text); color: var(--ruby); }

/* Thin stained-glass bar */
.bar {
  position: relative; height: 7px; margin: 14px 0 24px; overflow: hidden;
  border-top: 1px solid var(--lead); border-bottom: 1px solid var(--lead);
  background: repeating-linear-gradient(90deg, var(--ruby) 0 16px, var(--lead) 16px 18px, var(--cobalt) 18px 34px, var(--lead) 34px 36px, var(--amber) 36px 52px, var(--lead) 52px 54px, var(--emerald) 54px 70px, var(--lead) 70px 72px, var(--cobalt) 72px 88px, var(--lead) 88px 90px);
}
.bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 250, 230, .85), rgba(255, 255, 255, 0)); transform: translateX(-110%); }

/* ---------------------------------------------------------------
   Cover
   --------------------------------------------------------------- */
.pg--cover .sheet__in { min-height: calc(100svh - 40px); }
.pg--cover .pg__body { display: flex; }
.cv { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.cv p { margin: 0; }
.cv__x { display: block; color: var(--ruby); font-size: 26px; line-height: 1; margin-bottom: 8px; }
.cv__k { font: 600 clamp(30px, 9vw, 44px)/1 var(--f-black); color: var(--ruby); }
.cv__for { margin-top: 6px !important; font: italic 400 18px/1.3 var(--f-text); color: var(--ink-2); }
.oc { position: relative; width: min(232px, 66vw); aspect-ratio: 1; margin: 4px 0; }
.oc .rose, .oc .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc__ph { position: absolute; inset: 9.6%; overflow: hidden; border-radius: 50%; background: #1B2340; }
.oc__ph img { width: 100%; height: 100%; object-fit: cover; }
.ring__rim { fill: none; stroke: #3A2F27; stroke-width: 7; }
.ring__ln { fill: none; stroke: var(--lead); stroke-width: 1.4; }
.ring__boss circle { fill: var(--gilt); }
.cv__n { display: flex; flex-direction: column; align-items: center; margin: 0; font: 400 clamp(50px, 15vw, 70px)/.98 var(--f-script); color: var(--ink); }
.cv__n .amp, .bk__n .amp { font: 700 .34em/1 var(--f-init); color: var(--ruby); margin: .1em 0 .18em; letter-spacing: .1em; }
.cv__d { display: flex; flex-direction: column; font: italic 400 18px/1.4 var(--f-text); color: var(--ink-2); }
.cv__t { margin-top: 2px; }
.cv__v { font-size: 15px; letter-spacing: .2em; font-variant-caps: all-small-caps; color: var(--ink); font-weight: 500; }
.cv__g { display: flex; flex-direction: column; gap: 2px; margin-top: 6px !important; padding: 10px 22px 11px; border: 1px solid var(--rule); outline: 1px solid rgba(156, 124, 75, .5); outline-offset: 3px; background: rgba(255, 255, 255, .35); }
.cv__g span { font-size: 12px; letter-spacing: .24em; font-variant-caps: all-small-caps; color: var(--ruby); }
.cv__g b { font: italic 500 20px/1.25 var(--f-text); color: var(--ink); }

/* ---------------------------------------------------------------
   I. Invitation: illuminated initial & the reading
   --------------------------------------------------------------- */
.salute { margin: 0 0 12px; font: italic 400 19px/1.4 var(--f-text); color: var(--ink-2); }
.msg p { margin: 0 0 1em; text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 9 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
.msg p:last-child { margin-bottom: 0; }
@media (max-width: 639px) { .msg p { text-align: left; -webkit-hyphens: manual; hyphens: manual; } }
.has-dc::after { content: ""; display: block; clear: both; }
.dc-w { float: left; width: 86px; height: 86px; margin: 6px 13px 2px 0; }
.dc { display: block; width: 100%; height: 100%; }
.dc__lead { fill: var(--lead); }
.dc__gilt { fill: none; stroke: var(--gilt); stroke-width: 2.2; }
.dc__ring { fill: none; stroke: var(--gilt); stroke-width: 1.4; }
.dc text { font: 700 58px var(--f-init); fill: #F6D688; stroke: #2A1C12; stroke-width: 1.4px; paint-order: stroke; }
.lead-in { font-variant-caps: all-small-caps; letter-spacing: .07em; font-size: 1.08em; color: var(--ink); }

.rd { position: relative; margin: 30px 0 0; padding: 22px 0 0 20px; }
.rd::before { content: ""; position: absolute; left: 0; top: 54px; bottom: 34px; width: 5px; border-left: 1px solid var(--lead); border-right: 1px solid var(--lead); background: repeating-linear-gradient(180deg, var(--ruby) 0 14px, var(--lead) 14px 16px, var(--cobalt) 16px 30px, var(--lead) 30px 32px, var(--amber) 32px 46px, var(--lead) 46px 48px, var(--emerald) 48px 62px, var(--lead) 62px 64px); }
.rd::after { content: ""; position: absolute; left: 20px; right: 0; top: 0; border-top: 1px solid rgba(156, 124, 75, .45); }
.rd__k { font-size: 13px; letter-spacing: .26em; font-variant-caps: all-small-caps; color: var(--ruby); font-weight: 500; }
.rd__v { margin: 8px 0 6px; }
.rd__v p { margin: 0; font: italic 400 clamp(22px, 6vw, 26px)/1.36 var(--f-text); color: var(--ink); }
.rd__ref { margin: 0; text-align: right; font-size: 16px; letter-spacing: .14em; font-variant-caps: all-small-caps; font-variant-numeric: lining-nums; color: var(--ink-2); }
.rd__ref::before { content: "\2014\2002"; color: var(--rule); }
.rd__resp { margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--ruby); }
.rd__resp b { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------
   The couple: facing pages with quatrefoil portraits
   --------------------------------------------------------------- */
.pg--groom .pg__body, .pg--bride .pg__body { display: flex; flex-direction: column; }
.pp { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px 0 6px; }
.qf { position: relative; width: min(250px, 76%); aspect-ratio: 1; margin: 0 0 12px; }
.qf svg, .qf__ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.qf__sq { fill: none; stroke: var(--lead); stroke-width: 2; }
.qf__ph {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M35 35A25 25 0 0 1 85 35A25 25 0 0 1 85 85A25 25 0 0 1 35 85A25 25 0 0 1 35 35Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M35 35A25 25 0 0 1 85 35A25 25 0 0 1 85 85A25 25 0 0 1 35 85A25 25 0 0 1 35 35Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: #1B2340;
}
.qf__ph img { width: 100%; height: 100%; object-fit: cover; }
.qf__lead { fill: none; stroke: var(--lead); stroke-width: 4.2; }
.qf__gilt { fill: none; stroke: var(--gilt); stroke-width: 1.2; }
.qf__disc { fill: #102A63; stroke: var(--gilt); stroke-width: 1.2; }
.qf__mono text { font: 700 29px var(--f-init); fill: #F6D688; }
.pp__n { margin: 0; font: 400 clamp(52px, 15vw, 66px)/1.05 var(--f-script); color: var(--ink); font-weight: 400; }
.pp__f { margin: 2px 0 0; font-size: 16px; letter-spacing: .22em; font-variant-caps: all-small-caps; font-weight: 500; color: var(--ink); }
.pp__p { max-width: 28ch; margin: 10px 0 0; font: italic 400 17px/1.45 var(--f-text); color: var(--ink-2); }
.amp-med {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3A73D8, #183F8E 70%);
  box-shadow: 0 0 0 2px var(--lead), 0 0 0 4px var(--gilt), 0 0 0 5.5px var(--lead), 0 8px 18px rgba(30, 20, 10, .35);
  font: 400 34px/1 var(--f-script); color: #FBF2DE; padding-top: 6px;
}

/* ---------------------------------------------------------------
   Story, details, programme
   --------------------------------------------------------------- */
.sty { list-style: none; margin: 0; padding: 0; }
.sty__i { display: grid; grid-template-columns: 62px 1fr; column-gap: 14px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px dotted rgba(140, 125, 109, .55); }
.sty__i:last-child { border-bottom: 0; margin-bottom: 0; }
.sty__w { padding-top: 5px; font: 700 15px/1.25 var(--f-init); color: var(--ruby); overflow-wrap: anywhere; }
.sty__t { margin: 0 0 4px; font: 500 20px/1.3 var(--f-text); font-variant-caps: small-caps; letter-spacing: .03em; }
.sty__i p { margin: 0; color: var(--ink-2); }

.dots { flex: 1 1 18px; min-width: 18px; height: 4px; background: radial-gradient(circle, rgba(89, 76, 65, .55) 1px, transparent 1.4px) 0 100% / 7px 4px repeat-x; }
.lrs { margin: 0 0 6px; }
.lr { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.lr__k { flex: none; font-size: 17px; letter-spacing: .1em; font-variant-caps: all-small-caps; color: var(--ruby); font-weight: 500; }
.lr__v { max-width: 66%; text-align: right; font-weight: 500; line-height: 1.35; font-variant-numeric: lining-nums; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }
.btns .btn { flex: 1 1 190px; }
.btns--c { justify-content: center; }
.btns--c .btn { flex: 0 1 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px;
  border: 1px solid var(--ruby); border-radius: 2px; background: rgba(255, 255, 255, .25); color: var(--ruby);
  font: 500 15px/1.1 var(--f-text); letter-spacing: .14em; font-variant-caps: all-small-caps; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 3.6px rgba(163, 25, 47, .35);
  transition: background-color .2s, color .2s;
}
.btn:hover { background: rgba(163, 25, 47, .07); }
.btn--fill { background: var(--ruby); color: #FBF2E4; box-shadow: inset 0 0 0 3px var(--ruby), inset 0 0 0 3.6px rgba(251, 242, 228, .5); }
.btn--fill:hover { background: #8C1027; }
.btn--s { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn--s .ic { width: 16px; height: 16px; }

.attire { display: flex; flex-direction: column; gap: 2px; margin: 26px 0 0; padding: 14px 16px; border-left: 3px solid var(--ruby); background: rgba(163, 25, 47, .05); }
.attire__k { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .26em; font-variant-caps: all-small-caps; color: var(--ruby); font-weight: 600; }
.attire__k .x { width: 11px; height: 16px; }
.attire p { margin: 0; font: italic 400 20px/1.35 var(--f-text); }

.prg { list-style: none; margin: 0; padding: 0; }
.prg__day { margin: 20px 0 10px; font: italic 500 17px/1.3 var(--f-text); color: var(--ruby); }
.prg__day:first-child { margin-top: 0; }
.pr { margin: 0 0 18px; }
.pr__l { display: flex; align-items: baseline; gap: 8px; }
.pr__t { flex: none; font-size: 17px; font-weight: 600; letter-spacing: .03em; font-variant-numeric: lining-nums; color: var(--ruby); }
.pr__t .x { width: 11px; height: 16px; }
.pr__n { max-width: 64%; text-align: right; font: 500 20px/1.3 var(--f-text); }
.pr--main .pr__n { font-variant-caps: small-caps; letter-spacing: .04em; }
.pr__v, .pr__note { margin: 2px 0 0; text-align: right; font: italic 400 16px/1.4 var(--f-text); color: var(--ink-2); }
.pr__note { color: var(--ink-3); }

/* ---------------------------------------------------------------
   Hymn board countdown
   --------------------------------------------------------------- */
.hymn {
  position: relative; width: min(268px, 92%); margin: 70px auto 10px; padding: 22px 18px 18px;
  border-radius: 0 0 6px 6px; color: #E6C77E; text-align: center;
  background:
    repeating-linear-gradient(91deg, rgba(0, 0, 0, .07) 0 2px, rgba(0, 0, 0, 0) 2px 9px),
    repeating-linear-gradient(89deg, rgba(255, 220, 170, .04) 0 1px, rgba(0, 0, 0, 0) 1px 13px),
    linear-gradient(180deg, #5C3A25, #432817 65%, #36200F);
  box-shadow: inset 0 0 0 2px #24130A, inset 0 0 0 6px #6E4A2E, inset 0 0 0 7px #24130A, 0 18px 30px -12px rgba(40, 20, 5, .6);
}
.hymn::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 50px;
  background: linear-gradient(180deg, #6E4A2E, #5C3A25);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hymn::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: calc(100% - 1px); height: 42px;
  background: linear-gradient(180deg, #4A2D1B, #5C3A25);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hymn__x { position: absolute; z-index: 1; left: 50%; bottom: calc(100% + 20px); width: 16px; margin-left: -8px; color: var(--gilt); }
.hymn__x .x { width: 16px; height: 24px; display: block; }
.hymn__t { margin: 0 0 8px; font: 600 25px/1.1 var(--f-black); color: #E8C979; text-shadow: 0 1px 0 #24130A; }
.hymn__r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 9px; border-bottom: 4px solid #24130A; box-shadow: 0 1px 0 rgba(255, 220, 160, .14); }
.hymn__l { font-size: 15px; letter-spacing: .16em; font-variant-caps: all-small-caps; font-weight: 600; color: #E6C77E; }
.hymn__d { display: flex; gap: 4px; min-height: 42px; }
.tile {
  display: block; width: 30px; height: 42px; overflow: hidden; border-radius: 2px;
  background: linear-gradient(180deg, #FCF8EE, #ECE2CD); color: #1C1612;
  font: 600 30px/43px var(--f-text); font-variant-numeric: lining-nums tabular-nums; text-align: center;
  box-shadow: 0 2px 0 #1B0E06, 0 3px 6px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.hymn__done { margin: 10px 0 4px; font: italic 500 21px/1.35 var(--f-text); color: #F2DCA2; }

/* ---------------------------------------------------------------
   Venue
   --------------------------------------------------------------- */
.ven__n { margin: 0; font: 500 26px/1.2 var(--f-text); font-variant-caps: small-caps; letter-spacing: .03em; }
.ven__a { margin: 4px 0 0; font-style: italic; color: var(--ink-2); }
.note { display: flex; gap: 10px; margin: 16px 0 0; font: italic 400 17px/1.45 var(--f-text); color: var(--ruby); }
.note .x { flex: none; width: 11px; height: 16px; margin-top: 5px; }
.map { position: relative; margin: 22px 0 0; padding: 5px; border: 1px solid var(--rule); outline: 1px solid rgba(156, 124, 75, .5); outline-offset: 3px; background: var(--paper-2); }
.map::before { content: "Loading the map\2026"; position: absolute; inset: 5px; display: grid; place-items: center; font: italic 400 16px var(--f-text); color: var(--ink-3); background: repeating-linear-gradient(45deg, rgba(156, 124, 75, .07) 0 1px, rgba(0, 0, 0, 0) 1px 12px), repeating-linear-gradient(-45deg, rgba(156, 124, 75, .07) 0 1px, rgba(0, 0, 0, 0) 1px 12px); }
.map iframe { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: sepia(.25) saturate(.9); }

/* ---------------------------------------------------------------
   Gallery: lancet windows in bays
   --------------------------------------------------------------- */
.gal { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 30px; padding: 6px 0 4px; }
.bay { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 8px; flex: 0 1 100%; padding: 0 6px 12px; }
.bay::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lan { position: relative; flex: 1 1 0; max-width: 118px; aspect-ratio: 5 / 12; padding: 0; border: 0; background: var(--lead); clip-path: var(--lancet); cursor: zoom-in; }
.lan--mid { flex-grow: 1.3; max-width: 152px; }
.bay--1 .lan { max-width: 132px; }
.lan__g, .lan__p { position: absolute; clip-path: var(--lancet); }
.lan__g { inset: 2px; background: repeating-linear-gradient(180deg, var(--ruby) 0 24px, var(--lead) 24px 26px, var(--cobalt) 26px 50px, var(--lead) 50px 52px, var(--amber) 52px 76px, var(--lead) 76px 78px, var(--emerald) 78px 102px, var(--lead) 102px 104px); }
.lan__p { inset: 6px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #2A4A9A, #141C3A); }
.lan__p::before { content: ""; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 0 1.5px var(--lead); }
.lan__p::after { content: ""; position: absolute; inset: -20% -60%; z-index: 1; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 246, 220, .5) 50%, rgba(255, 255, 255, 0) 60%); transform: translateX(-100%); pointer-events: none; }
.lan__p img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.lan:hover .lan__p img { transform: scale(1.05); }

/* ---------------------------------------------------------------
   Blessings & enquiries
   --------------------------------------------------------------- */
.fam { list-style: none; margin: 0; padding: 0; }
.fam li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dotted rgba(140, 125, 109, .55); font-size: 20px; font-variant-caps: small-caps; letter-spacing: .04em; }
.fam li:last-child { border-bottom: 0; }
.fam .x { flex: none; width: 10px; height: 15px; color: var(--ruby); }
.ct-wrap { margin-top: 0; }
.fam + .ct-wrap { margin-top: 38px; }
.ct { list-style: none; margin: 0; padding: 0; }
.ct li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 0; border-bottom: 1px dotted rgba(140, 125, 109, .55); }
.ct li:first-child { padding-top: 0; }
.ct li:last-child { border-bottom: 0; }
.ct__n b { display: block; font: 500 21px/1.25 var(--f-text); font-variant-caps: small-caps; letter-spacing: .03em; }
.ct__n span { font: italic 400 16px/1.3 var(--f-text); color: var(--ink-2); }
.ct__b { display: flex; gap: 8px; }

/* ---------------------------------------------------------------
   Back cover & plates
   --------------------------------------------------------------- */
.pg--closing .pg__body { display: flex; }
.bk { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px 0 18px; }
.bk p { margin: 0; }
.bk__rose { width: 150px; aspect-ratio: 1; margin-bottom: 20px; }
.bk__rose .rose { width: 100%; height: 100%; display: block; }
.bk__k { font: 600 28px/1.1 var(--f-black); color: var(--ruby); }
.bk__txt { max-width: 30ch; margin-top: 10px !important; font: italic 400 19px/1.45 var(--f-text); color: var(--ink-2); }
.bk__n { display: flex; flex-direction: column; align-items: center; margin-top: 18px !important; font: 400 clamp(44px, 12vw, 56px)/1 var(--f-script); }
.bk__d { margin-top: 14px !important; font: 700 15px/1 var(--f-init); letter-spacing: .14em; color: var(--ink-2); }
.bk__h { margin-top: 10px !important; font-size: 17px; letter-spacing: .12em; color: var(--ruby); font-weight: 500; }
.bk .btns { margin-top: 24px; }
.plt { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 34px; }
.plt .rose { width: min(380px, 80%); height: auto; aspect-ratio: 1; display: block; }
.plt__m { margin: 0; display: flex; align-items: center; gap: 18px; font: 700 34px/1 var(--f-init); color: var(--ink); }
.plt__m .x { width: 16px; height: 24px; color: var(--ruby); }
.pg--plate .pg__body { display: flex; flex-direction: column; }
.pg--plate .plt { flex: 1; }

/* ---------------------------------------------------------------
   Floating actions
   --------------------------------------------------------------- */
.fabs { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; gap: 12px; transition: opacity .4s; }
.is-intro .fabs { opacity: 0; pointer-events: none; }
.fab {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--rule); border-radius: 50%;
  background: var(--paper); color: var(--ruby); cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 3.8px rgba(156, 124, 75, .55), 0 8px 20px rgba(40, 25, 10, .25);
}
.fab[hidden] { display: none; }
.fab svg { width: 20px; height: 20px; }
.fab .bars { display: none; gap: 3px; align-items: flex-end; height: 16px; }
.fab .bars i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: 50% 100%; animation: bars 1s ease-in-out infinite alternate; }
.fab .bars i:nth-child(2) { animation-delay: -.4s; }
.fab .bars i:nth-child(3) { animation-delay: -.7s; }
.fab--music.is-playing .note { display: none; }
.fab--music.is-playing .bars { display: flex; }
@keyframes bars { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* ---------------------------------------------------------------
   Light through the windows: soft rays drifting across the page
   --------------------------------------------------------------- */
.rays { position: fixed; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.rays i { position: absolute; top: -40%; height: 180%; transform: rotate(24deg); background: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--c), rgba(0, 0, 0, 0)); opacity: var(--o); will-change: transform; }
.rays i:nth-child(1) { --c: rgba(255, 222, 160, .9); --o: .2; left: 4%; width: 26vw; --t: 23s; }
.rays i:nth-child(2) { --c: rgba(70, 110, 220, .7); --o: .06; left: 38%; width: 12vw; --t: 29s; }
.rays i:nth-child(3) { --c: rgba(255, 230, 180, .9); --o: .16; left: 58%; width: 18vw; --t: 19s; }
.rays i:nth-child(4) { --c: rgba(205, 50, 70, .7); --o: .05; left: 78%; width: 10vw; --t: 33s; }
.rays i:nth-child(5) { --c: rgba(242, 188, 69, .8); --o: .07; left: 22%; width: 8vw; --t: 27s; }
@keyframes ray { from { transform: translate3d(-16vw, 0, 0) rotate(24deg); opacity: calc(var(--o) * .45); } to { transform: translate3d(18vw, 0, 0) rotate(24deg); opacity: var(--o); } }
@keyframes sheen { to { transform: translateX(110%); } }
@keyframes lsheen { to { transform: translateX(100%); } }
@keyframes amp { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------
   Motion (only when the guest hasn't asked for less)
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rays i { animation: ray var(--t) ease-in-out infinite alternate; }
  .rays i:nth-child(2n) { animation-direction: alternate-reverse; }

  .gr-anim .pg .sheet { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform 1.15s var(--ease); }
  .gr-anim .pg::before { opacity: 0; transition: opacity 1s ease .2s; }
  .gr-anim .pg.is-in .sheet { opacity: 1; transform: none; }
  .gr-anim .pg.is-in::before { opacity: 1; }

  .gr-anim [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s ease calc(.3s + var(--i, 0) * .09s), transform .95s var(--ease) calc(.3s + var(--i, 0) * .09s); }
  .gr-anim [data-reveal].is-in { opacity: 1; transform: none; }
  .gr-anim .bar[data-reveal] { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease) .35s; }
  .gr-anim .bar.is-in { transform: none; }
  .bar.is-in::after { animation: sheen 1.6s ease 1.1s 1 forwards; }
  .bay.is-in .lan__p::after { animation: lsheen 1.8s ease .8s 1 forwards; }
  .bay.is-in .lan:nth-child(2) .lan__p::after { animation-delay: 1s; }
  .bay.is-in .lan:nth-child(3) .lan__p::after { animation-delay: 1.2s; }
  .gr-anim .oc.is-in .ring__boss { transition: opacity 1s ease 1.2s; }
  .gr-anim .amp-med { opacity: 0; }
  .gr-anim .spread.is-in .amp-med { animation: amp 1s var(--ease) .9s both; }
}
@media (prefers-reduced-motion: reduce) {
  .gls .g, .rose__sh, .in__btn, .in__glow, .in__beam, .in__bloom, .in__pools i, .in__txt, .in__flood { transition-duration: .01s !important; transition-delay: 0s !important; }
  .intro { transition-duration: .4s; }
  .in__halo, .in__pulse::after, .fab .bars i { animation: none; }
}

/* ---------------------------------------------------------------
   Wider screens
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  .booklet { padding-top: 28px; }
  .sheet { padding: 14px; }
  .sheet__in { padding: 24px 34px 16px; }
  .pg--cover .sheet__in { min-height: 0; }
  .bay { flex: 0 1 auto; padding: 0 10px 14px; gap: 10px; }
  .lan { flex: 0 0 104px; max-width: none; }
  .lan--mid { flex-basis: 136px; }
  .bay--1 .lan, .bay--2 .lan { flex-basis: 116px; }
  .gal { gap: 34px 34px; padding: 14px 0 8px; }
}

@media (min-width: 1000px) {
  body { font-size: 19px; }
  .booklet { max-width: 1240px; padding: 64px 44px 90px; }
  .spread { grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 72px; }
  .spread--wide, .spread--single { grid-template-columns: 1fr; }
  .spread--single { max-width: 600px; margin-left: auto; margin-right: auto; }
  .spread--couple { grid-auto-rows: auto; gap: 0; }
  .pg--plate { display: flex; }
  .sheet { padding: 16px; }
  .sheet__in { padding: 34px 50px 22px; }
  .spread--pair .sheet__in { min-height: 800px; }
  .spread--wide .sheet__in { padding: 34px 56px 22px; }
  .is-left .sheet { clip-path: var(--dkl); }
  .is-right .sheet { clip-path: var(--dkr); }
  .is-left .sheet { background-image: linear-gradient(270deg, rgba(110, 80, 30, .2), rgba(110, 80, 30, .06) 22px, rgba(110, 80, 30, 0) 60px), radial-gradient(120% 90% at 50% 42%, rgba(255, 253, 245, .85) 0%, rgba(255, 253, 245, 0) 62%), var(--fibre), var(--noise); }
  .is-right .sheet { background-image: linear-gradient(90deg, rgba(110, 80, 30, .2), rgba(110, 80, 30, .06) 22px, rgba(110, 80, 30, 0) 60px), radial-gradient(120% 90% at 50% 42%, rgba(255, 253, 245, .85) 0%, rgba(255, 253, 245, 0) 62%), var(--fibre), var(--noise); }
  .is-left .pg::before, .pg.is-left::before { right: 0; }
  .pg.is-right::before { left: 0; }
  .spread--pair::after {
    content: ""; position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; pointer-events: none;
    background: linear-gradient(180deg, transparent 23%, #A9A196 23%, #7E776C 26%, transparent 26%, transparent 74%, #A9A196 74%, #7E776C 77%, transparent 77%);
  }
  .is-left .rh { text-align: left; }
  .is-right .rh { text-align: right; }
  .is-left .folio { text-align: left; }
  .is-right .folio { text-align: right; }
  .folio::before, .folio::after { content: none; }
  .rh { margin-bottom: 30px; }

  .pg--cover .sheet__in { min-height: 800px; }
  .oc { width: 270px; }
  .cv { gap: 16px; }
  .qf { width: 290px; }
  .hymn { width: 290px; }
  .dc-w { width: 96px; height: 96px; }
  .bk__rose { width: 190px; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  .gr-anim .spread--pair .is-left .sheet { transform-origin: 100% 50%; transform: perspective(2600px) rotateY(58deg); transition: opacity .7s ease, transform 1.35s var(--ease); }
  .gr-anim .spread--pair .is-right .sheet { transform: translateY(18px); }
  .gr-anim .spread--pair .pg.is-in .sheet { transform: none; }
  .gr-anim .spread--pair::after { opacity: 0; transition: opacity .8s ease .8s; }
  .gr-anim .spread--pair.is-in::after { opacity: 1; }
}

@media print {
  .intro, .fabs, .rays { display: none !important; }
  .gr-anim .pg .sheet, .gr-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
}
