/* ==========================================================
   RENKLER & TEMALAR
   Varsayılan tema "Adaçayı". Diğer temalar yalnızca farklı olan
   renkleri ezer. Tüm yazı renkleri zemine karşı en az 4.5:1 kontrastlıdır.
   ========================================================== */
:root,
[data-tema="adacayi"] {
  --zemin: #efebe0;            /* sayfa zemini (fildişi) */
  --zemin-2: #e8e3d4;
  --kagit: #f7f3ea;
  --baslik: #3e5a42;           /* el yazısı başlıklar */
  --yazi: #3f4a3c;             /* gövde metni */
  --soluk: #5e6a5a;            /* küçük büyük-harf yazılar */
  --vurgu: #9fb19a;            /* süsler */
  --vurgu-koyu: #4c684f;       /* butonlar */
  --cizgi: rgba(76, 104, 79, .35);
  --cizgi-koyu: rgba(76, 104, 79, .6);
  --folyo-1: #dfe6d7;          /* kazı-kazan katmanı */
  --folyo-2: #a9bba3;
  --monogram-1: #a3b48f;
  --monogram-2: #667f57;
  --muhur-gorsel: url("assets/muhur-adacayi.svg");
  --muhur-harf: #82977a;
  --golge: 60, 70, 50;

  --script: 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --egri: cubic-bezier(.16, 1, .3, 1);
}

[data-tema="gul-kurusu"] {
  /* sıcak, belirgin gül kurusu zemin; yazılar zemine karşı ≥ 4.5:1 */
  --zemin: #ecd6d1;
  --zemin-2: #e4c8c2;
  --kagit: #f6e9e5;
  --baslik: #84394a;
  --yazi: #4c2c31;
  --soluk: #6b4249;
  --vurgu: #c48a8f;
  --vurgu-koyu: #873f4f;
  --cizgi: rgba(135, 63, 79, .3);
  --cizgi-koyu: rgba(135, 63, 79, .55);
  --folyo-1: #f1d2d0;
  --folyo-2: #c99397;
  --monogram-1: #d39a9f;
  --monogram-2: #8a4252;
  --muhur-gorsel: url("assets/muhur-gul.svg");
  --muhur-harf: #a8686f;
  --golge: 110, 50, 55;
}

[data-tema="pudra"] {
  --zemin: #f6ede8;
  --zemin-2: #f0e3dc;
  --kagit: #fcf7f4;
  --baslik: #85513f;
  --yazi: #4f3b33;
  --soluk: #6e564d;
  --vurgu: #ddb9a8;
  --vurgu-koyu: #8a5845;
  --cizgi: rgba(138, 88, 69, .3);
  --cizgi-koyu: rgba(138, 88, 69, .55);
  --folyo-1: #f6e4db;
  --folyo-2: #d9b2a1;
  --monogram-1: #dcb19c;
  --monogram-2: #9a6650;
  --muhur-gorsel: url("assets/muhur-pudra.svg");
  --muhur-harf: #b4826e;
  --golge: 110, 70, 50;
}

/* ==========================================================
   TEMEL
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--zemin);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--zemin);
  color: var(--yazi);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s ease;
}

/* kâğıt dokusu + hafif kenar gölgesi */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(var(--golge), .1)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .25 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23g)'/%3E%3C/svg%3E");
}

body.kilitli { overflow: hidden; height: 100dvh; }

[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }   /* width/height öznitelikleri oran içindir: kayma olmaz */

/* ---------- ortak yazı stilleri ---------- */
.baslik {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.9rem, 12.5vw, 3.9rem);
  line-height: 1.2;
  color: var(--baslik);
}

.ust-yazi {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--soluk);
}
.ust-yazi + .baslik { margin-top: 4px; }
.baslik + .ust-yazi { margin-top: 2px; }

.alt-metin {
  margin-top: 16px;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--yazi);
}

/* ==========================================================
   GİRİŞ: ZARF
   ========================================================== */
.kapi {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  background: var(--zemin);
  transition: opacity 1s ease, visibility 1s;
}
.kapi.kapaniyor { opacity: 0; visibility: hidden; pointer-events: none; }

