/* ================================================================
   Düğün davetiyesi · bordo & zeytin yeşili
   ================================================================ */

:root {
  --bg: #4a1222;
  --wine: #6a1729;
  --wine-2: #82243a;
  --olive: #6b773a;
  --olive-d: #4f5a27;
  --cream: #f4ecdd;
  --gold: #d9be88;
  --ink: #3e1d22;
  --ink-soft: #634a48;
  --muted: #8a7a6a;
  --on-dark: #f0e5d2;
  --on-dark-soft: rgba(240, 229, 210, .7);
  --line: rgba(107, 119, 58, .55);

  --script: "Pinyon Script", "Great Vibes", cursive;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .27 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .85 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --env-w: min(84vw, 500px, 62vh);
  --env-h: calc(var(--env-w) * .68);
  --inv-w: min(86vw, 410px, max(260px, calc((100vh - 200px) * .72)));

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --morph: cubic-bezier(.62, 0, .22, 1);
}

@supports (height: 1svh) {
  :root {
    --env-w: min(84vw, 500px, 62svh);
    --inv-w: min(86vw, 410px, max(260px, calc((100svh - 200px) * .72)));
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Bordo keten zemin */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 50% 40%, rgba(132, 34, 56, .55), rgba(132, 34, 56, 0) 70%),
    var(--noise-light),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 50% 45%, #571629, #330a15);
}

html:has(body.is-locked),
body.is-locked { overflow: hidden; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

.amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--olive);
  padding: 0 .14em;
}

/* ---------------- Kâğıt ---------------- */

.paper {
  position: relative;
  isolation: isolate;
  --r: 8px;
  --r-in: 4px;
}

.arch {
  --r: 50% 50% 10px 10px / 24% 24% 10px 10px;
  --r-in: 50% 50% 4px 4px / 23% 23% 4px 4px;
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: drop-shadow(0 2px 2px rgba(25, 5, 10, .35)) drop-shadow(0 18px 28px rgba(25, 5, 10, .42));
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%),
    var(--noise),
    linear-gradient(#f7f0e3, #eee4d1);
}

.paper::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-in);
  outline: 1px solid rgba(107, 119, 58, .28);
  outline-offset: 3px;
  pointer-events: none;
}

/* ---------------- Çiçek buketleri ---------------- */

/* Anchor sits on the corner; the arrangement spills outward from it. */
.floral {
  position: absolute;
  z-index: 3;
  width: var(--fs);
  height: var(--fs);
  margin: calc(var(--fs) * -.5833) 0 0 calc(var(--fs) * -.5833);
  transform-origin: 58.33% 58.33%;
  rotate: var(--rot, 0deg);
  filter: drop-shadow(0 6px 8px rgba(20, 3, 8, .4));
  pointer-events: none;
}

.floral .bouquet { position: absolute; inset: 0; }

/* Photo cut-outs placed by script.js */
.bouquet img {
  position: absolute;
  height: auto;
  translate: -50% -50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------------- Açılış ---------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 36px);
  padding: 24px 16px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.intro__top,
.intro__hint {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: opacity .6s ease, translate .6s ease;
}

.intro__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.intro__title {
  margin: 0;
  font-size: clamp(21px, 5.4vw, 27px);
  font-style: italic;
  color: var(--on-dark);
}

.intro__hint {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.intro__hint span { display: inline-block; animation: blink 2.6s ease-in-out infinite; }

body:not(.is-ready) .intro > * { opacity: 0; }
.is-ready .intro__top  { animation: fade-up 1s .1s var(--ease-out) backwards; }
.is-ready .intro__hint { animation: fade-up 1s .9s var(--ease-out) backwards; }

.is-opening .intro { cursor: default; }

/* Kişiye özel erişim: yükleniyor / kilitli */

.intro__loading {
  position: absolute;
  inset: 50% 0 auto;
  margin: 0;
  text-align: center;
  font-style: italic;
  color: var(--on-dark-soft);
  display: none;
}

.is-checking .intro > .intro__loading { display: block; opacity: 1; animation: blink 2.2s ease-in-out infinite; }

.lock {
  position: relative;
  z-index: 3;
  max-width: 340px;
  text-align: center;
}

.lock[hidden] { display: none; }
.is-denied .intro > .lock { opacity: 1; animation: fade-up 1s var(--ease-out) backwards; }
.is-denied .intro { cursor: default; }
.is-denied .intro__top,
.is-denied .envelope,
.is-denied .intro__hint { display: none; }

.lock__seal {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 4px 5px rgba(20, 3, 8, .45));
}

