@font-face { font-family: "Rosarivo"; src: url("../fonts/heirloom/rosarivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rosarivo"; src: url("../fonts/heirloom/rosarivo-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Imperial Script"; src: url("../fonts/heirloom/imperial-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* HEIRLOOM (theme key "heirloom", round 44): "old money" stationery, our own design after the 2026 heirloom-suite trend
   (layered paper, wax seals, silk and velvet bows, painted landscapes). Intro: a coloured envelope on a painted landscape,
   closed with a gold laurel wax seal that carries your initials; break the seal and the ivory card rises out of it.
   Cover: the stationery suite laid out on the landscape: your photo as an instant print with a bow, the deckled ivory
   card with your names in script, a torn-paper tag with the date and the seal. Sections: each one its own deckled card
   laid on the coloured table (--table), the gallery as instant prints, the reply card sealed (core/dress.php), the music
   button a vinyl record. Real paper, seal and bows: assets/img/hl (envelope, bow and landscape follow the colourway via
   html[data-pal]). Sage & Ivory (original), Olive, Burgundy, Midnight Navy. Type: Rosarivo (text, headings, italic
   details), Imperial Script (names). */
:root {
  --bg: #f8f5ec; --paper: #fbf8f0; --ink: #2f3a2c; --muted: #6a7363; --line: rgba(47, 58, 44, .16);
  --accent: #5d7150; --accent-ink: #fbf8f0; --name: #34432f; --table: #b7c3a5; --on-table: #2b3627; --gold: #a8833f;
  --display: "Rosarivo", "Iowan Old Style", Georgia, serif; --text: "Rosarivo", Georgia, serif; --script: "Imperial Script", "Snell Roundhand", cursive;
  --radius: 0px; --maxw: 520px;
}
html { background: var(--table); }
body { font-family: var(--text); font-size: 1.04rem; line-height: 1.75; color: var(--ink); background: var(--table); }

/* shared pieces: the backdrop, the bow, the laurel seal with initials */
.hl-bd { position: absolute; inset: 0; display: block; background: var(--table) url("/assets/img/hl/bg-sage.webp") center / cover no-repeat; pointer-events: none; }
.hl-bow { position: absolute; display: block; background: url("/assets/img/hl/bow-sage.webp") center top / contain no-repeat; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .22)); pointer-events: none; }
html[data-pal="hl-olive"] .hl-bd { background-image: url("/assets/img/hl/bg-olive.webp"); }
html[data-pal="hl-olive"] .hl-bow { background-image: url("/assets/img/hl/bow-olive.webp"); }
html[data-pal="hl-wine"] .hl-bd { background-image: url("/assets/img/hl/bg-wine.webp"); }
html[data-pal="hl-wine"] .hl-bow { background-image: url("/assets/img/hl/bow-wine.webp"); }
html[data-pal="hl-navy"] .hl-bd { background-image: url("/assets/img/hl/bg-navy.webp"); }
html[data-pal="hl-navy"] .hl-bow { background-image: url("/assets/img/hl/bow-navy.webp"); }
.hl-seal { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: url("/assets/img/hl/seal.webp") center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.hl-seal b { margin-top: -4%; font: italic 400 1.15rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; color: #5a3f12; text-shadow: 0 1px 0 rgba(255, 236, 190, .55), 0 -1px 0 rgba(70, 45, 10, .35); }
.hl-seal b i { margin: 0 .08em; font-size: .7em; }

/* ---------- intro: the sealed envelope ---------- */
.hl-intro { --intro-ms: 2700; overflow: hidden; background: var(--table); transition: opacity .6s ease 2.1s, visibility 0s linear 2.7s; }
.hl-intro .hl-bd::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 55%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .28)); }
.hl-start { position: relative; display: grid; justify-items: center; align-content: center; gap: 26px; width: 100%; height: 100%; padding: 24px; border: 0; background: none; color: #fff; cursor: pointer; }
/* the envelope, built in layers from one photo (H11): the back with its lining, the card, the front pocket, the flap */
.hl-stage { --w: min(86vw, 380px); position: relative; display: block; width: var(--w); aspect-ratio: 487 / 353; margin-top: 22vh; perspective: 1100px;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .35)); }
.hl-eb, .hl-ef, .hl-flap, .hl-fi, .hl-fo, .hl-card { position: absolute; display: block; }
.hl-eb, .hl-ef { inset: 0; background: url("/assets/img/hl/eb-sage.webp") center / 100% 100% no-repeat; }
.hl-eb { z-index: 1; }
.hl-eb, .hl-ef { transition: translate .8s cubic-bezier(.55, 0, .7, .4) 1.5s, opacity .35s ease 1.9s; }
.hl-ef { z-index: 3; background-image: url("/assets/img/hl/ef-sage.webp"); }
.hl-flap { left: 0; right: 0; bottom: 100%; height: 74.2%; z-index: 4; transform-origin: 50% 100%; transform-style: preserve-3d; transform: rotateX(180deg);
  transition: transform .75s cubic-bezier(.5, 0, .3, 1) .25s, z-index 0s linear .62s, translate .8s cubic-bezier(.55, 0, .7, .4) 1.5s, opacity .35s ease 1.9s; }
