/* =====================================================
   KÜBRA & BERKAY — DÜĞÜN DAVETİYESİ
   Editorial Masthead · tasarım sistemi
   ===================================================== */

/* ---------- Token'lar ---------- */
:root {
  --paper:  #EFE9DE;   /* sıcak fildişi zemin */
  --ink:    #241C17;   /* espresso siyahı */
  --brass:  #B89457;   /* pirinç vurgu — SADECE &, hairline, mikro-etiket */
  --stone:  #8A7E70;   /* ikincil metin */
  --deep:   #3B2A20;   /* koyu espresso (perde) */

  --section: clamp(2.75rem, 7vh, 5.5rem);
  --gutter: 8vw;

  --font-masthead: "Libre Baskerville", "Bodoni Moda", Georgia, serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
}

/* ---------- Reset & taban ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--brass); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Tipografi utility ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(4rem, 18vw, 20rem);
  line-height: .85;
  letter-spacing: -.02em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--brass);
}
.mono {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mono-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
}

.hairline {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.hairline--draw { transform-origin: left center; }

.small-note {
  font-size: .8rem;
  color: var(--stone);
  margin-top: 1.25rem;
}

/* ---------- Bölüm iskeleti ---------- */
.section { padding: var(--section) var(--gutter); position: relative; }
.section__inner { width: 100%; }
.section__inner > .eyebrow { margin: .9rem 0 1.4rem; }

@media (max-width: 768px) {
  :root { --gutter: 6vw; }
}

/* =====================================================
   GİRİŞ EKRANI — mühür + ikiye ayrılan perde
   ===================================================== */
body.locked { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.intro__half {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;               /* yarıklar arasında çizgi kalmasın */
  background:
    radial-gradient(120vw 80vh at 50% 100%, color-mix(in srgb, var(--brass) 10%, transparent), transparent 60%),
    var(--deep);
  will-change: transform;
}
.intro__half--top { top: 0; }
.intro__half--bottom {
  bottom: 0;
  background:
    radial-gradient(120vw 80vh at 50% 0%, color-mix(in srgb, var(--brass) 10%, transparent), transparent 60%),
    var(--deep);
}

.intro__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--paper);
  text-align: center;
  padding: 1.5rem;
}
.intro__eyebrow { color: var(--brass); letter-spacing: .3em; }
.intro__hint {
  font-size: .8rem;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* Mühür butonu */
.intro__seal {
  position: relative;
  width: clamp(140px, 24vw, 190px);
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    color-mix(in srgb, var(--brass) 28%, var(--deep)),
    var(--deep) 70%);
  color: var(--brass);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22,.9,.22,1);
  box-shadow:
    0 0 60px color-mix(in srgb, var(--brass) 25%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--brass) 12%, transparent);
}
.intro__seal:hover { transform: scale(1.05); }
.intro__seal:active { transform: scale(.97); }

.intro__ring {
  position: absolute;
  inset: 0;
  animation: ringSpin 24s linear infinite;
}
.intro__ring--inner { animation-direction: reverse; animation-duration: 36s; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.intro__amp-svg {
  width: 52%;
  height: auto;
  color: var(--brass);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brass) 35%, transparent));
}
.intro__amp-svg--infinity { width: 58%; }

/* Süzülen pirinç tozu */
.dust {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.dust.visible { opacity: 1; }

/* =====================================================
   PARALLAX ARKA PLAN
   ===================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-mark {
  position: absolute;
  top: 8%;
  left: -20%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30rem, 60vw, 80rem);
  line-height: 1;
  color: color-mix(in srgb, var(--ink) 6%, transparent);
  user-select: none;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.bg-lines {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.bg-lines i {
  position: absolute;
  top: -20vh;
  bottom: -20vh;
  width: 1px;
  background: color-mix(in srgb, var(--brass) 15%, transparent);
}
.bg-lines i:nth-child(1) { right: 14vw; }
.bg-lines i:nth-child(2) { right: 30vw; top: 10vh; opacity: .6; }
.bg-grain {
  position: absolute;
  inset: -50%;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================
   KAPAK / MASTHEAD
   ===================================================== */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(4rem, 10vh, 8rem);
}
.cover__eyebrow { margin-bottom: clamp(1.5rem, 4vh, 3rem); }

.masthead {
  font-family: var(--font-masthead);
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 18rem);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  width: fit-content;   /* kutu en geniş isme sığsın ki & tam ortaya otursun */
  will-change: transform;
}
.masthead__line {
  display: block;
  overflow: hidden;               /* satır mask'i */
  padding-top: .22em;             /* Ü/İ noktalarının maske üstünde kesilmemesi için */
  padding-bottom: .04em;          /* alt taşan harf kuyrukları için */
  margin-top: -.18em;             /* eklenen üst payı görsel olarak toparla */
}
.masthead__line:first-child { margin-top: 0; }
.masthead__word,
.masthead__amp { display: inline-block; will-change: transform; }
.masthead__line--amp { line-height: .7; text-align: center; }
.masthead__amp {
  font-family: var(--font-body);      /* net, okunaklı ampersand */
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
  font-size: .5em;
  position: relative;
  top: -.35em;      /* iki isim arası boşlukta yukarı çek */
  left: -.12em;     /* hafif sola */
}

.cover__meta {
  margin-top: clamp(2rem, 6vh, 4rem);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cover__date { font-size: .9rem; letter-spacing: .2em; }

.cover__hint {
  position: absolute;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--stone);
  text-decoration: none;
}
.cover__hint svg { animation: hintFloat 1.8s ease-in-out infinite; }
@keyframes hintFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* =====================================================
   KOYU ARA BÖLÜM
   ===================================================== */
