@font-face { font-family: "Allura"; src: url("../fonts/pearl/allura-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lustria"; src: url("../fonts/pearl/lustria-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Questrial"; src: url("../fonts/pearl/questrial-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* PEARL (theme key "pearl"): soft satin and pearls. Intro: a satin jewellery box with a pearl clasp; tap and the lid opens
   on a ring of pearls around the monogram. Cover: pearl strands draped across the top, the couple's photo in a
   pearl-framed oval, names in a flowing script. Sections are satin panels joined by pearl swags; a photo the couple puts
   on a section sits in a pearl-framed oval above its heading, and the love story hangs on a strand of pearls.
   Pearls are drawn once as SVG (assets/img/pearl). Type: Allura (names, titles) · Lustria (headings) · Questrial (reading). */
:root {
  --bg: #f7f1ea; --paper: #fffcf8; --satin: #efe4d8; --satin-2: #fbf6f0; --ink: #3b2f2a; --muted: #85766c; --line: rgba(59, 47, 42, .14);
  --accent: #b08d6e; --accent-deep: #8f6b4f; --accent-ink: #ffffff; --rose: #c9a48d;   /* accent-deep: small accent text, buttons with white text */
  --script: "Allura", "Great Vibes", cursive; --display: "Lustria", Georgia, serif; --text: "Questrial", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px; --maxw: 520px;
  --sheen: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .55) 38%, transparent 52%, rgba(255, 255, 255, .3) 70%, transparent 84%);
}
body { font-family: var(--text); line-height: 1.7; color: var(--ink); background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--sheen), radial-gradient(120% 60% at 50% 0%, var(--satin-2), var(--bg) 60%); opacity: .9; }

/* ---------- intro: the jewellery box ---------- */
.pl-intro { --intro-ms: 2600; overflow: hidden; background: var(--sheen), radial-gradient(110% 70% at 50% 30%, var(--satin-2), var(--satin) 70%); transition: opacity .7s ease 1.9s, visibility 0s linear 2.6s; }
.pl-start { display: grid; justify-items: center; gap: 28px; padding: 20px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.pl-for { font: 400 2.4rem/1 var(--script); color: var(--accent); } .pl-for b { font-weight: 400; color: var(--ink); }
.pl-box { position: relative; width: min(66vw, 260px); aspect-ratio: 1.05; perspective: 900px; margin-top: 40px; }
.pl-base { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; border-radius: 18px;
  background: var(--sheen), linear-gradient(160deg, color-mix(in srgb, var(--accent) 35%, var(--satin)), color-mix(in srgb, var(--accent) 60%, var(--ink) 10%)); box-shadow: 0 30px 40px -24px rgba(60, 40, 30, .6); }
.pl-cushion { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; background: var(--sheen), radial-gradient(70% 60% at 50% 45%, #fffdf9, var(--satin) 90%); box-shadow: inset 0 4px 14px rgba(80, 50, 30, .25); }
.pl-ring { position: absolute; width: 74%; aspect-ratio: .8; background: url("../img/pearl/ring.svg") center / contain no-repeat; }
.pl-mono { position: relative; font: 400 2.6rem/1 var(--script); color: var(--accent); padding: 0 .15em; }
.pl-mono i { font-style: normal; font-size: .6em; margin: 0 .05em; }
.pl-lid { position: absolute; inset: -4px -4px 18% -4px; z-index: 3; transform-origin: 50% 0; border-radius: 20px 20px 10px 10px;
  background: var(--sheen), linear-gradient(170deg, color-mix(in srgb, var(--accent) 22%, var(--satin-2)), color-mix(in srgb, var(--accent) 48%, var(--satin))); box-shadow: 0 10px 14px -6px rgba(60, 40, 30, .45), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform 1.1s cubic-bezier(.4, 0, .2, 1) .1s, opacity .4s ease .75s; }
.pl-lid-in { position: absolute; inset: 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .45); }
.pl-clasp { position: absolute; left: 50%; bottom: -12px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: url("../img/pearl/one.svg") center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(60, 40, 30, .4)); animation: pl-glint 2.6s ease-in-out infinite; }
@keyframes pl-glint { 50% { transform: scale(1.12); } }
.pl-tap { font: 400 .74rem var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); animation: pl-fade 2.6s ease-in-out infinite; }
@keyframes pl-fade { 50% { opacity: .4; } }
.is-opening .pl-lid { transform: rotateX(-115deg); opacity: 0; }
.is-opening .pl-clasp { animation: none; }
.is-opening .pl-ring { animation: pl-shine 1.4s ease .7s both; }
@keyframes pl-shine { from { filter: brightness(1); transform: scale(.94); } 50% { filter: brightness(1.15); } to { filter: brightness(1); transform: scale(1.04); } }
.is-opening .pl-tap, .is-opening .pl-for { opacity: 0; transition: opacity .3s; animation: none; }
@media (prefers-reduced-motion: reduce) { .pl-clasp, .pl-tap { animation: none; } .is-opening .pl-ring { animation: none; } }

/* ---------- cover ---------- */
.t-pearl .pl-hero { position: relative; display: block; min-height: 100svh; padding: 120px var(--gutter) 70px; text-align: center; overflow: hidden; }
.pl-drape { position: absolute; left: 0; right: 0; top: -6px; height: 140px; pointer-events: none;
  background: url("../img/pearl/swag.svg") -40px 0 / 240px 72px repeat-x, url("../img/pearl/swag.svg") 80px 10px / 300px 90px repeat-x; }
.pl-hero .hero-guest { margin: 0 0 14px; font: 400 2.1rem/1 var(--script); color: var(--accent); } .pl-hero .hero-guest b { font-weight: 400; color: var(--ink); }
.pl-oval { position: relative; display: block; width: min(62vw, 250px); aspect-ratio: .8; margin: 0 auto 26px; }
.pl-oval::after { content: ""; position: absolute; inset: -5%; z-index: 2; pointer-events: none; background: url("../img/pearl/ring.svg") center / 100% 100% no-repeat; }
.pl-ph { position: absolute; inset: 3%; overflow: hidden; border-radius: 50%; background: var(--satin); }
.pl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-ph .ph-slot { border-radius: 50%; }
.pl-oval.is-mono { display: grid; place-items: center; }
.pl-oval.is-mono::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: var(--sheen), radial-gradient(70% 60% at 50% 40%, var(--paper), var(--satin)); }
.pl-oval.is-mono b { position: relative; font: 400 4.4rem/1 var(--script); color: var(--accent); font-weight: 400; }
.pl-oval.is-mono b i { font-style: normal; font-size: .55em; }
.pl-hero .hero-media-tag { bottom: 22%; font-size: .56rem; }
.pl-hero .hero-k, .t-pearl .sh-k { margin: 0; font: 400 .7rem var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.t-pearl .hero-t { margin: 10px 0 0; font: 400 clamp(3.6rem, 18vw, 5.4rem)/1.05 var(--script); color: var(--ink); padding: 0 .15em; }
.t-pearl .hero-t span { display: block; font-size: calc(1em * var(--fit, 1)); }
.t-pearl .hero-t i { display: block; margin: -.12em 0; font: 400 .42em/1.3 var(--display); color: var(--accent); }
.pl-hero .hero-line { margin: 14px auto 0; max-width: 20em; color: var(--muted); }
.pl-when { display: grid; gap: 4px; margin: 20px 0 0; }
.pl-when span:first-child { font: 400 1.2rem var(--display); }
.pl-when span:last-child { color: var(--muted); font-size: .95rem; }
.t-pearl .hero-cta, .t-pearl .rs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 24px; padding: 12px 40px; border-radius: 999px;
  background: var(--sheen), linear-gradient(170deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); font: 400 .78rem var(--text); letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--accent) 80%, #000), inset 0 1px 0 rgba(255, 255, 255, .45); }

