/* ==========================================================================
   Ali & Fatema · Wedding Invitation
   Luxury stationery × Islamic geometry × editorial type.
   ========================================================================== */

/* ---- Fonts (self-hosted, Latin-only variable files) ------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
/* Subset to the Bismillah only (~18 KB). Re-subset if more Arabic is added. */
@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-bismillah.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+627-628, U+62D, U+631, U+633, U+644-647, U+64A;
}

/* ---- Design tokens ---------------------------------------------------- */

:root {
  /* Colour */
  --c-emerald-950: #061d17;
  --c-emerald-900: #0a2a21;
  --c-emerald-800: #0f3a2e;
  --c-emerald-700: #164b3b;
  --c-ivory: #f6efe1;
  --c-ivory-80: rgba(246, 239, 225, 0.82);
  --c-ivory-65: rgba(246, 239, 225, 0.68);
  --c-parchment: #efe5d2;
  --c-beige: #e4d6bb;
  --c-gold: #c9a96e;
  --c-gold-soft: #dfc796;
  --c-gold-deep: #a8864d;
  --c-gold-line: rgba(201, 169, 110, 0.5);
  --c-gold-hair: rgba(201, 169, 110, 0.22);
  --c-bronze: #6f5428;      /* gold-toned text that stays legible on ivory */
  --c-ink: #163a2f;         /* body text on ivory */
  --c-ink-soft: #3c5249;
  --c-charcoal: #232826;

  /* Antique foil: a restrained metallic ramp, never bright yellow */
  --foil: linear-gradient(105deg, #b08c52 0%, #e3cc98 22%, #c4a46a 40%, #efdeb2 55%, #ad894f 76%, #d6bb85 100%);
  --foil-deep: linear-gradient(105deg, #6c4f24 0%, #a07e44 26%, #806230 44%, #b8955a 58%, #765a2b 78%, #94743f 100%);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Jost", "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;

  --fs-names: clamp(2.45rem, 11.6vw, 4.75rem);
  --fs-person: clamp(2.05rem, 9.6vw, 2.9rem);
  --fs-title: clamp(2.2rem, 9vw, 3.25rem);
  --fs-body: 1.16rem;
  --fs-label: 0.7rem;
  --track-label: 0.34em;

  /* Space */
  --gutter: clamp(1rem, 4.5vw, 2rem);
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.6rem;
  --space-l: 2.6rem;
  --space-xl: clamp(3.5rem, 11vw, 6.5rem);

  /* Lines & depth */
  --hair: 1px solid var(--c-gold-hair);
  --shadow-card: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.42)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Ornament tiles */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cdefs%3E%3Cg id='s'%3E%3Cpath d='M0-13L13 0 0 13-13 0z'/%3E%3Crect x='-9.2' y='-9.2' width='18.4' height='18.4'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%23c9a96e' stroke-width='0.7'%3E%3Cuse href='%23s' x='36' y='36'/%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='72' y='0'/%3E%3Cuse href='%23s' x='0' y='72'/%3E%3Cuse href='%23s' x='72' y='72'/%3E%3Cpath d='M26.8 26.8L9.2 9.2M45.2 26.8L62.8 9.2M26.8 45.2L9.2 62.8M45.2 45.2L62.8 62.8M36 0V23M36 49V72M0 36H23M49 36H72M0 13V59M72 13V59M13 0H59M13 72H59'/%3E%3C/g%3E%3C/svg%3E");
  --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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Base ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--c-emerald-950);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-emerald-950);
  color: var(--c-ivory);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine paper grain over everything; static, so it costs nothing on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.045;
}

h1, h2, h3, h4, p, ol, ul { margin: 0; padding: 0; }
svg { display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.foil {
  color: var(--c-gold);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil {
    background-image: var(--foil);
    background-size: 220% 100%;
    background-position: 30% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .foil--deep { background-image: var(--foil-deep); }
}

.divider {
  width: 168px;
  height: 16px;
  margin-inline: auto;
  color: var(--c-gold);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  padding-left: var(--track-label); /* re-centres tracked caps */
  text-transform: uppercase;
  color: var(--c-gold);
}

/* Shared arch frame (drawn by main.js) */
.arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arch__line {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.arch__line--inner { stroke-opacity: 0.5; }

/* Geometric lattice used behind the emerald sections */
.patterned { position: relative; isolation: isolate; }
.patterned::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-size: 72px 72px;
  background-position: center top;
  opacity: 0.1;
  pointer-events: none;
}

/* ==========================================================================
   1 · OPENING
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 14px;
  padding-top: max(14px, env(safe-area-inset-top));
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 38%, rgba(201, 169, 110, 0.07), transparent 70%),
    radial-gradient(ellipse 140% 90% at 50% 0%, #0f382c, var(--c-emerald-900) 55%, var(--c-emerald-950));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-size: 72px 72px;
  background-position: center;
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 40%, transparent 100%);
}

.hero__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  /* keep the content below the arch's apex; the scroll cue sits in the flow
     beneath it, so the two can never overlap on short screens */
  padding: clamp(5.5rem, 27vw, 9rem) clamp(1.4rem, 7vw, 3rem) clamp(1.1rem, 3.5vh, 1.9rem);
}
.hero .arch { filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.45)); }
.hero .arch__line--outer { stroke: var(--c-gold); }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-block: auto; /* centred in the space above the scroll cue */
  text-align: center;
}

