/* ============================================================
   Melek & Sezer — Nişan davetiyesi
   Palet karikatürden: fildişi zemin · şampanya altını · siyah çerçeve
   ============================================================ */

:root {
  --paper:      #F5EFE4;
  --paper-2:    #EDE3D1;
  --card:       #FBF8F2;
  --ink:        #1D1915;
  --ink-soft:   #5C5247;
  --ink-mute:   #8A7F72;
  --gold:       #A47E43;
  --gold-soft:  #CFB383;
  --gold-faint: rgba(164, 126, 67, .14);
  --line:       #DCCDB3;
  --ok:         #4E7149;
  --err:        #A9483A;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:    "Jost", "Segoe UI", system-ui, sans-serif;
  --script:  "Pinyon Script", "Cormorant Garamond", cursive;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* kâğıt dokusu + karikatürdeki pencere ışığı */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255, 252, 244, .9), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(207, 179, 131, .16), transparent 70%),
    var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-mute); font-weight: 400; }

/* ---------- Ortak tipografi ---------- */
.kicker {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.section__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: .01em;
}
.section__lead {
  max-width: 34rem;
  margin: .9rem auto 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.12em;
}
.eyebrow-title {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  margin: 0 0 2.2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-title::before, .eyebrow-title::after {
  content: ""; width: 3rem; height: 1px; background: var(--gold-soft);
}
.ornament { display: block; width: 56px; height: 28px; margin: 0 auto; color: var(--gold); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(29, 25, 21, .35); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
@media (hover: hover) {
  .btn--ink:hover { background: #3a332b; }
  .btn--line:hover { border-color: var(--ink); background: rgba(29, 25, 21, .04); }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Sabit albüm butonu ---------- */
.album-fab {
  position: fixed; z-index: 20;
  top: max(.9rem, env(safe-area-inset-top));
  right: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem .55rem .75rem;
  border-radius: 999px;
  background: rgba(251, 248, 242, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(164, 126, 67, .35);
  box-shadow: 0 6px 20px rgba(29, 25, 21, .1);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: transform .16s var(--ease-out);
}
.album-fab svg { width: 18px; height: 18px; color: var(--gold); }
.album-fab:active { transform: scale(.96); }

/* ============ KAPAK ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 2.4rem;
  padding: clamp(4.5rem, 12vh, 6rem) var(--gutter) 4.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
.hero__text { text-align: center; }
.couple {
  margin: 0;
  font-weight: 300;
  line-height: .9;
  display: flex; flex-direction: column; align-items: center;
}
.couple__name {
  font-size: clamp(4.2rem, 2.6rem + 9vw, 7.4rem);
  letter-spacing: -.01em;
}
.couple__amp {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.4rem, 2.4rem + 5vw, 5rem);
  line-height: .7;
  color: var(--gold);
  margin: .05em 0 .2em;
}
.hero__date {
  margin: 2rem auto 0;
  display: grid; gap: .6rem; justify-items: center;
}
.hero__date-main {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  letter-spacing: .14em;
}
.hero__date-main b { font-weight: 400; }
.hero__date-main i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero__date-side {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
  margin-top: 2.2rem;
}

/* Karikatür — karikatürdeki siyah çerçeveye selam: koyu çerçeve + altın paspartu */
.hero__art { margin: 0; justify-self: center; width: min(100%, 420px); }
.frame {
  padding: 10px;
  background: linear-gradient(145deg, #2a241e, #120f0c 55%, #2a241e);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 30px 60px -20px rgba(29, 25, 21, .45),
    0 12px 24px -12px rgba(29, 25, 21, .35);
}
.frame picture {
  display: block;
  padding: 6px;
  background: linear-gradient(135deg, #e6d3a7, #b8955a 50%, #e6d3a7);
}
.frame img { width: 100%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem;
  width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid rgba(29, 25, 21, .3); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--gold);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
  }
  .hero__art { width: min(100%, 440px, calc(84svh * 1117 / 1988)); justify-self: end; }
  .hero__art .frame { transform: rotate(1.2deg); }
}
/* telefonda karikatür ekranı kaplamasın diye kapakta yalnızca isim/tarih; görsel hemen altında */
@media (max-width: 899px) {
  .hero { align-content: start; }
  .hero__text { min-height: calc(100svh - 10rem); display: grid; align-content: center; }
  .scroll-cue { display: none; }
}

/* ---------- Giriş animasyonu ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 100ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ DAVET METNİ ============ */
.letter {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  text-align: center;
}
.letter__body {
  margin-top: 1.8rem;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem);
  line-height: 1.6;
  color: var(--ink);
}
.letter__body p { margin: 0 0 1.1em; }
.letter__body q { quotes: "“" "”"; }
.letter__sign {
  margin: 1.6rem 0 0;
  font-family: var(--script);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem);
  line-height: 1;
  color: var(--gold);
}

/* ============ AİLELER ============ */
.families {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, .55);
}
.families__row {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 2.4rem;
  text-align: center;
}
.family__child {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.55rem, 1.3rem + 1vw, 1.9rem);
  line-height: 1.2;
}
.family__parents {
  margin: .35rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.12em;
}
.family__tel {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .8rem;
  padding: .45rem 1rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--sans);
  font-size: .9rem;
  letter-spacing: .06em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s ease;
}
.family__tel::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) { .family__tel:hover { border-color: var(--gold); } }
.family__mark { display: block; width: 44px; height: 22px; margin: 0 auto .7rem; color: var(--gold); }