.lock__title {
  margin: 0 0 10px;
  font-family: var(--script);
  font-size: 44px;
  line-height: 1.15;
  color: var(--gold);
}

.lock__text {
  margin: 0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
  color: var(--on-dark);
}
.is-opening .intro__top,
.is-opening .intro__hint { opacity: 0; translate: 0 -8px; }

/* ---------------- Zarf ---------------- */

.envelope {
  position: relative;
  flex: none;
  width: var(--env-w);
  height: var(--env-h);
  outline: none;
  transition: translate 1.1s cubic-bezier(.45, .05, .2, 1);
}

.is-ready .envelope {
  animation: env-in 1.1s .25s var(--ease-out) backwards, env-float 6s 1.4s ease-in-out infinite;
}

.is-opening .envelope { animation-play-state: running, paused; }

.envelope.flap-open { translate: 0 calc(var(--env-h) * .3); }

.env__doily,
.env__back,
.env__card,
.env__pocket,
.env__flap,
.seal { position: absolute; }

.env__doily,
.env__back,
.env__pocket,
.seal,
.floral--env { transition: translate 1.2s cubic-bezier(.6, 0, .8, .3); }

.env__doily {
  right: -20%;
  top: -7%;
  z-index: 0;
  width: 56%;
  height: auto;
  rotate: -76deg;
  filter: drop-shadow(0 5px 6px rgba(20, 3, 8, .45));
}

.env__back {
  inset: 0;
  z-index: 1;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 3, 6, .3), 0 24px 46px -14px rgba(15, 3, 6, .6);
}

.env__back svg { display: block; width: 100%; height: 100%; }

.env__pocket {
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.env__flap {
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 58.8235%;
  transform-origin: 50% 0;
  transform: perspective(1400px) rotateX(0deg);
  transform-style: preserve-3d;
  transition:
    transform 1s cubic-bezier(.5, .05, .3, 1),
    z-index 0s .5s,
    translate 1.2s cubic-bezier(.6, 0, .8, .3);
}

.flap-open .env__flap {
  z-index: 2;
  transform: perspective(1400px) rotateX(180deg);
}

.flap__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.flap__face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flap__back { transform: rotateX(180deg); }

.floral--env {
  --fs: calc(var(--env-w) * .62);
  --rot: -90deg;
  left: 3%;
  top: 95%;
  z-index: 7;
}

/* Envelope sinking away once the card is out */
.is-leaving .env__doily,
.is-leaving .env__back,
.is-leaving .env__pocket,
.is-leaving .env__flap,
.is-leaving .seal,
.is-leaving .floral--env { translate: 0 115vh; }

/* ---------------- Mühür ---------------- */

.seal {
  left: 50%;
  top: calc(var(--env-h) * .54);
  z-index: 6;
  width: calc(var(--env-w) * .2);
  height: calc(var(--env-w) * .2);
  margin: calc(var(--env-w) * -.1) 0 0 calc(var(--env-w) * -.1);
}

.seal::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 190, 136, .7);
  pointer-events: none;
  animation: ring 2.8s 1.6s ease-out infinite backwards;
}

.is-opening .seal::before { animation: none; opacity: 0; }

.seal__half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(30, 20, 5, .45));
  transition: transform .8s cubic-bezier(.3, .6, .4, 1), opacity .5s .25s ease;
}

.seal__l { clip-path: polygon(-10% -10%, 53% -10%, 47% 20%, 55% 38%, 46% 56%, 54% 74%, 49% 110%, -10% 110%); }
.seal__r { clip-path: polygon(53% -10%, 110% -10%, 110% 110%, 49% 110%, 54% 74%, 46% 56%, 55% 38%, 47% 20%); }

.is-opening .seal__l { transform: translate(-22%, 40%) rotate(-26deg); opacity: 0; }
.is-opening .seal__r { transform: translate(22%, 40%) rotate(24deg); opacity: 0; }

@media (hover: hover) {
  .envelope:hover .seal__half { transform: scale(1.04); }
  .is-opening .envelope:hover .seal__l { transform: translate(-22%, 40%) rotate(-26deg); }
  .is-opening .envelope:hover .seal__r { transform: translate(22%, 40%) rotate(24deg); }
}

.envelope:focus-visible .seal::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- Zarftaki kart ---------------- */

.env__card {
  left: 4%;
  top: 5%;
  z-index: 3;
  width: 92%;
  height: 90%;
  container-type: inline-size;
  transition: transform 1.25s cubic-bezier(.45, .05, .2, 1);
}

.card-out .env__card { transform: translateY(-62%); }

.env__card.is-morphing {
  transition:
    left 1.3s var(--morph),
    top 1.3s var(--morph),
    width 1.3s var(--morph),
    height 1.3s var(--morph);
}