.hl-fi, .hl-fo { inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: url("/assets/img/hl/fi-sage.webp") center / 100% 100% no-repeat; }
.hl-fo { transform: rotateX(180deg); background-image: url("/assets/img/hl/fo-sage.webp"); }
html[data-pal="hl-olive"] .hl-eb { background-image: url("/assets/img/hl/eb-olive.webp"); } html[data-pal="hl-olive"] .hl-ef { background-image: url("/assets/img/hl/ef-olive.webp"); }
html[data-pal="hl-olive"] .hl-fi { background-image: url("/assets/img/hl/fi-olive.webp"); } html[data-pal="hl-olive"] .hl-fo { background-image: url("/assets/img/hl/fo-olive.webp"); }
html[data-pal="hl-wine"] .hl-eb { background-image: url("/assets/img/hl/eb-wine.webp"); } html[data-pal="hl-wine"] .hl-ef { background-image: url("/assets/img/hl/ef-wine.webp"); }
html[data-pal="hl-wine"] .hl-fi { background-image: url("/assets/img/hl/fi-wine.webp"); } html[data-pal="hl-wine"] .hl-fo { background-image: url("/assets/img/hl/fo-wine.webp"); }
html[data-pal="hl-navy"] .hl-eb { background-image: url("/assets/img/hl/eb-navy.webp"); } html[data-pal="hl-navy"] .hl-ef { background-image: url("/assets/img/hl/ef-navy.webp"); }
html[data-pal="hl-navy"] .hl-fi { background-image: url("/assets/img/hl/fi-navy.webp"); } html[data-pal="hl-navy"] .hl-fo { background-image: url("/assets/img/hl/fo-navy.webp"); }
.hl-card { left: 5%; right: 5%; top: 4%; height: 92%; z-index: 2; display: grid; align-content: start; justify-items: center; gap: 6px; padding: 9% 8% 0; text-align: center; color: var(--ink);
  background: url("/assets/img/hl/card.webp") center / 100% 100% no-repeat; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1) .8s; }