/* ---------- sections: satin panels joined by pearl swags ---------- */
.t-pearl .s:not(.s-hero) { position: relative; width: calc(100% - 24px); max-width: 600px; margin: 0 auto 64px; padding: 70px 22px 56px; border-radius: var(--radius);
  background: var(--sheen), linear-gradient(180deg, var(--paper), var(--satin-2)); box-shadow: 0 24px 40px -30px rgba(80, 55, 40, .45), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.t-pearl .s:not(.s-hero)::before { content: ""; position: absolute; left: 10px; right: 10px; top: -8px; height: 60px; pointer-events: none; background: url("../img/pearl/swag.svg") center 0 / 200px 60px repeat-x; opacity: .95; }
.t-pearl .sh { margin-bottom: 30px; }
.t-pearl .sh-t { margin-top: 2px; font: 400 clamp(2.8rem, 14vw, 3.6rem)/1.1 var(--script); color: var(--ink); padding: 0 .1em; }
.t-pearl .sh::after { content: ""; display: block; width: 14px; height: 14px; margin: 10px auto 0; background: url("../img/pearl/one.svg") center / contain no-repeat; }
.t-pearl .story-body { text-align: center; }
/* a photo on a section: in a pearl-framed oval above the heading */
.t-pearl .has-sp > .sp { position: relative; width: min(56vw, 220px); aspect-ratio: .8; margin: 0 auto 24px; }
.t-pearl .has-sp > .sp::after { content: ""; position: absolute; inset: -5%; pointer-events: none; background: url("../img/pearl/ring.svg") center / 100% 100% no-repeat; }
.t-pearl .sp-img { position: absolute; inset: 3%; width: 94%; height: 94%; object-fit: cover; border-radius: 50%; }
.t-pearl .sp-tag, .t-pearl .tml-tag { position: absolute; z-index: 3; right: auto; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(59, 47, 42, .6); color: #fff; font: 400 .56rem var(--text); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.t-pearl .has-sp > .sp-tag { top: 76px; }
.t-pearl .cd-u b { font: 400 clamp(2.2rem, 11vw, 2.9rem)/1 var(--display); }
.t-pearl .cd-u span { letter-spacing: .2em; }
.t-pearl .btn-line { min-height: 46px; border-color: color-mix(in srgb, var(--accent) 70%, transparent); color: var(--ink); font: 400 .72rem var(--text); letter-spacing: .2em; text-transform: uppercase; }
.t-pearl .btn-line:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.t-pearl .tl-time { color: var(--accent); font-family: var(--display); }
.t-pearl .tl-title { font-weight: 400; font-family: var(--display); }
.t-pearl .vn-c { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--paper); border-radius: 18px; }
.t-pearl .vn-l { color: var(--muted); }
.t-pearl .vn-n { font: 400 2.4rem/1.1 var(--script); }
.t-pearl .pp-h { font: 400 2.2rem/1.1 var(--script); }
.t-pearl .dr-text { font: 400 1.3rem var(--display); }
.t-pearl .sw-dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px color-mix(in srgb, var(--accent) 50%, transparent); }
.t-pearl .rs { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--paper); border-radius: 18px; }
.t-pearl .rs-btn { width: 100%; margin-top: 4px; }
.t-pearl .f-in, .t-pearl .ch span { border-radius: 12px; background: var(--satin-2); }
.t-pearl .faq summary { font-family: var(--display); font-weight: 400; }
.t-pearl .gal-i img, .t-pearl .gal-ph { border-radius: 999px 999px 18px 18px; }
.t-pearl .gal-i figcaption { font: 400 1.5rem var(--script); color: var(--accent); }

