/* ─────────────────────────────────────────────
   zeynepfatih.com
   "Yağmurda hâlâ sen yağıyorsun."
   ───────────────────────────────────────────── */

:root {
  --bg-0: #070708;
  --bg-1: #0e0e10;
  --bg-2: #14141a;
  --ink:  #ece8e2;          /* aged-paper warm white */
  --ink-soft: #b6afa6;
  --ink-mute: #6b6661;
  --rule: rgba(236, 232, 226, 0.18);
  --accent: #8aa0b2;        /* soft rain-blue */

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, #16161c 0%, #0a0a0c 45%, #060608 100%);
  overflow-y: auto;
}

/* ───── Yağmur canvas ───── */
#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Vinyet — okumayı kolaylaştırır, derinlik verir */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.35) 55%,
      rgba(0,0,0,0.75) 100%);
}

/* Hafif grain dokusu */
.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}

/* ───── Üst Bar ───── */
.topbar {
  position: relative;
  z-index: 3;
  padding: 28px 28px 0;
  display: flex;
  justify-content: center;
}

.topbar__mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.6s ease 0.2s forwards;
}

/* ───── Ana Sahne ───── */
.stage {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 6vw, 64px);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px) clamp(80px, 8vw, 96px);
  max-width: 980px;
  margin: 0 auto;
}

/* ───── Mektup ───── */
.letter {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}

.letter__opening {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 2.2vw, 18px);
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: lowercase;
  opacity: 0;
  animation: fadeUp 1.4s ease 0.6s forwards;
}

.letter__poem {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 5.2vw, 48px);
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--ink);
  max-width: 22ch;
}

.letter__poem .line {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 1.6s ease forwards;
}
.letter__poem .line:nth-child(1) { animation-delay: 1.0s; }
.letter__poem .line:nth-child(2) { animation-delay: 1.6s; }
.letter__poem .line:nth-child(3) { animation-delay: 2.4s; }
.letter__poem .line:nth-child(4) { animation-delay: 3.0s; }

.letter__poem .line--soft {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
}

/* İmza */
.letter__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(8px, 1.5vw, 14px);
  opacity: 0;
  animation: fadeIn 1.6s ease 3.8s forwards;
}

.rule {
  width: 44px;
  height: 1px;
  background: var(--rule);
}

.sign__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ───── Video ───── */
.video {
  width: 100%;
  max-width: 720px;
  opacity: 0;
  animation: fadeUp 1.8s ease 4.2s forwards;
}

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(236, 232, 226, 0.08);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ───── Alt bilgi ───── */
.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.4s ease 5.4s forwards;
}

.bottom__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(138, 160, 178, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

.bottom__text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ───── Animasyonlar ───── */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ───── Responsive ───── */
@media (max-width: 640px) {
  .topbar { padding: 22px 22px 0; }
  .topbar__mark { font-size: 12px; letter-spacing: 0.35em; }

  .letter__poem { max-width: 18ch; }
  .stage { gap: 30px; }
  .bottom__text { font-size: 10px; }
}

@media (max-width: 380px) {
  .letter__poem { font-size: 24px; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .letter__poem .line { opacity: 1; transform: none; }
  .letter__opening, .letter__sign, .video, .topbar__mark, .bottom { opacity: 1; }
}
