:root {
  --bg: #fbf7f3;
  --surface: rgba(255, 252, 248, 0.86);
  --surface-strong: rgba(255, 250, 244, 0.94);
  --line: rgba(170, 138, 92, 0.28);
  --text: #54463c;
  --text-soft: #76665a;
  --accent: #b59650;
  --accent-deep: #7f6540;
  --shadow: 0 24px 70px rgba(124, 98, 66, 0.16);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 220, 205, 0.36), transparent 34%),
    radial-gradient(circle at bottom right, rgba(250, 235, 213, 0.5), transparent 38%),
    #fbf7f3;
  font-family: "DM Sans", sans-serif;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.background-layer {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 245, 0.64), rgba(255, 250, 245, 0.78)),
    url("assets/images/paper-texture.png") center center / cover no-repeat;
  opacity: 0.58;
  pointer-events: none;
  z-index: -2;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: fit-content;
  min-width: 108px;
  padding: 16px 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(96, 74, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.site-mark,
.footer-mark {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.audio-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(96, 74, 49, 0.08);
  color: var(--accent-deep);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  transform: translateY(-2px);
}

.audio-toggle[data-state="paused"] {
  background: rgba(255, 251, 246, 0.72);
  color: var(--text-soft);
}

.audio-toggle[data-state="loading"] {
  opacity: 0.92;
}

.audio-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(181, 150, 80, 0.14);
  font-size: 1rem;
  line-height: 1;
}

.audio-toggle-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  isolation: isolate;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 248, 241, 0.74), rgba(255, 248, 241, 0.8)),
    url("assets/images/floral-frame.png") center center / cover no-repeat;
  transform: scale(1.02);
}

.intro-panel {
  width: min(100% - 32px, 520px);
  text-align: center;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.55);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.intro h1,
.display-title,
.countdown-title,
.invitation-card h3,
.section-heading h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.08;
}

.intro h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: var(--accent-deep);
}

.intro-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.intro-name {
  display: block;
}

.intro-ampersand {
  display: block;
  color: var(--accent);
  font-style: italic;
  line-height: 0.9;
}

.intro-text {
  margin: 18px auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

.primary-button {
  margin-top: 28px;
  color: #fffaf3;
  background: linear-gradient(135deg, #b99a5d, #8b6b43);
  box-shadow: 0 16px 36px rgba(133, 100, 61, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
}

.page-content {
  width: min(calc(100% - 32px), var(--container));
  margin: 120px auto 0;
  display: grid;
  gap: 42px;
}

.hero-block,
.countdown-section,
.invitation-card,
.location-section,
.site-footer {
  position: relative;
  overflow: hidden;
}

.hero-block {
  padding: 64px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.78), rgba(255, 251, 246, 0.66));
  box-shadow: var(--shadow);
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: auto -120px -150px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 197, 0.44), transparent 70%);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.display-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: var(--accent-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.display-name {
  display: block;
}

.display-ampersand {
  display: block;
  color: var(--accent);
  font-style: italic;
  line-height: 0.9;
}

.lead {
  margin: 24px auto 0;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-soft);
}

.countdown-section {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.9), rgba(255, 249, 242, 0.8));
  box-shadow: var(--shadow);
}

.countdown-section::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 197, 0.34), transparent 72%);
}

.countdown-section::after {
  content: "";
  position: absolute;
  inset: auto -8% -50% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 150, 80, 0.18), transparent 72%);
}

.countdown-shell {
  position: relative;
  z-index: 1;
  padding: 40px 28px;
  text-align: center;
}

.countdown-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: var(--accent-deep);
}

.countdown-subtitle {
  max-width: 34rem;
  margin: 16px auto 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.countdown-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.countdown-unit {
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(184, 151, 94, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.countdown-value {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--accent-deep);
}

.countdown-label {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.countdown-note {
  margin: 22px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.invitation-card {
  padding: 58px 28px;
  border-radius: 34px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.card-ornament {
  position: absolute;
  width: 52px;
  height: 52px;
  border-color: rgba(184, 151, 94, 0.34);
}

.top-left {
  top: 18px;
  left: 18px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.top-right {
  top: 18px;
  right: 18px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.bottom-left {
  bottom: 18px;
  left: 18px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.bottom-right {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.invitation-card h3 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--accent-deep);
  margin-top: 8px;
}

.day-label {
  margin: 10px 0 0;
  color: var(--text-soft);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.details-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-box {
  padding: 24px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(184, 151, 94, 0.18);
}

.detail-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detail-value {
  margin: 12px 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: var(--accent-deep);
}

.card-note,
.section-heading p,
.location-text,
.site-footer p {
  color: var(--text-soft);
  line-height: 1.8;
}

.card-note {
  max-width: 36rem;
  margin: 28px auto 0;
}

.location-section {
  padding: 56px 28px;
  border-radius: 34px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.section-heading h3 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: var(--accent-deep);
}

.location-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.location-card,
.map-frame {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 250, 245, 0.86);
  border: 1px solid rgba(184, 151, 94, 0.18);
}

.location-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.location-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--accent-deep);
}

.location-text {
  margin: 0;
}

.secondary-button {
  width: fit-content;
  color: #fffaf3;
  background: #8f7350;
}

.map-frame {
  min-height: 420px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 20px;
}

.site-footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 42px auto 32px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.64);
  backdrop-filter: blur(16px);
}

.site-footer p {
  margin: 8px 0 0;
}

html.js-enabled .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-18px);
}

html.js-enabled.invitation-open .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

html.js-enabled .page-content,
html.js-enabled .site-footer {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

html.js-enabled.invitation-open .page-content,
html.js-enabled.invitation-open .site-footer {
  opacity: 1;
  transform: translateY(0);
}

html.js-enabled .intro {
  transition:
    opacity 600ms ease,
    visibility 0s linear 600ms;
}

html.js-enabled.invitation-open .intro {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#davet,
#geriSayim,
#detaylar,
#konum {
  scroll-margin-top: 110px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 18px;
    border-radius: 26px;
  }

  .audio-toggle {
    top: 20px;
    right: 16px;
    min-height: 52px;
    padding: 0 16px;
  }

  .countdown-grid,
  .details-grid,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .location-card {
    order: 1;
  }

  .map-frame {
    order: 2;
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    padding: 14px 22px;
  }

  .audio-toggle {
    top: 10px;
    right: 10px;
    min-height: 48px;
    padding: 0 14px;
    gap: 8px;
  }

  .audio-toggle-label {
    font-size: 0.84rem;
  }

  .intro,
  .page-content,
  .site-footer {
    width: min(calc(100% - 20px), var(--container));
  }

  .intro {
    padding: 12px;
  }

  .page-content {
    margin-top: 104px;
  }

  .intro-panel,
  .hero-block,
  .countdown-shell,
  .invitation-card,
  .location-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .display-title,
  .intro h1 {
    line-height: 1.14;
  }

  .detail-value {
    font-size: 1.3rem;
  }
}