/* the love story hangs on a strand of pearls */
.t-pearl .tml { padding-left: 34px; }
.t-pearl .tml::before { left: 8px; width: 10px; background: url("../img/pearl/one.svg") 50% 0 / 9px 10px repeat-y; }
.t-pearl .tml-dot { left: -32px; top: 2px; width: 18px; height: 18px; background: url("../img/pearl/one.svg") center / contain no-repeat; box-shadow: none; border-radius: 50%; }
.t-pearl .tml-d, .t-pearl .tl-time, .t-pearl .bio-r, .t-pearl .dr-roles dt { color: var(--accent-deep); }
.t-pearl .gl-btn { background: var(--accent-deep); }
.t-pearl .tml-t { font: 400 2.1rem/1.1 var(--script); }
.t-pearl .tml-b { position: relative; }
.t-pearl .tml-img { width: 62%; max-width: 220px; aspect-ratio: .8; border-radius: 50%; margin: 16px 0 4px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent), 0 14px 24px -14px rgba(80, 55, 40, .6); }
.t-pearl .tml-b > .tml-tag { top: auto; left: 31%; bottom: 30px; }

/* ---------- closing ---------- */
.t-pearl .pl-end { text-align: center; padding-bottom: 70px; }
.pl-drop { display: block; width: 2px; height: 60px; margin: -10px auto 0; background: linear-gradient(var(--line), color-mix(in srgb, var(--accent) 60%, transparent)); position: relative; }
.pl-drop::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 24px; height: 24px; margin-left: -12px; background: url("../img/pearl/one.svg") center / contain no-repeat; }
.t-pearl .cl-line { margin-top: 34px; font: 400 1.4rem/1.45 var(--display); }
.t-pearl .cl-sign { font: 400 2.8rem/1 var(--script); color: var(--accent); }
.t-pearl .cl-tag { letter-spacing: .14em; }
.t-pearl .inv .pl-end, .t-pearl body.is-demo .inv .pl-end { margin-bottom: 120px; }

.t-pearl .tml-b { position: relative; }
