/* =====================================================================
   Nomcebo & Thabiso · Wedding
   style.css · Tigerwalk Communications
   ---------------------------------------------------------------------
   "All Black" look: black envelope cover with a gold wax seal, black
   pages, gold foil details, Cormorant Garamond / Montserrat / Great Vibes.
   Colours and fonts are the variables just below.
   ===================================================================== */

:root {
  --bg:        #0b0b0b;   /* page */
  --bg-2:      #111010;   /* alternate sections */
  --card:      #141210;   /* cards and panels */
  --field:     #0c0b0a;   /* form fields */
  --night:     #060606;   /* footer */
  --gold:      #d8b97a;   /* accent */
  --gold-light:#f1dfb4;
  --gold-deep: #a9874e;
  --gold-grad: linear-gradient(100deg, #b38e4e, #f1dcaa 50%, #c39e5c);
  --text:      #f4eee2;
  --muted:     rgba(244, 238, 226, .68);
  --line:      rgba(216, 185, 122, .4);
  --line-soft: rgba(216, 185, 122, .18);
  --error:     #f0a08a;

  /* digits from Cormorant Infant (upright numerals), letters from Cormorant Garamond */
  --serif:  'Cormorant Infant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* gold diamond chain, used for the deco strips */
  --deco-chain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16'%3E%3Cpath d='M0 8h3M17 8h3' stroke='%23d8b97a' stroke-width='.8'/%3E%3Cpath d='M10 2.5 15.5 8 10 13.5 4.5 8Z' fill='none' stroke='%23d8b97a' stroke-width='.9'/%3E%3Ccircle cx='10' cy='8' r='1.4' fill='%23d8b97a'/%3E%3C/svg%3E");
  /* faint art-deco lattice for dark backgrounds */
  --lattice:
    repeating-linear-gradient(45deg, rgba(216, 185, 122, .035) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(216, 185, 122, .035) 0 1px, transparent 1px 26px);
  /* gold dust specks */
  --dust:
    radial-gradient(1.4px 1.4px at 12% 18%, #f1dfb4cc, transparent),
    radial-gradient(1px 1px at 32% 64%, #d8b97aaa, transparent),
    radial-gradient(1.6px 1.6px at 54% 28%, #f1dfb499, transparent),
    radial-gradient(1px 1px at 72% 82%, #d8b97acc, transparent),
    radial-gradient(1.2px 1.2px at 88% 40%, #f1dfb4aa, transparent),
    radial-gradient(1px 1px at 42% 92%, #d8b97a88, transparent),
    radial-gradient(1.3px 1.3px at 6% 74%, #f1dfb488, transparent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.js body.is-locked { overflow: hidden; }   /* only while the envelope is open */

img { display: block; width: 100%; height: auto; object-fit: cover; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.15em;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site { overflow: hidden; }
.section { position: relative; padding: 110px max(6vw, 24px); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

/* ---------- Type ---------- */
.overline, .tiny-line {
  font: 600 11px/1.5 var(--sans);
  letter-spacing: 3.5px;
  text-transform: uppercase;
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gold);
}
.overline::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.overline.light { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 {
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 1;
  margin: 20px 0 26px;
}
h2 i {
  display: block;
  margin-top: 10px;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: .88em;
  line-height: 1.1;
  color: var(--gold);
}
p { line-height: 1.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 30px;
  border: 0;
  border-radius: 40px;
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  transition: transform .25s, background-color .25s, box-shadow .25s, opacity .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn .icon { font-size: 16px; }
.gold {
  background: var(--gold-grad);
  color: #0b0b0b;
  box-shadow: 0 12px 30px -14px #d8b97acc, inset 0 1px 0 #ffffff70;
}
.gold:hover { box-shadow: 0 16px 34px -12px #d8b97aee, inset 0 1px 0 #ffffff70; }
.outline { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.outline:hover { background: #d8b97a14; }
.btn--sm { min-height: 46px; padding: 12px 18px; gap: 9px; font-size: 10.5px; letter-spacing: 1.8px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Gold diamond chain between two gold rules */
.deco-strip {
  height: 18px;
  background: var(--deco-chain) center / 20px 16px repeat-x, #0b0b0b;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}


/* =====================================================================
   COVER · the black envelope with the gold wax seal
   ===================================================================== */
.cover {
  /* paper grain (tiny SVG noise, light specks for black paper) and the gold lining */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --ivory-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --liner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%230e0d0b'/%3E%3Cpath d='M12 1.5 22.5 12 12 22.5 1.5 12Z' fill='none' stroke='%23c9a35e' stroke-width='.8'/%3E%3Cpath d='M12 8 16 12 12 16 8 12Z' fill='%23d8b97a'/%3E%3Cg fill='%23c9a35e'%3E%3Ccircle r='1.4'/%3E%3Ccircle cx='24' r='1.4'/%3E%3Ccircle cy='24' r='1.4'/%3E%3Ccircle cx='24' cy='24' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --paper-edge: #1f1c19;

  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  background: #0a0a0a;
  color: var(--text);
  text-align: center;
  transition: opacity .8s, visibility .8s;
}
.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.cover[hidden], .no-js .cover { display: none; }

/* Black room: a pool of warm light behind the envelope, a faint gold lattice, drifting gold dust */
.cover::before,
.cover::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cover::before {
  background:
    radial-gradient(ellipse 70% 42% at 50% 54%, #d8b97a30, transparent 70%),
    radial-gradient(circle at 10% 0%, #d8b97a14, transparent 40%),
    radial-gradient(circle at 92% 100%, #d8b97a12, transparent 42%),
    var(--lattice),
    #0a0a0a;
}
.cover::after {
  inset: -50%;
  background-image: var(--dust);
  background-size: 260px 260px;
  opacity: .8;
  animation: dustDrift 60s linear infinite;
}
@keyframes dustDrift { to { transform: translate(130px, -260px); } }

.cover__inner {
  width: 100%;
  max-width: 720px;
  padding: calc(34px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}
/* everything on the cover settles in, one after the other */
.cover__inner > * { animation: coverIn 1s var(--ease) backwards; }
.cover__inner > :nth-child(2) { animation-delay: .1s; }
.cover__inner > :nth-child(3) { animation-delay: .2s; }
.cover__inner > :nth-child(5) { animation-delay: .55s; }
.cover__inner > :nth-child(6) { animation-delay: .65s; }
.cover__inner > :nth-child(7) { animation-delay: .75s; }
@keyframes coverIn { from { opacity: 0; translate: 0 16px; } }

.cover__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 500 10px var(--sans);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.cover__eyebrow::before,
.cover__eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.cover__eyebrow::after { transform: scaleX(-1); }
.cover__title {
  margin: 18px 0 10px;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
}
.cover__title i {
  margin: 0 .1em 0 .04em;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05em;
  color: var(--gold);
}
.cover__dedication {
  margin-bottom: 58px;
  font: italic 400 19px 'Cormorant Garamond', Georgia, serif;
  color: var(--muted);
}

/* ---------- The envelope ---------- */
.envelope {
  position: relative;
  width: min(410px, 84vw);
  aspect-ratio: 1.65;
  margin: 0 auto 32px;
  border-radius: 6px;
  /* the inside of the envelope: gold deco lining inside a black paper border */
  background: var(--liner) center / 24px 24px #0e0d0b;
  box-shadow:
    inset 0 0 0 6px var(--paper-edge),
    0 0 0 1px #d8b97a33,
    0 16px 28px -10px #000,
    0 42px 90px -24px #000,
    0 0 90px -30px #d8b97a40;
  perspective: 1100px;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: coverIn 1.1s var(--ease) .3s backwards, envFloat 6s ease-in-out 1.6s infinite;
}
@keyframes envFloat { 50% { translate: 0 -7px; } }
.cover.is-opening .envelope { animation-play-state: paused; cursor: default; }

/* The ivory card inside */
.letter {
  position: absolute;
  inset: 9px 13px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 2px;
  background: var(--ivory-grain), linear-gradient(160deg, #fffaf1, #efe3cc);
  color: #2a2119;
  box-shadow: 0 0 0 1px #c9a46c, inset 0 0 0 6px #fffaf1, inset 0 0 0 7px #c9a46c;
  transition: transform .85s .85s var(--ease), box-shadow .85s .85s;
}
.letter__rings { width: 30px; height: 20px; margin-bottom: 4px; color: #a9874e; stroke-width: 1.6; }
.letter__micro { font: 600 8px var(--sans); letter-spacing: 2.5px; text-transform: uppercase; }
.letter__script { margin: 2px 0 4px; font: 400 clamp(28px, 7.4vw, 44px)/1.15 var(--script); color: #9a7638; }
.letter__date { font: 600 10px var(--serif); letter-spacing: 3px; }

/* Side flaps: left catches the light, right sits in shade */
.envelope__pocket {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 6px;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background:
    var(--paper-grain),
    linear-gradient(90deg, #24211d, #1a1815 49.9%, #121110 50.1%, #1a1816);
  pointer-events: none;
}
/* Bottom flap, casting a soft shadow up onto the side flaps */
.envelope__bottom {
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: drop-shadow(0 -2px 4px #000c);
  pointer-events: none;
}
.envelope__bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  clip-path: polygon(0 100%, 50% 44%, 100% 100%);
  background: var(--paper-grain), linear-gradient(0deg, #141210, #221f1b 75%);
}
.envelope__inscription {
  position: absolute;
  z-index: 3;
  left: 16px; right: 16px; bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font: 600 8px var(--sans);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  pointer-events: none;
}
.envelope__inscription::before,
.envelope__inscription::after {
  content: "";
  flex: 0 1 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.envelope__inscription::after { transform: scaleX(-1); }

/* Top flap: two faces. Outside: black paper with a gold-foil edge.
   Inside (seen once it folds back): the gold deco lining. */
.flap {
  position: absolute;
  inset: 0 0 42%;
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform .8s .25s var(--ease), z-index 0s .65s;
  pointer-events: none;
}
.flap__outside,
.flap__inside {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flap__outside { filter: drop-shadow(0 4px 4px #000b) drop-shadow(0 1px 1px #0009); }
.flap__inside  { transform: rotateX(180deg); }
.flap__outside::before, .flap__outside::after,
.flap__inside::before,  .flap__inside::after { content: ""; position: absolute; inset: 0; }
.flap__outside::before {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(100deg, #9d7a40, #f1dcaa 50%, #b08b4c);
}
.flap__outside::after {
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 50% calc(100% - 2.5px));
  background: var(--paper-grain), linear-gradient(176deg, #2a2622, #1d1a17 60%, #151311);
}
.flap__inside::before { clip-path: polygon(0 100%, 100% 100%, 50% 0); background: var(--paper-edge); }
.flap__inside::after {
  clip-path: polygon(12px 100%, calc(100% - 12px) 100%, 50% 9px);
  background: var(--liner) center bottom / 24px 24px #0e0d0b;
}

/* Wax seal: gold wax, a pressed ring round the initials, a glint of light now and then */
.seal {
  position: absolute;
  z-index: 6;
  top: 56%; left: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 84px; height: 84px;
  border-radius: 48% 52% 46% 54% / 53% 47% 53% 47%;
  background: radial-gradient(circle at 32% 26%, #f6e2b0, #cfa65e 32%, #8f6a2e 70%, #5b4119);
  box-shadow:
    0 6px 14px #000c,
    0 1px 2px #000,
    inset 0 0 0 4px #b8914f,
    inset 0 0 0 5px #6b4e2259,
    inset 3px 3px 6px #fff6,
    inset -4px -5px 9px #3f2c0e80;
  font: 500 26px 'Cormorant Garamond', Georgia, serif;
  color: #fff0c9;
  text-shadow: 0 -1px 0 #fff4, 0 1px 1px #4b3510;
  transition: opacity .3s, transform .4s, scale .3s;
}
.seal span { font-size: 17px; font-style: italic; }
.seal::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid #f8e3ae8c;
  box-shadow: inset 0 1px 2px #5a3f127a, 0 1px 0 #ffffff21;
}
.seal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, #fff8e57a 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  animation: sealGlint 5s ease-in-out 2.2s infinite;
}
@keyframes sealGlint { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }
.envelope:hover .seal { scale: 1.05; }

/* A soft gold ring breathes out from the seal: "tap here" */
.envelope::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 56%; left: 50%;
  width: 84px; height: 84px;
  translate: -50% -50%;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: sealPulse 2.8s ease-out 1.8s infinite;
}
@keyframes sealPulse { 0% { opacity: .75; scale: 1; } 100% { opacity: 0; scale: 1.75; } }

.cover__kicker {
  margin-bottom: 18px;
  font: 600 10px/1.8 var(--sans);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cover__kicker small {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--gold);
}
#open-invite { box-shadow: 0 10px 34px -10px #d8b97a99, inset 0 1px 0 #fff8; }
.cover__hint {
  margin: 15px 0 0;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--muted);
}

/* Opening: the seal breaks, the flap folds back to show its lining, the card slides up */
.cover.is-opening .flap { transform: rotateX(180deg); z-index: 0; }
.cover.is-opening .seal { opacity: 0; transform: rotate(-18deg) scale(1.3); }
.cover.is-opening .envelope::after { animation: none; opacity: 0; }
.cover.is-opening .letter {
  transform: translateY(-56%);
  box-shadow: 0 0 0 1px #c9a46c, inset 0 0 0 6px #fffaf1, inset 0 0 0 7px #c9a46c, 0 -10px 30px #000a;
}
.cover.is-opening .cover__eyebrow,
.cover.is-opening .cover__dedication,
.cover.is-opening .cover__title { opacity: 0; transition: opacity .3s; }
.cover.is-opening #open-invite { opacity: .65; cursor: wait; }
.cover.is-opening #open-invite:hover { transform: none; }

@media (max-width: 420px) {
  .seal, .envelope::after { width: 72px; height: 72px; }
  .seal { font-size: 23px; }
  .seal span { font-size: 15px; }
  .seal::before { inset: 9px; }
}
@media (max-height: 740px) {
  .cover__inner { padding-top: calc(22px + env(safe-area-inset-top)); }
  .cover__title { font-size: 38px; margin: 12px 0 8px; }
  .cover__dedication { margin-bottom: 50px; }
  .envelope { width: min(340px, 80vw); }
}
@media (max-height: 600px) {
  .cover__dedication { margin-bottom: 40px; }
  .envelope { width: min(290px, 76vw); margin-bottom: 18px; }
  .cover__kicker { margin-bottom: 12px; }
}


/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: absolute;
  z-index: 10;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: calc(24px + env(safe-area-inset-top)) 5% 22px;
  color: #fff;
  border-bottom: 1px solid #ffffff30;
  background: linear-gradient(#0b0b0bb3, transparent);
}
.logo {
  flex: none;
  text-align: center;
  font: 400 23px/1 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 5px;
}
.logo i { font-family: var(--script); font-style: normal; letter-spacing: 0; color: var(--gold); }
.logo small {
  display: block;
  margin-top: 7px;
  white-space: nowrap;
  font: 500 9px/normal var(--sans);
  letter-spacing: 3px;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font: 500 11px/normal var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .2s;
}
.nav a:hover { color: var(--gold); }
.tool {
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid #ffffff55;
  border-radius: 22px;
  background: #0b0b0b8a;
  color: #fff;
}
.tool .icon { font-size: 22px; }
.tool > * { grid-area: 1 / 1; }
.menu-toggle { display: none; }
.menu-toggle[aria-expanded="false"] .menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }


/* =====================================================================
   HERO · the names on black, in a pool of gold light
   ===================================================================== */
/* The same dark room as the envelope screen: warm light, a faint gold
   lattice and slowly drifting gold dust, with everything centred. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 62% 46% at 50% 52%, #d8b97a26, transparent 70%),
    radial-gradient(circle at 8% 0%, #d8b97a14, transparent 40%),
    radial-gradient(circle at 94% 100%, #d8b97a12, transparent 42%),
    var(--lattice),
    var(--bg);
  color: #fff;
  text-align: center;
}
.hero::before {               /* drifting gold dust */
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background-image: var(--dust);
  background-size: 260px 260px;
  opacity: .8;
  pointer-events: none;
  animation: dustDrift 60s linear infinite;
}

.hero__inner {
  width: 100%;
  max-width: 980px;
  padding: calc(100px + env(safe-area-inset-top)) 6% calc(64px + env(safe-area-inset-bottom));
}
.hero__rings {
  display: block;
  width: 54px; height: 36px;
  margin: 0 auto 22px;
  color: var(--gold);
  stroke-width: 1.2;
}
.tiny-line { margin: 0; font-size: 11px; line-height: normal; color: var(--gold-light); }
.hero__names {
  margin: 14px 0 26px;
  font: 400 clamp(46px, 13.2vw, 118px)/1.08 var(--script);
  text-shadow: 0 4px 30px #000a;
}
.hero__names span {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 0 .12em;
  color: var(--gold);
  background: linear-gradient(100deg, #b38e4e 0%, #d8b97a 25%, #f6e6be 50%, #d8b97a 75%, #b38e4e 100%) 0 0 / 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 9s linear infinite;
}
.hero__names em {
  display: block;
  margin: -.12em 0 -.06em;
  font: italic 400 .5em/1 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
}
@keyframes shimmer { to { background-position: 200% 0; } }
.hero-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 30px;
  font: 500 11.5px/1.5 var(--sans);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero-date > span { display: inline-flex; align-items: center; gap: .9em; }
.hero-date .icon { font-size: 1.2em; color: var(--gold); }
.hero .deco-strip { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; }

/* Landscape screens (computers, tablets and phones held sideways) */
@media (orientation: landscape) and (min-width: 600px) {
  .hero__names { font-size: clamp(56px, 7.4vw, 118px); }
}
/* Phones held sideways: too short for the full-size type */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: 380px; }
  .hero__inner { padding-block: calc(74px + env(safe-area-inset-top)) calc(40px + env(safe-area-inset-bottom)); }
  .hero__rings { display: none; }
  .hero__names { font-size: 40px; margin: 6px 0 12px; }
  .hero-date { margin-bottom: 0; }
  .hero__btn { display: none; }
}


/* =====================================================================
   01 · THE INVITATION
   ===================================================================== */
.invitation {
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, #d8b97a0f, transparent 70%),
    var(--bg);
}
/* The message as a card in a double gold frame */
.story {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 84px 9% 76px;
  border: 1px solid var(--line);
  background: #0d0c0b;
  text-align: center;
}
.story::before {             /* second, fainter frame just inside the first */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.story .overline::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.story-message {
  max-width: 580px;
  margin: 0 auto;
  font: italic 400 clamp(22px, 2.2vw, 27px)/1.55 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
}
.signature { margin: 26px 0 0; font: 400 40px/1.4 var(--script); color: var(--gold); }
.story-families {
  margin: 12px 0 0;
  font: 600 10px/1.5 var(--sans);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
}


/* =====================================================================
   COUNTDOWN · gold light on black
   ===================================================================== */
.countdown {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: hidden;
  background: #0d0c0b;
  border-block: 1px solid var(--line-soft);
  text-align: center;
}
.countdown__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 28%, #d8b97a30, transparent 16%),
    radial-gradient(circle at 86% 22%, #d8b97a24, transparent 20%),
    radial-gradient(circle at 74% 84%, #d8b97a1c, transparent 22%),
    radial-gradient(circle at 26% 86%, #d8b97a14, transparent 18%),
    radial-gradient(ellipse 60% 60% at 50% 50%, #d8b97a12, transparent 70%),
    var(--lattice);
}
.countdown__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dust);
  background-size: 220px 220px;
  opacity: .7;
}
.countdown__inner { position: relative; padding: 80px 20px; }
.countdown h2 { font-size: clamp(38px, 4.2vw, 64px); }
.clock {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clock li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px; height: 112px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #0b0b0bb3;
  box-shadow: inset 0 0 0 5px #0b0b0b, inset 0 0 0 6px var(--line-soft);
}
.clock strong { font: 500 42px/1 var(--serif); color: var(--gold-light); }
.clock small { margin-top: 7px; font: 500 9px var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.no-js .clock { display: none; }


/* =====================================================================
   02 · DATE & TIME
   ===================================================================== */
.date { background: var(--bg-2); }
.section-heading { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-heading .overline::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.section-heading h2 i { display: inline; }
.section-heading > p:not(.overline) { margin: 0; font: italic 400 21px 'Cormorant Garamond', Georgia, serif; color: var(--muted); }

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 7%;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.detail { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.detail:first-child { border-top: 1px solid var(--line-soft); }
.detail__icon { font-size: 28px; line-height: 1; color: var(--gold); }
.detail__icon .icon { stroke-width: 1.5; }
.detail small { font: 600 10px var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.detail h3 { margin: 8px 0 0; font-size: 30px; line-height: 1.15; }
.detail p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.no-js #add-to-calendar { display: none; }

/* Month calendar card (drawn by script.js) */
.month {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #171513, #0e0d0c);
  box-shadow: 0 40px 70px -40px #000, 0 0 80px -40px #d8b97a33;
}
.month .deco-strip { border-top: 0; }
.month__body { padding: 24px 22px 28px; }
.month__fallback { margin: 0; font: italic 500 22px 'Cormorant Garamond', Georgia, serif; text-align: center; }
.month__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.month__caption { padding-bottom: 16px; }
.month__name { display: block; font: 400 54px/1.1 var(--script); color: var(--gold); }
.month__year {
  display: block;
  margin-top: 2px;
  padding-left: 4px;
  font: 600 10px var(--sans);
  letter-spacing: 4px;
  color: var(--gold-light);
}
.month__table th {
  padding: 0 0 12px;
  font: 600 9.5px var(--sans);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.month__table td {
  position: relative;
  height: 46px;
  padding: 0;
  text-align: center;
  font: 500 20px var(--serif);
  color: var(--text);
}
.month__table .is-weekend { color: var(--muted); }
.month__table td.is-empty { color: transparent; }
.month__marked .month__date { position: relative; z-index: 1; font-weight: 600; font-size: 24px; color: var(--gold-light); }
/* hand-drawn gold loop around the day */
.month__loop {
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%) rotate(-8deg);
  overflow: visible;
  pointer-events: none;
}
.month__loop path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) .7s;
}
.month.is-visible .month__loop path, .no-js .month__loop path { stroke-dashoffset: 0; }
.month__heart { position: absolute; right: 0; top: 0; width: 10px; height: 10px; color: var(--gold); }


/* =====================================================================
   03 · VENUE & MAP
   ===================================================================== */
.venue { background: var(--bg); }
.map { max-width: 1080px; margin: 0 auto; text-align: center; }
.map__frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  background: #0f0e0d;
}
.map__frame::before {      /* inner gold rule */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.map__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font: italic 400 20px 'Cormorant Garamond', Georgia, serif;
  color: var(--muted);
}
.map__frame iframe {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(340px, 46vw, 480px);
  border: 0;
  /* dark map to match the page: invert, turn the colours back, soften */
  filter: invert(.9) hue-rotate(180deg) saturate(.6) contrast(.92) brightness(.95);
}
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }


/* =====================================================================
   04 · DRESS CODE
   ===================================================================== */
.attire {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, #d8b97a10, transparent 70%),
    var(--bg-2);
}
.attire-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 24px;
}
.attire-card {
  position: relative;
  padding: 50px 28px 46px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161412, #0e0d0c);
  text-align: center;
}
.attire-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.attire-card__icon { width: 76px; height: 38px; color: var(--gold); stroke-width: 1.3; }
.attire-card small {
  display: block;
  margin-top: 24px;
  font: 600 10.5px var(--sans);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.attire-card h3 { margin: 10px 0 0; font-size: 34px; line-height: 1.15; }
.swatches { display: inline-flex; height: 38px; align-items: center; }
.swatches i {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px #0e0d0c, 0 6px 14px #000;
}
.swatches i + i { margin-left: -10px; }
.swatches i:nth-child(1) { background: radial-gradient(circle at 35% 30%, #3a3a3a, #000 70%); }
.swatches i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #2c2c2c, #050505 70%); }
.swatches i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #242424, #000 65%); }


/* =====================================================================
   05 · RSVP
   ===================================================================== */
.rsvp {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, #d8b97a12, transparent 70%),
    var(--bg-2);
}
.rsvp__card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 70px clamp(20px, 6vw, 70px) 60px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #151311, #0c0b0a);
  text-align: center;
  box-shadow: 0 50px 90px -50px #000;
}
.rsvp__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.rsvp__card .overline::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.rsvp__card h2 i { display: inline; }
.rsvp__deadline { margin: 0; font: italic 400 21px 'Cormorant Garamond', Georgia, serif; color: var(--muted); }
.rsvp__deadline strong { font-weight: 600; font-style: normal; color: var(--gold-light); }

.rsvp-form { position: relative; display: grid; gap: 20px; margin-top: 34px; text-align: left; }
.rsvp-form__hint { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label {
  display: block;
  padding: 0;
  font: 600 10px/1.5 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.field__hint { font-weight: 500; letter-spacing: .3px; text-transform: none; color: var(--muted); }
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid #d8b97a59;
  border-radius: 4px;
  background: var(--field);
  color: var(--text);
  font: 400 16px/1.4 var(--sans);     /* 16px stops iPhones zooming in */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #d8b97a33; }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { min-height: 96px; resize: vertical; }
select.input {
  padding-right: 44px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d8b97a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  cursor: pointer;
}
select.input option { background: #111; color: var(--text); }
.field.is-disabled { opacity: .4; }

/* Accept / decline as two boxes */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #d8b97a59;
  border-radius: 4px;
  background: var(--field);
  font: 500 14px/1.25 var(--sans);
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.choice:hover span { border-color: var(--gold); }
.choice input:checked + span { background: var(--gold-grad); border-color: transparent; color: #0b0b0b; font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.field__error { margin: 7px 0 0; font-size: 13px; color: var(--error); }
.form-alert {
  margin: 0;
  padding: 11px 14px;
  border-left: 3px solid var(--error);
  background: #f0a08a14;
  font-size: 13px;
  color: var(--error);
}

/* RSVP contact: name and number on top, WhatsApp and Call side by side below */
.contact {
  display: grid;
  gap: 18px;
  margin-top: 6px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  background: var(--field);
  text-align: center;
}
.contact__name { margin: 0; font: 500 30px/1.05 'Cormorant Garamond', Georgia, serif; }
.contact__phone { margin: 6px 0 0; font-size: 13px; letter-spacing: 1.2px; color: var(--muted); white-space: nowrap; }
.contact__actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.rsvp-status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gold-light); text-align: center; }
.rsvp-status:empty { display: none; }


/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--night); text-align: center; }
.footer__inner { padding: 84px 24px calc(56px + env(safe-area-inset-bottom)); }
.footer h2 { margin: 0 0 20px; font-size: clamp(46px, 5vw, 66px); }
.footer h2 em { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--gold); }
.footer__meta {
  margin: 0;
  font: 500 10.5px/2.1 var(--sans);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer__rings { display: block; width: 42px; height: 28px; margin: 34px auto; color: var(--gold); stroke-width: 1.4; }
.footer__credit { margin: 0; font-size: 12px; letter-spacing: .4px; color: var(--muted); }
.footer__credit a { color: var(--gold); border-bottom: 1px solid var(--line); }
.footer__credit a:hover { border-bottom-color: var(--gold); }


/* =====================================================================
   ADD-TO-CALENDAR SHEET
   ===================================================================== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #000b;
  animation: fade .25s ease;
}
.sheet[hidden] { display: none; }
.sheet__panel {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  padding: 0 24px calc(18px + env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #121110;
  text-align: center;
  animation: rise .35s var(--ease);
}
.sheet__panel::before {      /* deco strip across the top */
  content: '';
  height: 16px;
  margin: 0 -24px 18px;
  background: var(--deco-chain) center / 20px 16px repeat-x, #0b0b0b;
  border-bottom: 1px solid var(--gold);
}
.sheet__title { margin: 0 0 8px; font: 400 42px/1.2 var(--script); color: var(--gold); }
.sheet__close {
  min-height: 46px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 11px var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }


/* =====================================================================
   SCROLL REVEAL (only when JavaScript runs)
   ===================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }


/* =====================================================================
   TABLETS AND PHONES
   ===================================================================== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 14px 24px 20px;
    background: #0b0b0bf2;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; }
  .menu-toggle { display: grid; }

  .detail-content { grid-template-columns: 1fr; }
  .section { padding: 80px 6%; }
  .details { max-width: 560px; justify-self: center; width: 100%; }
}

@media (max-width: 600px) {
  .header { padding: calc(18px + env(safe-area-inset-top)) 5% 16px; }
  .logo { font-size: 20px; letter-spacing: 4px; }
  .logo small { font-size: 8px; }

  .tiny-line { font-size: 10px; letter-spacing: 3px; }
  .hero-date { font-size: 10px; letter-spacing: 1.4px; }
  .hero__btn { width: 100%; }

  h2 { font-size: 46px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2 i { display: block; }

  .story { padding: 60px 22px 54px; }
  .story-message { font-size: 22px; }
  .signature { font-size: 36px; }

  .clock { gap: 9px; }
  .clock li { width: 74px; height: 74px; box-shadow: inset 0 0 0 4px #0b0b0b, inset 0 0 0 5px var(--line-soft); }
  .clock strong { font-size: 29px; }
  .clock small { margin-top: 3px; font-size: 7.5px; letter-spacing: 1px; }

  .detail-actions .btn { flex: 1 1 100%; }
  .detail h3 { font-size: 26px; }
  .month__body { padding: 20px 12px 22px; }
  .month__table td { height: 42px; font-size: 18px; }

  .attire-cards { grid-template-columns: 1fr; }
  .attire-card h3 { font-size: 30px; }

  .rsvp.section { padding-inline: 4%; }
  .rsvp__card { padding: 56px 18px 44px; }
  .choice span { font-size: 13px; }
  .contact { padding: 20px 16px; }
  .contact__actions { grid-template-columns: 1fr; }

  .footer h2 { font-size: 44px; }
}

@media (max-width: 380px) {
  .header { padding-inline: 14px; }
  .logo { font-size: 18px; letter-spacing: 3px; }
  .clock li { width: 64px; height: 64px; }
  .clock strong { font-size: 25px; }
  .clock small { font-size: 7px; letter-spacing: .4px; }
  .hero-date > span { align-items: flex-start; }
}


/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .month__loop path { stroke-dashoffset: 0; }
}