/* zarf ekranı tamamen kaplar (telefonda videodaki gibi) */
.zarf {
  --zw: max(100vw, calc(100dvh * 400 / 860));
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--zw);
  height: calc(var(--zw) * 860 / 400);
  margin-left: calc(var(--zw) / -2);
  margin-top: calc(var(--zw) * 860 / 400 / -2);
  perspective: 2400px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 1.2s cubic-bezier(.6, 0, .3, 1), opacity 1s ease;
}
/* geniş ekranda (bilgisayar) zarf ortada, tam görünür */
@media (min-aspect-ratio: 3/4) {
  .zarf {
    --zw: calc(94dvh * 400 / 860);
    box-shadow: 0 40px 90px -40px rgba(var(--golge), .55);
  }
}
.zarf:focus-visible { outline: 1px dashed var(--vurgu-koyu); outline-offset: -12px; }

/* katman sırası: iç arka yüz → davetiye kartı → ön cep → kapak → mühür */
.zarf-arka,
.zarf-govde,
.zarf-kapak {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.zarf-arka { z-index: 0; }
.zarf-govde { z-index: 2; }
.zarf-kapak {
  z-index: 3;
  transform-origin: 50% 0;
  transition: transform 1.1s cubic-bezier(.55, 0, .3, 1), opacity .5s ease .6s;
}
.zarf.kapak-arkada .zarf-kapak { z-index: 0; }

/* zarfın içindeki davetiye (a.jpg) */
.zarf-kart {
  position: absolute;
  z-index: 1;
  left: 9%;
  width: 82%;
  top: 27%;
  aspect-ratio: 736 / 1104;
  container-type: inline-size;
  background: url("assets/a.jpg") center / cover no-repeat;
  box-shadow: 0 10px 30px -12px rgba(var(--golge), .45);
  transition: transform 1.4s var(--egri), opacity .8s ease;
}
.zarf.kart-cikti .zarf-kart { transform: translateY(-46%); }
.zarf-kart-ic {
  position: absolute;
  inset: 14% 18% 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4cqw;
  text-align: center;
}
.zarf-kart .kart-ust { font-size: 2.6cqw; letter-spacing: .2em; }
.zarf-kart-isim {
  font-family: var(--script);
  font-size: 13cqw;
  line-height: 1.1;
  color: var(--baslik);
}
.zarf-kart-isim { display: flex; flex-direction: column; align-items: center; }
.zarf-kart-isim em { font-style: normal; font-size: .55em; line-height: 1; }

/* mühür: kapağın ucunda */
.muhur {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 53.72%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  container-type: inline-size;
  pointer-events: none;
}
.muhur-yarim {
  position: absolute;
  inset: 0;
  transition: transform .35s var(--egri), opacity .5s ease;
}
/* iki yarım çatlak çizgisinde ~1% üst üste biner: kırılmadan önce ek yeri görünmesin */
.muhur-sol { clip-path: polygon(0 0, 52.8% 0, 47.8% 18%, 55.8% 36%, 46.8% 55%, 54.8% 76%, 47.8% 100%, 0 100%); }
.muhur-sag { clip-path: polygon(51.2% 0, 100% 0, 100% 100%, 46.2% 100%, 53.2% 76%, 45.2% 55%, 54.2% 36%, 46.2% 18%); }
.muhur-zemin {
  position: absolute;
  inset: 0;
  background: url("assets/muhur-cr.svg") center / contain no-repeat;   /* zarf mührü: süslü krem */
}
/* mührün içindeki kabartma monogram */
.muhur-harf {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3cqw;
  font-family: var(--script);
  font-size: 29cqw;
  line-height: 1;
  color: var(--muhur-harf);
  text-shadow: -.06cqw -.6cqw 0 rgba(255, 255, 255, .45), .5cqw .7cqw .3cqw rgba(0, 0, 0, .25);
}
.muhur-harf span { margin-left: -.28em; vertical-align: -.14em; }
/* zarftaki krem mührün "ÇR"si: bastırılmış altın tonu, derin kabartma (her temada aynı).
   Yazı tipi yüklenene kadar gizli: yedek fontla görünüp sonra değişmesin */
.zarf .muhur-harf { opacity: 0; transition: opacity .5s ease; }
.yazi-hazir .zarf .muhur-harf { opacity: 1; }
.zarf .muhur-harf {
  padding: 0 0 2.2cqw .6cqw;
  font-size: 28cqw;
  color: #b8955a;
  text-shadow:
    -.35cqw -.4cqw .05cqw rgba(255, 250, 238, .95),
    .4cqw .55cqw .3cqw rgba(92, 70, 32, .5);
}

/* 1. dokunuş: çatlama */
.zarf.catlak .muhur-sol { transform: translate(-2.5%, -1%) rotate(-3deg); }
.zarf.catlak .muhur-sag { transform: translate(2.5%, 1%) rotate(2.5deg); }
.zarf.catlak { animation: sars .4s ease; }
/* 2. dokunuş: çatlak büyür */
.zarf.catlak2 .muhur-sol { transform: translate(-6%, -2%) rotate(-7deg); }
.zarf.catlak2 .muhur-sag { transform: translate(6%, 2%) rotate(6deg); }
.zarf.catlak2 { animation: sars2 .45s ease; }
@keyframes sars2 {
  0%, 100% { translate: 0 0; }
  20% { translate: -5px 0; }
  45% { translate: 5px 0; }
  70% { translate: -3px 0; }
}
@keyframes sars {
  0%, 100% { translate: 0 0; }
  25% { translate: -4px 0; }
  60% { translate: 4px 0; }
}

/* 2. dokunuş: mühür düşer, kapak açılır, zarf aşağı kayar */
.zarf.kirik .muhur-yarim {
  opacity: 0;
  transition: transform .9s cubic-bezier(.5, 0, .75, .4), opacity .6s ease .25s;
}
.zarf.kirik .muhur-sol { transform: translate(-35%, 160%) rotate(-32deg); }
.zarf.kirik .muhur-sag { transform: translate(35%, 170%) rotate(28deg); }
.zarf.acik .zarf-kapak { transform: rotateX(178deg); opacity: 0; }

.kapi-ipucu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 73%;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--soluk);
  animation: nabiz 3.2s ease-in-out 1s infinite both;
  transition: opacity .4s;
  pointer-events: none;
}
.kapi-ipucu.gizle { opacity: 0 !important; animation: none; }
@keyframes nabiz {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

/* ==========================================================
   DAVETİYE
   ========================================================== */
.davet { visibility: hidden; }
.davet.goster { visibility: visible; }

/* ---------- kapak: zarftan çıkan davetiye — ekranın tamamını kaplar ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  text-align: center;
}
/* geniş ekranda kartın iki yanında kalan boşluğu aynı görselin bulanık hali doldurur */
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("assets/a.jpg") center / cover no-repeat;
  filter: blur(24px) saturate(1.05);
  opacity: .55;
}