.hero__star {
  width: 44px;
  height: 44px;
  color: var(--c-gold);
  margin-bottom: var(--space-m);
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.65rem, 7.4vw, 2.25rem);
  line-height: 1.7;
  color: var(--c-gold-soft);
  white-space: nowrap;
}

.hero__divider { margin-top: 0.5rem; }

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(1.4rem, 5vw, 2.2rem) 0 clamp(1.2rem, 4.5vw, 1.8rem);
  font-family: var(--font-display);
  font-size: var(--fs-names);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.names__line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.04em;
}
.names__name {
  display: inline-block;
  padding-left: 0.13em; /* balances trailing letter-spacing */
}
.names__amp {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.08em 0 0.02em;
  font-size: 0.56em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
  color: var(--c-gold);
}
.names__amp::before,
.names__amp::after {
  content: "";
  width: clamp(2rem, 9vw, 3.4rem);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold-line));
}
.names__amp::after { transform: scaleX(-1); }

.hero__title {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
  color: var(--c-ivory-80);
}

.hero__dates {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 4.6vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  color: var(--c-gold-soft);
  text-wrap: balance;
}

/* Countdown: a single quiet line of figures beneath the dates */
.countdown {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.55rem, 2.6vw, 1rem);
  margin-top: clamp(1rem, 3.6vw, 1.35rem);
  padding-top: clamp(0.85rem, 3vw, 1.05rem);
}
.countdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 1px;
  margin-left: -28px;
  background: linear-gradient(to right, transparent, var(--c-gold-line), transparent);
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--c-gold-soft);
}
.countdown__label {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  text-transform: uppercase;
  color: var(--c-ivory-65);
}
.countdown__sep {
  flex: none;
  width: 1px;
  height: 1.7rem;
  margin-top: 0.05rem;
  background: linear-gradient(to bottom, transparent, var(--c-gold-line), transparent);
}

.scroll-cue {
  position: relative;
  flex: none;
  margin-top: clamp(1.4rem, 3.2vh, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(223, 199, 150, 0.82);
}
.scroll-cue span:first-child { padding-left: 0.32em; }
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--c-gold-hair);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--c-gold-soft);
  animation: cue 2.6s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { top: -40%; }
  70%  { top: 100%; }
  100% { top: 100%; }
}
.scroll-cue:focus-visible { outline: 1px solid var(--c-gold); outline-offset: 2px; }

/* ==========================================================================
   2 · INVITATION
   ========================================================================== */

.invitation {
  position: relative;
  padding: var(--space-xl) var(--gutter);
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(201, 169, 110, 0.1), transparent 70%),
    linear-gradient(to bottom, var(--c-emerald-950), var(--c-emerald-900));
}

.card {
  position: relative;
  max-width: 33rem;
  margin: 0 auto;
}
.card__bg { filter: var(--shadow-card); }
.card__bg .arch__line { stroke: var(--c-gold-deep); }
.card__bg .arch__line--inner { stroke-opacity: 0.55; }

.card__content {
  position: relative;
  padding: clamp(6rem, 25vw, 8.5rem) clamp(1.6rem, 7vw, 3.25rem) clamp(2.6rem, 9vw, 3.5rem);
  text-align: center;
  color: var(--c-ink);
}

.card__star {
  position: absolute;
  left: 50%;
  top: clamp(2.3rem, 9.5vw, 3.3rem);
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  color: var(--c-gold-deep);
}

.line { display: block; }

.blessing {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-ink);
  text-wrap: balance;
}
.line--emphasis {
  margin-top: 0.55rem;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-bronze);
}
.line--cont { margin-top: 0; }

.card__divider {
  width: 140px;
  height: 14px;
  margin-block: var(--space-m);
  color: var(--c-gold-deep);
}

.request {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-ink-soft);
  text-wrap: balance;
}

.couple { margin: var(--space-m) 0 var(--space-m); }

.person__name {
  font-family: var(--font-display);
  font-size: var(--fs-person);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-transform: uppercase;
}
.person__parents {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-ink-soft);
  text-wrap: balance;
}

.couple__and {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--c-bronze);
}
.couple__and::before,
.couple__and::after {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(168, 134, 77, 0.65));
}
.couple__and::after { transform: scaleX(-1); }

