/* =========================================================
   Ring Ceremony Invitation — Kerala heritage, modern stationery
   Palette: ivory, blush, dusty rose, sage, champagne, kasavu gold
   ========================================================= */

:root {
  --ivory: #fbf5ea;
  --ivory-deep: #f4ead8;
  --paper: #fffdf8;
  --blush: #f3d9d3;
  --blush-soft: #f9ebe6;
  --rose: #c58b8f;
  --rose-ink: #96505b;      /* accessible rose for text */
  --sage: #9aa88a;
  --sage-ink: #52664a;
  --champagne: #ecdcb8;
  --gold: #c9a45c;
  --gold-ink: #7d5f22;      /* accessible gold for small text */
  --ink: #45363a;
  --ink-soft: #6a5a5d;

  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-ml: "Noto Serif Malayalam", "Kartika", "Noto Sans Malayalam", serif;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-soft: cubic-bezier(.22, .8, .24, 1);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ivory) var(--paper-grain);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; touch-action: none; }

h1, h2, p, dl, dd { margin: 0; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose-ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kasavu border (the gold-striped edge of a Kerala sari/mundu) ---------- */
.kasavu {
  --k: var(--gold);
  position: relative;
  height: 14px;
  background:
    linear-gradient(var(--k), var(--k)) top / 100% 2px no-repeat,
    linear-gradient(var(--k), var(--k)) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--k) 0 8px, transparent 8px 12px) center / 100% 6px no-repeat;
}
.kasavu--shimmer { overflow: hidden; max-width: 260px; margin-inline: auto; }
.kasavu--shimmer::after,
.kasavu--footer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: shimmer 6s ease-in-out 2.5s infinite;
}
.kasavu--footer { margin-top: 4rem; overflow: hidden; }
@keyframes shimmer { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* =========================================================
   COVER — two panels part, lamp seal dissolves
   ========================================================= */
.cover { position: fixed; inset: 0; z-index: 100; overflow: hidden; }
html:not(.js) .cover { display: none; }
.cover.is-done { visibility: hidden; pointer-events: none; }

.cover__panel {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background: var(--ivory) var(--paper-grain);
  transition: transform 1.4s var(--ease);
  will-change: transform;
  overflow: hidden;
}
.cover__panel::before { /* soft dot lattice */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--blush) 0 2px, transparent 2.5px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--blush-soft), transparent 40%, var(--blush-soft));
  opacity: .8;
}
.cover__panel::after { /* kasavu stripe down the seam */
  content: ""; position: absolute; top: 0; bottom: 0; width: 16px;
  background:
    linear-gradient(var(--gold), var(--gold)) left / 2px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) right / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 12px) center / 6px 100% no-repeat;
}
.cover__panel--left { left: 0; box-shadow: 1px 0 0 rgba(201, 164, 92, .35); }
.cover__panel--left::after { right: 0; }
.cover__panel--right { right: 0; }
.cover__panel--right::after { left: 0; }

.cover__art { position: absolute; width: min(46vw, 200px); height: min(46vw, 200px); }
.cover__art--tl { top: -10px; left: -14px; }
.cover__art--bl { bottom: -10px; left: -14px; transform: scaleY(-1); }
.cover__art--tr { top: -10px; right: -14px; transform: scaleX(-1); }
.cover__art--br { bottom: -10px; right: -14px; transform: scale(-1, -1); }
.cover__star { position: absolute; width: 14px; height: 14px; color: var(--gold); opacity: .8; }
.cover__star--a { top: 16%; left: 30%; } .cover__star--b { bottom: 20%; left: 18%; width: 10px; height: 10px; }
.cover__star--c { top: 22%; right: 26%; width: 10px; height: 10px; } .cover__star--d { bottom: 14%; right: 32%; }

