/* TheWedInvites home: twilight garden. A lavender dusk fading to peach, a palm's shadow, white
   blooms and candles in the corners, the Sunset Aisle design in a soft arch, plum ink in a
   high-contrast italic serif, and rose petals drifting behind it all. Loaded after store.css:
   the tokens below re-colour the designs viewer, builder and FAQ to match. */
:root {
  --velvet: #3a2342;
  --velvet-2: #47294f;
  --velvet-3: #5c3766;
  --ink: #36203e;
  --mist: #fbeee6;
  --mist-2: #f7e4dc;
  --paper: #fffaf6;
  --brass: #c39a62;
  --brass-2: #dcbb8a;
  --seal: #a8435f;
  --muted: #65506b;
  --muted-d: #d9c4d6;
  --on-dark: #fbf0ea;
  --line: rgba(54, 32, 62, .16);
  --line-d: rgba(251, 240, 234, .18);
  --display: "Bodoni Moda", "Noto Serif TC", "Noto Serif KR", serif;
  --sans: "Cormorant Garamond", "Noto Serif TC", "Noto Serif KR", serif;
  --script: "Great Vibes", cursive;
  --soft: #5e4a63;
  --rose-ink: #6b2f4c;
  --top-h: 64px;
}
body { font-size: clamp(1.1rem, 1.04rem + .25vw, 1.22rem); font-weight: 500; }
::selection { background: rgba(54, 32, 62, .85); color: #fbe0c9; }
html { scrollbar-color: #a48aa8 var(--mist); }
h2 { font-style: italic; letter-spacing: -.015em; }
.sec-head p { color: var(--muted); font-size: 1.2rem; }
.how-list p, .lang-copy p { color: #e6d6e2; }
.btn-brass, .btn-ink, .btn-line, .btn-line-ink { border-radius: 14px; font-size: 1.08rem; }
input, select, textarea { font-weight: 500; }

/* ------------------------------------------------------------ top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 1.6rem; padding: 0 clamp(20px, 2.6vw, 44px); color: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .55); transition: background-color .35s, box-shadow .35s; }
.bar.is-scrolled { background: rgba(236, 216, 230, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -24px rgba(54, 32, 62, .5); }
.bar-brand { font-family: "Bodoni Moda", serif; font-style: italic; font-size: 1.7rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.bar-nav { display: flex; gap: clamp(1.1rem, 2.4vw, 2.6rem); margin-inline: auto; }
.bar-nav a { font-size: 1.12rem; text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar-nav a:hover { border-bottom-color: currentColor; }
.bar-lang select { appearance: none; min-height: 40px; padding: 0 1.9rem 0 .9rem; border: 1px solid rgba(54, 32, 62, .3); border-radius: 99px; background: rgba(255, 250, 246, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2336203e' stroke-width='1.3'/%3E%3C/svg%3E") right .8rem center / 10px no-repeat; font-size: 1rem; cursor: pointer; }
.bar-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.3rem; border-radius: 99px; background: rgba(255, 250, 246, .88); color: var(--ink); font-size: 1.1rem; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px -10px rgba(54, 32, 62, .35); transition: background-color .2s; }
.bar-cta:hover { background: #fff; }
.bar a:focus-visible, .bar select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ------------------------------------------------------------ dusk hero */
.dusk { position: relative; overflow: hidden; padding: calc(var(--top-h) + 34px) var(--gutter) clamp(90px, 11vw, 150px);
  background: linear-gradient(180deg, #c5b3d9 0%, #cdb8d8 13%, #e3c4d8 30%, #f2d0d2 45%, #fadbc6 62%, #fbe0c9 100%);
  color: var(--ink); }
.dusk ul { margin: 0; padding: 0; list-style: none; }
.dusk-hero, .dusk-feature { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 4vw, 70px); max-width: 1440px; margin-inline: auto; }
.dusk-hero { align-items: start; }
.dusk-copy { padding: 70px 0 0 clamp(0px, 3.6vw, 58px); }
.dusk-eyebrow { display: flex; align-items: center; gap: 18px; font-style: italic; font-size: 1.45rem; color: var(--soft); }
.dusk-eyebrow::after { content: ""; width: 84px; height: 1px; background: rgba(54, 32, 62, .28); }
.dusk h1 { margin-top: 1.1rem; font-family: var(--display); font-style: italic; font-size: clamp(2.8rem, 4.6vw, 4.5rem); line-height: 1.12; letter-spacing: -.015em; }
.dusk-lead { margin-top: 1.3rem; max-width: 29em; font-size: 1.3rem; line-height: 1.45; color: var(--soft); }
.dusk-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 2.2rem; }
.dusk-cta, .dusk-ghost { display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: 0 2.2rem; border-radius: 16px; font-size: 1.2rem; text-decoration: none; }
.dusk-cta { background: var(--ink); color: #fff6ef; font-weight: 600; box-shadow: 0 16px 30px -18px rgba(54, 32, 62, .7); transition: transform .4s var(--ease), box-shadow .4s; }
.dusk-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -18px rgba(54, 32, 62, .75); }
.dusk-ghost { color: var(--ink); border: 1px solid rgba(54, 32, 62, .55); transition: background-color .3s; }
.dusk-ghost:hover { background: rgba(255, 250, 246, .45); }
.dusk-ghost svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dusk-cta:focus-visible, .dusk-ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dusk-frame { display: block; aspect-ratio: 777 / 500; border-radius: 96px 96px 22px 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 7px rgba(255, 255, 255, .28), 0 40px 70px -36px rgba(80, 40, 70, .55); transition: transform .6s var(--ease); }
.dusk-frame:hover { transform: translateY(-3px); }
.dusk-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* the table reveal and its story */
.dusk-feature { align-items: center; margin-top: 24px; scroll-margin-top: calc(var(--top-h) + 20px); }
.reveal { position: relative; z-index: 3; justify-self: end; width: fit-content; max-width: 100%; margin-right: clamp(0px, 2vw, 30px); padding: 22px 84px 20px 36px; background: rgba(255, 250, 247, .82); border-radius: 22px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 30px 60px -34px rgba(80, 40, 70, .45); }
.reveal-spray { position: absolute; z-index: 2; right: -62px; top: -74px; width: 190px; transform: rotate(28deg); pointer-events: none; filter: drop-shadow(0 10px 14px rgba(80, 60, 30, .22)); }
.reveal-head { font-style: italic; color: var(--soft); font-size: 1.15rem; }
.reveal-num { margin-top: .3rem; font-family: var(--display); font-style: italic; font-size: 3.2rem; line-height: 1; }
.reveal-seats { display: grid; gap: .45rem; margin-top: .7rem; }
.reveal-seats li { display: grid; padding-left: 1rem; border-left: 1px solid rgba(54, 32, 62, .28); line-height: 1.25; }
.reveal-seats b { font-family: "Libre Caslon Display", var(--sans); font-weight: 400; font-size: 1.1rem; }
.reveal-seats span { color: var(--soft); font-size: .95rem; }
.reveal-foot { margin-top: .8rem; font-style: italic; color: var(--soft); font-size: 1.05rem; }
.table-copy { position: relative; }
.table-copy h2 { position: relative; z-index: 1; font-family: var(--script); font-style: normal; font-size: clamp(3.6rem, 5.6vw, 5.4rem); line-height: 1.05; letter-spacing: 0; color: var(--rose-ink); }
.table-flourish { position: relative; z-index: 1; width: min(100%, 380px); margin: .1rem 0 0 .4rem; }
.table-tropic { position: absolute; z-index: 0; right: calc(-1 * var(--gutter) - 10px); top: -30px; width: clamp(200px, 20vw, 320px); pointer-events: none; }
.table-copy p, .table-steps { position: relative; z-index: 1; }
.table-copy p { margin-top: .6rem; max-width: 27em; font-size: 1.3rem; line-height: 1.4; color: var(--soft); }
.table-steps { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }
.table-steps li { padding: .45rem 1.2rem; border: 1px solid rgba(54, 32, 62, .4); border-radius: 99px; font-size: 1.05rem; background: rgba(255, 250, 246, .25); }

/* scenery */
.dusk-palm { position: absolute; z-index: 1; left: -30px; top: -30px; width: 440px; opacity: .2; pointer-events: none; transform-origin: 0 0; animation: dusk-palm 8s ease-in-out infinite alternate; }
@keyframes dusk-palm { from { transform: rotate(-1.5deg); } to { transform: rotate(2deg) translateX(6px); } }
.dusk-bloom { position: absolute; z-index: 2; bottom: 0; height: min(36%, 330px); width: auto; pointer-events: none; }
.dusk-bloom.is-left { left: 0; } .dusk-bloom.is-right { right: 0; }

/* rose petals: few, slow and behind the words */
.dusk-petals { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; perspective: 700px; }
.dusk-petals i { position: absolute; top: -50px; width: var(--s, 16px); height: calc(var(--s, 16px) * 1.46); background: var(--img) center / contain no-repeat; opacity: .8;
  animation: dusk-petal var(--d, 30s) linear var(--w, 0s) infinite; filter: drop-shadow(0 2px 2px rgba(120, 60, 70, .14)); }
@keyframes dusk-petal {
  0%   { transform: translate3d(0, 0, 0) rotateZ(0) rotateY(0); opacity: 0; }
  6%   { opacity: .8; }
  25%  { transform: translate3d(40px, 260px, 0) rotateZ(45deg) rotateY(90deg); }
  50%  { transform: translate3d(-15px, 520px, 0) rotateZ(90deg) rotateY(180deg); }
  75%  { transform: translate3d(35px, 780px, 0) rotateZ(135deg) rotateY(270deg); }
  94%  { opacity: .8; }
  100% { transform: translate3d(0, 1040px, 0) rotateZ(180deg) rotateY(360deg); opacity: 0; }
}
.dusk-petals i:nth-child(1)  { left: 3%;  --s: 16px; --d: 30s; --w: -4s;  --img: url("/assets/img/home/rose-blush-1.svg"); }
.dusk-petals i:nth-child(2)  { left: 11%; --s: 13px; --d: 36s; --w: -20s; --img: url("/assets/img/home/rose-white-2.svg"); }
.dusk-petals i:nth-child(3)  { left: 22%; --s: 18px; --d: 33s; --w: -12s; --img: url("/assets/img/home/rose-pink-1.svg"); }
.dusk-petals i:nth-child(4)  { left: 47%; --s: 12px; --d: 38s; --w: -28s; --img: url("/assets/img/home/rose-white-1.svg"); }
.dusk-petals i:nth-child(5)  { left: 78%; --s: 20px; --d: 28s; --w: -8s;  --img: url("/assets/img/home/rose-red-1.svg"); }
.dusk-petals i:nth-child(6)  { left: 89%; --s: 14px; --d: 34s; --w: -24s; --img: url("/assets/img/home/rose-blush-2.svg"); }
.dusk-petals i:nth-child(7)  { left: 96%; --s: 17px; --d: 26s; --w: -16s; --img: url("/assets/img/home/rose-pink-2.svg"); }
.dusk-petals i:nth-child(8)  { left: 7%;  --s: 15px; --d: 32s; --w: -26s; --img: url("/assets/img/home/rose-pink-1.svg"); }
.dusk-petals i:nth-child(9)  { left: 33%; --s: 13px; --d: 35s; --w: -6s;  --img: url("/assets/img/home/rose-blush-2.svg"); }
.dusk-petals i:nth-child(10) { left: 62%; --s: 16px; --d: 31s; --w: -18s; --img: url("/assets/img/home/rose-white-2.svg"); }
.dusk-petals i:nth-child(11) { left: 84%; --s: 12px; --d: 37s; --w: -32s; --img: url("/assets/img/home/rose-pink-2.svg"); }
.dusk-petals i:nth-child(12) { left: 93%; --s: 15px; --d: 29s; --w: -2s;  --img: url("/assets/img/home/rose-white-1.svg"); }

@media (max-width: 1080px) { .bar-nav { display: none; } .bar { justify-content: space-between; } .bar-brand { margin-right: auto; } }
@media (max-width: 860px) {
  .dusk-hero, .dusk-feature { grid-template-columns: minmax(0, 1fr); }
  .dusk-copy { padding: 30px 0 0; }
  .dusk-eyebrow { font-size: 1.2rem; }
  .dusk-eyebrow::after { width: 48px; }
  .dusk-frame { border-radius: 64px 64px 18px 18px; }
  .dusk-feature { margin-top: 40px; }
  .reveal { justify-self: start; margin-right: 0; padding-right: 60px; }
  .reveal-spray { width: 130px; right: -12px; top: -40px; }
  .table-copy { order: -1; }
  .table-tropic { top: -40px; width: 170px; }
  .dusk-bloom { height: 170px; opacity: .9; }
  .dusk-palm { width: 280px; }
}
@media (max-width: 520px) {
  .bar { gap: .7rem; }
  .bar-brand { font-size: 1.35rem; }
  .bar-lang select { padding: 0 1.6rem 0 .7rem; font-size: .95rem; }
  .bar-cta { padding: 0 1rem; font-size: 1rem; }
}
@media (max-width: 400px) { .bar-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .dusk-palm { animation: none; } .dusk-petals { display: none; } }

/* Chinese, Japanese and Korean have no italic or script cut: set the headings upright in the serif. */
:is(:lang(zh), :lang(ja), :lang(ko)) .dusk h1, :is(:lang(zh), :lang(ja), :lang(ko)) h2 { font-style: normal; letter-spacing: 0; }
:is(:lang(zh), :lang(ja), :lang(ko)) .table-copy h2 { font-family: var(--display); font-size: clamp(2.4rem, 3.8vw, 3.6rem); line-height: 1.2; }
:is(:lang(zh), :lang(ja), :lang(ko)) .dusk h1 { line-height: 1.3; font-size: clamp(2.3rem, 3.8vw, 3.8rem); }

/* Cormorant has a small x-height: scale the working text below the hero (builder, FAQ) up to a
   comfortable reading size without touching the headings. */
main, .foot, .sumbar { font-size-adjust: .46; }
main h2, main h3, .foot-brand { font-size-adjust: none; }
.foot-brand { font-family: var(--display); font-style: italic; }
