:root{
  --ivory: #FAF6EF;
  --ivory-deep: #F1E9DA;
  --ink: #1E2A44;
  --ink-soft: #3C4A66;
  --gold: #A2814F;
  --gold-soft: #CBB489;
  --gold-bright: #F3DFAE; /* alacakaranlık (dusk) fonlarında --gold ile kontrast düşük kalıyor, orada bu kullanılır */
  --hairline: #DED0AC;
  --muted: #6E7280;

  /* gün-içi ışık kademeleri (JS bunlar arasında geçiş yapar) */
  --dawn-top: 250,236,214;
  --dawn-bot: 233,214,197;
  --day-top: 214,231,238;
  --day-bot: 235,228,206;
  --gold-top: 244,196,142;
  --gold-bot: 232,163,120;
  --dusk-top: 92,96,140;
  --dusk-bot: 197,142,120;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
html.curtain-lock, html.curtain-lock body{ overflow: hidden; height: 100%; }

/* ---------- Açılış perdesi ---------- */
.curtain{ position: fixed; inset: 0; z-index: 100; cursor: pointer; }
.curtain-panel{ position: absolute; top: 0; bottom: 0; width: 50%; background: var(--ivory); }
.curtain-panel.curtain-left{ left: 0; }
.curtain-panel.curtain-right{ right: 0; }
.curtain-mark{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  /* vh tabanlı: telefonlar genişlikten çok yükseklikte farklılaşır (uzun ekranlar) — vw kullansaydık
     uzun ama standart genişlikteki ekranlarda amblem yine küçük/boşlukta kalırdı. */
  width: clamp(168px, 24vh, 280px); text-align: center; opacity: 0;
}
.curtain-mark svg{ width: 100%; height: auto; display: block; }
.curtain-initials{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(27px, 4.2vh, 46px);
  letter-spacing: 0.04em; color: var(--ink); white-space: nowrap;
}
.curtain-initials span{ color: var(--gold); margin: 0 7px; }
.curtain-tap{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, clamp(78px, 12vh, 136px));
  display: flex; align-items: center; justify-content: center;
  padding: clamp(11px, 1.7vh, 17px) clamp(24px, 3.4vh, 36px);
  border: 1px solid rgba(162,129,79,0.55);
  border-radius: 999px;
  font-family: 'Marcellus', serif; font-size: clamp(10px, 1.5vh, 14px); letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); opacity: 0;
  animation: tapPulse 1.8s ease-in-out infinite;
}
@keyframes tapPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(162,129,79,0.28); }
  50%{ box-shadow: 0 0 0 9px rgba(162,129,79,0); }
}

/* ---------- Kadraj vinyeti ---------- */
.vignette{
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 42%, rgba(0,0,0,0) 58%, rgba(15,15,25,0.18) 100%);
  mix-blend-mode: multiply;
}

/* ---------- Müzik butonu ---------- */
.music-toggle{
  position: fixed; top: 16px; left: 16px; z-index: 40;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(162,129,79,0.4); background: rgba(250,246,239,0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gold); padding: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
}
.music-toggle:active{ transform: scale(0.92); }
.music-toggle .mt-icon{ width: 18px; height: 18px; }
.music-toggle .mt-icon-on{ display: none; }
.music-toggle[aria-pressed="true"] .mt-icon-off{ display: none; }
.music-toggle[aria-pressed="true"] .mt-icon-on{ display: block; }
.music-toggle[hidden]{ display: none; }

/* ---------- Atmosfer: canvas gökyüzü + bulutlar ---------- */
.sky-canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.horizon{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 32%, black 58%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 32%, black 58%);
}
.h-layer{ position: absolute; left: -6%; right: -6%; bottom: 0; width: 112%; will-change: transform; }
.h-layer svg{ width: 100%; height: 100%; display: block; }
.h-back{ height: 96%; opacity: 0.24; }
.h-mid{ height: 74%; opacity: 0.32; }
.h-front{ height: 46%; opacity: 0.42; }

.grain{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.card-frame{
  position: fixed; inset: 10px; max-width: 460px; margin: 0 auto;
  border: 1px solid rgba(162,129,79,0.32); z-index: 25; pointer-events: none;
}
.card-frame .cf-corner{ position: absolute; width: 26px; height: 26px; opacity: 0.75; }
.cf-tl{ top: -1px; left: -1px; }
.cf-tr{ top: -1px; right: -1px; transform: scaleX(-1); }
.cf-bl{ bottom: -1px; left: -1px; transform: scaleY(-1); }
.cf-br{ bottom: -1px; right: -1px; transform: scale(-1,-1); }

.rail{
  position: fixed; top: 6vh; bottom: 6vh; right: 10px; width: 2px;
  background: rgba(162,129,79,0.22); z-index: 30; border-radius: 2px;
}
.rail-fill{ position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--gold); border-radius: 2px; }
.rail-marker{ position: absolute; left: 50%; top: 0%; transform: translate(-50%,-50%); width: 20px; height: 20px; }
.rail-marker svg{ width: 100%; height: 100%; }