/* ==========================================================================
   3 · THE WEDDING JOURNEY
   ========================================================================== */

.journey {
  position: relative;
  isolation: isolate;
  padding: var(--space-xl) var(--gutter);
  background:
    radial-gradient(ellipse 90% 30% at 50% 22%, rgba(201, 169, 110, 0.07), transparent 70%),
    var(--c-emerald-900);
}
.journey::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-size: 72px 72px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
}

.journey__head {
  text-align: center;
  margin-bottom: clamp(2.4rem, 9vw, 3.75rem);
}
.journey__title {
  margin: 0.7rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.08;
  color: var(--c-ivory);
}
.journey__title em {
  font-style: italic;
  color: var(--c-gold-soft);
}

/* Timeline: a single gold spine; stars mark days, diamonds mark events. */
.timeline {
  --rail: 2.9rem;     /* space reserved left of the content */
  --axis: 14px;       /* spine position inside the rail */
  --spine: 1;
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
  padding-left: var(--rail);
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--axis) - 0.5px);
  top: 14px;
  bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-gold) 0%, var(--c-gold-line) 85%, transparent);
  transform-origin: top;
  transform: scaleY(var(--spine));
}

.day {
  position: relative;
  padding-bottom: clamp(2.4rem, 9vw, 3rem);
}
.day:last-child { padding-bottom: 0.5rem; }

.day__marker {
  position: absolute;
  left: calc(var(--axis) - var(--rail) - 14px);
  top: 4px;
  width: 28px;
  height: 28px;
  padding: 1px;
  border-radius: 50%;
  background: var(--c-emerald-900);
  color: var(--c-gold);
}

.day__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: var(--hair);
  font-weight: inherit;
}
.day__num {
  flex: none;
  min-width: 1.15em;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 15vw, 4.1rem);
  font-weight: 500;
  line-height: 0.82;
  text-align: center;
  font-variant-numeric: lining-nums;
}
.day__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.day__weekday {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.day__month {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-ivory);
}
.day__hijri {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-ivory-65);
}

.events {
  display: grid;
  gap: 1.25rem;
  list-style: none;
}
.event { position: relative; }
.event::before {
  content: "";
  position: absolute;
  left: calc(var(--axis) - var(--rail) - 4px);
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--c-gold);
  background: var(--c-emerald-900);
  transform: rotate(45deg);
  transition: background-color 0.4s var(--ease-soft);
}

.event__name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-ivory);
  transition: color 0.4s var(--ease-soft);
}
.event__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.1rem;
  margin-top: 0.4rem;
}
.event__time,
.event__venue {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.event__time {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.event__venue {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--c-ivory-80);
}
.icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--c-gold);
}

.event__map {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  text-decoration: underline;
  text-decoration-color: var(--c-gold-line);
  text-underline-offset: 0.4em;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.event__map:hover,
.event__map:focus-visible { color: var(--c-gold-soft); text-decoration-color: currentColor; }

@media (hover: hover) {
  .event:hover .event__name { color: var(--c-gold-soft); }
  .event:hover::before { background: var(--c-gold); }
}

/* ==========================================================================
   4 · CLOSING
   ========================================================================== */

.closing {
  position: relative;
  padding: clamp(3rem, 10vw, 5rem) var(--gutter) calc(3rem + env(safe-area-inset-bottom));
  text-align: center;
  background:
    linear-gradient(to bottom, var(--c-emerald-900), var(--c-emerald-950));
  border-top: var(--hair);
}

.closing__arch {
  position: relative;
  width: 124px;
  height: 160px;
  margin: 0 auto 1.6rem;
}
.closing__arch .arch__line--inner { stroke-opacity: 0.45; }
.closing__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.4rem;
}
.closing__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.monogram {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-gold);
}
.monogram em {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--c-gold-soft);
}

/* Family sign-off */
.signoff__regards {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--c-gold);
}
.signoff__family {
  max-width: 22rem;
  margin: 0.35rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-transform: uppercase;
  color: var(--c-ivory);
  text-wrap: balance;
}
.closing__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ivory-65);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  margin-top: 2rem;
  padding: 0.9rem 1.7rem 0.9rem 1.5rem;
  border: 1px solid var(--c-gold-line);
  border-radius: 2px;
  background: transparent;
  color: var(--c-gold-soft);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), color 0.4s, transform 0.2s;
}
/* hairline inner rule, like a debossed card edge */
.btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--c-gold-hair);
  border-radius: 1px;
  pointer-events: none;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: rgba(201, 169, 110, 0.09); border-color: var(--c-gold); color: var(--c-ivory); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 1px solid var(--c-gold); outline-offset: 4px; }

.share-status {
  min-height: 1.4em;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-gold-soft);
}

