:root {
  --paper: #faf6f5;
  --paper-light: #fffdfc;
  --ink: #342d2e;
  --muted: #746667;
  --sage: #c58f98;
  --sage-dark: #8f5f68;
  --sage-pale: #f6e6e9;
  --gold: #b49188;
  --line: rgba(104, 75, 79, 0.17);
  --white: #fff;
  --danger: #9b483f;
  --danger-bg: #f8eae7;
  --success: #3f674c;
  --success-bg: #e7f1e8;
  --warning: #77561c;
  --warning-bg: #fbf1d9;
  --shadow: 0 24px 70px rgba(75, 53, 56, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 32px 18px 86px;
  background:
    radial-gradient(circle at 15% 20%, rgba(231, 177, 187, 0.22), transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(191, 155, 147, 0.15), transparent 28%),
    var(--paper);
}

.invitation-card {
  position: relative;
  display: flex;
  width: min(92vw, 560px, calc((100svh - 116px) * 0.8));
  min-height: 0;
  aspect-ratio: 4 / 5;
  padding: clamp(34px, 5vw, 54px) clamp(26px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(197, 143, 152, 0.22);
  border-radius: 6px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vw, 30px);
  background: #fff;
  box-shadow: var(--shadow);
}

.invitation-card::before {
  position: absolute;
  inset: 0;
  background-image: url("kiraz-cicegi-arka-plan.png");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.76;
}

.hero-flower {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(100px, 17vw, 142px);
  height: auto;
  flex: none;
  filter: saturate(0.92) contrast(1.02);
  mix-blend-mode: multiply;
}

.hero-names {
  position: relative;
  z-index: 1;
  display: flex;
  margin: 0;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  color: #2d2829;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.hero-names i {
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55em;
  font-weight: 400;
}

.hero-date {
  position: relative;
  z-index: 1;
  color: #302a2b;
  text-align: center;
}

.hero-date small {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
}

.hero-date p {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.hero-date strong,
.hero-date span {
  padding: 0 clamp(9px, 2vw, 16px);
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 400;
}

.hero-date span {
  border-right: 1px solid rgba(75, 53, 56, 0.35);
  border-left: 1px solid rgba(75, 53, 56, 0.35);
  font-size: clamp(1.15rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.invitation-copy {
  position: absolute;
  inset: 8% 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.monogram {
  margin: 0 0 13px;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
}

.invitation-copy h1 {
  display: flex;
  margin: 0;
  flex-direction: column;
  color: #3e493b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 7.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.invitation-copy h1 small {
  margin: 0.19em 0 0.14em;
  color: var(--gold);
  font-size: 0.44em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.invitation-message {
  margin: 24px 0 16px;
  color: #60685b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.73rem, 2.5vw, 0.96rem);
  font-style: italic;
  line-height: 1.65;
}

.ornament {
  position: relative;
  width: 82px;
  height: 14px;
  margin: 0 auto 10px;
}

.ornament::before,
.ornament::after {
  position: absolute;
  top: 6px;
  width: 33px;
  height: 1px;
  background: rgba(182, 154, 105, 0.65);
  content: "";
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
}

.ornament span {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(182, 154, 105, 0.8);
}

.invitation-date {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.invitation-date strong {
  padding-right: 12px;
  border-right: 1px solid rgba(91, 100, 82, 0.38);
  font-size: clamp(2rem, 6.5vw, 3.15rem);
  font-weight: 400;
}

.invitation-date span {
  padding-left: 12px;
  text-align: left;
  font-size: clamp(0.68rem, 2vw, 0.9rem);
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.invitation-place {
  margin: 13px 0 0;
  color: var(--sage-dark);
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: var(--sage-dark);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

.details-section,
.rsvp-section {
  padding: clamp(76px, 10vw, 132px) 20px;
}

.details-section {
  position: relative;
  overflow: hidden;
  background: var(--paper-light);
}

.section-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
}

.section-shell h2,
.rsvp-intro h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-lead {
  max-width: 610px;
  margin: 22px auto 52px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.schedule {
  position: relative;
  display: grid;
  width: min(100%, 720px);
  margin: 0 auto 60px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.section-shell h2 + .schedule {
  margin-top: 44px;
}

.memory-collage {
  display: grid;
  width: min(100%, 650px);
  margin: 34px auto 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
}

.memory-photo {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  opacity: 0.62;
  pointer-events: none;
  transform: rotate(var(--rotation, 0deg));
  -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0, 0, 0, 0.82) 64%, transparent 84%);
  mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0, 0, 0, 0.82) 64%, transparent 84%);
}

.memory-photo::after {
  position: absolute;
  inset: 0;
  background: rgba(247, 225, 230, 0.2);
  content: "";
  mix-blend-mode: screen;
}

.memory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.035);
  object-fit: cover;
  object-position: var(--position, center);
  filter:
    sepia(0.13)
    saturate(var(--saturation, 0.72))
    brightness(var(--brightness, 1.08))
    contrast(0.91)
    hue-rotate(-4deg);
}

.memory-photo-one {
  --brightness: 1.02;
  --position: center 42%;
  --rotation: -3deg;
  --saturation: 0.66;
}

.memory-photo-two {
  --brightness: 1.2;
  --position: center 34%;
  --rotation: 3deg;
  --saturation: 0.74;
}

.memory-photo-three {
  --brightness: 1.05;
  --position: center 38%;
  --rotation: 2deg;
  --saturation: 0.64;
}

.memory-photo-four {
  --brightness: 1.05;
  --position: center 64%;
  --rotation: -2deg;
  --saturation: 0.58;
}

@media (min-width: 1300px) {
  .memory-collage {
    position: absolute;
    inset: 0;
    width: auto;
    margin: 0;
    display: block;
    pointer-events: none;
  }

  .memory-photo {
    position: absolute;
    width: clamp(185px, 16vw, 245px);
    opacity: 0.42;
  }

  .memory-photo-one {
    top: 100px;
    left: max(22px, calc(50% - 745px));
  }

  .memory-photo-two {
    top: 105px;
    right: max(22px, calc(50% - 745px));
  }

  .memory-photo-three {
    top: 440px;
    right: max(60px, calc(50% - 695px));
  }

  .memory-photo-four {
    top: 435px;
    left: max(60px, calc(50% - 695px));
  }

  .section-kicker,
  .section-shell h2,
  .schedule,
  .venue-card {
    position: relative;
    z-index: 1;
  }
}

.schedule::before {
  position: absolute;
  top: 59px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: var(--line);
  content: "";
}

.schedule article {
  position: relative;
  display: flex;
  padding: 20px 8px;
  align-items: center;
  flex-direction: column;
}

.schedule time {
  padding: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.schedule article div {
  position: relative;
  width: 100%;
  padding-top: 34px;
}

.schedule article div::before {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--paper-light);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
  content: "";
}

.schedule h3,
.venue-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.schedule p,
.venue-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.venue-card {
  display: grid;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--white);
  text-align: left;
  box-shadow: 0 14px 34px rgba(64, 73, 57, 0.07);
}

.venue-pin {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  place-items: center;
  background: var(--sage-pale);
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.venue-card .venue-label {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 49px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(127, 141, 117, 0.28);
  outline-offset: 2px;
}

.button-secondary {
  border-color: var(--sage);
  background: transparent;
  color: var(--sage-dark);
}

.button-secondary:hover {
  background: var(--sage-pale);
}

.rsvp-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 100%, rgba(204, 145, 155, 0.13), transparent 26%),
    var(--paper);
}

.rsvp-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("kiraz-cicegi-arka-plan.png");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.12;
}

.rsvp-shell {
  display: grid;
  width: min(100%, 940px);
  margin: 0 auto;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: clamp(38px, 8vw, 90px);
}

.rsvp-intro {
  position: sticky;
  top: 42px;
}

.rsvp-intro p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
}