.teaser {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10% 8% 6%;
  text-align: center;
  color: var(--ink);
  transition: opacity .45s ease .7s;
}

.is-morphing .teaser { opacity: 0; }

:where(.teaser) p { margin: 0; }

.teaser__mono {
  font-family: var(--script);
  font-size: 18px; font-size: calc(var(--env-w) * 0.0552);
  line-height: 1;
  color: var(--wine);
}

.teaser__title {
  margin-top: calc(var(--env-w) * 0.0092);
  font-family: var(--script);
  font-size: 40px; font-size: calc(var(--env-w) * 0.1196);
  line-height: 1.05;
  color: var(--wine);
}

.teaser__names {
  margin-top: calc(var(--env-w) * 0.0221);
  font-size: 13px; font-size: calc(var(--env-w) * 0.0386);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.teaser__date {
  margin-top: calc(var(--env-w) * 0.011);
  font-size: 10px; font-size: calc(var(--env-w) * 0.0294);
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--olive);
}

/* ---------------- Açılmış davetiye ---------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 16px 140px;
  overflow: hidden;
}

.invite {
  width: var(--inv-w);
  height: calc(var(--inv-w) / .72);
  aspect-ratio: .72;
  container-type: inline-size;
  color: var(--ink);
  opacity: 0;
}

.invite.is-shown { opacity: 1; }

.invite__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--inv-w) * 0.1) calc(var(--inv-w) * 0.1) 0;
  text-align: center;
}

:where(.invite__content) p,
:where(.invite__content) h1 { margin: 0; }

.crest {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--inv-w) * 0.27);
  aspect-ratio: 1;
  margin: 0 auto;
}

.crest__wreath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.crest__mono {
  position: relative;
  margin-top: calc(var(--inv-w) * -0.01);
  font-family: var(--script);
  font-size: calc(var(--inv-w) * 0.082);
  line-height: 1;
  color: var(--wine);
}

.crest__mono .amp,
.teaser__mono .amp { padding: 0 .06em; font-size: .8em; }

.invite__title {
  margin-top: calc(var(--inv-w) * 0.015);
  font-family: var(--script);
  font-size: calc(var(--inv-w) * 0.17);
  font-weight: 400;
  line-height: .95;
  color: var(--wine);
}

.invite__title .l2 { display: inline-block; padding-left: calc(var(--inv-w) * 0.2); }

.flourish {
  display: block;
  width: calc(var(--inv-w) * 0.4);
  height: auto;
  margin: calc(var(--inv-w) * 0.026) auto 0;
  color: var(--olive);
}

.invite__names {
  margin-top: calc(var(--inv-w) * 0.026);
  font-size: calc(var(--inv-w) * 0.07);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
}

.invite__date {
  margin-top: calc(var(--inv-w) * 0.024);
  font-size: calc(var(--inv-w) * 0.036);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--olive-d);
}

.invite__meta {
  margin-top: calc(var(--inv-w) * 0.012);
  font-size: calc(var(--inv-w) * 0.034);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.invite__place {
  margin-top: calc(var(--inv-w) * 0.016);
  font-size: calc(var(--inv-w) * 0.043);
  font-style: italic;
  color: var(--ink-soft);
}

.invite.is-shown .invite__content > * {
  animation: rise .9s var(--ease-out) backwards;
  animation-delay: calc(.15s + var(--i, 0) * .12s);
}

.floral--tl { --fs: calc(var(--inv-w) * 0.82); left: 7%; top: 22%; }
.floral--br { --fs: calc(var(--inv-w) * 0.82); --rot: 180deg; left: 93%; top: 95%; }

.invite.is-shown .floral { animation: bloom 1.3s var(--ease-out) backwards; }
.invite.is-shown .floral--tl { animation-delay: .25s; }
.invite.is-shown .floral--br { animation-delay: .45s; }

/* Photo bow; its pearl knot sits at 59% / 19% of the image */
.bow {
  position: absolute;
  z-index: 4;
  left: 91%;
  top: 11%;
  width: calc(var(--inv-w) * 0.4);
  height: auto;
  margin: calc(var(--inv-w) * -0.104) 0 0 calc(var(--inv-w) * -0.236);
  transform-origin: 59% 19%;
  rotate: -27deg;
  filter: drop-shadow(0 8px 8px rgba(20, 3, 8, .45));
  pointer-events: none;
}

.invite.is-shown .bow { animation: bow-in 1.1s .7s cubic-bezier(.3, 1.3, .5, 1) backwards; }

/* Kalp madalyonlar */