/* Designer credit: present, but quieter than everything above it */
.credit {
  margin-top: 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(246, 239, 225, 0.5);
}
.credit::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 1.2rem;
  background: var(--c-gold-hair);
}
.credit a {
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--c-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 110, 0.35);
  text-underline-offset: 0.35em;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.credit a:hover { color: var(--c-gold-soft); text-decoration-color: currentColor; }
.credit a:focus-visible { outline: 1px solid var(--c-gold); outline-offset: 3px; }

.noscript {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  padding: 1rem;
  background: var(--c-ivory);
  color: var(--c-ink);
  text-align: center;
}

/* ==========================================================================
   Larger screens: the same invitation, given more air.
   ========================================================================== */

@media (min-width: 640px) {
  :root { --fs-body: 1.24rem; }
  .request { font-size: 1.3rem; }
  .person__parents { font-size: 1.12rem; }
}

@media (min-width: 960px) {
  .hero { padding: 22px; }
  .hero__frame { padding-top: 8.25rem; }

  .journey__head { margin-bottom: 4rem; }

  .timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
    max-width: 66rem;
    padding: 3.6rem 0 0;
  }
  .timeline::before {
    left: 0;
    right: 0;
    top: 14px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-gold-line) 6%, var(--c-gold) 50%, var(--c-gold-line) 94%, transparent);
    transform: none;
  }
  .day { padding-bottom: 0; }
  .day__marker { left: 0; top: -3.6rem; }
  .event { padding-left: 1.4rem; }
  .event::before { left: 0; }
}

/* ==========================================================================
   Motion — only when the visitor hasn't asked for less.
   Everything is fully visible without it.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* Opening sequence */
  .js .hero .arch__fill { opacity: 0; transition: opacity 1.2s var(--ease-soft); }
  .js .hero .arch__line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.4s var(--ease) 0.1s;
  }
  .js .hero .arch__line--inner { transition-delay: 0.35s; }

  .js .hero__star,
  .js .bismillah,
  .js .names__amp,
  .js .hero__title,
  .js .hero__dates,
  .js .countdown,
  .js .scroll-cue {
    opacity: 0;
    transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease);
  }
  .js .hero__star { transform: scale(0.85) rotate(-22.5deg); transition-delay: 0.45s; }
  .js .bismillah { transform: translateY(8px); transition-delay: 0.65s; }
  .js .hero__divider { transform: scaleX(0); transition: transform 1.3s var(--ease) 0.9s; }
  .js .names__name { transform: translateY(108%); transition: transform 1.5s var(--ease); }
  .js .names__line:first-child .names__name { transition-delay: 1.05s; }
  .js .names__line:last-child .names__name { transition-delay: 1.3s; }
  .js .names__amp { transform: scale(0.9); transition-delay: 1.45s; }
  .js .hero__title { transform: translateY(6px); transition-delay: 1.75s; }
  .js .hero__dates { transform: translateY(6px); transition-delay: 1.9s; }
  .js .countdown { transform: translateY(6px); transition-delay: 2.15s; }
  .js .scroll-cue { transition-delay: 2.5s; }

  .js.is-ready .hero .arch__fill,
  .js.is-ready .hero__star,
  .js.is-ready .bismillah,
  .js.is-ready .names__amp,
  .js.is-ready .hero__title,
  .js.is-ready .hero__dates,
  .js.is-ready .countdown,
  .js.is-ready .scroll-cue { opacity: 1; }
  .js.is-ready .hero .arch__line { stroke-dashoffset: 0; }
  .js.is-ready .hero__star,
  .js.is-ready .bismillah,
  .js.is-ready .hero__divider,
  .js.is-ready .names__name,
  .js.is-ready .names__amp,
  .js.is-ready .hero__title,
  .js.is-ready .hero__dates,
  .js.is-ready .countdown { transform: none; }

  /* Each figure settles softly as it changes */
  .countdown__num.is-tick { animation: tick 0.6s var(--ease); }
  @keyframes tick {
    from { opacity: 0.35; transform: translateY(-3px); }
    to   { opacity: 1; transform: none; }
  }

  /* One slow pass of light across the foil, after the names settle */
  .js.is-ready .names .foil { animation: sheen 3.2s var(--ease-soft) 2.2s both; }
  @keyframes sheen {
    from { background-position: 100% 50%; }
    to   { background-position: 30% 50%; }
  }

  .hero__star { animation: turn 120s linear infinite; }
  @keyframes turn { to { rotate: 360deg; } }

  /* Scroll reveals */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 120ms);
  }
  .js .card[data-reveal] { transform: translateY(28px); transition-duration: 1.4s; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .day__marker {
    transition: transform 1s var(--ease);
  }
  .js .day:has(.is-in) .day__marker { transform: rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue__line::after { animation: none; top: 30%; }
}