/* kart görselin kendi oranında (736x1104) ekran yüksekliğini doldurur:
   telefonda (dar ekran) yanları taşar ve kırpılır, yazı alanı her zaman görünür kalır */
.davetiye-kart {
  --kart-g: calc(100svh * 736 / 1104);
  position: absolute;
  top: 0;
  left: 50%;
  height: 100svh;
  width: var(--kart-g);
  margin-left: calc(var(--kart-g) / -2);
  container-type: inline-size;
  background: url("assets/a.jpg") center / cover no-repeat;
  box-shadow: 0 0 60px -10px rgba(var(--golge), .35);
  opacity: 0;
  transform: scale(1.02);
}
.davet.goster .davetiye-kart {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s var(--egri), transform 1.6s var(--egri);
}

.hero-ic {
  position: absolute;
  inset: 15% 21% 34%;   /* a.jpg'deki çiçek çerçevenin içindeki temiz alan */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kart-ust {
  font-size: max(2.45cqw, 8.5px);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--soluk);
}

.isimler {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.6cqw;
  font-family: var(--script);
  font-weight: 400;
  font-size: 10.6cqw;
  line-height: 1.05;
  color: var(--baslik);
}
.isimler em { font-style: normal; font-size: .62em; margin-right: .1em; }
/* & iki ismin arasında, ortada */
.isimler .isim-ve { font-size: .55em; line-height: 1; margin: .02em 0 .06em; }

/* kartın üstündeki "İsteme & Nişan Töreni": yazı akışından ayrı, üst çiçeklerin arasında */
.kart-baslik {
  position: absolute;
  z-index: 1;
  top: 10.8%;
  left: 0;
  right: 0;
  font-size: max(2.2cqw, 8.5px);
  letter-spacing: .22em;
  text-align: center;
}