/* ---------- Fliers: iki yamaç paraşütü pilotu, tüm sayfa boyunca uçar ---------- */
.fliers{ position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.flier{
  position: absolute; top: 0; left: 0; width: 150px;
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 20px rgba(30,42,68,0.22));
  opacity: 0;
}
.flier svg{ width: 100%; height: 100%; display: block; }
.flier-him{ transform: scaleX(-1); }

.union-mark{
  position: absolute; top: 0; left: 0; width: 52px; opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 12px rgba(162,129,79,0.45));
}
.union-mark svg{ width: 100%; height: auto; display: block; }

/* ---------- Layout & reveal ---------- */
.frame{ max-width: 480px; margin: 0 auto; position: relative; z-index: 3; }

section{
  position: relative;
  /* Gerçek cihazda (390x844) kısa içerikli bölümlerde (ör. kapak) tam viewport
     yüksekliği çok fazla boş alan bırakıyordu (~600px boşluk). min-height burada
     bir TABAN, tavan değil: uzun içerikli bölümler (ör. #s-contact'taki RSVP formu)
     kendi içerikleriyle bunu zaten aşıyor, kısalmaz/kırpılmaz — yalnızca kısa
     içerikli bölümler görünür şekilde küçülür. */
  min-height: 65vh;
  min-height: 65svh; /* mobilde adres çubuğu açılıp kapanınca zıplamayan, kararlı yükseklik */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 12vh 28px 10vh;
}