.hl-card small { font: italic 400 .72rem/1.4 var(--display); color: var(--muted); }
.hl-card > b { font: 400 clamp(1.7rem, 9vw, 2.4rem)/1.1 var(--script); color: var(--name); }
.hl-card > b i { font: italic 400 .5em var(--display); }
.hl-intro .hl-seal { position: absolute; z-index: 5; left: 50%; top: 74.2%; width: 24%; margin: -12% 0 0 -12%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease .12s; }
.hl-intro .hl-seal b { font-size: clamp(.8rem, 4vw, 1.1rem); }
.hl-for { position: relative; font: italic 400 1.3rem/1.3 var(--display); text-shadow: 0 1px 10px rgba(0, 0, 0, .45); } .hl-for b { font-weight: 400; }
.hl-tap { position: relative; font: italic 400 1rem var(--display); letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); animation: hl-pulse 3s ease-in-out infinite; }
@keyframes hl-pulse { 50% { opacity: .55; } }
.is-opening .hl-intro .hl-seal { transform: scale(1.3) rotate(-14deg) translateY(-10px); opacity: 0; }
.is-opening .hl-flap { transform: rotateX(0deg); z-index: 0; }
.is-opening .hl-card { transform: translateY(-74%); }
.is-opening .hl-eb, .is-opening .hl-ef, .is-opening .hl-flap { translate: 0 75vh; opacity: 0; }
.is-opening .hl-tap, .is-opening .hl-for { opacity: 0; animation: none; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { .hl-tap { animation: none; } .hl-eb, .hl-ef, .hl-flap, .hl-card, .hl-intro .hl-seal { transition-duration: .01s !important; transition-delay: 0s !important; } }

/* ---------- cover: the suite on the landscape ---------- */
.t-heirloom .hl-hero { position: relative; display: block; min-height: 100svh; padding: 50px 14px 56px; text-align: center; overflow: hidden; }
.hl-hero .hl-bd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, 0) 40%, color-mix(in srgb, var(--table) 70%, transparent) 88%, var(--table)); }
.hl-suite { position: relative; display: grid; justify-items: center; max-width: 430px; margin: 0 auto; }
.hl-print { position: relative; z-index: 1; width: min(62vw, 250px); padding: 10px 10px 36px; background: #fdfcf8; transform: rotate(-3deg); box-shadow: 0 16px 26px -10px rgba(0, 0, 0, .4); }
.hl-print .hl-bow { left: 50%; top: -34px; width: 76px; height: 104px; margin-left: -38px; z-index: 2; }
.hl-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--table) 60%, #fff); }
.hl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-ph .hero-media-tag { bottom: 8px; font-size: .5rem; }
.hl-main { position: relative; z-index: 2; width: min(90vw, 380px); margin-top: -30px; padding: 46px 30px 42px; background: url("/assets/img/hl/card.webp") center / 100% 100% no-repeat; transform: rotate(.8deg);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .25)); }
.no-media .hl-main { margin-top: 10px; }
.hl-hero .hero-guest { margin: 0 0 10px; font: italic 400 1.1rem/1.3 var(--display); } .hl-hero .hero-guest b { font-weight: 400; }
.hl-hero .hero-k, .t-heirloom .sh-k { margin: 0; font: italic 400 .95rem/1.5 var(--display); letter-spacing: .01em; color: var(--muted); text-wrap: balance; }
.t-heirloom .hero-t { margin: 16px 0 0; font: 400 clamp(2.4rem, min(15vw, calc(105vw / var(--nl, 6))), 3.9rem)/1.02 var(--script); color: var(--name); }
.t-heirloom .hero-t span { display: block; }
.t-heirloom .hero-t i { display: block; margin: 2px 0; font: italic 400 1.15rem/1.2 var(--display); color: var(--gold); }
.hl-hero .hero-line { margin: 16px auto 0; max-width: 18em; font-size: .98rem; color: var(--muted); text-wrap: balance; }
.hl-tag { position: relative; z-index: 3; width: min(80vw, 330px); margin-top: -16px; padding: 24px 24px 24px 86px; text-align: left; color: var(--ink);
  background: url("/assets/img/hl/tag.webp") center / 100% 100% no-repeat; transform: rotate(-2deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .22)); }
.hl-tag .hl-seal { position: absolute; left: 6px; top: 50%; width: 76px; margin-top: -38px; transform: rotate(-8deg); }
.hl-date { margin: 0; font: 400 .9rem/1.45 var(--display); color: var(--muted); }
.hl-date b { font-weight: 400; font-size: 1.12rem; color: var(--ink); }
.hl-where { margin: 6px 0 0; font: italic 400 .9rem/1.4 var(--display); color: var(--ink); }
.t-heirloom .hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 30px; padding: 12px 34px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: italic 400 1.05rem var(--display); letter-spacing: .02em; text-decoration: none; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); }

/* ---------- sections: each one a deckled card on the table ---------- */
.t-heirloom .s:not(.s-hero):not(.s-closing) { position: relative; width: calc(100% - 22px); max-width: 580px; margin: 22px auto; padding: 46px 12px 50px; border: 16px solid transparent;
  border-image: url("/assets/img/hl/card.webp") 40 fill / 16px round; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .16)); }
