:root {
  --ink: #2e3d45;
  --muted: #6f7e84;
  --blue: #47789a;
  --blue-dark: #365f78;
  --gold: #b69861;
  --paper: #fdfcf9;
  --line: rgba(71, 120, 154, 0.24);
  --glass: rgba(253, 252, 249, 0.82);
  --shadow: 0 14px 36px rgba(37, 60, 72, 0.08);
}

/* -------------------- GENEL -------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e9ecec;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* -------------------- DAVETİYE -------------------- */

.invitation {
  position: relative;

  /* Maksimum 540px, küçük telefonlarda ekran kadar */
  width: min(100%, 540px);

  /*
    SVG oranı:
    1080 x 7000
    540px genişlikte = 3500px yükseklik

    Küçük telefonlarda yükseklik de aynı oranda küçülür.
  */
 

  margin: 0 auto;
  overflow: hidden;

  background: var(--paper);

  box-shadow:
    0 0 42px rgba(28, 43, 49, 0.14);

  isolation: isolate;
}

/*
  TEK PARÇA SVG

  Burada 100% 100% KULLANMIYORUZ.
  Böylece çiçekler ezilip uzamıyor.
*/
.invitation::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("davetiye.svg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;

  pointer-events: none;
  z-index: 0;
}

.soft-overlay {
  position: absolute;
  inset: 0;

  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.02),
      rgba(255,255,255,.10)
    );
}

.invitation > section,
.invitation > footer {
  position: relative;
  z-index: 2;
}


/* -------------------- ORTA İÇERİK -------------------- */

.section {
  width: min(76%, 390px);
  margin-inline: auto;
  text-align: center;
}


/* -------------------- AÇILIŞ -------------------- */

.hero {
  min-height: min(590px, 109.26vw);
  padding-top: min(135px, 25vw);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;

  color: var(--gold);

  font-size: clamp(9px, 2.04vw, 11px);
  font-weight: 650;

  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2,
.footer-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--blue-dark);
}

h1 {
  margin: 0;

  font-size: clamp(43px, 12.6vw, 68px);

  line-height: .95;
  letter-spacing: -.04em;
}

h1 span,
.footer-name span {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.invitation-quote {
  max-width: 330px;

  margin:
    min(34px, 6.3vw)
    auto
    0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(15px, 3.15vw, 17px);

  line-height: 1.7;
  color: #4c5c63;
}

.families {
  margin-top: min(36px, 6.67vw);

  color: var(--muted);

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(11px, 2.4vw, 13px);

  line-height: 1.4;
}

.families p {
  margin: 6px 0;
}

.family-dot {
  color: var(--gold);
}


/* -------------------- SCROLL İŞARETİ -------------------- */

.scroll-hint {
  width: 22px;
  height: 35px;

  margin-top: min(34px, 6.3vw);

  border:
    1px solid
    rgba(71,120,154,.38);

  border-radius: 20px;

  position: relative;
}

.scroll-hint span {
  position: absolute;

  top: 7px;
  left: 50%;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: var(--blue);

  transform: translateX(-50%);

  animation:
    scrollDot
    1.7s
    ease-in-out
    infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: .3;
  }

  50% {
    transform: translate(-50%, 12px);
    opacity: 1;
  }

}


/* -------------------- ETKİNLİKLER -------------------- */

.event {
  min-height: min(580px, 107.41vw);

  padding-top: min(78px, 14.45vw);
}

#dugun {
  min-height: min(675px, 125vw);

  padding-top: min(74px, 13.7vw);
}

h2 {
  margin: 0;

  font-size: clamp(29px, 6.3vw, 34px);

  letter-spacing: -.02em;
}

.special-note {
  width: fit-content;

  margin:
    min(12px, 2.22vw)
    auto
    min(22px, 4.07vw);

  padding: 7px 12px;

  border:
    1px solid
    rgba(182,152,97,.35);

  border-radius: 999px;

  color: #8a7248;

  background:
    rgba(255,255,255,.52);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(10px, 2.22vw, 12px);

  font-style: italic;
}

.event-meta {
  margin-top: min(22px, 4.07vw);
}

.time {
  margin:
    0
    0
    min(14px, 2.59vw);

  color: var(--blue);

  font-size: clamp(14px, 2.96vw, 16px);

  font-weight: 700;

  letter-spacing: .12em;
}