.lockets {
  position: absolute;
  left: 50%;
  bottom: -8%;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 72%;
  translate: -50% 0;
  filter: drop-shadow(0 7px 10px rgba(20, 3, 8, .4)) drop-shadow(0 1px 1px rgba(20, 3, 8, .3));
}

.locket {
  display: block;
  width: 50%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 8%;
  transform: rotate(var(--rot));
}

.locket--l { --rot: -9deg; --d: .6s; }
.locket--r { --rot: 8deg; --d: .78s; margin-left: -3%; }

.bw .locket__img { filter: url(#bw); }

.lockets__hinge {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 3.4%;
  height: 16%;
  translate: -50% 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #a98b52, #fff5da 45%, #b8995f);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.invite.is-shown .locket { animation: locket-drop 1.4s cubic-bezier(.3, .7, .3, 1) backwards var(--d); }
.invite.is-shown .lockets__hinge { animation: fade 1s .95s ease backwards; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  translate: -50% 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--on-dark-soft);
  opacity: 0;
  transition: opacity .9s ease;
}

.is-revealed .scroll-cue { opacity: 1; transition-delay: 1.8s; }
.scroll-cue svg { animation: nudge 2.2s ease-in-out infinite; }

/* ---------------- Bölümler ---------------- */

.section {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 16px;
  text-align: center;
}

.sprig {
  position: relative;
  width: 250px;
  aspect-ratio: 240 / 110;
  margin: 0 auto 4px;
  filter: drop-shadow(0 6px 8px rgba(20, 3, 8, .45));
}

.script-title {
  margin: 0 0 14px;
  font-family: var(--script);
  font-size: clamp(42px, 11vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gold);
}

.script-title .amp { font-size: .8em; color: inherit; }

.lead {
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(20px, 5vw, 23px);
  font-style: italic;
  line-height: 1.6;
  color: var(--on-dark);
}

.label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
}

.families {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.family p { margin: 0; font-size: 21px; }

.families__amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}

@media (max-width: 520px) {
  .families { grid-template-columns: 1fr; gap: 6px; }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 460px;
  margin: 18px auto 0;
}

.cd {
  padding: 16px 4px 12px;
  border-radius: 6px;
  background: var(--noise), linear-gradient(#f6eee0, #ece1cd);
  box-shadow: inset 0 0 0 1px rgba(107, 119, 58, .3), inset 0 0 0 4px #f3eadb, inset 0 0 0 5px rgba(107, 119, 58, .25), 0 12px 22px -12px rgba(15, 3, 6, .7);
}

.cd b {
  display: block;
  font-size: clamp(30px, 8.4vw, 42px);
  font-weight: 500;
  line-height: 1;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}

.cd span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}

.countdown__done {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 24px;
  font-style: italic;
}

/* Krem kâğıt paneller */

.panel { margin-top: 40px; color: var(--ink); }
.panel .script-title { color: var(--wine); }

.panel__sprig {
  position: absolute;
  left: 50%;
  top: -54px;
  z-index: 3;
  width: 250px;
  aspect-ratio: 240 / 110;
  translate: -50% 0;
  filter: drop-shadow(0 6px 8px rgba(20, 3, 8, .4));
}

.panel__body {
  position: relative;
  z-index: 2;
  padding: 70px 34px 48px;
}

@media (max-width: 400px) {
  .panel__body { padding: 66px 28px 44px; }
}

.big-date { margin: 0; font-size: clamp(26px, 7vw, 32px); font-weight: 500; }

.weekday {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
}

.timeline {
  max-width: 320px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 19px;
}

.timeline li::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 1px dotted rgba(107, 119, 58, .5);
  translate: 0 -5px;
}

.timeline time { order: 2; font-weight: 600; color: var(--wine); font-variant-numeric: tabular-nums; }
.timeline span { order: 0; text-align: left; }

.venue { margin-top: 28px; }

.venue h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--wine);
}

.venue p { margin: 6px 0 0; font-style: italic; color: var(--ink-soft); }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: #fbf4ea;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, translate .25s;
}

.btn:hover { background: var(--wine-2); }
.btn:active { translate: 0 1px; }
.btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.btn--ghost { background: transparent; color: var(--olive-d); border-color: var(--olive); }
.btn--ghost:hover { background: rgba(107, 119, 58, .1); }

.btn--wide { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .65; cursor: default; }

.rsvp__status {
  margin: 14px 0 0;
  font-size: 17px;
  font-style: italic;
  text-align: center;
  color: #9b2c2c;
}

.note { margin: 0 auto 26px; max-width: 30ch; font-style: italic; color: var(--ink-soft); }

/* Hediye */

.gift__text { max-width: 34ch; }

