/* =========================================================
   The Wedding Post - newspaper wedding invitation
   ========================================================= */
:root {
  color-scheme: only light;
  --paper: #efede6;
  --paper-2: #e6e3da;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #6b6b66;
  --night: #0c0c0c;
  --olive: #55693f;
  --olive-dark: #3d4c2d;
  --gold: #d9b45a;
  --sheet-w: 680px;

  --f-black: "UnifrakturMaguntia", "Old English Text MT", serif;
  --f-script: "Pinyon Script", "Edwardian Script ITC", cursive;
  --f-names: "Playfair Display", Georgia, serif;
  --f-display: "Anton", "Oswald", Impact, sans-serif;
  --f-label: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Old Standard TT", Georgia, "Times New Roman", serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: #ffffff var(--noise);
  background-image: var(--noise), radial-gradient(ellipse at top, #ffffff 0%, #ffffff 70%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 .9em; }

body.is-locked { overflow: hidden; height: 100vh; }

/* =========================================================
   OPENING - logo card; tap "Open Invitation" to go to page 1
   ========================================================= */
.opening {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden; cursor: pointer;
  background-color: #24201b;
  background-image:
    radial-gradient(ellipse at center, rgba(255,240,210,.10) 0%, rgba(0,0,0,.6) 78%),
    repeating-linear-gradient(90deg, transparent 0 138px, rgba(255,255,255,.05) 138px 140px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 7px),
    var(--noise);
  transition: opacity 1.9s ease, visibility 1.9s;
}
/* faded mastheads in the background, like a pile of old papers */
.opening::before {
  content: "The Wedding Post The Wedding Post The Wedding Post The Wedding Post The Wedding Post The Wedding Post The Wedding Post The Wedding Post";
  position: absolute; inset: -20%;
  font: 11vmax/1.25 var(--f-black);
  color: var(--paper); opacity: .05;
  transform: rotate(-8deg);
  filter: blur(1.5px);
  pointer-events: none;
}
.opening__stage {
  position: relative;
  transition: transform 1.9s ease, opacity 1.9s ease;
}
.card {
  --w: min(90vw, 600px, 60vh);
  --w: min(90vw, 600px, 60dvh);
  position: relative;
  width: var(--w);
  aspect-ratio: 4 / 3;
  container-type: inline-size; /* sizes inside use cqw = % of the card's width */
  background: var(--paper) var(--noise);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.18);
}
/* padding lives on this inner layer: padding on .card itself would shrink what cqw measures */
.card__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw;
  padding: 5cqw 7cqw;
  text-align: center;
}
/* a second sheet peeking out underneath the card */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #ddd7c8 var(--noise);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
  transform: rotate(-3deg);
}
/* thin double frame inside the card */
.card::after {
  content: ""; position: absolute; inset: 2.6cqw;
  border: 1px solid rgba(17,17,17,.28);
  outline: 1px solid rgba(17,17,17,.12); outline-offset: 4px;
  pointer-events: none;
}
/* logo is a white-background jpg: multiply lets the paper texture show through */
.op-logo { display: block; height: 44cqw; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.op-script { font: 6cqw/1.1 var(--f-script); color: var(--ink-soft); }
.op-btn {
  margin-top: 1.8cqw;
  padding: 2.2cqw 6cqw;
  font: 500 3cqw/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  border: 0; border-radius: 2px;
  outline: 1px solid var(--ink); outline-offset: 3px;
  cursor: pointer;
  animation: pulse 2.4s ease-in-out infinite;
}
.op-btn:focus-visible { outline-color: var(--gold); }

/* tapped: the card zooms toward the guest and fades into page 1 */
.opening.is-open { cursor: default; }
.opening.is-open .op-btn { animation: none; }
.opening.is-done { opacity: 0; visibility: hidden; }
.opening.is-done .opening__stage { transform: scale(1.15); opacity: 0; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .78; } }

/* shared by the page 1 cover */
.op-rule { border-top: 2px solid var(--ink); }
/* short newspaper-style rule with a star in the middle */
.op-orn {
  display: flex; align-items: center; gap: 2cqw; width: 46%;
  font-size: 2.4cqw; line-height: 1;
}
.op-orn::before, .op-orn::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.op-bar {
  align-self: stretch;
  display: flex; justify-content: space-between;
  margin-top: 1cqw; padding: 1.6cqw 3cqw;
  background: var(--ink); color: var(--paper);
  font: 500 3cqw/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase;
}