.reveal{
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(6px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(.16,.8,.24,1), filter 0.55s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal.d1{ transition-delay: .05s; }
.reveal.d2{ transition-delay: .1s; }
.reveal.d3{ transition-delay: .15s; }
.reveal.d4{ transition-delay: .2s; }

/* ---------- Kapak: sinematik giriş (perde açılınca GSAP devralır) ---------- */
.hero-content{ display: flex; flex-direction: column; align-items: center; }
.hero-content > *{ opacity: 0; transform: translateY(18px); }
.hero-content > *.hero-in{
  opacity: 1; transform: none;
  transition: opacity 1s ease, transform 1s cubic-bezier(.16,.8,.24,1);
}

/* ---------- Kelime bazlı sinematik metin reveal (GSAP tarafından üretilir) ---------- */
.word{ display: inline-block; will-change: transform, opacity, filter; }

/* ---------- Kapak ---------- */
.eyebrow{
  font-family: 'Marcellus', serif; font-size: 11px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.names{
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500;
  font-size: clamp(40px, 12vw, 58px); line-height: 1.12;
}
.amp{ color: var(--gold); font-size: 0.68em; margin: 0 8px; }
.cover-sub{ margin-top: 22px; font-style: italic; font-size: 16px; color: var(--ink-soft); max-width: 320px; }
.cover-compass{
  position: absolute; top: 44%; left: 50%; width: min(78vw, 380px); height: min(78vw, 380px);
  transform: translate(-50%, -50%); opacity: 0.14; z-index: -1; pointer-events: none;
}

.countdown{ display: flex; gap: 14px; margin-top: 30px; }
.countdown .cd-unit{ display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.countdown .cd-num{ font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; color: var(--ink); }
.countdown .cd-label{ font-family: 'Marcellus', serif; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.scroll-hint{
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gold);
}
.scroll-hint span{ font-family: 'Marcellus', serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
.chev{ width: 12px; height: 12px; border-right: 1.4px solid var(--gold); border-bottom: 1.4px solid var(--gold); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0) rotate(45deg); opacity: .5; } 50%{ transform: translateY(6px) rotate(45deg); opacity: 1; } }

/* ---------- Hikaye ---------- */
.divider{ display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.divider .ln{ width: 40px; height: 1px; background: var(--gold-soft); }
.divider .dt{ width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.quote{ font-style: italic; font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 340px; }

/* ---------- Durak kartları ---------- */
.wp-eyebrow{
  font-family: 'Marcellus', serif; font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(25,15,5,0.55);
  -webkit-text-stroke: 0.35px rgba(25,15,5,0.35);
}
.wp-date{ font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: clamp(46px, 15vw, 64px); line-height: 1; }
.wp-day{ font-family: 'Marcellus', serif; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.wp-name{ font-family: 'Playfair Display', serif; font-style: italic; font-size: 26px; margin: 22px 0 4px; }
.wp-time{ font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.wp-icon{ width: 46px; height: 34px; margin-bottom: 6px; }
.wp-card{
  width: 100%; max-width: 320px;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 26px 6px 28px;
  box-shadow: 0 30px 45px -34px rgba(30,42,68,0.4);
}
.wp-venue{ font-family: 'Marcellus', serif; font-size: 13.5px; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 6px; }
.wp-address{ font-size: 14.5px; font-style: italic; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.wp-note{
  font-family: 'Marcellus', serif; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin: -8px 0 18px;
}

.wp-actions{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wp-btn{
  font-family: 'Marcellus', serif; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
  text-decoration: none; cursor: pointer; transition: opacity 0.2s ease; display: inline-block;
}
.wp-btn:active{ opacity: 0.7; }
.wp-btn-ghost{ background: transparent; color: var(--ink); border-color: var(--hairline); }
.wp-btn-primary{ background: var(--gold); border-color: var(--gold); color: var(--ivory); }

/* ---------- İletişim ---------- */
.rsvp-title{ font-family: 'Playfair Display', serif; font-style: italic; font-size: 32px; margin-bottom: 8px; }
.rsvp-sub{ font-size: 15px; color: var(--muted); margin-bottom: 26px; max-width: 300px; text-shadow: 0 1px 3px rgba(20,16,12,0.25); }

/* ---------- RSVP formu (Netlify Forms) ---------- */
.rsvp-form{ width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; text-align: left; }
.rsvp-form .hidden-field{ position: absolute; left: -9999px; }
.rf-label{ display: block; font-family: 'Marcellus', serif; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 8px; }
.rf-input{
  width: 100%; border: none; border-bottom: 1px solid rgba(243,223,174,0.4); background: transparent;
  font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--ivory);
  padding: 6px 2px; outline: none; transition: border-color 0.2s ease;
}
.rf-input::placeholder{ color: rgba(250,246,239,0.45); }
.rf-input:focus{ border-bottom-color: var(--gold-bright); }
.rf-input-narrow{ max-width: 90px; }
.rf-textarea{ resize: vertical; min-height: 44px; font-family: 'Cormorant Garamond', serif; }
.rf-radio-group, .rf-check-group{ display: flex; gap: 18px; flex-wrap: wrap; }
.rf-radio, .rf-check{
  display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); cursor: pointer;
  text-shadow: 0 1px 3px rgba(20,16,12,0.25);
}
.rf-radio input[type="radio"], .rf-check input[type="checkbox"]{
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid rgba(243,223,174,0.55); background: transparent;
  display: inline-grid; place-content: center;
}
.rf-radio input[type="radio"]{ border-radius: 50%; }
.rf-check input[type="checkbox"]{ border-radius: 2px; }
.rf-radio input[type="radio"]::before, .rf-check input[type="checkbox"]::before{
  content: ""; width: 8px; height: 8px; transform: scale(0);
  transition: transform 0.15s ease; background: var(--gold-bright);
}
.rf-radio input[type="radio"]::before{ border-radius: 50%; }
.rf-check input[type="checkbox"]::before{ border-radius: 1px; }
.rf-radio input:checked::before, .rf-check input:checked::before{ transform: scale(1); }
.rf-submit{ align-self: center; margin-top: 4px; width: 100%; }
.rf-status{ text-align: center; font-size: 13px; font-style: italic; color: var(--gold-bright); min-height: 18px; margin-top: -4px; }

.contact-people{ display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 280px; }
.contact-person{ display: flex; flex-direction: column; align-items: center; gap: 12px; }
.contact-name{
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 19px; color: var(--ink);
}
.contact-actions{ display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }

/* ---------- Teşekkür ---------- */
.thanks-names{
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500;
  font-size: clamp(28px, 8vw, 36px); color: var(--ink); margin-bottom: 16px;
}
.thanks-names .amp{ font-size: 0.7em; }
.union-line{
  /* Eskiden 15.5px italik + text-shadow + -webkit-text-stroke birlikte küçük ekranda
     bulanık/okunaksız görünüyordu (küçük italik + yumuşak gölge klasik okunabilirlik
     hatası). .quote (18px/1.7) ile aynı ailede ama biraz daha küçük bir gövde metni
     olacak şekilde büyütüldü; stroke kaldırıldı, gölge hafifletildi. */
  font-style: italic; font-weight: 500; font-size: 17px; color: var(--gold);
  max-width: 280px; margin: 2px 0 20px; line-height: 1.65;
  text-shadow: 0 1px 3px rgba(20,16,12,0.35);
}
.thanks-word{ font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(38px, 11vw, 52px); margin-bottom: 18px; }
.thanks-sub{ font-size: 15px; color: var(--muted); max-width: 300px; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(20,16,12,0.25); }
.mini-links{ display: flex; flex-direction: column; gap: 10px; font-family: 'Marcellus', serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.mini-links a{
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px;
  text-shadow: 0 1px 2px rgba(25,15,5,0.55);
  -webkit-text-stroke: 0.35px rgba(25,15,5,0.35);
}

/* ---------- Alacakaranlık (dusk) sahnesinde altın renk yeterince kontrastlı değil:
   arka plan gradyanı da orta tonda olduğu için --gold ile karışıyor. Bu sahnede
   (dugun/iletişim/teşekkür bölümleri) daha açık bir altın tonuna geçiyoruz. ---------- */
section[data-scene="dusk"] .wp-eyebrow,
section[data-scene="dusk"] .union-line,
section[data-scene="dusk"] .mini-links a{
  color: var(--gold-bright);
  text-shadow: 0 1px 3px rgba(20,12,4,0.6);
  -webkit-text-stroke: 0.4px rgba(20,12,4,0.45);
}
section[data-scene="dusk"] .mini-links a{ border-bottom-color: rgba(243,223,174,0.6); }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  .reveal{ opacity: 1; transform: none; filter: none; }
  .flier{ opacity: 0.9 !important; }
}