.gift__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
}

.gift__list {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.gift__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(107, 119, 58, .4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  font-size: 19px;
  color: var(--wine);
  overflow-wrap: anywhere;
}

.gift__list svg { flex: none; color: var(--olive); }

/* Katılım formu */

.rsvp { max-width: 380px; margin: 0 auto; text-align: left; }

.field { display: block; margin-bottom: 20px; }

.field > span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(107, 119, 58, .45);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  outline: none;
  transition: border-color .2s;
}

.field textarea { resize: vertical; min-height: 76px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--wine); }

.field.is-invalid input { border-bottom-color: #b3261e; }

.field select {
  -webkit-appearance: none;
          appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236a1729' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center / 18px no-repeat;
}

.field.is-disabled { opacity: .4; }

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: block;
  padding: 12px 6px;
  border: 1px solid rgba(106, 23, 41, .35);
  border-radius: 999px;
  font-size: 17px;
  text-align: center;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

.choice input:checked + span { background: var(--wine); border-color: var(--wine); color: #fbf4ea; }
.choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }

.thanks { animation: rise .8s var(--ease-out) backwards; }
.thanks__title { margin: 0; font-family: var(--script); font-size: 40px; color: var(--wine); }
.thanks { text-align: center; }
.thanks__text { margin: 6px auto 0; max-width: 28ch; font-style: italic; color: var(--ink-soft); }
.thanks__summary {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}
.thanks .btn { margin-top: 18px; }

/* Alt bilgi */

.footer {
  padding: 40px 16px 80px;
  text-align: center;
}

.footer__seal {
  display: block;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 3px 4px rgba(20, 3, 8, .45));
}

.footer__text { margin: 0; font-style: italic; color: var(--on-dark-soft); }
.footer__names { margin: 6px 0 0; font-family: var(--script); font-size: 38px; line-height: 1.3; color: var(--gold); }
.footer__names .amp { color: inherit; font-size: .8em; }
.footer__date { margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .32em; color: var(--on-dark-soft); }

/* Kaydırınca beliren bölümler */

.reveal { opacity: 0; translate: 0 26px; transition: opacity 1s ease, translate 1s var(--ease-out); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------------- Yapraklar ---------------- */

.petals {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -6vh;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  animation: fall var(--t) linear var(--d) both;
}

.petal i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 80% 0 80%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .4), transparent 62%), var(--c);
  opacity: .92;
  animation: sway calc(var(--t) / 3) ease-in-out var(--d) infinite alternate;
}

/* ---------------- Müzik ---------------- */

.music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(217, 190, 136, .5);
  border-radius: 50%;
  background: rgba(244, 236, 221, .94);
  color: var(--wine);
  box-shadow: 0 6px 16px -6px rgba(15, 3, 6, .6);
  cursor: pointer;
  animation: fade .8s ease backwards;
}

.music[hidden] { display: none; }
.music .music__off { opacity: 0; transition: opacity .2s; }
.music.is-muted .music__off { opacity: 1; }

/* ---------------- Animasyonlar ---------------- */

@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 50% { opacity: .45; } }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes bloom { from { opacity: 0; transform: scale(.78); } }

@keyframes bow-in {
  from { opacity: 0; transform: translateY(-24px) scale(.7) rotate(-14deg); }
}

@keyframes env-in {
  from { opacity: 0; transform: translateY(34px) scale(.96); }
}

@keyframes env-float {
  50% { transform: translateY(-6px); }
}

@keyframes ring {
  0% { transform: scale(.92); opacity: .8; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes locket-drop {
  0%   { opacity: 0; transform: translateY(-40px) rotate(calc(var(--rot) - 16deg)); }
  40%  { opacity: 1; }
  58%  { transform: translateY(4px) rotate(calc(var(--rot) + 6deg)); }
  78%  { transform: translateY(0) rotate(calc(var(--rot) - 2.5deg)); }
  100% { transform: rotate(var(--rot)); }
}

@keyframes fall {
  to { transform: translate3d(var(--dx), 115vh, 0); }
}

@keyframes sway {
  from { transform: rotate(-25deg) rotateX(0deg) translateX(-14px); }
  to   { transform: rotate(50deg) rotateX(60deg) translateX(14px); }
}

/* The tap-triggered opening still plays; only ambient motion is turned off. */
@media (prefers-reduced-motion: reduce) {
  .is-ready .envelope { animation: env-in 1.1s .25s var(--ease-out) backwards; }
  .seal::before,
  .intro__hint span,
  .scroll-cue svg { animation: none; }
  .reveal { translate: none; }
  html { scroll-behavior: auto; }
}
