/* ==========================================================================
   Wedding invitation styles (site.css)
   Contract: <body class="us t-{slug}"> with inline vars on .us:
   --bg --bg1 --bg2 --text --accent --on-accent --fh --fb (--hc when set)
   Order: base, components, animations, alignment, wedding components, designs, reduced motion.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

.us {
  /* Surface tokens (themes override). Every pair below meets WCAG AA. */
  --surface: #ffffff;
  --on-surface: #111111;
  --line: color-mix(in srgb, var(--on-surface) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--on-surface) 55%, transparent);
  --bw: 1px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 10px 30px -12px rgba(0, 0, 0, .18);
  --pad: clamp(18px, 3.5vw, 28px);
  --gap: clamp(14px, 2.5vw, 22px);
  --btn-radius: 999px;
  --btn-shadow: none;
  --btn-bw: 2px;
  --nav-bg: var(--surface);
  --nav-fg: var(--on-surface);
  --input-bg: var(--surface);
  --h-weight: 700;
  --h-transform: none;
  --h-spacing: -0.01em;
  --sec-pad: clamp(40px, 7vw, 84px);
  --focus: var(--text);

  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--fb);
  font-size: calc(1.0625rem * var(--bsx, 1));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* "anywhere" (not break-word) also lets grid/flex boxes shrink, so long words, emails and links
     wrap inside their box on phones instead of being cut off at the screen edge. */
  overflow-wrap: anywhere;
  /* User font sizes (Design → Typography): --hs/--bs are set per page; phones get half the change,
     so a big heading size stays readable and never overwhelms a small screen. */
  --hsx: var(--hs, 1);
  --bsx: var(--bs, 1);
}
@media (max-width: 560px) {
  .us { --hsx: calc(1 + (var(--hs, 1) - 1) * .5); --bsx: calc(1 + (var(--bs, 1) - 1) * .5); }
}
/* Custom heading colour (only set when it is readable on the background). */

.us h1, .us h2, .us h3, .us h4 {
  font-family: var(--fh);
  font-weight: var(--h-weight);
  text-transform: var(--h-transform);
  letter-spacing: var(--h-spacing);
  line-height: 1.15;
  margin: 0 0 .5em;
}
.us img { max-width: 100%; height: auto; display: block; }
.us a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.us a:hover { text-decoration-thickness: 3px; }
.us :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.us ::selection { background: var(--accent); color: var(--on-accent); }

/* Elements that sit on a surface use the surface text colour for focus rings. */
.box, .card, .quote, .cta, .comment, .comment-form, .lock, .notice, .react { --focus: var(--on-surface); }
.us-nav { --focus: var(--nav-fg); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 20px); }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--accent); color: var(--on-accent) !important;
  font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 8px; }

.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.us-preview-badge {
  position: fixed; right: 12px; bottom: 12px; z-index: 60; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; background: #111; color: #fff;
  font: 700 .75rem/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

/* ---------- Navigation ---------- */
.us-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg); color: var(--nav-fg);
  border-bottom: var(--bw) solid var(--line);
}
.us-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-block: 6px; }
.us-brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--fh); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.us-nav nav { flex: 0 1 auto; min-width: 0; }
.us-nav ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.us-nav li a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--btn-radius); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.us-nav li a:hover { background: color-mix(in srgb, var(--nav-fg) 10%, transparent); }
.us-nav li a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) {
  .us-nav .wrap { justify-content: center; text-align: center; }
  .us-nav ul { justify-content: center; }
  .us-nav li a { padding: 0 10px; }
}

/* ---------- Sections ---------- */
.us-main { display: block; }
.sec { padding-block: var(--sec-pad); }
.sec + .sec { padding-top: calc(var(--sec-pad) * .6); }
.sec-heading, .sec-text, .sec-button, .sec-divider { padding-block: 14px !important; }
.sec-spacer { padding-block: 0 !important; }
.sec-title { font-size: calc(clamp(1.6rem, 4vw, 2.4rem) * var(--hsx, 1)); margin-bottom: clamp(18px, 3vw, 30px) !important; }

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 48px); align-items: center; padding-block: clamp(12px, 5vw, 48px); }
.hero-title { font-size: calc(clamp(2.2rem, 8vw, 4.6rem) * var(--hsx, 1)); line-height: 1.05 !important; margin-bottom: .35em !important; }
.hero-sub { font-size: calc(clamp(1.05rem, 2.2vw, 1.3rem) * var(--bsx, 1)); max-width: 58ch; margin: 0 0 1.6em; opacity: .9; }
.hero-center { text-align: center; }
.hero-center .hero-sub { margin-inline: auto; }
.hero-left { text-align: left; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 820px) {
  .hero.has-img { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero.has-img.hero-center .hero-text { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.5em;
  background: var(--accent); color: var(--on-accent);
  border: var(--btn-bw) solid var(--accent); border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center;
  text-decoration: none !important; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.btn { max-width: 100%; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: not-allowed; filter: grayscale(.4); transform: none; }
.btn-outline { background: transparent; color: inherit; }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }
.btn-lg { min-height: 56px; padding: .85em 2em; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose.align-center { margin-inline: auto; }
.prose.align-right { margin-left: auto; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: inherit; }
.prose h2 { font-size: calc(1.6rem * var(--hsx, 1)); margin-top: 1.4em; }
.prose h3 { font-size: calc(1.3rem * var(--hsx, 1)); margin-top: 1.3em; }
.prose h4 { font-size: calc(1.1rem * var(--hsx, 1)); margin-top: 1.2em; }
.prose blockquote { margin: 1.2em 0; padding: .3em 0 .3em 1.1em; border-left: 4px solid var(--accent); font-style: italic; }
.prose mark { background: var(--accent); color: var(--on-accent); padding: 0 .25em; border-radius: 3px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: .1em .35em; border-radius: 4px; background: color-mix(in srgb, currentColor 10%, transparent); }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose hr { border: 0; height: 1px; background: color-mix(in srgb, currentColor 25%, transparent); margin: 1.5em 0; }

.box {
  background: var(--surface); color: var(--on-surface);
  border: var(--bw) solid var(--line); border-radius: var(--radius);
  padding: var(--pad); box-shadow: var(--shadow);
}


/* ---------- Gallery ---------- */
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius-sm); }
.gallery figure a { display: block; border-radius: var(--radius-sm); }
.gallery figure a img { transition: transform .25s ease, filter .25s ease; }
.gallery figure a:hover img { filter: brightness(1.05); transform: scale(1.015); }
.gallery figcaption { padding: .45em .2em 0; font-size: .9rem; opacity: .85; }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; }
.gallery-masonry { columns: 2 160px; column-gap: 12px; }
.gallery-masonry figure { break-inside: avoid; margin-bottom: 12px; }
@media (min-width: 720px) { .gallery-masonry { columns: 3; } }
.gallery-bento { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; }
.gallery-bento figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.gallery-bento figure a { min-height: 0; height: 100%; }
.gallery-bento img { height: 100%; object-fit: cover; }
.gallery-bento figure:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-bento figure:nth-child(6n+4) { grid-row: span 2; }
.gallery-bento figure:nth-child(6n+6) { grid-column: span 2; }
@media (min-width: 720px) {
  .gallery-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; }
}