/* =========================================================
   COVER - page 1 (the formal invitation)
   ========================================================= */
.cover { display: flex; flex-direction: column; justify-content: center; }
.cover__inner {
  width: 100%; max-width: 600px; margin: 0 auto;
  container-type: inline-size;
  text-align: center;
}
.cover__top { padding: 0; }
.cover__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 2.4cqw;
  padding: 6cqw 0 0;
}

/* ---- top: mantra row ---- */
/* swastik emblem | || mantra || | swastik emblem */
.op-mantra {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2cqw;
  padding: 1.8cqw 0; font-size: 3cqw;
}
.op-mantra__emblem { display: block; width: 11cqw; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.op-mantra__mid { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; min-width: 0; padding: 0 3cqw; }
.op-mantra__mid img { display: block; min-width: 0; height: 7.5cqw; width: auto; max-width: 100%; object-fit: contain; }
.op-mantra__bars { flex: none; width: max(.3em, 7px); height: 2.4em; border-left: 2px solid #b08d4a; border-right: 2px solid #b08d4a; }

/* ---- bottom: the invitation (uses .op-orn and .op-bar above) ---- */
/* formal invitation wording (script lines, serif capitals, big script names) */
.inv { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; }
.inv p { margin: 0; }
/* readable elegant italic serif (not calligraphy) for the small invitation lines */
.inv__script { font: italic 500 max(4.6cqw, 18px)/1.3 "Cormorant Garamond", Georgia, serif; color: var(--ink-soft); }
.inv__caps {
  font: max(2.5cqw, 10.5px)/1.5 var(--f-names); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); text-wrap: balance;
}
.inv__caps--lg { font-size: max(3.4cqw, 13px); letter-spacing: .12em; color: var(--ink); }
.inv__name { font: max(13cqw, 46px)/1.05 var(--f-script); color: var(--ink); padding-top: .5cqw; }
.inv__with { margin: -1cqw 0; }

/* ---- page 1: swastik row intro (runs when #mantraRow gets .is-in) ----
   rules draw out from the centre, emblems pop in, the || marks grow,
   then the mantra is written in from left to right and glows once */
.cover__top > .op-rule { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.6,0,.2,1); }
.cover__top > .op-rule:last-child { transition-delay: .2s; }
.cover__top.is-in > .op-rule { transform: none; }
.op-mantra__emblem { opacity: 0; --spin: -120deg; }
.op-mantra__emblem:last-child { --spin: 120deg; }
.cover__top.is-in .op-mantra__emblem { animation: emblemPop 1.1s cubic-bezier(.3,1.4,.5,1) .65s both; }
.cover__top.is-in .op-mantra__emblem:last-child { animation-delay: .85s; }
@keyframes emblemPop {
  0%   { opacity: 0; transform: scale(.2) rotate(var(--spin)); }
  70%  { opacity: 1; transform: scale(1.12) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
.op-mantra__bars { transform: scaleY(0); transition: transform .7s cubic-bezier(.3,1.4,.5,1) 1.15s; }
.cover__top.is-in .op-mantra__bars { transform: none; }
.op-mantra__mid img { clip-path: inset(-20% 100% -20% 0); }
.cover__top.is-in .op-mantra__mid img {
  clip-path: inset(-20% 0 -20% 0);
  transition: clip-path 2s cubic-bezier(.45,.05,.4,1) 1.4s;
  animation: mantraGlow 1.8s ease 3.3s;
}
@keyframes mantraGlow { 50% { filter: drop-shadow(0 0 7px rgba(217,180,90,.85)); } }

/* ---- page 1: old manual typewriter ----
   letters keep their space while hidden, so nothing jumps; each one is struck onto
   the paper and settles slightly off the line with its own amount of ink */
.tw-word { white-space: nowrap; }  /* letters are inline-blocks: keep words from breaking */
.tw-ch {
  display: inline-block; visibility: hidden;
  /* script letters (Pinyon) have swashes that reach far outside their box; Safari/iOS
     only repaints the box itself, so the tails got cut off. Pad the box to cover the
     swashes and pull it back with a matching negative margin so spacing is unchanged. */
  padding: .3em .4em; margin: -.3em -.4em;
  transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg));
  opacity: var(--ink, 1);
}
.tw-ch.on { visibility: visible; animation: twStrike .23s cubic-bezier(.2,.8,.3,1.3) both; }
@keyframes twStrike {
  0%   { opacity: 0; transform: translateY(calc(var(--dy, 0em) - .16em)) scale(1.3); filter: blur(1px); }
  55%  { opacity: 1; transform: translateY(calc(var(--dy, 0em) + .02em)) rotate(var(--rot, 0deg)) scale(.96); filter: blur(0); text-shadow: 0 0 1.5px currentColor; }
  100% { opacity: var(--ink, 1); transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg)); }
}
/* a little ink bleed on the typed capitals */
.inv__caps .tw-ch, .op-bar .tw-ch { text-shadow: 0 0 .6px currentColor; }
/* the star rule and the date bar fade in when the typing reaches them */
.tw-fade { opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s ease; }
.tw-fade.tw-in { opacity: 1; transform: none; }