@media (min-width: 760px) {
  .families__row { grid-template-columns: 1fr auto 1fr; align-items: start; gap: 2rem; }
  .family--center {
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
@media (max-width: 759px) {
  .family--center { padding: 2.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}

/* ============ GERİ SAYIM ============ */
.countdown {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  text-align: center;
}
.countdown__title {
  margin: 0 0 1.4rem;
  font-family: var(--script);
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem);
  line-height: 1.1;
  color: var(--gold);
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 34rem;
  margin: 0 auto;
}
.countdown__grid > div { display: grid; gap: .2rem; padding: 0 .3rem; }
.countdown__grid > div + div { border-left: 1px solid var(--line); }
.countdown__grid span {
  font-weight: 300;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown__grid small {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.countdown__done { margin: 0; font-style: italic; font-size: 1.6rem; }

/* ============ BÖLÜMLER ============ */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.section__head { text-align: center; margin-bottom: 2.2rem; }

.venue { background: var(--paper-2); }
.venue__name {
  margin: 1rem 0 .2rem;
  font-weight: 500;
  font-size: 1.45em;
}
.venue__addr { margin: 0; color: var(--ink-soft); }
.map {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 52vw, 420px);
  border: 0;
  border-radius: 3px;
  filter: sepia(.18) saturate(.85);
}
.venue__actions {
  display: grid; gap: .7rem;
  width: min(100%, 22rem);
  margin: 1.6rem auto 0;
}
@media (min-width: 760px) {
  .venue__actions { grid-template-columns: repeat(3, auto); width: auto; justify-content: center; }
}

/* ---------- Kart & form ---------- */
.card {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 5vw, 2.4rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px -30px rgba(29, 25, 21, .3);
}
.form { display: grid; gap: .55rem; }
.form__label {
  margin: .9rem 0 0;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form__hint { margin: -.2rem 0 .3rem; font-size: .98rem; font-style: italic; color: var(--ink-mute); }
.field {
  width: 100%;
  min-height: 48px;
  padding: .75rem .95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; /* iOS zoom olmasın */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #ab9f90; }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-faint); }
textarea.field { resize: vertical; min-height: 96px; line-height: 1.5; }

.choices { border: 0; padding: 0; margin: 0 0 .4rem; display: grid; gap: .55rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: .8rem;
  min-height: 52px;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: var(--sans);
  font-size: .98rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice span::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink-mute);
  transition: border-width .18s var(--ease-out), border-color .18s ease;
}
.choice input:checked + span { border-color: var(--ink); background: #fffdf8; }
.choice input:checked + span::before { border: 6px solid var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.guests { display: grid; gap: .5rem; overflow: hidden; transition: opacity .3s ease; }
.guests[hidden] { display: none; }
.guest-list { display: grid; gap: .5rem; }
.guests__foot { display: flex; justify-content: space-between; align-items: center; }
.btn-text {
  padding: .5rem 0;
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .85rem; letter-spacing: .06em;
  color: var(--gold);
}
.guest-count { font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); }
.form .btn--block { margin-top: 1.1rem; }
.form__status { min-height: 1.4em; margin: .3rem 0 0; text-align: center; font-family: var(--sans); font-size: .92rem; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--err); }

.note { padding-top: 0; }

/* ============ ALBÜM ============ */
.album-cta {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}
.album-cta .btn { margin-top: 1.6rem; }

/* ============ FOOTER ============ */
.footer {
  padding: 3.5rem var(--gutter) calc(3rem + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}
.footer .ornament { color: var(--gold-soft); }
.footer__couple { margin: .8rem 0 .3rem; font-size: 2rem; font-weight: 300; }
.footer__couple span { font-family: var(--script); color: var(--gold-soft); }
.footer__line {
  margin: 0;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, .62);
}

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .scroll-cue span { animation: none; }
  .btn, .album-fab { transition: none; }
}