.aileler { display: flex; justify-content: center; margin-top: 1.6cqw; }
.aile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3cqw;
  padding: 0 2.4cqw;
}
.aile:empty { display: none; }
.aile:not(:empty) + .aile:not(:empty) { border-left: 1px solid var(--cizgi); }
.aile-isim { font-style: italic; font-size: 3.05cqw; color: var(--yazi); white-space: nowrap; }
.aile-isim small { font-size: .78em; }
.aile-soyad {
  font-size: max(2.3cqw, 8.5px);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--soluk);
}

.davet-satiri {
  margin-top: 2.4cqw;
  font-size: max(2.2cqw, 8.5px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vurgu-koyu);
}

/* tarih satırı: AY | GÜN | YIL */
.kazi {
  position: relative;
  width: 100%;
  margin-top: 2.6cqw;
}
.tarih-satiri {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1cqw 0;
  border-top: 1px solid var(--cizgi-koyu);
  border-bottom: 1px solid var(--cizgi-koyu);
}
.tarih-ay,
.tarih-yil {
  font-size: max(2.5cqw, 9px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yazi);
}
.tarih-gun {
  padding: 0 3.5cqw;
  border-left: 1px solid var(--cizgi-koyu);
  border-right: 1px solid var(--cizgi-koyu);
  font-size: 8.6cqw;
  font-weight: 400;
  line-height: 1.05;
  color: var(--baslik);
}
.tarih-gunadi {
  margin-top: 1.6cqw;
  font-size: max(3cqw, 10.5px);
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--yazi);
}
.hero-mekan {
  margin-top: 1.8cqw;
  font-size: max(2.2cqw, 8.5px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soluk);
}

.kazi-katman {
  position: absolute;
  inset: -4px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  touch-action: none;
  cursor: grab;
  transition: opacity .7s ease;
}
.kazi-katman:active { cursor: grabbing; }
.kazi.acildi .kazi-katman { opacity: 0; pointer-events: none; }
.kazi.acildi .tarih-satiri { animation: parla 1.4s ease; }
@keyframes parla {
  0%   { transform: scale(.97); }
  40%  { transform: scale(1.03); }
  100% { transform: none; }
}

/* patlama parçacıkları (JS ile eklenir) */
.patlama {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.patlama .parilti {
  position: absolute;
  left: 0; top: 0;
  width: 300px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--folyo-1) 80%, transparent), transparent 70%);
}
.patlama .kivilcim {
  position: absolute;
  left: 0; top: 0;
  width: 14px;
  height: 1.6px;
  margin-top: -.8px;
  border-radius: 2px;
  transform-origin: 0 50%;
}
.patlama .kalp { position: absolute; left: 0; top: 0; width: 14px; height: 14px; }

/* kapanıştaki fiyonklu çiçek dalı (assets/cizgidal.png) */
.kapanis-cicek { width: min(86vw, 380px); }