.venue {
  margin:
    0
    0
    min(9px, 1.67vw);

  color: var(--ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(16px, 3.33vw, 18px);

  font-weight: 600;
}

address {
  margin: 0;

  color: var(--muted);

  font-style: normal;

  font-size: clamp(11px, 2.4vw, 13px);

  line-height: 1.65;
}


/* -------------------- BUTON -------------------- */

.button {
  display: inline-flex;

  min-height: 44px;

  margin-top: min(22px, 4.07vw);

  padding: 0 23px;

  align-items: center;
  justify-content: center;

  border-radius: 999px;

  text-decoration: none;

  border: 0;

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;

  font-size: clamp(12px, 2.4vw, 13px);

  font-weight: 700;

  letter-spacing: .02em;
}

.button:active {
  transform: scale(.98);
}

.button-outline {
  color: var(--blue-dark);

  border:
    1px solid
    rgba(71,120,154,.45);

  background:
    rgba(255,255,255,.66);
}

.button-primary {
  color: white;

  background:
    linear-gradient(
      135deg,
      #47789a,
      #365f78
    );

  box-shadow:
    0 10px 24px
    rgba(54,95,120,.20);
}

.button-primary:disabled {
  opacity: .55;
  cursor: wait;
}


/* -------------------- GERİ SAYIM -------------------- */

.countdown {
  min-height: 18px;

  margin:
    min(17px, 3.15vw)
    0
    0;

  color: var(--muted);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(10px, 2.22vw, 12px);

  font-style: italic;
}


/* -------------------- KONVOY -------------------- */

.convoy-note {
  margin:
    min(24px, 4.44vw)
    auto
    0;

  padding:
    min(15px, 2.78vw)
    min(18px, 3.33vw);

  border:
    1px solid
    rgba(71,120,154,.18);

  border-radius: 18px;

  background: var(--glass);

  box-shadow: var(--shadow);
}

.convoy-note p {
  margin: 0;
}

.convoy-title {
  margin-bottom: 7px !important;

  color: var(--blue-dark);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 700;

  font-size: clamp(12px, 2.59vw, 14px);
}

.convoy-note p:last-child {
  color: var(--muted);

  font-size: clamp(10px, 2.22vw, 12px);

  line-height: 1.55;
}


/* -------------------- RSVP -------------------- */

.rsvp {
  min-height: min(930px, 172.22vw);

  padding-top: min(52px, 9.63vw);
}

.section-copy {
  max-width: 335px;

  margin:
    min(15px, 2.78vw)
    auto
    min(26px, 4.81vw);

  color: var(--muted);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(11px, 2.4vw, 13px);

  line-height: 1.6;
}

form {
  width: 100%;

  margin-top: min(22px, 4.07vw);

  padding:
    min(22px, 4.07vw)
    min(18px, 3.33vw)
    min(20px, 3.7vw);

  border:
    1px solid
    rgba(71,120,154,.16);

  border-radius: 24px;

  background:
    rgba(255,255,255,.84);

  box-shadow: var(--shadow);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  text-align: left;
}

.field {
  display: block;

  margin-bottom: min(18px, 3.33vw);
}

.field > span,
.choice-group legend {
  display: block;

  margin-bottom: 8px;

  color: var(--ink);

  font-size: clamp(11px, 2.22vw, 12px);

  font-weight: 700;
}

.field small,
.choice-group small {
  color: var(--muted);

  font-weight: 500;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;

  border:
    1px solid
    var(--line);

  border-radius: 14px;

  outline: none;

  background:
    rgba(255,255,255,.78);

  color: var(--ink);

  padding: 12px 13px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

textarea {
  resize: vertical;

  min-height: 76px;
}

input:focus,
textarea:focus {
  border-color:
    rgba(71,120,154,.62);

  box-shadow:
    0 0 0 3px
    rgba(71,120,154,.08);
}


/* -------------------- SEÇENEKLER -------------------- */

.choice-group {
  margin:
    0
    0
    min(18px, 3.33vw);

  padding: 0;

  border: 0;
}

.choice-grid {
  display: grid;

  gap: 7px;
}

/*
  TELEFON DEĞİŞSE BİLE 3'LÜ YAPI BOZULMAYACAK.
*/
.choice-grid.three {
  grid-template-columns:
    repeat(3, 1fr);
}

.choice-grid.two {
  grid-template-columns:
    repeat(2, 1fr);
}

.choice-grid label {
  position: relative;
}

.choice-grid input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.choice-grid span {
  min-height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 7px 5px;

  border:
    1px solid
    var(--line);

  border-radius: 12px;

  background:
    rgba(255,255,255,.74);

  color: var(--muted);

  text-align: center;

  font-size: clamp(9px, 2.04vw, 11px);

  line-height: 1.15;

  cursor: pointer;

  transition: .2s ease;
}

.choice-grid input:checked + span {
  border-color:
    rgba(71,120,154,.68);

  color: var(--blue-dark);

  background:
    rgba(71,120,154,.09);

  box-shadow:
    inset 0 0 0 1px
    rgba(71,120,154,.07);
}


/* -------------------- KOŞULLU ALAN -------------------- */

.conditional[hidden] {
  display: none;
}

.rsvp .button-primary {
  width: 100%;

  margin-top: 2px;
}

.form-status {
  min-height: 20px;

  margin: 12px 4px 0;

  color: var(--muted);

  text-align: center;

  font-size: 12px;

  line-height: 1.45;
}

.form-status.success {
  color: #446b5b;
}

.form-status.error {
  color: #9d5050;
}


/* -------------------- FOTOĞRAFLAR -------------------- */

.photos {
  min-height: min(410px, 75.93vw);

  padding-top: min(94px, 17.41vw);
}

.photos h2 {
  font-size: clamp(27px, 5.74vw, 31px);
}

.photos .button {
  margin-top: 6px;
}


/* -------------------- FOOTER -------------------- */

.footer {
  min-height: min(290px, 53.7vw);

  padding-top: min(78px, 14.44vw);

  color: var(--muted);

  font-size: clamp(10px, 2.22vw, 12px);
}

.footer-name {
  margin:
    0
    0
    min(13px, 2.41vw);

  font-size: clamp(28px, 5.93vw, 32px);
}

.footer p {
  margin: 8px 0;
}

.footer-heart {
  color: var(--gold);

  font-size: clamp(22px, 4.63vw, 25px);
}


/* -------------------- ANİMASYON -------------------- */

.reveal {
  opacity: 0;

  transform:
    translateY(14px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* -------------------- DESKTOP HOVER -------------------- */

@media (hover: hover) {

  .button:hover {
    transform:
      translateY(-1px);
  }

  .button-outline:hover {
    background:
      rgba(71,120,154,.06);
  }

  .button-primary:hover {
    box-shadow:
      0 13px 28px
      rgba(54,95,120,.27);
  }

}


/* -------------------- ÇOK DAR TELEFONLAR -------------------- */

@media (max-width: 360px) {

  .section {
    width: 79%;
  }

  .choice-grid {
    gap: 5px;
  }

  .choice-grid span {
    padding:
      6px
      3px;

    font-size: 9px;
  }

}


/* -------------------- HAREKET AZALTMA -------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}
