/* hereby template: lace — Satin & Lace. Draped satin cover with a lace cameo; flat colour bands below.
   Colourway = the --lc-* variables (see the ice-blue override at the end of this file). */
.inv[data-layout="lace"] {
  --lc-satin: #B98A93; --lc-deep: #7A5560; --lc-ink: #523A42; --lc-soft: #8C6C75;
  --lc-lilac: #D6CDD2; --lc-blush: #EED8DA; --lc-ivory: #F7F2EB; --lc-paper: #FBF8F3; --lc-shade: 82, 48, 58;
  --lc-img-satin: url("lace-satin.jpg"); --lc-img-cameo: url("lace-cameo.webp"); --lc-img-tag: url("lace-tag.webp"); --lc-img-pearls: url("lace-pearls.webp"); --lc-img-envelope: url("lace-envelope.jpg");
  --lc-pearl: radial-gradient(circle at 36% 30%, #fff 0 12%, #F6ECEC 34%, #D9C2C6 72%, #B79CA3 100%);
  --lc-bead: radial-gradient(circle closest-side, #fff 0 8%, #F6ECEC 40%, #C9AFB5 92%, transparent 100%); --lc-time: #A26F7B;
  --u: min(1cqw, 0.5svh, 5.2px);
  --inv-ink: var(--lc-paper); --inv-btn: var(--lc-deep); --inv-btn-fg: var(--lc-paper); color: var(--lc-ink);
}

/* ---- Cover: satin, lace cameo, names inside the oval */
.inv[data-layout="lace"] .inv-ill, .inv[data-layout="lace"] .inv-mono, .inv[data-layout="lace"] .inv-photo { display: none; }
.inv[data-layout="lace"] .inv-cover { background: var(--lc-satin); justify-content: flex-start; gap: calc(var(--u) * 2); padding: calc(var(--u) * 17) 7% calc(var(--u) * 8); }
.inv[data-layout="lace"] .inv-frame { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--lc-shade), 0.34) 0%, rgba(var(--lc-shade), 0) 24%, rgba(var(--lc-shade), 0) 66%, rgba(var(--lc-shade), 0.5) 100%), var(--lc-img-satin) center / cover no-repeat; pointer-events: none; }
.inv[data-layout="lace"] .inv-deco.d1 { display: block; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 90); height: calc(var(--u) * 112.5); transform: translate(-50%, -52%); background: var(--lc-img-cameo) center / contain no-repeat; filter: drop-shadow(0 calc(var(--u) * 2) calc(var(--u) * 3.5) rgba(var(--lc-shade), 0.45)); pointer-events: none; }
.inv[data-layout="lace"] .inv-covertop { display: contents; }
.inv[data-layout="lace"] .inv-kicker, .inv[data-layout="lace"] .inv-big, .inv[data-layout="lace"] .inv-venue { display: block; }
.inv[data-layout="lace"] .inv-kicker, .inv[data-layout="lace"] .inv-names, .inv[data-layout="lace"] .inv-big { position: absolute; left: 50%; color: var(--lc-ink); white-space: nowrap; }
.inv[data-layout="lace"] .inv-kicker { top: calc(50% - var(--u) * 25.5); transform: translate(-50%, -50%); font-size: calc(var(--u) * 2.4); font-weight: 600; letter-spacing: 0.22em; margin-right: -0.22em; }
.inv[data-layout="lace"] .inv-names { top: calc(50% - var(--u) * 2.2); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 0; font-family: var(--hand); font-size: calc(var(--u) * 13.5); line-height: 0.98; }
.inv[data-layout="lace"] .inv-names span:first-child { transform: translateX(-11%); }
.inv[data-layout="lace"] .inv-names span:last-child { transform: translateX(11%); }
.inv[data-layout="lace"] .inv-names em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; padding: 0; font-size: 1.7em; line-height: 1; color: rgba(var(--lc-shade), 0.22); }
.inv[data-layout="lace"] .inv-big { top: calc(50% + var(--u) * 24); transform: translate(-50%, -50%); font-size: calc(var(--u) * 3.3); font-weight: 600; letter-spacing: 0.26em; font-variant-numeric: lining-nums; padding-top: calc(var(--u) * 3.6); background: var(--lc-bead) center top / calc(var(--u) * 2) calc(var(--u) * 2) no-repeat; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-kicker { font-size: calc(var(--u) * 3.3); font-weight: 500; letter-spacing: 0.5em; margin-right: -0.5em; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-names { font-family: var(--serif); font-weight: 500; font-size: calc(var(--u) * 10); letter-spacing: 0.22em; line-height: 1.22; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-names span { transform: none; margin-right: -0.22em; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-cover .inv-names em { position: static; transform: none; z-index: auto; font-family: var(--serif); font-size: 0.42em; letter-spacing: 0; line-height: 1.5; color: var(--lc-soft); }
.inv[data-layout="lace"] .inv-to, .inv[data-layout="lace"] .inv-cover .i-date { position: relative; }
.inv[data-layout="lace"] .inv-cover .inv-venue { color: var(--lc-paper); }
.inv[data-layout="lace"] .inv-to { order: 0; font-size: calc(var(--u) * 5.6); text-shadow: 0 1px 10px rgba(var(--lc-shade), 0.7); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-to { font-size: calc(var(--u) * 5); }
.inv[data-layout="lace"] .inv-cover .i-date { order: 5; margin-top: auto; font-size: calc(var(--u) * 3.5); font-weight: 600; letter-spacing: 0.22em; text-shadow: 0 1px 8px rgba(var(--lc-shade), 0.8); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-cover .i-date { font-size: calc(var(--u) * 3.8); font-weight: 500; letter-spacing: 0.16em; }
.inv[data-layout="lace"] .inv-venue { order: 6; font-size: calc(var(--u) * 3); letter-spacing: 0.24em; text-shadow: 0 1px 8px rgba(var(--lc-shade), 0.8); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-venue { font-size: calc(var(--u) * 3.5); }
.inv[data-layout="lace"] .inv-open { min-height: calc(var(--u) * 12.5); padding: 0 calc(var(--u) * 9); margin-top: calc(var(--u) * 2.5); border-radius: 999px; background: var(--lc-paper); color: var(--lc-ink); font-size: calc(var(--u) * 3.3); letter-spacing: 0.26em; box-shadow: 0 0 0 0 rgba(251, 248, 243, 0.55); animation-name: lace-pulse; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-open { font-size: calc(var(--u) * 4.2); }
@keyframes lace-pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 248, 243, 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(251, 248, 243, 0); } }
.inv[data-layout="lace"] .inv-skip { background: rgba(var(--lc-shade), 0.28); }

/* ---- Body: flat bands, edge to edge */
.inv[data-layout="lace"] .inv-body { background: var(--lc-lilac); color: var(--lc-ink); }
.inv[data-layout="lace"] .inv-col { padding: 0; gap: 0; background: var(--lc-ivory); overflow: hidden; }
.inv[data-layout="lace"] .inv-sec { position: relative; padding: 58px 30px 64px; gap: 18px; }
.inv[data-layout="lace"] [data-sec="names"], .inv[data-layout="lace"] [data-sec="rsvp"] { background: var(--lc-lilac); }
.inv[data-layout="lace"] [data-sec="date"], .inv[data-layout="lace"] [data-sec="details"] { background: var(--lc-blush); }
.inv[data-layout="lace"] [data-sec="order"] { background: var(--lc-ivory); }
/* top bar: a strip of the cover satin, trimmed with a lace scallop */
.inv[data-layout="lace"] .inv-top { position: relative; padding: 12px 18px 40px; background: linear-gradient(rgba(var(--lc-shade), 0.5), rgba(var(--lc-shade), 0.3)), var(--lc-img-satin) center 30% / cover var(--lc-satin); }
.inv[data-layout="lace"] .inv-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 24px; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--lc-lilac) 0 10px, transparent 10.6px) center bottom / 22px 11px repeat-x, radial-gradient(circle at 50% 100%, transparent 0 12.4px, rgba(255, 255, 255, 0.9) 13px 14.6px, transparent 15.2px) center bottom / 22px 16px repeat-x, radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1.1px, transparent 1.6px) center top / 5.5px 5px repeat-x; }
.inv[data-layout="lace"] .inv-top .inv-back { color: var(--lc-paper); text-shadow: 0 1px 6px rgba(var(--lc-shade), 0.6); }
.inv[data-layout="lace"] .inv-lang { border-color: var(--lc-paper); background: rgba(var(--lc-shade), 0.25); }
.inv[data-layout="lace"] .inv-lang button { color: var(--lc-paper); }
.inv[data-layout="lace"] .inv-lang button[aria-pressed="true"] { background: var(--lc-paper); color: var(--lc-ink); }

/* type: copperplate headings, pearls beneath, small caps for everything small */
.inv[data-layout="lace"] .inv-sec h2 { padding: 0; background: none; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 9cqw, 38px); line-height: 1.15; color: var(--lc-ink); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: 0.3em; margin-right: -0.3em; line-height: 1.5; }
.inv[data-layout="lace"] .inv-sec h2::after { content: ""; display: block; width: 64px; height: 14px; margin: 14px auto 0; background: var(--lc-bead) 0 50% / 8px 8px no-repeat, var(--lc-bead) 50% 50% / 14px 14px no-repeat, var(--lc-bead) 100% 50% / 8px 8px no-repeat; filter: drop-shadow(0 1px 1px rgba(var(--lc-shade), 0.35)); }
.inv[data-layout="lace"] .i-label { font-size: 12px; letter-spacing: 0.3em; color: var(--lc-ink); }
.inv[lang="zh-Hant"][data-layout="lace"] .i-label { font-size: 14px; }
.inv[data-layout="lace"] .inv-lead { font-size: 21px; color: var(--lc-ink); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-lead { font-size: 18px; }

/* buttons: thin pills */
.inv[data-layout="lace"] .inv-btn { min-height: 50px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.24em; }
.inv[data-layout="lace"] .inv-btn.line, .inv[data-layout="lace"] .inv-btn[aria-pressed="false"] { background: transparent; color: var(--lc-ink); border: 1px solid var(--lc-ink); font-style: normal; font-weight: 600; text-transform: uppercase; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-btn { font-size: 16px; font-weight: 500; }

/* names: grey-lilac */
.inv[data-layout="lace"] [data-sec="names"] .inv-btn { font-size: 11.5px; letter-spacing: 0.16em; padding: 0 6px; white-space: nowrap; }
.inv[lang="zh-Hant"][data-layout="lace"] [data-sec="names"] .inv-btn { font-size: 16px; letter-spacing: 0.24em; }
.inv[data-layout="lace"] [data-sec="names"] { padding-top: 34px; }
.inv[data-layout="lace"] .inv-hello { font-size: clamp(50px, 15.5cqw, 72px); line-height: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 0; padding: 6px 0; }
.inv[data-layout="lace"] .inv-hello span:first-child { transform: translateX(-12%); }
.inv[data-layout="lace"] .inv-hello span:last-child { transform: translateX(12%); }
.inv[data-layout="lace"] .inv-hello em { font-family: var(--serif); font-style: italic; font-size: 0.34em; line-height: 1.1; color: var(--lc-soft); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-hello { font-size: 38px; letter-spacing: 0.24em; line-height: 1.3; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-hello span { transform: none; margin-right: -0.24em; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-hello em { font-style: normal; font-size: 0.45em; letter-spacing: 0; line-height: 1.7; }
.inv[data-layout="lace"] .inv-when { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 7.2cqw, 30px); line-height: 1.2; color: var(--lc-deep); margin-top: 4px; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-when { font-family: var(--serif); font-size: 21px; letter-spacing: 0.12em; }
.inv[data-layout="lace"] .inv-count { gap: 10px; max-width: 330px; margin: 10px 0 6px; }
.inv[data-layout="lace"] .inv-count div { border: none; background: radial-gradient(circle at 34% 26%, #fff 0 8%, #FBF4F3 30%, #EBDCDD 68%, #CDB5BA 100%); box-shadow: 0 5px 10px -4px rgba(var(--lc-shade), 0.45), inset 0 -4px 8px rgba(var(--lc-shade), 0.1); }
.inv[data-layout="lace"] .inv-count b { font-size: 25px; font-weight: 500; color: var(--lc-ink); }
.inv[data-layout="lace"] .inv-count span { font-size: 10px; letter-spacing: 0.16em; color: var(--lc-ink); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-count span { font-size: 13px; letter-spacing: 0; }

/* date: blush, the month on a lace-trimmed card */
.inv[data-layout="lace"] .inv-cal { position: relative; max-width: 310px; margin: 18px 0 20px; padding: 14px 18px 12px; background: var(--lc-paper); gap: 6px; filter: drop-shadow(0 6px 10px rgba(var(--lc-shade), 0.16)); }
.inv[data-layout="lace"] .inv-cal::before, .inv[data-layout="lace"] .inv-cal::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: radial-gradient(circle at 50% 0, var(--lc-paper) 0 8.4px, transparent 9px) center top / 20px 9px repeat-x; }
.inv[data-layout="lace"] .inv-cal::after { top: 100%; margin-top: -0.5px; }
.inv[data-layout="lace"] .inv-cal::before { bottom: 100%; margin-bottom: -0.5px; transform: scaleY(-1); }
.inv[data-layout="lace"] .inv-cal-m { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--lc-deep); padding-bottom: 8px; background: radial-gradient(circle, var(--lc-satin) 0 1px, transparent 1.4px) center bottom / 6px 3px repeat-x; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-cal-m { font-family: var(--serif); font-size: 19px; letter-spacing: 0.24em; line-height: 1.8; }
.inv[data-layout="lace"] .inv-cal-g b { color: var(--lc-deep); opacity: 1; }
.inv[data-layout="lace"] .inv-cal-g .on { color: var(--lc-paper); background: radial-gradient(circle closest-side, var(--lc-satin) 0, var(--lc-deep) 96%, transparent 100%) center / 88% 88% no-repeat; }

/* order of the day: ivory, copperplate hours, pearls falling down the margins */
.inv[data-layout="lace"] [data-sec="order"]::before, .inv[data-layout="lace"] [data-sec="order"]::after, .inv[data-layout="lace"] [data-sec="details"]::after { content: ""; position: absolute; width: 74px; aspect-ratio: 2 / 3; background: var(--lc-img-pearls) center / contain no-repeat; filter: drop-shadow(0 3px 3px rgba(var(--lc-shade), 0.3)); pointer-events: none; }
.inv[data-layout="lace"] [data-sec="order"]::before { left: 4px; top: 150px; width: 58px; }
.inv[data-layout="lace"] [data-sec="order"]::after { right: 6px; bottom: 120px; width: 62px; transform: scaleX(-1) rotate(8deg); }
.inv[data-layout="lace"] .inv-order { text-align: center; max-width: 250px; }
.inv[data-layout="lace"] .inv-order li { flex-direction: column; align-items: center; gap: 2px; border: none; padding: 12px 0; }
.inv[data-layout="lace"] .inv-order li:last-child { border: none; }
.inv[data-layout="lace"] .inv-order time { width: auto; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: 0.04em; font-variant-numeric: lining-nums; color: var(--lc-time); }
.inv[data-layout="lace"] .inv-order strong { font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--lc-ink); }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-order strong { font-size: 18px; font-weight: 500; letter-spacing: 0.3em; margin-right: -0.3em; }
.inv[data-layout="lace"] .inv-order span { font-style: italic; font-size: 17px; color: var(--lc-deep); padding-top: 2px; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-order span { font-style: normal; font-size: 15px; }

/* details: blush, a pearl between each note */
.inv[data-layout="lace"] .inv-cards { max-width: 300px; }
.inv[data-layout="lace"] .inv-card { border: none; padding: 16px 0 6px; gap: 6px; }
.inv[data-layout="lace"] .inv-card:last-child { border: none; }
.inv[data-layout="lace"] .inv-card + .inv-card::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-bottom: 18px; background: var(--lc-pearl); box-shadow: 0 2px 3px rgba(var(--lc-shade), 0.35); }
.inv[data-layout="lace"] .inv-card h3 { color: var(--lc-ink); font-size: 13px; letter-spacing: 0.3em; margin-right: -0.3em; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-card h3 { font-size: 17px; }
.inv[data-layout="lace"] .inv-card p { color: var(--lc-ink); }
.inv[data-layout="lace"] .inv-sw { gap: 10px; padding-top: 12px; }
.inv[data-layout="lace"] .inv-sw i { width: 34px; height: 34px; border: 2px solid var(--lc-paper); box-shadow: 0 3px 6px -2px rgba(var(--lc-shade), 0.5); }
.inv[data-layout="lace"] [data-sec="details"]::after { right: 10px; top: 26px; width: 50px; transform: rotate(-14deg); }

/* rsvp: grey-lilac, a paper tag on its string, the form on a sheet of paper */
.inv[data-layout="lace"] [data-sec="rsvp"] { padding-left: 20px; padding-right: 20px; }
.inv[data-layout="lace"] [data-sec="rsvp"] .inv-orn { display: block; position: relative; width: 210px; aspect-ratio: 3 / 2; margin: -22px 0 -30px 34px; background: var(--lc-img-tag) center / contain no-repeat; filter: drop-shadow(0 6px 6px rgba(var(--lc-shade), 0.28)); }
.inv[data-layout="lace"] [data-sec="rsvp"] .inv-orn::after { content: "R · S · V · P"; position: absolute; left: 40.5%; top: 55%; transform: translate(-50%, -50%) rotate(-8deg); font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: 0.22em; white-space: nowrap; color: var(--lc-deep); }
.inv[data-layout="lace"] .inv-form { margin-top: 12px; padding: 26px 20px 24px; background: var(--lc-paper); border-radius: 3px; box-shadow: 0 10px 22px -12px rgba(var(--lc-shade), 0.55), inset 0 0 0 5px var(--lc-paper), inset 0 0 0 6px rgba(var(--lc-shade), 0.16); gap: 18px; }
.inv[data-layout="lace"] .inv-field label, .inv[data-layout="lace"] .inv-checks legend { color: var(--lc-deep); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.inv[lang="zh-Hant"][data-layout="lace"] .inv-field label, .inv[lang="zh-Hant"][data-layout="lace"] .inv-checks legend { font-size: 15px; font-weight: 500; }
.inv[data-layout="lace"] .inv-field input, .inv[data-layout="lace"] .inv-field select, .inv[data-layout="lace"] .inv-field textarea { color: var(--lc-ink); border-color: var(--lc-soft); font-size: 19px; }
.inv[data-layout="lace"] .inv-field textarea { border-radius: 12px; background: #fff; border-color: rgba(var(--lc-shade), 0.35); }
.inv[data-layout="lace"] .inv-field input:focus-visible, .inv[data-layout="lace"] .inv-field select:focus-visible, .inv[data-layout="lace"] .inv-field textarea:focus-visible { outline: 2px solid var(--lc-deep); outline-offset: 2px; }
.inv[data-layout="lace"] .inv-checks label { font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--lc-ink); border-color: var(--lc-soft); padding: 0 14px; }
.inv[data-layout="lace"] .inv-checks input { accent-color: var(--lc-deep); }
.inv[data-layout="lace"] .inv-err { color: #8E2F3F; }
.inv[data-layout="lace"] .inv-thanks { margin-top: 12px; padding: 34px 24px 26px; background: var(--lc-paper); border: none; border-radius: 3px; box-shadow: 0 10px 22px -12px rgba(var(--lc-shade), 0.55), inset 0 0 0 5px var(--lc-paper), inset 0 0 0 6px rgba(var(--lc-shade), 0.16); }
.inv[data-layout="lace"] .inv-thanks h2::after { display: none; }
.inv[data-layout="lace"] .inv-thanks .inv-back { color: var(--lc-deep); }

/* closing: share, then the envelope and its wax seal */
.inv[data-layout="lace"] .inv-share { width: auto; margin: 34px 30px 0; }
.inv[data-layout="lace"] .inv-made { aspect-ratio: 5 / 4; padding: 30px 20px 0; color: var(--lc-deep); background: linear-gradient(var(--lc-ivory), rgba(247, 242, 235, 0) 16%), var(--lc-img-envelope) center bottom / cover no-repeat var(--lc-ivory); }
.inv[data-layout="lace"] .inv-made a { display: block; color: var(--lc-ink); font-size: 46px; line-height: 1.1; }

/* ---- Ice-blue colourway: set data-theme="lace-ice" (or copy this block) and supply lace-ice-*.{jpg,webp} art */
.inv[data-layout="lace"][data-theme="lace-ice"] {
  --lc-satin: #9FB6CC; --lc-deep: #4F647A; --lc-ink: #36465A; --lc-soft: #6C7F93;
  --lc-lilac: #CFD5DA; --lc-blush: #D8E3EC; --lc-ivory: #F5F4F0; --lc-paper: #FAFAF7; --lc-shade: 40, 58, 80;
  --lc-pearl: radial-gradient(circle at 36% 30%, #fff 0 12%, #EEF3F6 34%, #C3D0DB 72%, #9CAEBE 100%); --lc-bead: radial-gradient(circle closest-side, #fff 0 8%, #EEF3F6 40%, #AFC0CE 92%, transparent 100%); --lc-time: #6F8CA8;
  --lc-img-satin: url("lace-ice-satin.jpg"); --lc-img-envelope: url("lace-ice-envelope.jpg");
}

.inv[lang="zh-Hant"][data-layout="lace"] .inv-sec h2, .inv[lang="zh-Hant"][data-layout="lace"] .inv-when, .inv[lang="zh-Hant"][data-layout="lace"] .inv-cal-m { font-style: normal; }