.kaydir {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(2.4%, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--soluk);
  opacity: 0;
}
.davet.goster .kaydir { animation: belir 1s ease 1.4s forwards; }
.kaydir svg { animation: zipla 2.2s ease-in-out infinite; }
@keyframes zipla { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes belir { to { opacity: 1; } }

/* ---------- bölümler ---------- */
.bolum {
  max-width: 40rem;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

/* ---------- geri sayım ---------- */
.sayac {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 24rem;
  margin: 30px auto 0;
}
.sayac-kutu { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sayac-sayi {
  font-size: clamp(2.7rem, 12vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--baslik);
}
.sayac-soluk .sayac-sayi { color: var(--vurgu); }
.sayac-etiket {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--soluk);
}
/* sayacın altındaki not / tören günü notu / bitiş notu */
.sayac-notu {
  max-width: 26rem;
  margin: 26px auto 0;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--yazi);
  text-wrap: balance;   /* satırlar dengeli bölünsün, tek kelime kalmasın */
}
.sayac-notu-bugun {
  font-family: var(--script);
  font-style: normal;
  font-size: 2rem;
  line-height: 1.35;
  color: var(--baslik);
}
.bitis-alani .baslik { margin-top: 4px; }
.bitis-imza {
  margin-top: 14px;
  font-family: var(--script);
  font-size: 2.3rem;
  color: var(--baslik);
}
.bitis-imza em { font-style: normal; font-size: .7em; }

/* sarkan beyaz salkım çiçekler (assets/asma.png) */
.asma {
  --g: min(calc(100% + 48px), 560px);     /* telefonda kenarlara kadar uzanır, tam ortalı */
  width: var(--g);
  max-width: none;
  margin: 34px calc((100% - var(--g)) / 2) 0;
}

/* ---------- bizden size: kemer çerçeveli not ---------- */
.not {
  position: relative;
  max-width: 25rem;
  margin: 62px auto 0;
  padding: 96px 32px 46px;
  border: 1px solid var(--cizgi-koyu);
  border-radius: 50% 50% 6px 6px / 172px 172px 6px 6px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--kagit) 75%, transparent) 0%,
    color-mix(in srgb, var(--kagit) 35%, transparent) 100%);
}
/* içteki ikinci ince kemer çizgisi */
.not::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--cizgi);
  border-radius: 50% 50% 3px 3px / 165px 165px 3px 3px;
  pointer-events: none;
}
/* kemerin tepesine oturan fiyonk (assets/cizgidal.png) */
.not-fiyonk {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(62%, 236px);
  transform: translate(-50%, -46%);
  filter: drop-shadow(0 3px 4px rgba(var(--golge), .12));
}
.not p {
  font-style: italic;
  font-size: 1.16rem;
  line-height: 1.85;
  color: var(--yazi);
}
.not-ayirici {
  display: block;
  width: 6px;
  height: 6px;
  margin: 18px auto;
  background: var(--vurgu);
  transform: rotate(45deg);
}
.not .not-sevgiyle {
  margin-top: 30px;
  font-style: normal;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--soluk);
}
.not .not-imza {
  margin-top: 6px;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--baslik);
}
.not-imza em { font-style: normal; font-size: .7em; }
@media (max-width: 420px) {
  .not { padding: 88px 22px 40px; }
  .not p { font-size: 1.08rem; line-height: 1.8; }
}

/* ---------- mekân ---------- */
.cardak { width: min(100%, 320px); margin: 18px auto 4px; filter: drop-shadow(0 12px 16px rgba(var(--golge), .14)); }
.mekan-bilgi { margin-top: 6px; }
.mekan-ad {
  margin-top: 4px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.7rem, 11.5vw, 3.5rem);
  line-height: 1.2;
  color: var(--baslik);
}
.mekan-salon { font-size: 1.25rem; color: var(--yazi); }
.mekan-adres {
  max-width: 22rem;
  margin: 4px auto 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--soluk);
}
.mekan-tarih { margin-top: 14px; font-size: 1.18rem; color: var(--yazi); }
.cizgili-saat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--baslik);
}
.cizgili-saat span { width: 54px; height: 1px; background: var(--cizgi-koyu); }

.butonlar { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.buton {
  min-width: 108px;
  padding: 12px 20px;
  border: 1px solid var(--cizgi-koyu);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--vurgu-koyu);
  cursor: pointer;
  transition: background .4s ease, color .4s ease;
}
.buton:hover,
.buton:focus-visible {
  background: var(--vurgu-koyu);
  color: var(--kagit);
  outline: none;
}

/* ---------- akşamın akışı ---------- */
.gun-baslik {
  margin-top: 26px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 3.1rem;
  line-height: 1.2;
  color: var(--baslik);
}
.gun-alt { font-size: 1.24rem; color: var(--yazi); }
.akis {
  list-style: none;
  display: grid;
  gap: 26px;
  max-width: 28rem;
  margin: 32px auto 0;
}
.akis li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* saatler: büyük, koyu, iki yanında ince çizgi */
.akis-saat {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--baslik);
  font-variant-numeric: lining-nums;
}
.akis-saat::before,
.akis-saat::after {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--cizgi-koyu);
}
.akis-ad { font-size: 1.7rem; font-weight: 500; color: var(--yazi); }
.akis-not { font-style: italic; font-size: 1.14rem; color: var(--soluk); }
/* isteme ile nişan arasındaki köprü (assets/kopru.png — alttaki gri şerit kesildi) */
/* köprü ve el ele görseli aynı genişlikte (telefonda kenarlara kadar, ortalı) */
.akis-kopru img,
.akis-gorsel {
  --g: min(calc(100vw - 32px), 460px);
  width: var(--g);
  max-width: none;
  margin-inline: calc((100% - var(--g)) / 2);
}
/* nişan töreninin altındaki el ele görseli (assets/el-ele.png):
   kareye yakın olduğu için köprüyle aynı görsel ağırlıkta, bulanıklaşmadan */