/* The keepsake seal — fastened across the seam */
.cover__seal {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(80vw, 300px);
  padding: 2.2rem 1.2rem 1.4rem;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(201, 164, 92, .55), 0 18px 40px -22px rgba(120, 80, 60, .35);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: transform .7s var(--ease-soft), opacity .5s ease;
  -webkit-tap-highlight-color: transparent;
}
.cover__seal:hover { transform: translateY(-3px); }
.cover__lamp { width: 52px; height: 72px; color: var(--gold); }
.cover__initials { display: flex; align-items: center; gap: .6rem; margin-top: .4rem;
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 500; line-height: 1; color: var(--ink); }
.cover__heart { width: 14px; height: 14px; color: var(--rose); }
.cover__kicker { margin-top: .5rem; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.cover__ml { font-family: var(--font-ml); font-size: 1rem; color: var(--rose-ink); }
.cover__cta {
  margin-top: 1rem; padding: .7rem 1.3rem; min-height: 44px;
  border-radius: 999px; background: var(--rose-ink); color: #fff;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center;
  transition: background .3s ease;
}
.cover__seal:hover .cover__cta { background: #7f414b; }
.cover__chev { width: 22px; height: 22px; margin-top: .2rem; color: var(--rose-ink); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); opacity: .6; } 50% { transform: translateY(4px); opacity: 1; } }

/* open state */
.is-open .cover__panel--left { transform: translateX(-101%); }
.is-open .cover__panel--right { transform: translateX(101%); }
.is-open .cover__seal { opacity: 0; transform: scale(1.18); pointer-events: none; transition: transform .6s var(--ease-soft), opacity .45s ease; }

/* =========================================================
   NAV
   ========================================================= */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: max(.6rem, env(safe-area-inset-top)) 1rem .6rem;
  opacity: 0; transform: translateY(-100%);
  transition: opacity .8s ease 1.6s, transform .8s var(--ease-soft) 1.6s;
}
.is-open .topnav { opacity: 1; transform: none; }
body:not(.is-open) .topnav { transition-delay: 0s; }
.topnav nav {
  display: flex; gap: .15rem; padding: .25rem;
  background: rgba(255, 253, 248, .86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 164, 92, .5); border-radius: 999px;
}
.topnav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .8rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; color: var(--ink); border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.topnav a:hover { background: var(--blush); color: var(--rose-ink); }

/* falling hearts, blossoms & leaves */
.fall { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1s ease; }
.fall.is-on { opacity: 1; }
.fall__item {
  position: absolute; top: 0; left: var(--x);
  opacity: 0;
  animation: fall-down var(--dur) linear var(--delay) infinite;
  will-change: transform, opacity;
}
.fall__sway { display: block; animation: fall-sway var(--sway-dur) ease-in-out infinite alternate; }
.fall__sway svg { animation: fall-spin calc(var(--dur) * .8) linear infinite; filter: drop-shadow(0 1px 1px rgba(150, 80, 90, .25)); }
@keyframes fall-down {
  0%   { transform: translateY(-8vh); opacity: 0; }
  8%   { opacity: .95; }
  85%  { opacity: .95; }
  100% { transform: translateY(108vh); opacity: 0; }
}
@keyframes fall-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(-14deg); }
  to   { transform: translateX(var(--sway)) rotate(14deg); }
}
@keyframes fall-spin {
  from { transform: rotateY(0) rotateZ(0); }
  to   { transform: rotateY(calc(360deg * var(--dir))) rotateZ(calc(var(--rot) * var(--dir))); }
}
@media (prefers-reduced-motion: reduce) { .fall { display: none; } }

