/* Diwali greeting — shared styles */

:root {
  --ink:        #2a1206;
  --ink-soft:   #6b4423;
  --gold:       #c8963e;
  --gold-deep:  #9c6b1f;
  --cream:      #fdf6e9;
  --cream-warm: #f7e9cf;
  --marigold:   #e07b2c;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: clamp(20px, 5vw, 56px) 16px clamp(40px, 8vw, 80px);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(224, 123, 44, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(200, 150, 62, 0.14), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

.card {
  max-width: 660px;
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid rgba(156, 107, 31, 0.28);
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(42, 18, 6, 0.05),
    0 12px 40px rgba(42, 18, 6, 0.09);
  padding: clamp(28px, 6vw, 60px) clamp(22px, 6vw, 60px) clamp(32px, 6vw, 56px);
  overflow: hidden;
}

/* --- decorative header --- */

.lamps {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 4vw, 26px);
  margin-bottom: clamp(18px, 4vw, 28px);
}

.lamp {
  width: clamp(26px, 7vw, 38px);
  height: auto;
  flex: 0 0 auto;
}

.lamp--mid { width: clamp(34px, 9vw, 50px); }

.flame {
  transform-origin: 50% 100%;
  animation: flicker 2.6s ease-in-out infinite;
}
.lamp--mid .flame { animation-duration: 3.1s; }
.lamp:last-child .flame { animation-duration: 2.2s; }

@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 1; }
  40%      { transform: scaleY(1.12) scaleX(0.94); opacity: 0.92; }
  70%      { transform: scaleY(0.95) scaleX(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .flame { animation: none; }
}

.eyebrow {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(13px, 3.2vw, 15px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 clamp(20px, 5vw, 30px);
}

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(156, 107, 31, 0.45), transparent);
  margin: clamp(22px, 5vw, 34px) 0;
}

/* --- content --- */

.greeting {
  font-family: var(--serif);
  font-size: clamp(30px, 7.5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 clamp(20px, 5vw, 30px);
  color: var(--ink);
}

.greeting .name { color: var(--gold-deep); }

/* Photo frame. Matches the image's own 16:9 so nothing is cropped by default.
   To tighten the shot, lower --photo-ratio (e.g. 2 / 1 or 12 / 5); because the
   frame is top-anchored, the trim always comes off the bottom. */
.photo {
  display: block;
  width: 100%;
  aspect-ratio: var(--photo-ratio, 16 / 9);
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 3px;
  border: 1px solid rgba(156, 107, 31, 0.3);
  margin: 0 auto clamp(22px, 5vw, 32px);
  background: var(--cream-warm);
}

.message {
  font-family: var(--serif);
  font-size: clamp(18px, 4.4vw, 22px);
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0;
}

.message p { margin: 0 0 1em; }
.message p:last-child { margin-bottom: 0; }

/* --- signature --- */

.signature {
  text-align: right;
  font-family: var(--serif);
  margin-top: clamp(26px, 6vw, 38px);
}

.signature .love {
  display: block;
  font-size: clamp(17px, 4vw, 20px);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.35em;
}

.signature .names {
  display: block;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1.35;
}

.footer-mark {
  text-align: center;
  margin-top: clamp(28px, 6vw, 40px);
  font-size: clamp(16px, 4vw, 19px);
  color: var(--marigold);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}
