:root {
  --cream: #fbf6ec;
  --cream-dark: #f3e9d4;
  --ink: #2e2620;
  --ink-soft: #5c5043;
  --gold: #b8902f;
  --gold-light: #d9b35c;
  --maroon: #6e1f2a;
  --maroon-dark: #4a131b;
  --green: #1f4d3a;
  --line: rgba(110, 31, 42, 0.18);
  --shadow: 0 10px 30px rgba(46, 38, 32, 0.08);
  --radius: 18px;
  --serif: 'Playfair Display', 'Noto Serif Ethiopic', serif;
  --sans: 'Inter', 'Noto Sans Ethiopic', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
  position: relative;
}

.section-divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 32px;
}

.section-title {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--maroon-dark);
  margin: 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.bi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bi .am { font-weight: 500; }
.bi .en { color: var(--ink-soft); font-style: italic; font-size: 0.92em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 50px;
  color: #f7ecd9;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20px;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(13, 7, 5, 0.45) 0%, rgba(13, 7, 5, 0.12) 28%, rgba(13, 7, 5, 0.18) 60%, rgba(13, 7, 5, 0.55) 100%),
    url('/images/Image.jpeg');
  background-size: cover;
  background-position: center;
  filter: blur(9px) saturate(108%);
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: -1;
}
.hero::before { top: -180px; left: -160px; }
.hero::after { bottom: -200px; right: -160px; }