/* music toggle */
.music-btn {
  position: fixed; right: max(.9rem, env(safe-area-inset-right)); bottom: max(.9rem, env(safe-area-inset-bottom)); z-index: 60;
  width: 48px; height: 48px; padding: 11px; border-radius: 50%;
  background: rgba(255, 253, 248, .92); color: var(--rose-ink);
  border: 1px solid var(--gold); cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(120, 80, 60, .5);
  opacity: 0; pointer-events: none; transition: opacity .6s ease 1.8s, transform .3s var(--ease-soft);
}
.is-open .music-btn { opacity: 1; pointer-events: auto; }
body:not(.is-open) .music-btn { transition-delay: 0s; }
.music-btn:hover { transform: scale(1.06); }
.music-btn[hidden] { display: none; }
.music-btn svg { width: 100%; height: 100%; }
.music-btn .music-btn__off { display: block; }
.music-btn .music-btn__on { display: none; }
.music-btn.is-playing .music-btn__off { display: none; }
.music-btn.is-playing .music-btn__on { display: block; animation: nudge 2.4s ease-in-out infinite; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4.5rem 1rem 4.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--blush-soft), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, #e7eddc, transparent 70%);
}
.hero__garland { position: absolute; top: 0; left: 50%; width: min(100%, 900px); translate: -50% 0; z-index: 2; height: auto; pointer-events: none; }
.hero__palm { position: absolute; bottom: -20px; z-index: 0; height: auto; pointer-events: none; opacity: .7; }
.hero__palm--l { left: -42px; width: clamp(140px, 30vw, 300px); aspect-ratio: 220/340; }
.hero__palm--r { right: -36px; width: clamp(120px, 26vw, 260px); aspect-ratio: 220/340; transform: scaleX(-1); }

.hero__arch {
  position: relative; z-index: 1; width: min(100%, 560px);
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 999px 999px 22px 22px;
  box-shadow: 0 28px 60px -34px rgba(120, 80, 60, .35);
}
.hero__inner {
  border: 1px solid rgba(201, 164, 92, .55);
  border-radius: 999px 999px 16px 16px;
  padding: clamp(3.5rem, 16vw, 6.5rem) clamp(1.1rem, 6vw, 3rem) 2.2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blush-soft), var(--paper) 38%);
}
.hero__welcome { font-family: var(--font-ml); color: var(--rose-ink); font-size: 1.05rem; }
.hero__intro { margin-top: .2rem; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.hero__names { margin-top: 1rem; display: flex; flex-direction: column; align-items: center; line-height: 1.02; font-weight: 500; }
.hero__name {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.5rem, 12.5vw, 4.6rem);
  overflow-wrap: anywhere; color: var(--ink);
}
.hero__amp { font-family: var(--font-script); font-size: clamp(2.1rem, 9vw, 3.2rem); color: var(--rose); margin: .1rem 0; }
.hero__lead { margin: 1.1rem auto 1.4rem; max-width: 30ch; font-family: var(--font-serif); font-style: italic; font-size: 1.28rem; line-height: 1.45; color: var(--ink-soft); }
.hero__meta { margin-top: 1.4rem; display: grid; gap: .9rem; }
.hero__meta dd { font-size: 1rem; }
.hero__date { font-family: var(--font-serif); font-size: 1.55rem !important; font-weight: 600; color: var(--rose-ink); letter-spacing: .02em; }
.hero__meta strong { font-weight: 500; letter-spacing: .04em; }

.scroll-cue {
  position: relative; z-index: 1; margin-top: 1.8rem; min-height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); font-weight: 500;
}
.scroll-cue svg { width: 22px; height: 22px; animation: nudge 1.8s ease-in-out infinite; color: var(--rose-ink); }
.scroll-cue:hover { color: var(--rose-ink); }