.rsvp-intro strong {
  color: var(--ink);
}

.rsvp-form {
  display: grid;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(63, 73, 58, 0.08);
  backdrop-filter: blur(8px);
}

.full-field {
  grid-column: 1 / -1;
}

.field label,
.attendance-field legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(75, 88, 70, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.field input,
.field select {
  height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 105px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ca198;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.attendance-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card > span {
  display: grid;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(75, 88, 70, 0.22);
  border-radius: 10px;
  align-content: center;
  justify-items: start;
  background: rgba(255, 255, 255, 0.78);
  transition: border 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-card b {
  display: grid;
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--sage-dark);
  font-weight: 500;
}

.choice-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.choice-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.71rem;
}

.choice-card input:checked + span {
  border-color: var(--sage);
  background: var(--sage-pale);
  box-shadow: 0 0 0 2px rgba(127, 141, 117, 0.13);
}

.choice-card input:focus-visible + span {
  outline: 3px solid rgba(127, 141, 117, 0.28);
  outline-offset: 2px;
}

.person-count {
  animation: reveal 220ms ease both;
}

@keyframes reveal {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.72rem;
}

.is-invalid {
  border-color: var(--danger) !important;
}

.form-notice {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-notice.warning {
  border: 1px solid rgba(119, 86, 28, 0.2);
  background: var(--warning-bg);
  color: var(--warning);
}

.form-notice.error {
  border: 1px solid rgba(155, 72, 63, 0.2);
  background: var(--danger-bg);
  color: var(--danger);
}

.form-notice.success {
  border: 1px solid rgba(63, 103, 76, 0.2);
  background: var(--success-bg);
  color: var(--success);
}

.button-primary {
  width: 100%;
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(69, 83, 64, 0.18);
}

.button-primary:hover {
  background: #455340;
}

.button-primary:disabled {
  transform: none;
  cursor: wait;
  opacity: 0.65;
}

footer {
  padding: 50px 20px 54px;
  background: #65464c;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

footer p {
  margin: 5px 0;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
}

footer .footer-names {
  margin-bottom: 12px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.footer-names span {
  color: #f0c7cf;
  font-style: italic;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    padding-top: 22px;
  }

  .invitation-card {
    width: min(94vw, 520px, calc((100svh - 116px) * 0.8));
    min-height: 0;
    gap: clamp(18px, 4vw, 26px);
  }

  .schedule {
    width: 100%;
  }

  .memory-collage {
    margin-top: 28px;
  }

  .memory-photo {
    opacity: 0.68;
  }

  .schedule article {
    padding-inline: 3px;
  }

  .schedule time {
    font-size: 0.95rem;
  }

  .schedule h3 {
    font-size: clamp(1rem, 5vw, 1.2rem);
  }

  .venue-card {
    padding: 24px;
    grid-template-columns: auto 1fr;
  }

  .venue-card .button {
    grid-column: 1 / -1;
  }

  .rsvp-shell {
    grid-template-columns: 1fr;
  }

  .rsvp-intro {
    position: static;
    text-align: center;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card > span {
    min-height: 92px;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
  }

  .choice-card b {
    margin: 0;
    grid-row: 1 / 3;
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .hero {
    min-height: 760px;
  }
  .invitation-card {
    width: min(86vw, 520px);
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