.akis-el { width: min(70vw, 280px); margin: 30px auto 0; }

/* monogram (celenk.png halkası + iç içe harfler) — kapanışta */
.monogram {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.monogram img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.monogram-harf {
  position: relative;
  padding: .1em .2em .2em;
  font-family: var(--script);
  font-size: 72px;
  line-height: 1;
  background: linear-gradient(160deg, var(--monogram-1) 10%, var(--monogram-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* position kullanılmaz: gradyanlı yazıda konumlandırılmış harf boyanmıyor */
.monogram-harf span { margin-left: -.3em; vertical-align: -.16em; }
.monogram-buyuk { width: 230px; }
.monogram-buyuk .monogram-harf { font-size: 84px; }

/* ---------- katılım (LCV) ---------- */
.katilim-giris {
  max-width: 24rem;
  margin: 16px auto 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--yazi);
  text-wrap: balance;
}
.katilim-son { margin-top: 12px; }

.katilim-form {
  display: grid;
  gap: 24px;
  max-width: 26rem;
  margin: 36px auto 0;
  text-align: left;
}
.alan { display: grid; gap: 6px; }
.alan-etiket {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--soluk);
}
.alan-etiket em {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}
.alan input,
.alan select,
.alan textarea {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--cizgi-koyu);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1.18rem;
  color: var(--yazi);
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.alan textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.alan input::placeholder,
.alan textarea::placeholder { color: var(--soluk); opacity: .6; font-style: italic; }
.alan input:focus,
.alan select:focus,
.alan textarea:focus { border-bottom-color: var(--baslik); box-shadow: 0 1px 0 var(--baslik); }
.alan select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.alan-kisi { position: relative; }
.alan-kisi::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--soluk);
  border-bottom: 1px solid var(--soluk);
  transform: rotate(45deg);
  pointer-events: none;
}

.secim { border: 0; display: grid; }
.secim legend { margin-bottom: 8px; }
.secenek {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--cizgi);
  font-size: 1.2rem;
  color: var(--yazi);
  cursor: pointer;
}
.secenek:first-of-type { border-top: 1px solid var(--cizgi); }
.secenek input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--cizgi-koyu);
  border-radius: 50%;
  cursor: pointer;
}
.secenek input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--baslik);
  transform: scale(0);
  transition: transform .25s var(--egri);
}
.secenek input:checked::before { transform: scale(1); }
.secenek input:focus-visible { outline: 1px dashed var(--baslik); outline-offset: 3px; }

.tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.katilim-hata { text-align: center; font-style: italic; font-size: 1.05rem; color: #a02c3a; }
.katilim-gonder {
  margin-top: 4px;
  padding: 17px 20px;
  border: 0;
  background: var(--vurgu-koyu);
  color: var(--kagit);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .3s ease, transform .3s ease;
}
.katilim-gonder:hover { filter: brightness(1.1); }
.katilim-gonder:active { transform: scale(.99); }
.katilim-gonder:disabled { opacity: .65; cursor: wait; }
.katilim-gizlilik { text-align: center; font-style: italic; font-size: 1rem; color: var(--soluk); }

.katilim-tesekkur { max-width: 24rem; margin: 30px auto 0; }
.tesekkur-muhur {
  width: 84px;
  aspect-ratio: 1;
  margin: 0 auto;
  background: var(--muhur-gorsel) center / contain no-repeat;
}
.katilim-tesekkur.yeni .tesekkur-muhur { animation: muhurBas .9s var(--egri); }
@keyframes muhurBas {
  from { opacity: 0; transform: scale(1.7) rotate(-18deg); }
  to   { opacity: 1; transform: none; }
}
.tesekkur-baslik {
  margin-top: 10px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--baslik);
}
.tesekkur-metin { margin-top: 6px; font-style: italic; font-size: 1.18rem; line-height: 1.7; color: var(--yazi); text-wrap: balance; }
.tesekkur-deneme { margin-top: 12px; font-size: .95rem; color: #a02c3a; }
.yeni-yanit {
  margin-top: 18px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 1px solid var(--cizgi-koyu);
  background: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--soluk);
  cursor: pointer;
}