/* floating blossoms */
.petal { position: absolute; z-index: 1; pointer-events: none; opacity: .8; animation: floaty 9s ease-in-out infinite; }
.petal svg { width: 100%; height: 100%; }
.petal--1 { top: 22%; left: 6%; width: 30px; height: 30px; color: #e5aeb0; }
.petal--2 { top: 38%; right: 5%; width: 22px; height: 22px; color: var(--champagne); animation-delay: -3s; animation-duration: 11s; }
.petal--3 { bottom: 24%; left: 10%; width: 20px; height: 20px; color: var(--blush); animation-delay: -5s; animation-duration: 12s; }
.petal--4 { bottom: 30%; right: 9%; width: 28px; height: 28px; color: #e5aeb0; animation-delay: -7s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(14deg); } }

/* hero entrance choreography (runs when the cover opens) */
[data-rise] { transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
body:not(.is-open) [data-rise] { opacity: 0; transform: translateY(26px) scale(.97); transition: none; }
body.is-open [data-rise] { transition-delay: var(--d, 0s); }
body:not(.is-open) .hero__garland { opacity: 0; transform: translateY(-20px); }
.hero__garland { transition: opacity 1s ease .5s, transform 1s var(--ease-soft) .5s; }
.is-open .hero__garland { opacity: 1; transform: none; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(3.5rem, 10vw, 6rem) 1.1rem; text-align: center; position: relative; }
.wrap { width: 100%; margin-inline: auto; }
.wrap--narrow { max-width: 640px; }
.section__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2rem, 7vw, 3rem); line-height: 1.15; margin-bottom: 1.2rem;
}
.divider { width: 220px; height: 60px; margin: 0 auto 1rem; }
.message__text { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.message__text + .message__text { margin-top: 1rem; }
.message__text:first-of-type { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.6; color: var(--ink); }

.details { background: linear-gradient(180deg, transparent, var(--blush-soft) 20%, var(--blush-soft) 80%, transparent); }
.card {
  background: var(--paper); border: 1px solid rgba(201, 164, 92, .5); border-radius: 18px;
  padding: 1.1rem 1.1rem; text-align: left;
  box-shadow: 0 24px 50px -36px rgba(120, 80, 60, .5);
  transition: transform .5s var(--ease-soft), box-shadow .5s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -34px rgba(120, 80, 60, .55); }
.details__list { padding: .6rem .3rem; }
.details__item {
  display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; align-items: start;
  padding: 1rem .3rem; border-bottom: 1px dashed rgba(201, 164, 92, .55);
}
.details__item:last-child { border-bottom: 0; }
.details__icon { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--blush-soft); color: var(--rose-ink); border: 1px solid rgba(201, 164, 92, .5); }
.details__item dt { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.details__item dd { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.35; overflow-wrap: anywhere; }
.details__item[hidden] { display: none; }

.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 500px; margin: 0 auto; }
.countdown__cell {
  display: flex; flex-direction: column; align-items: center; padding: 1rem .2rem .8rem;
  background: var(--paper); border: 1px solid rgba(201, 164, 92, .55);
  border-radius: 999px 999px 14px 14px;
}
.countdown__num { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 8vw, 2.8rem); line-height: 1.1; color: var(--rose-ink); font-variant-numeric: tabular-nums; }
.countdown__label { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.countdown__note { margin-top: 1.2rem; font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }
.countdown.is-fallback .countdown__grid { display: none; }

.venue__art { width: min(100%, 320px); height: auto; margin: 0 auto 1rem; }
.venue__text { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.5; margin-bottom: 1.6rem; overflow-wrap: anywhere; }
.venue__text strong { font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.8rem; border-radius: 999px;
  background: var(--rose-ink); color: #fff; border: 1px solid var(--rose-ink);
  font: 500 .82rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-soft), background .3s ease, box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: #7f414b; transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(127, 65, 75, .7); }
.btn--ghost { background: transparent; color: var(--rose-ink); margin-top: 2rem; }
.btn--ghost:hover { background: var(--blush-soft); color: #7f414b; box-shadow: none; }

.closing__art { width: min(100%, 260px); height: auto; margin: 0 auto .5rem; overflow: hidden; }
.closing__signoff { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; }
.closing__ml { font-family: var(--font-ml); color: var(--gold-ink); font-size: 1rem; }
.closing__love { font-family: var(--font-script); font-size: 2.2rem; color: var(--rose); line-height: 1.3; }
.closing__names { font-family: var(--font-serif); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; overflow-wrap: anywhere; }

/* scroll reveals */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   LARGER SCREENS
   ========================================================= */
@media (min-width: 768px) {
  body { font-size: 1.125rem; }
  .topnav a { padding: 0 1.1rem; font-size: .78rem; }
  .card { padding: 1.6rem 2rem; }
  .details__item { grid-template-columns: 52px 1fr; padding: 1.2rem .4rem; }
  .details__icon { width: 48px; height: 48px; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__names { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 .8rem; }
  .hero__name { font-size: clamp(2.6rem, 6vw, 3.6rem); }
  .hero__arch { width: min(100%, 640px); }
}
@media (min-width: 1024px) {
  .hero__arch { width: 680px; }
  .hero__palm { opacity: .85; }
}
@media (max-width: 767px) {
  .topnav { display: none; } /* header navigation hidden on small screens */
}
@media (max-width: 380px) {
  .cover__seal { padding-top: 1.8rem; }
  .hero__lead { font-size: 1.18rem; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .cover__lamp { width: 36px; height: 50px; }
  .cover__seal { padding-top: 1.4rem; }
  .cover__cta { margin-top: .5rem; }
}

/* =========================================================
   REDUCED MOTION — gentle crossfade instead of movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .cover__panel, .cover__seal, .topnav, [data-rise], .hero__garland, .js .reveal, .card, .btn {
    transition: opacity .4s ease !important; transition-delay: 0s !important; transform: none !important;
  }
  .is-open .cover__panel { opacity: 0; }
  .js .reveal, body.is-open [data-rise] { transform: none; }
}

/* =========================================================
   LANGUAGE SWITCHER + MALAYALAM TYPOGRAPHY
   ========================================================= */
.lang {
  position: fixed; top: max(.7rem, env(safe-area-inset-top)); right: max(.7rem, env(safe-area-inset-right)); z-index: 120;
  display: flex; padding: 3px; gap: 2px;
  background: rgba(255, 253, 248, .94); border: 1px solid var(--gold); border-radius: 999px;
  box-shadow: 0 10px 22px -14px rgba(120, 80, 60, .5);
}
.lang__btn {
  min-height: 38px; padding: 0 .9rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); font: 500 .78rem/1 var(--font-sans); letter-spacing: .06em;
  transition: background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang__btn[data-lang="ml"] { font-family: var(--font-ml); letter-spacing: 0; font-size: .85rem; }
.lang__btn:hover { background: var(--blush-soft); }
.lang__btn[aria-pressed="true"] { background: var(--rose-ink); color: #fff; }

/* Malayalam: use a Malayalam-capable face, no letter-spacing/uppercase (it breaks conjuncts) */
html[lang="ml"] {
  --font-serif: "Noto Serif Malayalam", "Kartika", "Cormorant Garamond", serif;
  --font-sans: "Noto Serif Malayalam", "Kartika", "Jost", system-ui, sans-serif;
}
html[lang="ml"] body { line-height: 1.9; font-weight: 400; }
html[lang="ml"] body *:not(.lang__btn) { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ml"] .hero__lead, html[lang="ml"] .countdown__note { font-style: normal; }
html[lang="ml"] .hero__name { line-height: 1.25; }
html[lang="ml"] .hero__lead { font-size: 1.12rem; }
html[lang="ml"] .message__text:first-of-type { font-size: 1.15rem; line-height: 1.9; }
html[lang="ml"] .details__item dd, html[lang="ml"] .venue__text { line-height: 1.6; }
html[lang="ml"] .closing__love { font-family: var(--font-ml); font-size: 1.5rem; }
html[lang="ml"] .closing__ml { display: none; }
html[lang="ml"] .cover__kicker, html[lang="ml"] .hero__intro { font-size: .9rem; }
html[lang="ml"] .cover__cta, html[lang="ml"] .btn, html[lang="ml"] .topnav a { font-size: .9rem; }
html[lang="ml"] .countdown__label { font-size: .8rem; }
html[lang="ml"] .details__item dt { font-size: .9rem; }
html[lang="ml"] .scroll-cue { font-size: .85rem; }

/* keep the centered nav clear of the language switcher on tablet widths */
@media (min-width: 768px) and (max-width: 1050px) {
  .topnav { justify-content: flex-start; padding-left: 1rem; }
}