.section--dark {
  background: var(--deep);
  color: var(--paper);
}
.section--dark .hairline {
  border-top-color: color-mix(in srgb, var(--paper) 18%, transparent);
}

/* =====================================================
   DAVETLİSİNİZ
   ===================================================== */
.invite__text {
  max-width: 18ch;
  line-height: 1.24;   /* g/y/p descender'ları satır-maskesinde kesilmesin */
}
.invite__note {
  margin-top: 2rem;
  color: var(--stone);
}
.section--dark .invite__note {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* =====================================================
   MARQUEE ŞERİDİ
   ===================================================== */
.marquee {
  overflow: hidden;
  padding: clamp(1.25rem, 3vh, 2.25rem) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  user-select: none;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  width: max-content;
}
.marquee__inner {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 55%, transparent);
  paint-order: stroke;
}

/* =====================================================
   GALERİ
   ===================================================== */
.gallery__item {
  perspective: 800px;
}
/* Tek fotoğraf — ortalanmış, tam nefes alan portre */
.gallery__item--single {
  margin: clamp(1.5rem, 4vh, 3rem) auto 0;
  max-width: 560px;
}
.gallery__imgwrap {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  will-change: transform;
}
.gallery__imgwrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(.45) sepia(.06);
  transform: scale(1.02);
  transition: filter .6s ease, transform .8s cubic-bezier(.22,.9,.22,1);
  will-change: transform;
}
.gallery__item:hover .gallery__imgwrap img {
  filter: grayscale(0) sepia(0);
  transform: scale(1.06);
}

/* =====================================================
   CUSTOM CURSOR (JS ekler; sadece masaüstü + motion)
   ===================================================== */
html.has-cursor,
html.has-cursor a,
html.has-cursor button { cursor: none; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--brass);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid color-mix(in srgb, var(--brass) 70%, transparent);
}

/* =====================================================
   MÜHÜR PATLAMASI PARTİKÜLLERİ
   ===================================================== */
.burst {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  pointer-events: none;
  z-index: 5;
}

/* =====================================================
   DETAYLAR (index spread)
   ===================================================== */
.details__list { margin-top: .5rem; }

/* İki etkinlik: Düğün + Kına — index içinde ayrı, belirgin başlıklı gruplar */
.details__event + .details__event { margin-top: clamp(2rem, 5vh, 3.25rem); }
.details__event-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-bottom: 1rem;
}
.details__event-title::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background: var(--brass);
  margin-bottom: .75rem;
}
.details__event-note {
  margin-top: 1rem;
  color: var(--stone);
}
.details__nikah {
  margin-top: .9rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--stone);
  letter-spacing: 0;
}
.details__row {
  display: grid;
  grid-template-columns: minmax(7rem, 18%) 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(.4rem, 1vh, .7rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.details__row:first-child {
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.details__label { color: var(--brass); }
.details__value {
  overflow: hidden;
  font-family: "Libre Baskerville", var(--font-display);   /* Ayrıntılar gövde yazısı */
  font-size: clamp(1.5rem, 4vw, 3rem);   /* tarih/saat/mekan değerleri biraz küçültüldü */
}
.details__mask { display: inline-block; }

@media (max-width: 600px) {
  .details__row { grid-template-columns: 1fr; gap: .1rem; }
}

.details__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

/* Altı çizgili editorial buton */
.link-btn {
  position: relative;
  display: inline-block;
  padding: .35rem 0;
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.link-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(.25);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22,.9,.22,1);
}
.link-btn:hover::after { transform: scaleX(1); }

/* =====================================================
   GERİ SAYIM
   ===================================================== */
.countdown__title {
  max-width: 22ch;
  font-family: "Libre Baskerville", var(--font-display);
}

.countdown__grid {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 600px) {
  .countdown__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}
.countdown__num {
  overflow: hidden;
  height: 1.05em;             /* flip mask'i */
}
.countdown__num span { display: inline-block; will-change: transform; }
.countdown__label {
  margin-top: .6rem;
  font-size: .78rem;
  color: var(--stone);
}
.countdown__done { margin-top: 2.5rem; }

/* =====================================================
   KONUM
   ===================================================== */
.location__lead { color: var(--stone); max-width: 44ch; }

.location__grid {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .location__grid { grid-template-columns: 1fr; }
}

.location__map {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.location__map iframe {
  width: 100%;
  height: clamp(320px, 55vh, 480px);
  border: 0;
  filter: grayscale(.35) sepia(.08);
}

.location__venue { margin: .5rem 0 .75rem; }
.location__addr { color: var(--stone); font-size: .9rem; }

.location__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.location__qr { margin-top: 2.25rem; }
.location__qr #qrBox {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.location__qr #qrBox img,
.location__qr #qrBox canvas { width: 148px; height: 148px; }

/* =====================================================
   KOLOFON
   ===================================================== */
.colophon {
  text-align: center;
  padding-top: calc(var(--section) * .8);
  padding-bottom: calc(var(--section) * .6);
}
.colophon__amp {
  width: clamp(9rem, 26vw, 18rem);
  height: auto;
  margin: 0 auto;
  color: var(--brass);
}
.colophon__amp--infinity { width: clamp(7rem, 20vw, 12rem); }
.colophon__heart {
  display: inline-block;
  vertical-align: -.15em;
  margin: 0 .5em;
  color: var(--brass);
}
.colophon__names {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 1rem;
}
.colophon__date {
  margin-top: .75rem;
  color: var(--stone);
}

/* =====================================================
   REDUCED MOTION — her şey anında görünür & sabit
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
  /* intro'yu JS kaldırır (main.js REDUCED yolu); dust hiç başlatılmaz */
  .bg-mark, .bg-lines { transform: none !important; }
}