/* =========================================================
   PAPER LAYOUT
   ========================================================= */
/* the site is a stack of pages; swipe or use the arrows to turn them */
.pager { position: fixed; inset: 0; overflow: hidden; }
.page {
  position: absolute; inset: 0;
  display: none;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  perspective: 2200px;
}
.page.is-current, .page.is-under, .page.is-turning { display: block; }
.page.is-under { z-index: 1; }
.page.is-current { z-index: 2; }
.page.is-turning { z-index: 3; overflow: hidden; }
.paper {
  position: relative;
  max-width: var(--sheet-w);
  min-height: 100%;
  margin: 0 auto;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 30px 80px rgba(0,0,0,.45);
  transform-origin: left center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.paper > .sheet:last-child { flex: 1; padding-bottom: 5.5rem; } /* room for the page bar */

/* page-turn: the page swings away around its left edge (or back in), with shading */
.paper::before, .paper::after {
  content: ""; position: absolute; inset: 0; z-index: 20;
  pointer-events: none; opacity: 0;
}
.paper::before { background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,.18) 55%, rgba(0,0,0,.5)); }
.paper::after { background: rgba(0,0,0,.45); }
.pager[data-dir="next"] .is-turning .paper { animation: pageOut 2.4s cubic-bezier(.45,.05,.55,.95) forwards; }
.pager[data-dir="next"] .is-turning .paper::before { animation: pageFadeIn 2.4s ease-in forwards; }
.pager[data-dir="next"] .is-under .paper::after { animation: pageFadeOut 2.4s ease-out forwards; }
.pager[data-dir="prev"] .is-turning .paper { animation: pageIn 2.4s cubic-bezier(.45,.05,.55,.95) forwards; }
.pager[data-dir="prev"] .is-turning .paper::before { animation: pageFadeOut 2.4s ease-out forwards; }
.pager[data-dir="prev"] .is-under .paper::after { animation: pageFadeIn 2.4s ease-in forwards; }
@keyframes pageOut { from { transform: rotateY(0); } to { transform: rotateY(-92deg); } }
@keyframes pageIn { from { transform: rotateY(-92deg); } to { transform: rotateY(0); } }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* page bar */
.pager-nav {
  position: fixed; left: 50%; bottom: 14px; z-index: 90;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .2rem;
  padding: 4px;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(239,237,230,.45); border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  font: 500 .72rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase;
}
.pager-nav__btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: inherit; cursor: pointer;
}
.pager-nav__btn:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.pager-nav__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.pager-nav__btn:disabled { opacity: .3; cursor: default; }
.pager-nav__num { min-width: 6.6em; text-align: center; white-space: nowrap; }
.pager-nav.is-hint .pager-nav__next svg { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* "Swipe" bubble above the page bar: a hand swipes right to left until the first page turn */
.swipe-hint {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem .4rem .6rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(239,237,230,.45); border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  font: 500 .66rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.swipe-hint::after { /* little pointer towards the bar */
  content: ""; position: absolute; left: 50%; top: 100%;
  border: 6px solid transparent; border-top-color: var(--ink);
  transform: translateX(-50%);
}
.pager-nav.is-hint .swipe-hint { opacity: 1; transform: translate(-50%, 0); }
.swipe-hint__track { position: relative; width: 40px; height: 22px; }
.swipe-hint__hand {
  position: absolute; left: 50%; top: 0; width: 22px; height: 22px; margin-left: -11px;
  animation: swipeHand 1.8s ease-in-out infinite;
}
@keyframes swipeHand {
  0%   { transform: translateX(10px) rotate(8deg); opacity: 0; }
  15%  { transform: translateX(10px) rotate(8deg); opacity: 1; }
  65%  { transform: translateX(-10px) rotate(-14deg); opacity: 1; }
  85%, 100% { transform: translateX(-10px) rotate(-14deg); opacity: 0; }
}
.sheet {
  position: relative;
  background: var(--paper) var(--noise);
  padding: 2.2rem clamp(1.1rem, 5vw, 2.8rem);
}
.sheet--dark {
  background: var(--night) var(--noise);
  color: #eceae4;
}

/* rules */
.rule { border-top: 1px solid var(--ink); margin: .5rem 0; }
.rule--thick { border-top-width: 2px; }
.rule--double { border-top: 3px double var(--ink); height: 0; margin: .4rem 0 .4rem; }
.rule--light { border-color: #d9d6cd; }

/* masthead */
.masthead {
  font-family: var(--f-black); font-weight: 400;
  font-size: clamp(1.9rem, 9vw, 4.4rem);
  line-height: 1.05; text-align: center; margin: .6rem 0 .45rem; white-space: nowrap;
}
.tagline {
  text-align: center; font-family: var(--f-body);
  font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; margin: 0 0 .5rem;
}
.tagline--light { color: #d9d6cd; }
.dateline {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--f-label); font-weight: 600; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid var(--ink); padding-bottom: .4rem;
}

.names {
  font-family: var(--f-names); font-weight: 400; text-align: center;
  font-size: clamp(1.8rem, 11.4vw, 4rem); line-height: 1.1; white-space: nowrap;
  margin: 1.8rem 0 0;
}
.headline {
  font-family: var(--f-script); font-weight: 400; text-align: center;
  font-size: clamp(1.4rem, 8vw, 2.7rem); line-height: 1.15; text-wrap: balance; /* long line: wraps evenly on phones */
  margin: .2rem 0 1.4rem;
}

/* photos with graceful placeholder */
.photo {
  position: relative; margin: 0;
  background-image: var(--img), repeating-linear-gradient(135deg, #d8d4c8 0 10px, #cfcabd 10px 20px);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  border: 1px solid rgba(0,0,0,.25);
  overflow: hidden;
}
.photo__ph {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: #55534b; text-align: center; line-height: 1.5;
  background: rgba(239,237,230,.85); padding: .5rem .8rem;
}
.photo__ph small { letter-spacing: .05em; text-transform: none; font-family: var(--f-body); font-style: italic; }
.photo.has-img .photo__ph { display: none; }
.photo--hero { aspect-ratio: 4 / 5; margin-bottom: 1.4rem; }
.photo--square { aspect-ratio: 1 / 1.05; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--portrait { aspect-ratio: 2 / 3; }

.bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  font-size: 1rem; padding: .65rem 1.2rem; margin: 0 0 1.6rem;
}

.script { font-family: var(--f-script); font-weight: 400; font-size: 2.3rem; line-height: 1.15; margin: 0 0 .6rem; }

/* message from the couple */
.note { margin: 0 0 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(0,0,0,.2); }
.note__body { font-size: .95rem; text-align: justify; hyphens: manual; margin: 0 0 .4rem; }
.note__body::first-letter {
  float: left; font-family: var(--f-black); font-size: 3.4em; line-height: .85;
  margin: .08em .1em 0 0;
}
.note__sig { text-align: right; font-size: 1.9rem; margin: 0; padding-right: .5em; } /* room for the final swash */

/* invite */
.invite { text-align: center; font-size: .95rem; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--f-label); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: .65rem 1.3rem; border: 1px solid currentColor;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn__icon { width: 1.25em; height: 1.25em; vertical-align: -.32em; margin-left: .3em; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: transparent; color: #f2efe8; border-color: #f2efe8; }
.btn--light:hover { background: #f2efe8; color: var(--ink); }
.btn--block { width: 100%; padding: .95rem; font-size: .8rem; }

/* =========================================================
   DREAMS (dark)
   ========================================================= */
.blackletter {
  font-family: var(--f-black); font-weight: 400; text-align: center;
  font-size: clamp(2rem, 8.5vw, 3.2rem); line-height: 1.1; margin: .3rem 0 .4rem;
}
.dreams__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem;
  grid-template-areas:
    "photo pola"
    "s1    pola"
    "s2    count";
  margin-top: 1.4rem;
}
.dreams__grid > .photo { grid-area: photo; border-color: #333; }
.polaroid {
  grid-area: pola; background: #f7f6f2; color: var(--ink);
  padding: .8rem .8rem 1rem; align-self: start;
  transform: rotate(1.2deg);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.polaroid .script { font-size: 2rem; margin-bottom: .4rem; }
.polaroid__foot { text-align: right; margin: .5rem 0 0; line-height: 1; }
.polaroid__foot span { display: block; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .08em; color: #9a988f; }
.polaroid__foot em { font-family: var(--f-script); font-style: normal; font-size: 1.5rem; }
.story:nth-of-type(1) { grid-area: s1; }
.story:nth-of-type(2) { grid-area: s2; }
.story h4 {
  font-family: var(--f-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .9rem; margin: 0 0 .5rem;
}
.story p { font-size: .82rem; color: #cfccc4; text-align: justify; hyphens: manual; }
.countdown {
  grid-area: count; align-self: start; text-align: center;
  border: 1px solid #cfccc4; outline: 1px solid #cfccc4; outline-offset: 4px;
  padding: 1.1rem .6rem 1.2rem; margin: 4px;
}
.countdown .script { font-size: 1.8rem; }
.countdown__nums {
  display: flex; justify-content: center; align-items: flex-start; gap: .25rem;
  font-family: var(--f-display); margin-bottom: 1rem;
}
.countdown__nums div { display: flex; flex-direction: column; align-items: center; min-width: 2.1em; }
.countdown__nums b { font-weight: 400; font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__nums small { font-family: var(--f-label); font-size: .5rem; letter-spacing: .15em; text-transform: uppercase; color: #a9a69e; margin-top: .3rem; }
.countdown__nums i { font-style: normal; font-size: 1.4rem; line-height: 1.05; }
.banner {
  text-align: center; font-family: var(--f-display); text-transform: uppercase;
  letter-spacing: .1em; font-size: .9rem; margin: .8rem 0 0;
}

/* =========================================================
   EVENTS
   ========================================================= */
.section-label {
  display: flex; justify-content: space-between;
  font-family: var(--f-label); font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: .35rem 0; margin-bottom: 2rem;
}

/* =========================================================
   ITINERARY
   ========================================================= */
.itin__days { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.8rem; }
@media (min-width: 600px) { .itin__days { grid-template-columns: 1fr 1fr; } }
.itin__date {
  margin: 0 0 .4rem; padding: .55rem 1rem;
  background: var(--paper); color: var(--ink); text-align: center;
  font-family: var(--f-display); font-weight: 400; font-size: 1.05rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.itin__list { list-style: none; padding: 0; margin: 0; }
.itin__list li {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .75rem .2rem; border-bottom: 1px dashed rgba(255,255,255,.22);
}
.itin__list time {
  flex: none; min-width: 5.4em;
  font-family: var(--f-label); font-weight: 500; font-size: .85rem; letter-spacing: .1em;
  color: var(--gold);
}
.itin__list span { font-size: 1rem; }
.itin__foot { text-align: center; margin: 2rem 0 0; font-size: clamp(1.8rem, 7vw, 2.3rem); }
.itin__cta { text-align: center; margin: 1.4rem 0 0; }

/* =========================================================
   DRESS CODE
   ========================================================= */
.dress { text-align: center; }
.dress__title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 13vw, 4.4rem);
  line-height: 1; margin: .2rem 0 1.4rem; letter-spacing: .02em; text-transform: uppercase;
}
.dress__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.dress__item { padding: 1.4rem .9rem; }
.dress__item + .dress__item { border-left: 1px solid rgba(0,0,0,.25); }
.dress__item h3 {
  font-family: var(--f-label); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .6rem;
}
.dress__item p { font-style: italic; font-size: 1.05rem; line-height: 1.45; margin: 0; }
@media (max-width: 600px) {
  .dress__grid { grid-template-columns: 1fr; }
  .dress__item + .dress__item { border-left: 0; border-top: 1px solid rgba(0,0,0,.25); }
}

/* =========================================================
   UNPLUGGED
   ========================================================= */
.unplugged { padding: 0; background: var(--night); }
.unplugged .photo { border: 0; }
.unplugged__box { background: var(--night); color: #eceae4; padding: 2.2rem clamp(1.1rem, 5vw, 2.8rem) 2.6rem; }
.unplugged__box h4 { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; margin: 0 0 .6rem; }
.unplugged__box p { font-size: .88rem; color: #cfccc4; }
.unplugged__box .script { margin-top: 1.4rem; }
.hashtag {
  font-family: var(--f-label); font-weight: 600; letter-spacing: .08em; font-size: 1rem;
  color: #fff; background: none; border: 0; border-bottom: 1px dashed #fff;
  padding: 0 0 2px; cursor: pointer;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(3.6rem, 16vw, 5.5rem);
  line-height: 1; margin: .4rem 0 1.4rem; letter-spacing: .02em;
}
.faq__list details { border-top: 1px solid rgba(0,0,0,.25); }
.faq__list details:last-child { border-bottom: 1px solid rgba(0,0,0,.25); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--f-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .88rem; padding: .9rem 2rem .9rem 0;
}
.faq__list summary::-webkit-details-marker { display: none; }
/* plus icon (SVG, painted in the text colour); turns into an x when open */
.faq__list summary::after {
  content: ""; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s ease;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { font-size: .9rem; margin: 0 0 1rem; color: var(--ink-soft); animation: drop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp__form { display: grid; gap: 1.1rem; max-width: 460px; margin: 1.6rem auto 0; }
.rsvp__form label, .rsvp__form legend {
  display: grid; gap: .35rem;
  font-family: var(--f-label); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #bdbab1;
}
.rsvp__form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.rsvp__form input[type="text"],
.rsvp__form input[type="number"],
.rsvp__form textarea {
  font: 1rem var(--f-body); color: #f2efe8; letter-spacing: 0; text-transform: none;
  background: transparent; border: 0; border-bottom: 1px solid #77756e;
  padding: .45rem 0; outline: none; resize: vertical; border-radius: 0;
}
.rsvp__form input:focus, .rsvp__form textarea:focus { border-color: #f2efe8; }
.rsvp__form input::placeholder, .rsvp__form textarea::placeholder { color: #6e6c66; font-style: italic; }
.rsvp__form .choice {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; text-transform: none; color: #f2efe8;
}
.choice input { accent-color: #f2efe8; width: 1rem; height: 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { text-align: center; padding: 2.8rem clamp(1.1rem, 5vw, 2.8rem) 2.4rem; }
.foot__sig { font-size: 2.4rem; line-height: 1; margin: 0; }
.foot__family {
  font-family: var(--f-names); font-size: clamp(1.1rem, 4.4vw, 1.45rem); line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase;
  margin: .9rem 0 0;
}
.foot__family span, .foot__line span { white-space: nowrap; }
.foot__family i, .foot__line i { font-style: normal; color: var(--gold); margin: 0 .2em; }
/* small caps flanked by short rules */
.foot__family-label {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  font-family: var(--f-label); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--muted); margin: .6rem 0 0;
}
.foot__family-label::before, .foot__family-label::after { content: ""; width: 2.2rem; border-top: 1px solid currentColor; }
/* masthead signature, set off by a double rule like the bottom of a front page */
.foot__base { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 3px double var(--ink); }
.foot__mast { font: 1.75rem/1 var(--f-black); margin: 0 0 .7rem; }
.foot__line {
  font-family: var(--f-label); font-size: .64rem; line-height: 1.9; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

/* =========================================================
   MUSIC BUTTON (mute / unmute)
   ========================================================= */
.sound {
  position: fixed; right: 16px; bottom: 16px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--paper);
  outline: 1px solid var(--ink); outline-offset: 2px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.3,1.6,.5,1);
}
.sound.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sound:hover { transform: scale(1.06); }
.sound:focus-visible { outline: 2px solid var(--gold); }
.sound svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.sound__bars { grid-area: 1 / 1; display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.sound__bars i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: -.35s; }
.sound__bars i:nth-child(3) { animation-delay: -.7s; }
.sound__off { display: none; }
.sound.is-muted .sound__off { display: block; }
.sound.is-muted .sound__bars { display: none; }
@keyframes eq { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 72px; z-index: 95;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-label); letter-spacing: .12em; font-size: .78rem; text-transform: uppercase;
  padding: .7rem 1.2rem; transition: .3s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.25,1); }
.reveal.in { opacity: 1; transform: none; }
.polaroid.reveal.in { transform: rotate(1.2deg); }
.names.reveal { transform: translateY(18px) scale(.96); }
.names.reveal.in { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 320px) {
  .dateline span:last-child { display: none; }
  .dateline { justify-content: center; }
  .bar { font-size: .85rem; }
  .story p { font-size: .78rem; }
  .countdown__nums b { font-size: 1.3rem; }
  .countdown__nums div { min-width: 1.8em; }
}
@media (max-width: 380px) {
  .dreams__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "s1" "pola" "s2" "count";
  }
}
@media (min-width: 760px) {
  .paper { margin: 2.5rem auto 5rem; min-height: calc(100% - 7.5rem); }
  .paper > .sheet:last-child { padding-bottom: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