/* ---------- Embeds ---------- */
.embeds { display: grid; gap: var(--gap); }
.embed {
  position: relative; width: 100%; max-width: 100%; margin-inline: auto; overflow: hidden;
  border-radius: var(--radius); background: color-mix(in srgb, var(--text) 8%, transparent);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.embed[style*="height:"] { max-width: 720px; }
.embed[style*="aspect-ratio:9/16"] { max-width: 380px; }


/* ---------- Forms (comments, lock) ---------- */
.comment-form, .lock {
  display: grid; gap: 14px; max-width: 640px;
  background: var(--surface); color: var(--on-surface);
  border: var(--bw) solid var(--line); border-radius: var(--radius);
  padding: var(--pad); box-shadow: var(--shadow);
}
.comment-form { margin-bottom: 28px; }
.lock { max-width: 460px; margin: clamp(20px, 8vh, 80px) auto; }
.lock p { margin: 0; }
.comment-form label, .lock label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.comment-form input, .comment-form textarea, .lock input {
  width: 100%; min-height: 48px; padding: .7em .9em;
  font: inherit; font-weight: 400;
  background: var(--input-bg); color: var(--on-surface);
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus-visible, .comment-form textarea:focus-visible, .lock input:focus-visible { border-color: var(--on-surface); }
.comment-form .btn, .lock .btn { justify-self: start; }

/* ---------- Comments ---------- */
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment {
  background: var(--surface); color: var(--on-surface);
  border: var(--bw) solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.comment.reply { margin-left: clamp(18px, 6vw, 52px); border-left: 4px solid var(--accent); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; }
.comment-meta time { opacity: .8; }
.comment p { margin: .35em 0 0; }
.badge {
  display: inline-block; padding: .1em .55em; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.notice {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--on-surface);
  border: var(--bw) solid var(--line); border-left: 5px solid var(--accent);
}
.notice-error { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; border-left-color: #b91c1c; }
.muted { opacity: .8; }

/* ---------- Likes (.reactions/.react are the shared button styles) ---------- */
.like { font-weight: 600; }
.like b { padding-left: 8px; margin-left: 2px; border-left: 1px solid currentColor; }
.like.on span { animation: like-pop .3s ease; }
@keyframes like-pop { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .like.on span { animation: none; } }
.reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.us-main > .reactions { max-width: 1040px; margin: 0 auto; padding: 8px 20px 48px; }
.reactions-sm { justify-content: flex-start; gap: 6px; margin-top: 10px; }
.react {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  background: var(--surface); color: var(--on-surface);
  border: 2px solid var(--line-strong); border-radius: 999px;
  font: inherit; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.react span { font-size: 1.25rem; line-height: 1; }
.react b { font-size: .9rem; font-weight: 700; }
.react b:empty { display: none; }
.react:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--accent); }
.react.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.react[disabled] { cursor: default; border-style: dashed; }
.reactions-sm .react { padding: 0 10px; }
.reactions-sm .react span { font-size: 1.05rem; }

/* ---------- Heading, divider, spacer ---------- */
.heading { margin: 0 !important; }
h1.heading { font-size: clamp(2.2rem, 6.5vw, 4rem); }
h2.heading { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3.heading { font-size: clamp(1.4rem, 3vw, 2rem); }

.divider { border: 0; margin: clamp(10px, 2vw, 22px) auto; }
.divider-line { height: 2px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.divider-dots {
  height: 12px; width: min(240px, 70%);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px) center / 24px 12px repeat-x;
}
.divider-wave {
  height: 12px; width: min(360px, 85%);
  background:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(225deg, var(--accent) 25%, transparent 25%) -12px 0 / 24px 24px;
}
.divider-stars { height: auto; text-align: center; overflow: visible; color: inherit; }
.divider-stars::before { content: "\2726\00a0\00a0\00a0\2726\00a0\00a0\00a0\2726"; font-size: 1.2rem; opacity: .85; }

.spacer-s { height: 16px; }
.spacer-m { height: 44px; }
.spacer-l { height: 96px; }

/* ---------- Footer & ads ---------- */
.us-foot {
  padding: 28px 0 36px; text-align: center; font-size: .875rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.us-foot p { margin: 0; opacity: .85; }
.us-foot a { display: inline-block; padding: 12px 4px; }
.us-foot .nowrap { white-space: nowrap; }
.us-foot .report { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; text-decoration: none; font-size: 1.05em; vertical-align: middle; }
/* Ad spots (neutral names so ad blockers do not hide the site's own banners) */
.spot { max-width: 728px; margin: 0 auto 16px; text-align: center; font-size: .85rem; overflow: hidden; }
.spot a { display: inline-flex; align-items: center; min-height: 44px; }
.us-spot-top { padding-top: 12px; }
.us-spot-top .spot { margin-bottom: 0; }
.spot img, .spot iframe { max-width: 100%; height: auto; }
.spot .spot-link-a { display: inline-flex; align-items: center; gap: .5em; max-width: 100%; padding: .45em .9em; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 600; }
.spot-tag { font-size: .72em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }


/* ==========================================================================
   Text animations (VIP)
   ========================================================================== */
.fx { display: inline-block; max-width: 100%; }
.fx-wave span, .fx-bounce span, .fx-spin span { display: inline-block; animation-delay: calc(var(--i) * 60ms); }

.fx-typewriter { animation: fx-type calc(var(--n) * 75ms) steps(var(--n)) .2s both; }
.fx-typewriter::after { content: ""; display: inline-block; width: .08em; height: 1em; margin-left: .06em; vertical-align: -.1em; background: currentColor; animation: fx-caret 1s steps(1) infinite; }
@keyframes fx-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-caret { 50% { opacity: 0; } }

.fx-glitch { position: relative; }
.fx-glitch::before, .fx-glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.fx-glitch::before { text-shadow: -2px 0 #ff2a6d; animation: fx-glitch-a 2.6s steps(1) infinite; clip-path: inset(0 0 60% 0); }
.fx-glitch::after { text-shadow: 2px 0 #05d9e8; animation: fx-glitch-b 2.2s steps(1) infinite; clip-path: inset(55% 0 0 0); }
@keyframes fx-glitch-a { 0%, 86%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 88% { transform: translate(-3px, -1px); clip-path: inset(10% 0 55% 0); } 92% { transform: translate(3px, 1px); clip-path: inset(40% 0 30% 0); } }
@keyframes fx-glitch-b { 0%, 80%, 100% { transform: none; clip-path: inset(100% 0 0 0); } 83% { transform: translate(3px, 1px); clip-path: inset(60% 0 10% 0); } 89% { transform: translate(-2px, 0); clip-path: inset(25% 0 50% 0); } }

.fx-neon { text-shadow: 0 0 2px currentColor, 0 0 10px var(--accent), 0 0 24px var(--accent); animation: fx-neon 2.4s ease-in-out infinite alternate; }
@keyframes fx-neon { to { text-shadow: 0 0 2px currentColor, 0 0 16px var(--accent), 0 0 40px var(--accent); } }

.fx-wave span { animation: fx-wave 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes fx-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.22em); } }
.fx-bounce span { animation: fx-bounce 1.4s cubic-bezier(.3, 1.6, .5, 1) infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes fx-bounce { 0%, 50%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(-.3em) scale(1.08, .94); } 35% { transform: translateY(0) scale(.96, 1.04); } }
.fx-spin span { animation: fx-spin 4s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes fx-spin { 0%, 25%, 100% { transform: rotateY(0); } 50% { transform: rotateY(360deg); } }

.fx-rainbow { animation: fx-rainbow 4s linear infinite; }
@keyframes fx-rainbow {
  0%, 100% { text-shadow: .06em .06em 0 #ff4d4d; } 17% { text-shadow: .06em .06em 0 #ff9f1c; }
  33% { text-shadow: .06em .06em 0 #ffe14d; } 50% { text-shadow: .06em .06em 0 #2ec4b6; }
  67% { text-shadow: .06em .06em 0 #3a86ff; } 83% { text-shadow: .06em .06em 0 #b14dff; }
}
.fx-gradient {
  background: linear-gradient(90deg, var(--accent), var(--bg2), var(--accent), var(--bg1), var(--accent)) 0 100% / 300% .2em no-repeat;
  padding-bottom: .1em; animation: fx-grad 5s linear infinite;
}
@keyframes fx-grad { to { background-position: 150% 100%; } }
.fx-shake { animation: fx-shake 3.5s ease-in-out infinite; }
@keyframes fx-shake { 0%, 84%, 100% { transform: none; } 86%, 90%, 94% { transform: translateX(-4px) rotate(-1deg); } 88%, 92%, 96% { transform: translateX(4px) rotate(1deg); } }
.fx-float { animation: fx-float 5s ease-in-out infinite; }
@keyframes fx-float { 50% { transform: translateY(-10px); } }
.fx-flicker { animation: fx-flicker 5s linear infinite; text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
@keyframes fx-flicker { 0%, 40%, 44%, 100% { opacity: 1; } 42% { opacity: .55; text-shadow: none; } 70% { opacity: 1; } 71% { opacity: .6; text-shadow: none; } 72% { opacity: 1; } }
.fx-fadeup { animation: fx-fadeup .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fx-fadeup { from { opacity: 0; transform: translateY(.6em); } }
.fx-zoom { animation: fx-zoom .8s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes fx-zoom { from { opacity: 0; transform: scale(.6); } }
.fx-blur { animation: fx-blur 1.1s ease-out both; }
@keyframes fx-blur { from { opacity: 0; filter: blur(14px); letter-spacing: .12em; } }
.fx-outline { -webkit-text-stroke: .035em currentColor; -webkit-text-fill-color: transparent; animation: fx-outline 4s ease-in-out infinite alternate; }
@keyframes fx-outline { 60%, 100% { -webkit-text-fill-color: currentColor; } }
.fx-marquee { display: block; overflow: hidden; white-space: nowrap; animation: fx-marquee 14s linear infinite; }
@keyframes fx-marquee { from { text-indent: 100%; } to { text-indent: -100%; } }


/* ==========================================================================
   Alignment (site default via body.ua-*, per-section override via .sa-*)
   + content width
   ========================================================================== */
.uw-narrow .wrap, .uw-narrow .us-main > .reactions { max-width: 680px; }
.uw-wide .wrap, .uw-wide .us-main > .reactions { max-width: 1280px; }

/* Site default (sections without their own alignment) */
.ua-center .sec:not(.sa-left):not(.sa-right) > .wrap { text-align: center; }
.ua-right .sec:not(.sa-left):not(.sa-center) > .wrap { text-align: right; }
/* Section override */
.sec.sa-left > .wrap { text-align: left; }
.sec.sa-center > .wrap { text-align: center; }
.sec.sa-right > .wrap { text-align: right; }

/* Make block-level pieces follow the text alignment */
:is(.ua-center .sec:not(.sa-left):not(.sa-right), .sec.sa-center) :is(.prose, .hero-sub, .about) { margin-inline: auto; }
:is(.ua-center .sec:not(.sa-left):not(.sa-right), .sec.sa-center) :is(.socials, .contact-list) { justify-content: center; }
:is(.ua-center .sec:not(.sa-left):not(.sa-right), .sec.sa-center) .contact-list { display: grid; justify-items: center; }
:is(.ua-center .sec:not(.sa-left):not(.sa-right), .sec.sa-center) .sec-title::after,
:is(.ua-center .sec:not(.sa-left):not(.sa-right), .sec.sa-center) .sec-title::before { margin-inline: auto; }
:is(.ua-right .sec:not(.sa-left):not(.sa-center), .sec.sa-right) :is(.prose, .hero-sub) { margin-left: auto; }
:is(.ua-right .sec:not(.sa-left):not(.sa-center), .sec.sa-right) :is(.socials, .contact-list) { justify-content: flex-end; }
:is(.ua-right .sec:not(.sa-left):not(.sa-center), .sec.sa-right) .contact-list { display: grid; justify-items: end; }
.sec.sa-left .linklist, .ua-left .sec:not(.sa-center):not(.sa-right) .linklist { margin-inline: 0; }
.sec.sa-right .linklist, .ua-right .sec:not(.sa-left):not(.sa-center) .linklist { margin-inline: auto 0; }
/* Cards, quotes and forms keep readable left-aligned text inside, whatever the section alignment */
.card, .quote, .comment, .comment-form, .lock { text-align: left; }
.sec.sa-center .card, .ua-center .sec:not(.sa-left):not(.sa-right) .card { text-align: center; }
.sec.sa-center .card-head, .ua-center .sec:not(.sa-left):not(.sa-right) .card-head { justify-content: center; flex-wrap: wrap; }
/* The hero keeps its own Alignment option; a section override wins over it */
.sec-hero.sa-left .hero-text { text-align: left; }
.sec-hero.sa-left .hero-sub { margin-inline: 0; }
.sec-hero.sa-center .hero-text { text-align: center; }
.sec-hero.sa-right .hero-text { text-align: right; }
.sec-hero.sa-right .hero-sub { margin-inline: auto 0; }

/* Lists follow centred / right alignment (bullets move with the text) */
:is(.ua-center .sec:not(.sa-left):not(.sa-right), .sec.sa-center, .ua-right .sec:not(.sa-left):not(.sa-center), .sec.sa-right) .prose :is(ul, ol) { list-style-position: inside; padding-left: 0; }
.prose [style*="text-align:center"] :is(ul, ol), .prose :is(ul, ol)[style*="text-align:center"] { list-style-position: inside; padding-left: 0; }

/* Guestbook: centred unless the section picks its own alignment */
.us .sec-comments:not(.sa-left):not(.sa-right) > .wrap { text-align: center; }
.sec-comments :is(.comments, .notice) { max-width: 640px; }
.sec-comments:not(.sa-left):not(.sa-right) :is(.comment-form, .comments, .notice) { margin-inline: auto; }
.sec-comments.sa-right :is(.comment-form, .comments, .notice) { margin-inline: auto 0; }

/* Row & Columns: boxes fill columns left to right, extra boxes wrap to a new row */
.cols { display: grid; gap: var(--gap); align-items: center; }
.cols.cv-top { align-items: start; }
.cols.cv-bottom { align-items: end; }
.cols-1 { grid-template-columns: minmax(0, 1fr); }
.cols-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cols-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols-1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-1-2-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.cols-1-1-1-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col { min-width: 0; }
.col.ca-left { text-align: left; }
.col.ca-center { text-align: center; }
.col.ca-right { text-align: right; }
.col .prose { max-width: none; }
.col-heading { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 !important; }
.col-image img { display: inline-block; vertical-align: middle; border-radius: var(--radius-sm); }
@media (max-width: 900px) { .cols-1-1-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cols { grid-template-columns: minmax(0, 1fr) !important; }
  .col-empty { display: none; }
}

/* ==========================================================================
   Wedding invitation components
   ========================================================================== */
.us { --orn: var(--accent); --sec-pad: clamp(34px, 6vw, 64px); }
.uw-narrow .wrap { max-width: 640px; }
.sec-title { font-weight: 400; }
.sec-title::after {
  content: ""; display: block; width: 64px; height: 10px; margin-top: .35em;
  background: radial-gradient(circle, var(--orn) 0 3px, transparent 3.5px) center / 10px 10px no-repeat,
    linear-gradient(var(--orn), var(--orn)) left center / 26px 1px no-repeat,
    linear-gradient(var(--orn), var(--orn)) right center / 26px 1px no-repeat;
}

/* Opening cover */
.has-cover.cover-on { overflow: hidden; }
.cover {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: var(--bg); background-attachment: fixed; color: var(--text); text-align: center;
  transition: opacity .7s ease, transform .9s cubic-bezier(.7, 0, .3, 1);
}
.cover.opened { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.cover-card {
  position: relative; width: min(440px, 100%); padding: clamp(36px, 9vw, 64px) clamp(22px, 6vw, 40px);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 220px 220px 18px 18px;
  outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 7px;
}
.cover-kicker { margin: 0 0 1.1em; font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.cover-names { font-size: calc(clamp(2.6rem, 11vw, 4.2rem) * var(--hsx, 1)); font-weight: 400 !important; line-height: 1.1 !important; margin: 0 0 .3em !important; color: var(--hc, inherit); }
.cover-date { margin: 0 0 1.6em; letter-spacing: .06em; }
.cover-guest { display: grid; gap: 2px; margin: 0 auto 1.6em; padding: 12px 16px; max-width: 300px; border-block: 1px solid color-mix(in srgb, var(--text) 25%, transparent); }
.cover-guest span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cover-guest strong { font-size: 1.15rem; }
.cover-open { animation: cover-pulse 2.4s ease-in-out infinite; }
@keyframes cover-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent); } }

/* Hero */
.sec-hero .hero-title { font-weight: 400; }
.sec-hero .hero-sub { letter-spacing: .04em; }
.sec-hero .hero-media img { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); max-width: 420px; margin-inline: auto; }
@media (min-width: 820px) { .uw-narrow .hero.has-img { grid-template-columns: minmax(0, 1fr); } }

/* Invitation wording */
.invite { display: grid; gap: 1em; justify-items: center; text-align: center; }
.bismillah { font-family: 'Amiri', serif; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.6; margin: 0; color: var(--hc, inherit); }
.invite-greeting { margin: 0; font-style: italic; }
.invite-hosts { margin: 0; font-family: var(--fh); font-size: calc(1.35rem * var(--hsx, 1)); line-height: 1.4; }
.invite-body { max-width: 52ch; }

/* Bride & groom */
.couple { display: grid; gap: 10px; justify-items: center; text-align: center; }
.person { display: grid; justify-items: center; gap: 4px; }
.person-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 3px solid var(--accent); padding: 4px; margin-bottom: 8px; }
.person-name { font-size: calc(clamp(2.4rem, 10vw, 3.6rem) * var(--hsx, 1)); font-weight: 400 !important; margin: 0 !important; }
.person-full { margin: 0; font-weight: 600; letter-spacing: .02em; }
.person-parents { margin: 0; font-size: .92rem; opacity: .9; }
.person-parents span { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.couple-amp { font-family: var(--fh); font-size: clamp(2.2rem, 8vw, 3rem); color: var(--hc, var(--accent)); line-height: 1; }
@media (min-width: 720px) { .uw-normal .couple, .uw-wide .couple { grid-template-columns: 1fr auto 1fr; align-items: center; } }

/* Events */
.events-list { display: grid; gap: var(--gap); }
.event-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; text-align: left;
  background: var(--surface); color: var(--on-surface); border: var(--bw) solid var(--line); border-radius: var(--radius);
  padding: var(--pad); box-shadow: var(--shadow); --focus: var(--on-surface);
}
.event-date { display: grid; justify-items: center; min-width: 74px; padding: 10px 8px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); line-height: 1.1; }
.event-date b { font-size: 2rem; font-family: var(--fh); }
.event-date span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.event-date small { font-size: .75rem; opacity: .9; }
.event-info h3 { font-size: calc(1.35rem * var(--hsx, 1)); margin-bottom: .3em !important; }
.event-when, .event-venue { display: grid; gap: 2px; margin: 0 0 .7em; }
.event-hijri, .event-venue span { font-size: .92rem; opacity: .85; }
.event-note { margin: 0 0 .7em; font-style: italic; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-actions .btn { min-height: 42px; }
.event-hijri-note { margin-top: 10px; font-size: .8rem; }
@media (max-width: 460px) { .event-card { grid-template-columns: minmax(0, 1fr); } .event-date { justify-self: start; grid-auto-flow: column; gap: 8px; align-items: baseline; } }

/* Countdown */
.countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(8px, 2.5vw, 16px); }
.countdown > div {
  display: grid; justify-items: center; min-width: 74px; padding: 14px 8px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--on-surface); border: var(--bw) solid var(--line); box-shadow: var(--shadow);
}
.countdown b { font-family: var(--fh); font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 6px; }
.countdown.done { font-family: var(--fh); font-size: 1.6rem; }
.countdown-date { margin: 14px 0 0; opacity: .9; }

/* Programme */
.schedule { list-style: none; margin: 0 auto; padding: 0; max-width: 460px; display: grid; gap: 0; text-align: left; }
.schedule li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px dashed color-mix(in srgb, var(--text) 25%, transparent); }
.schedule time { font-weight: 700; color: var(--hc, inherit); }
@media (max-width: 420px) { .schedule li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* RSVP */
.rsvp-text, .rsvp-deadline { max-width: 52ch; margin: 0 auto 1em; }
.rsvp-deadline { font-weight: 700; }
.rsvp-form { display: grid; gap: 14px; max-width: 520px; margin-inline: auto; text-align: left; }
.rsvp-form label, .rsvp-attend legend { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.rsvp-form small { font-weight: 400; opacity: .8; }
.rsvp-form input:not([type=radio]), .rsvp-form select, .rsvp-form textarea, .comment-form input, .comment-form textarea {
  width: 100%; min-height: 48px; padding: .7em .9em; font: inherit; font-weight: 400;
  background: var(--input-bg); color: var(--on-surface); border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
}
.rsvp-attend { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rsvp-attend legend { margin-bottom: 6px; }
.choice { display: flex !important; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500 !important; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.rsvp-form .btn { width: 100%; }
.sec-rsvp .notice { max-width: 520px; margin: 0 auto 14px; text-align: left; }
.sec-comments .comment-form .btn { width: 100%; }

/* Money gift */
.gift-text { max-width: 52ch; margin: 0 auto 1.2em; }
.gift { display: grid; justify-items: center; gap: 6px; max-width: 420px; margin-inline: auto; text-align: center; }
.gift-qr { width: 200px; border-radius: var(--radius-sm); background: #fff; padding: 8px; margin-bottom: 6px; }
.gift-bank { margin: 0; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gift-acc { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.gift-acc .btn { min-height: 38px; font-size: .85rem; letter-spacing: 0; color: var(--on-surface); }
.gift-name { margin: 0 0 8px; }

/* Contacts */
.contacts { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  background: var(--surface); color: var(--on-surface); border: var(--bw) solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); --focus: var(--on-surface); }
.contact-card div:first-child { display: grid; }
.contact-card span { font-size: .88rem; opacity: .85; }
.contact-actions { display: flex; gap: 8px; }
.contact-actions .btn { min-height: 42px; color: var(--on-surface); }
.btn-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff !important; }

/* Love story */
.story { list-style: none; margin: 0 auto; padding: 0 0 0 26px; max-width: 560px; display: grid; gap: 22px; text-align: left; border-left: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.story-item { position: relative; display: grid; gap: 10px; }
.story-item::before { content: "♥"; position: absolute; left: -37px; top: 0; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.story-item img { border-radius: var(--radius-sm); max-height: 320px; object-fit: cover; }
.story-when { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hc, inherit); opacity: .9; }
.story-item h3 { margin: 2px 0 4px !important; font-size: calc(1.3rem * var(--hsx, 1)); }
.story-item p { margin: 0; }

/* Ornament dividers */
.divider-ornament, .divider-flower { display: flex; align-items: center; gap: 14px; width: min(320px, 80%); margin-inline: auto; color: var(--orn); font-size: 1.4rem; }
.divider-ornament::before, .divider-ornament::after, .divider-flower::before, .divider-flower::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }

/* Bottom quick-action bar */
.has-dock .us-foot { padding-bottom: 96px; }
.dock {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; max-width: calc(100% - 24px); overflow-x: auto;
  background: var(--surface); color: var(--on-surface); border: var(--bw) solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); --focus: var(--on-surface);
}
.dock a, .dock button {
  display: grid; justify-items: center; gap: 1px; min-width: 56px; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 999px;
  background: none; color: inherit; font: inherit; font-size: .66rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.dock span { font-size: 1.15rem; line-height: 1; }
.dock a:hover, .dock button:hover, .dock [aria-pressed=true] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cover-on .dock { display: none; }

/* Scroll reveal (site.js adds .in) */
.js-reveal .sec:not(.sec-hero) > .wrap { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal .sec.in > .wrap { opacity: 1; transform: none; }

/* ==========================================================================
   Wedding designs (t-{slug}). Each sets surface tokens that stay readable,
   plus its own ornaments. Decorations sit in fixed layers behind the content.
   ========================================================================== */
.us::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Klasik Emas: ivory, gold double frame */
.t-klasik { --surface: #fffdf7; --on-surface: #3a2e1e; --line: #e6d8b8; --radius: 6px; --btn-radius: 4px; }
.t-klasik::before { inset: 10px; border: 1px solid #c8ab6e; outline: 1px solid #c8ab6e; outline-offset: -7px; }
.t-klasik .sec-title { letter-spacing: .02em; }

/* Bunga Pastel: blush petals */
.t-bunga { --surface: #fffafb; --on-surface: #4a2531; --line: #f0cdd6; --radius: 22px; }
.t-bunga::before { background:
  radial-gradient(circle at 0 0, #f7c9d4 0 70px, transparent 71px), radial-gradient(circle at 100% 0, #f3d9e6 0 90px, transparent 91px),
  radial-gradient(circle at 0 100%, #f3d9e6 0 110px, transparent 111px), radial-gradient(circle at 100% 100%, #f7c9d4 0 80px, transparent 81px); opacity: .7; }

/* Taman Sage: botanical */
.t-sage { --surface: #f8faf6; --on-surface: #24301f; --line: #cfdac8; --radius: 16px; }
.t-sage::before { background:
  radial-gradient(ellipse 60px 140px at 0 20%, #b9caa9 0 98%, transparent), radial-gradient(ellipse 60px 140px at 100% 75%, #b9caa9 0 98%, transparent); opacity: .55; }
.t-sage .sec-title::after { background: none; content: "🌿"; width: auto; height: auto; font-size: 1rem; }

/* Rustik: kraft paper */
.t-rustik { --surface: #faf4ea; --on-surface: #3d2617; --line: #d8c3a5; --radius: 4px; --btn-radius: 6px; --bw: 1px; }
.t-rustik::before { background: repeating-linear-gradient(0deg, rgba(120, 80, 40, .035) 0 2px, transparent 2px 5px); }
.t-rustik .box, .t-rustik .event-card, .t-rustik .contact-card { border-style: dashed; border-width: 2px; }

/* Minimalis */
.t-minimal { --surface: #ffffff; --on-surface: #1f1f1f; --line: #e5e5e5; --shadow: none; --radius: 0px; --btn-radius: 0px; }
.t-minimal .sec-title::after { background: #1f1f1f; height: 1px; width: 40px; }
.t-minimal .cover-card { border-radius: 0; }

/* Biru Lembut */
.t-biru { --surface: #fbfdff; --on-surface: #1d3047; --line: #c9d7e6; --radius: 18px; }
.t-biru::before { background: radial-gradient(circle at 50% -10%, #ffffff 0 30%, transparent 60%); }

/* Zamrud: emerald + gold */
.t-zamrud { --surface: #164a3e; --on-surface: #f6efdc; --line: rgba(216, 182, 106, .45); --line-strong: rgba(246, 239, 220, .55); --input-bg: #0f3b31; --shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
.t-zamrud::before { inset: 12px; border: 1px solid rgba(216, 182, 106, .55); border-radius: 4px; }

/* Merah Diraja */
.t-diraja { --surface: #6b1a2b; --on-surface: #fbeedc; --line: rgba(226, 194, 124, .5); --line-strong: rgba(251, 238, 220, .55); --input-bg: #561220; --shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
.t-diraja::before { background: radial-gradient(circle at 50% 0, rgba(226, 194, 124, .16), transparent 55%); }

/* Premium: Songket (woven gold) */
.t-songket { --surface: #3a1a55; --on-surface: #f7ecd2; --line: rgba(227, 185, 95, .5); --line-strong: rgba(247, 236, 210, .55); --input-bg: #2a1140; --radius: 6px; --btn-radius: 6px; }
.t-songket::before { background:
  repeating-linear-gradient(45deg, rgba(227, 185, 95, .09) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, rgba(227, 185, 95, .09) 0 2px, transparent 2px 14px); }
.t-songket .sec-title, .t-songket .cover-kicker { letter-spacing: .12em; text-transform: uppercase; }

/* Premium: Islamik (arabesque) */
.t-islamik { --surface: #13305a; --on-surface: #f5ecd6; --line: rgba(214, 178, 106, .5); --line-strong: rgba(245, 236, 214, .55); --input-bg: #0d2240; }
.t-islamik::before { background:
  radial-gradient(circle at 20px 20px, transparent 12px, rgba(214, 178, 106, .12) 13px 14px, transparent 15px) 0 0 / 40px 40px,
  radial-gradient(circle at 0 0, transparent 12px, rgba(214, 178, 106, .12) 13px 14px, transparent 15px) 0 0 / 40px 40px; }
.t-islamik .cover-card { border-radius: 50% 50% 18px 18px / 30% 30% 18px 18px; }

/* Premium: Royal Emas (art deco) */
.t-royal { --surface: #181818; --on-surface: #f3e7c9; --line: rgba(217, 181, 108, .55); --line-strong: rgba(243, 231, 201, .55); --input-bg: #101010; --radius: 0px; --btn-radius: 0px; }
.t-royal::before { inset: 12px; border: 2px solid rgba(217, 181, 108, .7); box-shadow: inset 0 0 0 6px #101010, inset 0 0 0 7px rgba(217, 181, 108, .5); }
.t-royal .sec-title, .t-royal .cover-kicker { letter-spacing: .14em; text-transform: uppercase; }

/* Premium: Cat Air (watercolour) */
.t-catair { --surface: rgba(255, 255, 255, .92); --on-surface: #3d2230; --line: #ecd3dd; --radius: 24px; }
.t-catair::before { background:
  radial-gradient(closest-side, rgba(233, 166, 190, .45), transparent) -80px -60px / 380px 320px no-repeat,
  radial-gradient(closest-side, rgba(169, 198, 222, .45), transparent) calc(100% + 90px) 40% / 360px 360px no-repeat,
  radial-gradient(closest-side, rgba(242, 205, 150, .45), transparent) -60px calc(100% + 40px) / 360px 300px no-repeat; }

/* Premium: Malam Berbintang */
.t-bintang { --surface: rgba(25, 27, 70, .88); --on-surface: #f6ecd2; --line: rgba(240, 217, 166, .4); --line-strong: rgba(246, 236, 210, .55); --input-bg: #11163a; }
.t-bintang::before { background:
  radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent),
  radial-gradient(1px 1px at 10% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #f0d9a6, transparent);
  background-size: 260px 260px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .55; } }

/* Premium: Renda Vintaj (lace) */
.t-renda { --surface: #fffcf6; --on-surface: #3a3026; --line: #ddcdb7; --radius: 8px; }
.t-renda::before { background:
  radial-gradient(circle at 10px 0, transparent 8px, #e6d8c3 9px 10px, transparent 11px) top left / 20px 12px repeat-x,
  radial-gradient(circle at 10px 12px, transparent 8px, #e6d8c3 9px 10px, transparent 11px) bottom left / 20px 12px repeat-x; }
.t-renda .box, .t-renda .event-card { outline: 1px dashed #cdb89a; outline-offset: -8px; }

/* Dark designs: links and dividers stay gold. */
:is(.t-zamrud, .t-diraja, .t-songket, .t-islamik, .t-royal, .t-bintang) .gift-qr { background: #fff; }

/* ==========================================================================
   Layouts (body.l-*): each design picks one, so designs differ in structure,
   not only in colour. Base styles above are the "arch" look.
   ========================================================================== */

/* classic: centred, soft rounded photo, simple double-rule cover */
.l-classic .cover-card { border-radius: 20px; }
.l-classic .sec-hero .hero-media img { aspect-ratio: 4 / 3; border-radius: var(--radius); max-width: 560px; }
.l-classic .sec + .sec > .wrap { border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding-top: var(--sec-pad); }
.l-classic .sec + .sec { padding-top: 0; }
.l-classic .sec-divider + .sec > .wrap, .l-classic .sec-spacer + .sec > .wrap, .l-classic .sec-divider > .wrap, .l-classic .sec-spacer > .wrap { border-top: 0; padding-top: 0; }

/* arch: arched photo, arched cover and arched cards */
.l-arch .event-card, .l-arch .rsvp-form, .l-arch .comment-form { border-radius: 140px 140px var(--radius) var(--radius); padding-top: calc(var(--pad) + 26px); }
.l-arch .event-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.l-arch .event-actions { justify-content: center; }
.l-arch .countdown > div { border-radius: 60px 60px 12px 12px; padding-top: 20px; }
.l-arch .person-photo { border-radius: 90px 90px 12px 12px; width: 150px; height: 190px; }

/* boxed: the whole invitation is a framed paper card on a deeper background */
.l-boxed.us { background: color-mix(in srgb, var(--bg1) 78%, var(--accent) 22%); background-attachment: fixed; }
.l-boxed .us-main, .l-boxed .us-foot {
  display: block; width: min(700px, calc(100% - 24px)); margin-inline: auto; background: var(--bg); background-attachment: fixed;
  border-inline: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); position: relative;
}
.l-boxed .us-main { margin-top: 18px; border-top: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 6px 6px 0 0; padding-top: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.l-boxed .us-main::before { content: ""; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; }
.l-boxed .us-foot { margin-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 0 0 6px 6px; }
.l-boxed .cover-card { border-radius: 4px; outline-offset: -10px; padding-block: 64px; }
.l-boxed .cover-card::before, .l-boxed .cover-card::after { content: "❦"; position: absolute; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 1.4rem; }
.l-boxed .cover-card::before { top: 18px; }
.l-boxed .cover-card::after { bottom: 18px; transform: translateX(-50%) rotate(180deg); }
.l-boxed .sec-hero .hero-media img { aspect-ratio: 1; border-radius: 50%; max-width: 280px; border: 4px double var(--accent); padding: 6px; }
.l-boxed .event-card, .l-boxed .contact-card, .l-boxed .countdown > div, .l-boxed .box { box-shadow: none; border-style: double; border-width: 3px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 4px; }

/* cards: each section floats as its own card */
.l-cards .sec:not(.sec-hero):not(.sec-divider):not(.sec-spacer) > .wrap {
  background: var(--surface); color: var(--on-surface); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow);
  border: var(--bw) solid var(--line); padding-block: clamp(26px, 5vw, 44px); --focus: var(--on-surface);
}
.l-cards .sec { padding-block: 14px; }
.l-cards .sec-hero { padding-top: 40px; }
.l-cards .sec:not(.sec-hero) .sec-title { color: var(--on-surface); }
.l-cards .event-card, .l-cards .contact-card, .l-cards .countdown > div, .l-cards .box, .l-cards .comment { box-shadow: none; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.l-cards .schedule li { border-color: color-mix(in srgb, var(--on-surface) 20%, transparent); }
.l-cards .cover-card { background: var(--surface); color: var(--on-surface); border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .3); outline: 0; }
.l-cards .sec-hero .hero-media img { border-radius: 26px; aspect-ratio: 4 / 5; transform: rotate(-2deg); box-shadow: var(--shadow); }
.l-cards .story { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* editorial: magazine type, left aligned, numbered sections, hairlines */
.l-editorial { counter-reset: sec; }
.l-editorial .sec:not(.sec-hero) > .wrap { text-align: left; }
.l-editorial .sec-title { counter-increment: sec; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; font-size: calc(clamp(1.8rem, 6vw, 2.8rem) * var(--hsx, 1)); }
.l-editorial .sec-title::before { content: counter(sec, decimal-leading-zero); font: 600 .9rem/1 var(--fb); letter-spacing: .15em; color: var(--accent); }
.l-editorial .sec-title::after { grid-column: 1 / -1; width: 100%; height: 1px; margin: 6px 0 0; background: color-mix(in srgb, var(--text) 25%, transparent); }
.l-editorial .sec-hero .hero-text { text-align: left; }
.l-editorial .sec-hero .hero-title { font-size: calc(clamp(3rem, 14vw, 6.4rem) * var(--hsx, 1)); line-height: .95 !important; letter-spacing: -.02em; }
.l-editorial .sec-hero .hero-sub { margin-left: 0; text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; }
.l-editorial .sec-hero .hero-media img { border-radius: 0; aspect-ratio: 3 / 4; max-width: none; }
.l-editorial .invite, .l-editorial .couple, .l-editorial .person { justify-items: start; text-align: left; }
.l-editorial .couple-amp { font-style: italic; }
.l-editorial .event-card, .l-editorial .contact-card, .l-editorial .countdown > div, .l-editorial .box, .l-editorial .comment { border-radius: 0; box-shadow: none; border-width: 0 0 0 3px; border-color: var(--accent); }
.l-editorial .countdown { justify-content: flex-start; }
.l-editorial .rsvp-form, .l-editorial .contacts, .l-editorial .gift, .l-editorial .schedule, .l-editorial .story, .l-editorial .rsvp-text, .l-editorial .rsvp-deadline, .l-editorial .gift-text { margin-inline: 0; justify-items: start; text-align: left; }
.l-editorial .divider-ornament, .l-editorial .divider-flower { margin-inline: 0; }
.l-editorial .cover-card { border: 0; outline: 0; border-left: 3px solid var(--accent); border-radius: 0; text-align: left; }
.l-editorial .cover-guest { margin-left: 0; }
.l-editorial .cover-names { font-size: calc(clamp(3rem, 13vw, 5rem) * var(--hsx, 1)); }

/* split: on computers the cover banner stays fixed on the left, content scrolls on the right */
@media (min-width: 980px) {
  .l-split .us-main { margin-left: 44%; }
  .l-split .us-foot { margin-left: 44%; }
  .l-split .sec-hero { position: fixed; top: 0; bottom: 0; left: 0; width: 44%; display: grid; place-items: center; overflow: hidden; z-index: 1;
    background: color-mix(in srgb, var(--bg1) 88%, var(--text) 12%); border-right: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
  .l-split .sec-hero::after { content: ""; position: absolute; inset: 18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; }
  .l-split .sec-hero .hero { grid-template-columns: minmax(0, 1fr) !important; }
  .l-split .sec-hero .hero-media img { max-height: 46vh; width: auto; }
  .l-split .dock { left: 72%; }
  .l-split .us-preview-badge { right: 12px; }
}
.l-split .cover-card { border-radius: 2px; outline-offset: 10px; }
.l-split .cover-card::before { content: ""; position: absolute; left: 50%; top: -40px; height: 30px; width: 1px; background: var(--accent); }
.l-split .sec-title { letter-spacing: .08em; }
.l-split .event-card { border-left: 4px solid var(--accent); }

/* bold: colour bands, big uppercase titles */
.l-bold .sec-hero { background: var(--accent); color: var(--on-accent); padding-block: clamp(60px, 14vw, 120px); }
.l-bold .sec-hero .hero-title { color: var(--on-accent) !important; text-transform: uppercase; letter-spacing: .02em; }
.l-bold .sec-hero .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.l-bold .sec-hero .hero-media img { border-radius: var(--radius); aspect-ratio: 16 / 10; max-width: 640px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }
.l-bold .sec:nth-of-type(odd):not(.sec-hero) { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.l-bold .sec-title { text-transform: uppercase; font-weight: 800 !important; letter-spacing: .04em; }
.l-bold .sec-title::after { background: var(--accent); width: 56px; height: 5px; border-radius: 3px; }
.l-bold .cover { background: var(--accent); color: var(--on-accent); }
.l-bold .cover-card { border-color: currentColor; outline-color: currentColor; border-radius: 0; }
.l-bold .cover-names { color: var(--on-accent) !important; text-transform: uppercase; }
.l-bold .cover-open { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.l-bold .cover-guest { border-color: color-mix(in srgb, var(--on-accent) 40%, transparent); }
.l-bold .event-date, .l-bold .countdown > div { border-radius: 4px; }
.l-bold .countdown > div { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* playful: rounded, tilted cards, confetti */
.l-playful { --radius: 26px; --radius-sm: 18px; }
.l-playful::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, var(--accent) 0 3px, transparent 4px) 0 0 / 70px 70px, radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, #ffd23f) 0 3px, transparent 4px) 35px 35px / 70px 70px; }
.l-playful .sec-title::after { height: 12px; width: 90px; background: radial-gradient(circle at 6px 6px, var(--accent) 0 4px, transparent 4.5px) 0 0 / 15px 12px repeat-x; }
.l-playful .event-card, .l-playful .contact-card, .l-playful .box, .l-playful .comment { border-width: 3px; border-color: var(--accent); box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.l-playful .events-list > :nth-child(odd), .l-playful .contacts > :nth-child(odd) { transform: rotate(-1.2deg); }
.l-playful .events-list > :nth-child(even), .l-playful .contacts > :nth-child(even) { transform: rotate(1deg); }
.l-playful .countdown > div { border-radius: 50%; width: 82px; height: 82px; min-width: 0; padding: 0; place-content: center; border: 3px solid var(--accent); }
.l-playful .countdown > div:nth-child(even) { transform: translateY(8px); }
.l-playful .btn { box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.l-playful .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.l-playful .sec-hero .hero-media img { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; aspect-ratio: 1; max-width: 340px; border: 6px solid var(--surface); box-shadow: var(--shadow); }
.l-playful .hero-title { transform: rotate(-2deg); }
.l-playful .cover-card { border-radius: 40px; border-width: 3px; border-color: var(--accent); outline: 3px dashed color-mix(in srgb, var(--accent) 50%, transparent); transform: rotate(-1.5deg); }
.l-playful .cover-open { animation: cover-bounce 1.6s ease-in-out infinite; }
@keyframes cover-bounce { 50% { transform: translateY(-6px); } }

/* ==========================================================================
   Designs added in 1.1 (decorations and surfaces that stay readable)
   ========================================================================== */
.t-lavender { --surface: #fdfbff; --on-surface: #34264a; --line: #ddd0ec; }
.t-lavender::before { background: radial-gradient(ellipse 30px 90px at 6% 100%, #b9a3d6 0 98%, transparent), radial-gradient(ellipse 26px 80px at 12% 100%, #cdb9e6 0 98%, transparent), radial-gradient(ellipse 30px 90px at 94% 100%, #b9a3d6 0 98%, transparent); opacity: .55; }
.t-batik { --surface: #fffaf2; --on-surface: #22324f; --line: #d8c7ad; --radius: 6px; }
.t-batik::before { background:
  radial-gradient(circle at 20px 20px, transparent 9px, rgba(47, 74, 122, .14) 10px 12px, transparent 13px) 0 0 / 40px 40px,
  radial-gradient(circle at 0 0, transparent 6px, rgba(181, 98, 54, .14) 7px 9px, transparent 10px) 0 0 / 40px 40px; }
.t-batik .sec-title, .t-batik .cover-kicker { letter-spacing: .1em; text-transform: uppercase; }
.t-cincin { --surface: #fffafa; --on-surface: #4a2531; --line: #f0cdd6; }
.t-cincin::before { background: radial-gradient(circle at 85% 12%, transparent 40px, rgba(176, 86, 110, .18) 41px 44px, transparent 45px), radial-gradient(circle at 78% 14%, transparent 40px, rgba(201, 163, 90, .25) 41px 44px, transparent 45px); }
.t-tunang { --surface: #ffffff; --on-surface: #2c2418; --line: #e6dccb; --shadow: none; }
.t-konfeti { --surface: #ffffff; --on-surface: #2a1e16; --line: #f2d6c6; }
.t-konfeti::before { background: radial-gradient(circle, #f6c344 0 4px, transparent 5px) 10px 20px / 90px 90px, radial-gradient(circle, #4cb5e2 0 4px, transparent 5px) 50px 60px / 90px 90px, radial-gradient(circle, #8bc34a 0 3px, transparent 4px) 70px 10px / 90px 90px; }
.t-neon { --surface: #1d1838; --on-surface: #f4ecff; --line: rgba(255, 79, 163, .45); --line-strong: rgba(244, 236, 255, .5); --input-bg: #14112b; }
.t-neon .sec-title, .t-neon .hero-title, .t-neon .cover-names { text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent); }
.t-ramadan { --surface: #182a52; --on-surface: #fbf1dc; --line: rgba(242, 196, 109, .45); --line-strong: rgba(251, 241, 220, .5); --input-bg: #0e1c3d; }
.t-ramadan::before { background:
  radial-gradient(circle at 86% 10%, #f2c46d 0 34px, transparent 35px), radial-gradient(circle at 90% 8%, #1b2c57 0 32px, transparent 33px),
  radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 35% 70%, #fff, transparent); }
.t-kurma { --surface: #fffaf3; --on-surface: #3d2414; --line: #e2cdb3; }
.t-raya { --surface: #146240; --on-surface: #fdf6dc; --line: rgba(245, 215, 110, .45); --line-strong: rgba(253, 246, 220, .5); --input-bg: #0f5132; }
.t-raya::before { background: repeating-linear-gradient(45deg, rgba(245, 215, 110, .1) 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, rgba(245, 215, 110, .1) 0 2px, transparent 2px 22px); }
.t-ketupat { --surface: #ffffff; --on-surface: #20341e; --line: #cfe0c6; }
.t-ketupat::before { background: repeating-linear-gradient(45deg, rgba(63, 125, 58, .07) 0 10px, transparent 10px 20px), repeating-linear-gradient(-45deg, rgba(63, 125, 58, .07) 0 10px, transparent 10px 20px); }
.t-korporat { --surface: #ffffff; --on-surface: #142542; --line: #d6deeb; --radius: 6px; --btn-radius: 6px; }
.t-eksekutif { --surface: #26292e; --on-surface: #f2efe8; --line: rgba(201, 163, 90, .4); --line-strong: rgba(242, 239, 232, .5); --input-bg: #1c1e22; --radius: 4px; --btn-radius: 4px; }
.t-disko { --surface: #2a1240; --on-surface: #fff6dd; --line: rgba(255, 210, 63, .45); --line-strong: rgba(255, 246, 221, .5); --input-bg: #1a0b2e; }
.t-disko::before { background: radial-gradient(circle, rgba(255, 255, 255, .5) 0 1.5px, transparent 2px) 0 0 / 34px 34px, radial-gradient(circle, rgba(255, 210, 63, .5) 0 1.5px, transparent 2px) 17px 17px / 34px 34px; animation: twinkle 3s ease-in-out infinite alternate; }
.t-fiesta { --surface: #ffffff; --on-surface: #3a1a05; --line: #f6d3b5; }
.t-fiesta::before { background: repeating-linear-gradient(90deg, #e8590c 0 40px, #f59f00 40px 80px, #2b8a3e 80px 120px, #1971c2 120px 160px) top / 100% 8px no-repeat; }
.t-serbaguna { --surface: #ffffff; --on-surface: #2b2340; --line: #e1dbea; }
.t-moden { --surface: #ffffff; --on-surface: #10302d; --line: #d5e7e4; --shadow: none; }
.t-pinkbiru { --surface: #ffffff; --on-surface: #36203a; --line: #f0d4e3; }
.t-pinkbiru::before { background: radial-gradient(ellipse 34px 42px at 8% 18%, #f7b6cd 0 98%, transparent), radial-gradient(ellipse 34px 42px at 92% 26%, #a9d1f7 0 98%, transparent), radial-gradient(ellipse 28px 36px at 14% 80%, #a9d1f7 0 98%, transparent), radial-gradient(ellipse 28px 36px at 88% 86%, #f7b6cd 0 98%, transparent); }
.t-teka { --surface: #ffffff; --on-surface: #262457; --line: #dcdaf5; }
.t-teka .sec-title::after { background: none; content: "?"; width: auto; height: auto; font-size: 1.4rem; color: var(--accent); }
.t-champagne { --surface: #fffdf8; --on-surface: #3b2c16; --line: #eadcc3; }
.t-champagne::before { background: radial-gradient(circle, rgba(160, 122, 63, .25) 0 3px, transparent 4px) 12px 0 / 60px 80px, radial-gradient(circle, rgba(160, 122, 63, .18) 0 2px, transparent 3px) 42px 40px / 60px 80px; }
.t-jambangan { --surface: #ffffff; --on-surface: #4a1d2c; --line: #f3d0da; }
.t-teddy { --surface: #fffaf4; --on-surface: #3a2414; --line: #ead6c2; }
.t-teddy .sec-title::after { background: none; content: "🧸"; width: auto; height: auto; font-size: 1.1rem; }
.t-awan { --surface: #ffffff; --on-surface: #1d3550; --line: #cfe2f2; }
.t-awan::before { background: radial-gradient(ellipse 80px 30px at 10% 12%, #fff 0 98%, transparent), radial-gradient(ellipse 60px 24px at 16% 10%, #fff 0 98%, transparent), radial-gradient(ellipse 90px 32px at 88% 30%, #fff 0 98%, transparent), radial-gradient(ellipse 70px 26px at 20% 75%, #fff 0 98%, transparent); }
:is(.t-neon, .t-ramadan, .t-raya, .t-eksekutif, .t-disko) .gift-qr { background: #fff; }

/* ==========================================================================
   Print / PDF (dashboard → PDF): keeps colours, removes moving and interactive parts
   ========================================================================== */
.print-bar { position: sticky; top: 0; z-index: 99; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px; background: #2a1f24; color: #fff; font: 14px/1.4 system-ui, sans-serif; }
.print-bar span { flex: 1 1 260px; opacity: .85; }
.print-bar a { color: #fff; }
.print-qr { display: grid; justify-items: center; gap: 4px; max-width: 320px; margin-inline: auto; text-align: center; }
.print-qr p { margin: 0; }
.print-link { font-weight: 700; word-break: break-all; }
.m-print .countdown { display: none; }
.m-print .sec > .wrap { opacity: 1 !important; transform: none !important; }
.m-print .event-actions, .m-print .contact-actions, .m-print .hero .btn, .m-print .gift .btn { display: none; }
@media print {
  @page { margin: 10mm; }
  .us { -webkit-print-color-adjust: exact; print-color-adjust: exact; background-attachment: scroll; }
  .print-bar, .skip, .us-preview-badge, .demo-bar { display: none !important; }
  .us::before, .us::after { position: absolute; }
  .sec { break-inside: avoid; padding-block: 18px; }
  .event-card, .contact-card, .box, .story-item, figure { break-inside: avoid; }
  .l-split .us-main, .l-split .us-foot { margin-left: 0; }
  .l-split .sec-hero { position: static; width: auto; }
  .l-cards .sec-hero .hero-media img, .l-playful .events-list > *, .l-playful .contacts > *, .l-playful .hero-title { transform: none; }
  .us-foot { padding-bottom: 0; }
}
/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .us *, .us *::before, .us *::after { animation: none !important; transition: none !important; }
  .fx, .fx span { transform: none !important; opacity: 1 !important; filter: none !important; }
  .fx-typewriter { clip-path: none !important; }
  .fx-typewriter::after, .fx-glitch::before, .fx-glitch::after { display: none; }
  .fx-marquee { white-space: normal; text-indent: 0; }
  .fx-outline { -webkit-text-fill-color: currentColor; }
  .btn:hover, .react:hover { transform: none !important; }
  .js-reveal .sec > .wrap { opacity: 1 !important; transform: none !important; }
  .cover.opened { transform: none; }
  .l-playful .events-list > *, .l-playful .contacts > *, .l-playful .cover-card, .l-playful .hero-title { transform: none !important; }
}