.hero-cross-img {
  width: 56px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.corner-cross {
  position: absolute;
  width: 42px;
  opacity: 0.92;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  z-index: 1;
}
.corner-cross.top-left { top: 30px; left: 30px; }
.corner-cross.top-right { top: 30px; right: 30px; }

@media (max-width: 640px) {
  .corner-cross { width: 28px; }
  .corner-cross.top-left { top: 16px; left: 16px; }
  .corner-cross.top-right { top: 16px; right: 16px; }
}

.hero-glass-panel {
  padding: 0 clamp(20px, 6vw, 56px);
  margin: 0 12px;
}

.hero-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.hero-names {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.hero-names .amh {
  display: block;
  font-size: 0.6em;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.hero-amp { color: var(--gold-light); font-style: italic; padding: 0 6px; }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  font-size: 0.85rem;
  color: rgba(247, 236, 217, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Countdown (glass, inside hero) ---------- */
.hero-countdown {
  margin-top: 36px;
  width: 100%;
}

.hero-countdown-label {
  margin: 0 0 18px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.hero-countdown-label .am { color: rgba(247, 236, 217, 0.85); font-weight: 600; }
.hero-countdown-label .en { color: rgba(247, 236, 217, 0.55); font-style: italic; font-size: 0.85em; }

#countdown-over { color: #fff; }

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  flex-wrap: wrap;
}

.countdown-sep {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  .countdown-sep { display: none; }
}

.countdown-unit {
  min-width: 100px;
}

.countdown-unit.glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 20px 18px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.countdown-number {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.countdown-label {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.countdown-label .am { display: block; font-size: 0.9em; }

/* ---------- Verse ---------- */
.verse {
  text-align: center;
  background: var(--cream-dark);
}

.verse blockquote {
  max-width: 760px;
  margin: 30px auto 0;
  font-family: var(--serif);
}

.verse .am {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--maroon-dark);
  margin: 0 0 16px;
}

.verse .en {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.verse cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ---------- Details / Envelope ---------- */
.envelope-scene {
  display: flex;
  justify-content: center;
  margin: 70px auto 0;
  perspective: 2800px;
  overflow: visible;
}

.envelope {
  position: relative;
  width: min(480px, 92vw);
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  cursor: pointer;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--cream-dark), #e6d6b3);
  border-radius: 10px;
  border: 1px solid rgba(184, 144, 47, 0.35);
  box-shadow: 0 30px 60px rgba(46, 38, 32, 0.25);
  z-index: 1;
}

.envelope-letter {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 6%;
  height: 88%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(46, 38, 32, 0.18);
  z-index: 2;
  overflow: hidden;
  padding: clamp(18px, 4vw, 36px) clamp(20px, 5vw, 40px);
  text-align: left;
  transform: translateY(8%);
  transition: transform 1s cubic-bezier(0.22, 0.9, 0.25, 1) 0.15s, height 0.8s ease 0.15s, box-shadow 0.6s;
}

.envelope.open .envelope-letter {
  height: clamp(460px, 62vw, 600px);
  overflow-y: auto;
  transform: translateY(-14%);
  z-index: 6;
  box-shadow: 0 36px 70px rgba(46, 38, 32, 0.32);
}

.envelope-bottom {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 50% 40%, 100% 100%);
  background: linear-gradient(160deg, var(--cream), var(--cream-dark));
  border-radius: 0 0 10px 10px;
  z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(200deg, var(--gold-light), var(--gold));
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 1.1s cubic-bezier(0.6, -0.1, 0.2, 1.15);
  z-index: 4;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 6px 16px rgba(46, 38, 32, 0.18);
}

.envelope-seal {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 38, 32, 0.3);
  z-index: 5;
  transition: opacity 0.4s, transform 0.4s;
}

.envelope.open .envelope-flap {
  transform: rotateX(-118deg);
  z-index: 1;
}

.envelope.open .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
}

.envelope-invited {
  text-align: center;
  margin: 0 0 22px;
}

.envelope-invited .am {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--maroon-dark);
  font-weight: 700;
}

.envelope-invited .en {
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.04em;
}

.envelope-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.envelope-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.envelope-row .am { color: var(--ink); font-weight: 600; }
.envelope-row .en { color: var(--ink-soft); }

.envelope-message {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.envelope-message .am { color: var(--maroon-dark); font-weight: 600; }
.envelope-message .en { color: var(--ink-soft); }

.envelope-hint {
  text-align: center;
  margin: 50px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  animation: envelope-pulse 2.4s ease-in-out infinite;
  transition: opacity 0.4s;
}

.envelope-hint.hidden { opacity: 0; animation: none; }

@keyframes envelope-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---------- Cards / Forms shared ---------- */
.card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 32px;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.form-grid {
  max-width: 640px;
  margin: 40px auto 0;
  display: grid;
  gap: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

label .en { font-weight: 400; color: var(--ink-soft); font-style: italic; font-size: 0.85em; }

input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio-pill {
  flex: 1;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.radio-pill input { display: none; }

.radio-pill.selected {
  background: rgba(110, 31, 42, 0.85);
  color: #fff;
  border-color: var(--maroon);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(110, 31, 42, 0.78);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 10px 24px rgba(74, 19, 27, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: 0.2s;
}

.btn:hover { background: rgba(74, 19, 27, 0.88); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.btn-gold {
  background: rgba(184, 144, 47, 0.75);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}
.btn.btn-gold:hover { background: rgba(217, 179, 92, 0.85); }
.btn.btn-block { width: 100%; }

.form-msg {
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  min-height: 1.4em;
}
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--maroon); }

/* ---------- Photo Album ---------- */
.upload-box {
  max-width: 640px;
  margin: 36px auto 0;
}

.upload-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .upload-row { grid-template-columns: 1fr 1fr; }
  .upload-row .full { grid-column: 1 / -1; }
}

.file-drop {
  border: 2px dashed var(--gold);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: rgba(243, 233, 212, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  color: var(--ink-soft);
  grid-column: 1 / -1;
}

.file-drop.has-file { border-style: solid; color: var(--ink); }

.gallery {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
  color: #fff;
  padding: 22px 10px 8px;
  font-size: 0.82rem;
}

.gallery-empty {
  text-align: center;
  color: var(--ink-soft);
  grid-column: 1 / -1;
  padding: 30px;
}

/* ---------- Falling leaves ---------- */
#leaves-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

.falling-leaf {
  position: absolute;
  top: -8%;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 1.33);
  filter: drop-shadow(0 2px 3px rgba(46, 38, 32, 0.2));
  animation: leaf-fall var(--duration) linear var(--delay) forwards;
}

@keyframes leaf-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  6% { opacity: 0.9; }
  25% { transform: translate(calc(var(--sway) * 0.6), 25vh) rotate(calc(var(--spin) * 0.3)); }
  50% { transform: translate(calc(var(--sway) * -0.4), 50vh) rotate(calc(var(--spin) * 0.55)); }
  75% { transform: translate(calc(var(--sway) * 0.5), 75vh) rotate(calc(var(--spin) * 0.8)); }
  94% { opacity: 0.9; }
  100% {
    transform: translate(calc(var(--sway) * -0.2), 112vh) rotate(var(--spin));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #leaves-fx { display: none; }
}

/* ---------- Instruments decoration ---------- */
.instruments-strip {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
  flex-wrap: wrap;
  margin: 10px 0 50px;
}

.instrument-item {
  text-align: center;
  width: 108px;
}

.instrument-item img {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 10px 16px rgba(74, 19, 27, 0.18));
  transition: transform 0.25s;
}

.instrument-item:hover img { transform: translateY(-6px) scale(1.06); }

.instrument-item .name-am {
  margin-top: 10px;
  font-weight: 700;
  color: var(--maroon-dark);
  font-size: 0.95rem;
}

.instrument-item .name-en {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: italic;
}

/* ---------- Mezmur Playlist ---------- */
.mezmur-sections {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mezmur-section {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.mezmur-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  cursor: pointer;
  background: rgba(243, 233, 212, 0.4);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.mezmur-section-header h3 {
  margin: 0;
  font-family: var(--serif);
  color: var(--maroon-dark);
  font-size: 1.3rem;
}

.mezmur-section-header .en {
  display: block;
  font-size: 0.75em;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
}

.mezmur-section-header .chevron {
  transition: transform 0.25s;
  color: var(--gold);
  font-size: 1.3rem;
}

.mezmur-section.open .chevron { transform: rotate(180deg); }

.mezmur-section-body {
  display: none;
  padding: 6px 0 10px;
}

.mezmur-section.open .mezmur-section-body { display: block; }

.mezmur-subsection-title {
  margin: 10px 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.mezmur-song {
  border-top: 1px solid var(--line);
}

.mezmur-song-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  cursor: pointer;
}

.mezmur-song-num {
  font-weight: 700;
  color: var(--gold);
  min-width: 24px;
}

.mezmur-song-title {
  font-weight: 600;
  flex: 1;
}

.mezmur-song-body {
  display: none;
  padding: 0 26px 22px 62px;
}

.mezmur-song.open .mezmur-song-body { display: block; }

.mezmur-lyrics {
  white-space: pre-line;
  background: var(--cream-dark);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.audio-missing {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

audio { width: 100%; }

.mezmur-yt-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mezmur-yt-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ---------- Wishes ---------- */
.wishes-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.wish-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-top: 3px solid var(--gold);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.wish-card .wish-name {
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 6px;
}

.wish-card .wish-message {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.wish-card .wish-date {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 50px 24px;
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

footer .am { color: #fff; font-weight: 600; margin-bottom: 4px; }

nav.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 7, 5, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topnav-brand {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.1rem;
  white-space: nowrap;
}

.topnav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
}

.topnav-links a {
  text-decoration: none;
  color: rgba(247, 236, 217, 0.75);
}

.topnav-links a:hover { color: #fff; }

@media (max-width: 720px) {
  .topnav-links { display: none; }
}