/* ---------- kapanış ---------- */
.kapanis {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0 max(110px, calc(env(safe-area-inset-bottom) + 96px));
  text-align: center;
}
/* sayfanın en altında, ekran genişliğinde pembe gül şeridi (düz kesik alt kenar sayfa sonuna oturur) */
.kapanis-cicek { margin-top: 26px; }
/* sayfanın en altındaki küçük iletişim satırı */
.iletisim {
  margin-top: 22px;
  padding: 0 24px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--soluk);
}
.iletisim a { color: inherit; text-decoration: none; white-space: nowrap; }
.kapanis-isim {
  margin-top: 6px;
  font-family: var(--script);
  font-size: clamp(2.8rem, 12vw, 3.6rem);
  line-height: 1.2;
  color: var(--baslik);
}
.kapanis-isim em { font-style: normal; font-size: .7em; }

/* ---------- kaydırınca belirme ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--egri) var(--d, 0s), transform 1.1s var(--egri) var(--d, 0s);
}
.reveal.gorundu { opacity: 1; transform: none; }
/* yalnızca hızlı kaydırmada: bekleme yok, belirme kısa (normal kaydırmada yukarıdaki ayarlar geçerli) */
.hizli-kaydirma .reveal { transition-duration: .45s; transition-delay: 0s; }

/* ==========================================================
   YÜZEN KONTROLLER
   ========================================================== */
.yuzen {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
  transition: opacity .8s ease, transform .8s var(--egri);
}
.yuzen-sol { left: 18px; align-items: flex-start; }
.yuzen-sag { right: 18px; align-items: flex-end; }
body.acildi .yuzen { opacity: 1; transform: none; pointer-events: auto; transition-delay: 1.6s; }

.yuvarlak-buton {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--cizgi-koyu);
  background: color-mix(in srgb, var(--kagit) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -12px rgba(var(--golge), .5);
  color: var(--vurgu-koyu);
  cursor: pointer;
  transition: transform .3s ease;
}
.yuvarlak-buton:hover { transform: scale(1.06); }

.muzik-buton { display: flex; align-items: center; justify-content: center; gap: 3px; }
.muzik-cubuk {
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleY(.3);
  transform-origin: bottom;
}
.muzik-buton.caliyor .muzik-cubuk { animation: esitleyici 1s ease-in-out infinite; }
.muzik-buton.caliyor .muzik-cubuk:nth-child(2) { animation-delay: -.4s; }
.muzik-buton.caliyor .muzik-cubuk:nth-child(3) { animation-delay: -.7s; }
.muzik-buton.caliyor .muzik-cubuk:nth-child(4) { animation-delay: -.2s; }
@keyframes esitleyici { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.tema-liste {
  list-style: none;
  padding: 6px;
  background: color-mix(in srgb, var(--kagit) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cizgi);
  box-shadow: 0 18px 40px -18px rgba(var(--golge), .5);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--egri);
}
#tema.acik .tema-liste { opacity: 1; transform: none; pointer-events: auto; }
.tema-liste button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px 9px 10px;
  border: 1px solid transparent;
  background: none;
  font-size: 1rem;
  color: var(--yazi);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.tema-liste button[aria-current="true"] { border-color: var(--cizgi); background: rgba(var(--golge), .06); }
.tema-renk { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }

/* ==========================================================
   HAREKETİ AZALT
   ========================================================== */
/* Not: Telefonun "Hareketi azalt / Animasyonları kaldır" ayarı bilerek dikkate alınmaz;
   bütün animasyonlar her telefonda (iPhone ve Android) birebir aynı çalışır. */

/* ==========================================================
   ESKİ TARAYICI YEDEĞİ
   Ekran yüksekliği birimlerini (svh/dvh) tanımayan eski tarayıcılar
   (ör. Android 6 ve öncesindeki Chrome 108 altı) için aynı ölçüler vh ile.
   Güncel iPhone ve Android'lerde bu blok hiç devreye girmez.
   ========================================================== */
@supports not (height: 1svh) {
  body { min-height: 100vh; }
  body.kilitli { height: 100vh; }
  .zarf { --zw: max(100vw, calc(100vh * 400 / 860)); }
  .hero { height: 100vh; min-height: 100vh; }
  .davetiye-kart { --kart-g: calc(100vh * 736 / 1104); height: 100vh; }
}
@supports not (height: 1svh) {
  @media (min-aspect-ratio: 3/4) {
    .zarf { --zw: calc(94vh * 400 / 860); }
  }
}
