/* ========================================
   Şuheda - Modern minimal
   ======================================== */

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

:root {
  --bg-0: #0E0A10;
  --bg-1: #16101A;
  --bg-2: #1F1520;
  --ink: #F2EAE4;
  --ink-soft: rgba(242, 234, 228, 0.62);
  --ink-mute: rgba(242, 234, 228, 0.35);
  --accent: #F4C2C2;
  --accent-2: #E8B4B8;
  --paper: #FAF6ED;
  --paper-shade: #EDE4D1;
  --tape: rgba(255, 236, 179, 0.55);

  --radius: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  position: relative;
}

/* Soft radial vignette that fades to dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(244, 194, 194, 0.14), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(186, 104, 200, 0.10), transparent 70%),
    radial-gradient(60% 50% at 100% 80%, rgba(236, 72, 153, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 70%);
}

/* Grain overlay (SVG data URI, very subtle) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

main {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

.hero__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 12ch;
  text-wrap: balance;
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 1s var(--ease) forwards;
}

.hero__title-line:nth-child(1) { animation-delay: 0.35s; }
.hero__title-line:nth-child(2) { animation-delay: 0.5s;  }
.hero__title-line:nth-child(3) { animation-delay: 0.65s; }

.hero__title-line--italic {
  font-style: italic;
  color: var(--accent);
  padding-right: 0.05em;
}

.hero__sub {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.85s forwards;
}

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

/* ========================================
   WALL - polaroid dağınık duvar
   ======================================== */
.wall {
  padding: 40px 24px 120px;
  position: relative;
}

.wall__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  padding: 40px 20px;
}

.wall__hint {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 32px;
}

.polaroid {
  position: relative;
  background: var(--paper);
  padding: 14px 14px 44px;
  border-radius: 3px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.25),
    0 14px 28px rgba(0, 0, 0, 0.45),
    0 22px 50px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg));
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.3s var(--ease);
  will-change: transform;
  opacity: 0;
  animation: polaroidIn 0.8s var(--ease) forwards;
}

.polaroid--1 { animation-delay: 0.8s; }
.polaroid--2 { animation-delay: 0.95s; }
.polaroid--3 { animation-delay: 1.1s; }
.polaroid--4 { animation-delay: 1.25s; }
.polaroid--5 { animation-delay: 1.4s; }
.polaroid--6 { animation-delay: 1.55s; }

@keyframes polaroidIn {
  from {
    opacity: 0;
    transform: translate(var(--tx, 0), calc(var(--ty, 0) + 18px)) rotate(var(--r, 0deg)) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg));
  }
}

.polaroid:hover,
.polaroid:focus-visible {
  transform: translate(var(--tx, 0), calc(var(--ty, 0) - 10px)) rotate(0deg) scale(1.04);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.25),
    0 22px 44px rgba(0, 0, 0, 0.55),
    0 32px 70px rgba(0, 0, 0, 0.4);
  z-index: 5;
  outline: none;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #1a1418;
  filter: saturate(0.96) contrast(1.02);
  pointer-events: none;
}

/* Veil - beyaz kapak */
.polaroid__veil {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(145deg, #FAF6ED 0%, #EDE1CC 100%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(120, 80, 80, 0.08);
}

.polaroid__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.polaroid__veil-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 2.4rem;
  color: rgba(60, 40, 45, 0.38);
  letter-spacing: 0.04em;
  user-select: none;
}

.polaroid.revealed .polaroid__veil {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(4px);
  pointer-events: none;
}

.polaroid.revealed {
  cursor: default;
}

.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: #3A2A2E;
  letter-spacing: 0.02em;
  padding: 0 10px;
}

.caption-heart {
  color: #D64157;
  display: inline-block;
  margin-left: 2px;
}

.polaroid__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 80px;
  height: 20px;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--tape);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 1px;
  pointer-events: none;
  z-index: 2;
}

.polaroid__tape::before,
.polaroid__tape::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 100%;
  background: inherit;
}
.polaroid__tape::before { left: -4px;  transform: skewY(-20deg); }
.polaroid__tape::after  { right: -4px; transform: skewY(20deg); }

.polaroid__tape--alt {
  width: 64px;
  height: 16px;
  transform: translateX(-50%) rotate(6deg);
  top: -8px;
  left: 35%;
  background: rgba(210, 230, 255, 0.35);
}

/* ========================================
   GARDEN (bouquet)
   ======================================== */
.garden {
  position: relative;
  padding: 60px 24px 40px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.garden__caption {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

#bouquet-container {
  width: 100%;
  max-width: 640px;
  height: 58vh;
  position: relative;
  overflow: visible;
  pointer-events: none;
}

.foot {
  text-align: center;
  padding: 20px 0 60px;
  color: var(--ink-mute);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 860px) {
  .wall__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 560px) {
  .hero { padding: 60px 20px 32px; min-height: 70vh; }
  .hero__eyebrow { font-size: 0.7rem; margin-bottom: 22px; }
  .hero__sub { margin-top: 22px; font-size: 0.82rem; }

  .wall { padding: 32px 16px 80px; }
  .wall__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 24px 10px;
    max-width: 320px;
  }

  .polaroid { padding: 12px 12px 40px; }
  .polaroid figcaption { font-size: 1rem; bottom: 10px; }

  .garden { padding: 40px 16px 24px; min-height: 60vh; }
  #bouquet-container { max-width: 420px; height: 48vh; }

}

@media (max-width: 380px) {
  #bouquet-container { max-width: 340px; height: 42vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .polaroid { opacity: 1; }
}