.t-heirloom .s:not(.s-hero):not(.s-closing):nth-of-type(odd) { transform: rotate(-.5deg); }
.t-heirloom .s:not(.s-hero):not(.s-closing):nth-of-type(even) { transform: rotate(.4deg); }
.t-heirloom .s.s-rsvp { transform: none !important; }
.t-heirloom .s .swipe { margin-inline: -8px; }
.t-heirloom .sh { margin-bottom: 30px; }
.t-heirloom .sh::after { content: "❦"; display: block; margin: 12px auto 0; font: 400 1rem/1 var(--display); color: var(--gold); }
.t-heirloom .sh-t { font: 400 clamp(1.8rem, 8.4vw, 2.4rem)/1.15 var(--display); color: var(--name); }
.t-heirloom .sh-n { font: italic 400 .9rem var(--display); color: var(--gold); }
.t-heirloom .cd-u b { font: 400 clamp(2rem, 9vw, 2.6rem)/1 var(--display); color: var(--name); }
.t-heirloom .cd-u span { font: italic 400 .82rem var(--display); color: var(--muted); }
.t-heirloom .vn-c, .t-heirloom .dr-roles > div, .t-heirloom .rs, .t-heirloom .rs-done, .t-heirloom .gl-c, .t-heirloom .gl-it { border: 1px solid var(--line); border-radius: 0; background: rgba(255, 255, 255, .45); box-shadow: none; }
.t-heirloom .vn-l, .t-heirloom .dr-roles dt, .t-heirloom .bio-r, .t-heirloom .tml-d { font: italic 400 .86rem var(--display); color: var(--accent); }
.t-heirloom .vn-n, .t-heirloom .pp-h, .t-heirloom .tml-t { font: 400 1.3rem/1.3 var(--display); color: var(--ink); }
.t-heirloom .tl-time { color: var(--accent); font: italic 400 .9rem var(--display); }
.t-heirloom .tl-title { font: 400 1.05rem var(--display); }
.t-heirloom .f-in, .t-heirloom .ch span { border-radius: 0; background: rgba(255, 255, 255, .7); border-color: var(--line); }
.t-heirloom .rs-btn, .t-heirloom .gl-btn { border-radius: 0; background: var(--accent); color: var(--accent-ink); font: italic 400 1.02rem var(--display); letter-spacing: .02em; }
.t-heirloom .btn-line { min-height: 46px; border-radius: 0; border-color: var(--line); color: var(--ink); font: italic 400 .98rem var(--display); }
.t-heirloom .btn-line:hover { border-color: var(--ink); }
.t-heirloom .faq summary { font: 400 1.05rem var(--display); }
.t-heirloom .tml::before { background: var(--gold); width: 1px; opacity: .6; }
.t-heirloom .tml-dot { background: var(--paper); border: 1px solid var(--gold); }
/* the gallery: instant prints */
.t-heirloom .gal { gap: 16px 12px; }
.t-heirloom .gal-i { padding: 7px 7px 10px; background: #fdfcf8; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .35); transform: rotate(-1.5deg); }
.t-heirloom .gal-i:nth-child(even) { transform: rotate(1.6deg); }
.t-heirloom .gal-i img, .t-heirloom .gal-ph { border-radius: 0; }
.t-heirloom .gal-i figcaption { margin-top: 8px; font: italic 400 .86rem/1.3 var(--display); color: var(--ink); }
/* the reply card's seal: the gold laurel instead of the drawn one */
.t-heirloom .dz-seal { background: url("/assets/img/hl/seal.webp") center / contain no-repeat; }
.t-heirloom .dz-seal svg { visibility: hidden; }
.t-heirloom .dz-seal b { font-family: var(--display); font-style: italic; color: #6f5220; text-shadow: 0 1px 0 rgba(255, 236, 190, .55); }
/* the music button: a vinyl record that spins while it plays */
.t-heirloom .music { width: 48px; height: 48px; border: 0; color: #fff; background: radial-gradient(circle, var(--accent) 0 21%, #111 22% 24%, #1b1b1b 25%, #2a2a2a 33%, #141414 34%, #262626 46%, #121212 47%, #232323 60%, #101010 70%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.t-heirloom .music::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 12%, rgba(255, 255, 255, .16) 16%, transparent 22% 62%, rgba(255, 255, 255, .1) 66%, transparent 72%); pointer-events: none; }
.t-heirloom .music.is-on { animation: hl-spin 3.2s linear infinite; }
.t-heirloom .music-ic, .t-heirloom .music-eq { transform: scale(.7); }
@keyframes hl-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .t-heirloom .music.is-on { animation: none; } }

/* ---------- closing: back on the table ---------- */
.t-heirloom .hl-end { padding: 70px var(--gutter) 100px; text-align: center; color: var(--on-table); }
.t-heirloom .hl-end > * { margin-left: auto; margin-right: auto; }
.hl-seal.is-end { width: 96px; margin-bottom: 22px; }
.hl-seal.is-end b { font-size: 1.25rem; }
.t-heirloom .hl-end .cl-line { font: italic 400 1.2rem/1.55 var(--display); max-width: 19em; text-wrap: balance; }
.t-heirloom .hl-end .cl-sign { margin-top: 10px; font: 400 2.7rem/1.15 var(--script); }
.t-heirloom .hl-end .cl-tag { font: italic 400 .95rem var(--display); opacity: .8; }
.t-heirloom .hl-end .btn-line { color: var(--on-table); border-color: color-mix(in srgb, var(--on-table) 40%, transparent); }
.t-heirloom body.is-demo .hl-end { padding-bottom: 140px; }

@media (min-width: 860px) {
  .t-heirloom .hl-hero { padding-top: 80px; }
  .hl-print { width: 270px; }
}

/* labels stay in quiet italic, never shouted in capitals */
.t-heirloom .sh-k, .t-heirloom .vn-l, .t-heirloom .tml-d, .t-heirloom .bio-r, .t-heirloom .dr-roles dt, .t-heirloom .cd-u span, .t-heirloom .att-lv, .t-heirloom .att-t,
.t-heirloom .pp-l, .t-heirloom .dz-cap { text-transform: none; letter-spacing: .01em; font-family: var(--display); font-style: italic; }

/* round 44b: the painted landscapes, real bows and vinyl records, a coloured deckled card under the ivory one,
   a strand of pearls, the closing seal resting on a silver tray (our own GPT images, assets/img/hl) */
.hl-main { background: none; filter: none; }
.hl-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/hl/card.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .25)); }
.hl-under { position: absolute; z-index: -2; left: 6%; right: -5%; top: -14px; bottom: 14px; background: url("/assets/img/hl/paper-sage.webp") center / 100% 100% no-repeat; transform: rotate(-4.5deg);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22)); }
.hl-pearls { position: absolute; z-index: 1; left: -14px; bottom: -22px; width: 92px; aspect-ratio: 1; background: url("/assets/img/hl/pearls.webp") center / contain no-repeat; transform: rotate(-20deg);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); pointer-events: none; }
html[data-pal="hl-olive"] .hl-under { background-image: url("/assets/img/hl/paper-olive.webp"); }
html[data-pal="hl-wine"] .hl-under { background-image: url("/assets/img/hl/paper-wine.webp"); }
html[data-pal="hl-navy"] .hl-under { background-image: url("/assets/img/hl/paper-navy.webp"); }
.hl-hero .hl-bd { background-position: center top; }
.t-heirloom .music { background: url("/assets/img/hl/rec-sage.webp") center / 100% 100% no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); border-radius: 50%; }
.t-heirloom .music::after { inset: 2px; }
html[data-pal="hl-wine"].t-heirloom .music, html[data-pal="hl-wine"] .t-heirloom .music { background-image: url("/assets/img/hl/rec-wine.webp"); }
html[data-pal="hl-navy"].t-heirloom .music, html[data-pal="hl-navy"] .t-heirloom .music { background-image: url("/assets/img/hl/rec-navy.webp"); }
.t-heirloom .music-ic, .t-heirloom .music-eq { opacity: 0; }
.t-heirloom .music:not(.is-on)::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -6px 0 0 -3px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.hl-tray { display: grid; place-items: center; width: 150px; aspect-ratio: 1; margin: 0 auto 24px; background: url("/assets/img/hl/tray.webp") center / contain no-repeat; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.hl-tray .hl-seal.is-end { width: 84px; margin: 0; }
.hl-pearls { left: auto; right: -16px; bottom: -34px; width: 84px; transform: rotate(160deg); }
.hl-tap { padding: 6px 16px; border-radius: 99px; background: rgba(20, 16, 10, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hl-pearls { bottom: 4px; right: -18px; }
.t-heirloom .hl-end .cl-sign, .t-heirloom .hl-end .cl-tag, .t-heirloom .hl-end .cl-line { color: var(--on-table); }
.t-heirloom .hl-end .cl-sign { word-spacing: .2em; }
