/* ============================================================
   Туған күн — "Silk Ribbon Journey" template
   Palette + material derived from uploaded watercolor tulip/ribbon
   background (blush pink, sage leaves, warm brown text, airy white)
   and the garden portrait photo (soft pink, warm daylight).
   ============================================================ */

@font-face {
  font-family: 'Avalon Medium';
  src: url('assets/Avalon-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-cream: #fdf8f6;
  --blush: #f4d6dc;
  --blush-soft: #f9e8ec;
  --blush-deep: #e9b9c4;
  --ribbon: #d98a9a;
  --ribbon-deep: #c06478;
  --sage: #cdd6bb;
  --sage-deep: #a9b791;
  --text-main: #5c3a41;
  --text-soft: #8d6b72;
  --text-faint: #b08e94;
  --glass: rgba(255, 252, 251, 0.74);
  --glass-strong: rgba(255, 252, 251, 0.9);
  --shadow-soft: 0 24px 48px -28px rgba(150, 80, 95, 0.35);
  --shadow-card: 0 14px 34px -18px rgba(150, 80, 95, 0.28);
  --font-display: 'Avalon Medium', 'Noto Serif', Georgia, serif;
  --font-body: 'Noto Sans', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-cream);
  padding-bottom: 160px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fixed background ---------- */
.fixed-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url('assets/background-mobile.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--bg-cream);
}

@media (min-width: 600px) {
  .fixed-background {
    background-image: url('assets/background-desktop.webp');
    background-position: center center;
  }
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 248, 246, 0.55) 0%, rgba(253, 248, 246, 0.35) 18%, rgba(253, 248, 246, 0.55) 100%);
}

/* ---------- Ribbon journey overlay ---------- */
.ribbon-track {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.ribbon-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.ribbon-svg path {
  fill: none;
  stroke: var(--ribbon);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.55;
}

/* ---------- Layout shell ---------- */
.content {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: 64px 4px;
}

.section-inner {
  position: relative;
}

/* Reveal animation: sections lift softly like silk in light */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .ribbon-svg path {
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- Small bow / knot marker ---------- */
.bow-icon {
  width: 30px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

.bow-icon path {
  fill: var(--ribbon);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

.divider .line {
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--ribbon-deep), transparent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 4px 40px;
}

.hero-card {
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px 34px 4px 34px;
  box-shadow: var(--shadow-soft);
  padding: 46px 26px 40px;
  text-align: center;
}

.hero-bow {
  width: 54px;
  height: 40px;
  margin: 0 auto 18px;
}

.hero-overline {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.08;
  margin: 0 0 6px;
  color: var(--ribbon-deep);
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 6.4vw, 32px);
  color: var(--text-main);
  margin: 10px 0 0;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 25px);
  color: var(--text-main);
}

.hero-time {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* ---------- Generic pastel glass card ---------- */
.card {
  background: var(--glass-strong);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px 28px 4px 28px;
  box-shadow: var(--shadow-card);
  padding: 34px 24px;
  text-align: center;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 6vw, 30px);
  color: var(--ribbon-deep);
  margin: 0 0 20px;
  text-align: center;
}

/* ---------- Invitation text ---------- */
.invitation-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Hosts ---------- */
.hosts-label {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.hosts-names {
  font-family: var(--font-display);
  font-size: clamp(21px, 5.4vw, 26px);
  color: var(--text-main);
  margin: 0;
}

/* ---------- Timeline ---------- */
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 15px 6px;
  border-bottom: 1px dashed rgba(192, 100, 120, 0.28);
  text-align: left;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-knot {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-knot span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ribbon);
  box-shadow: 0 0 0 4px var(--blush-soft);
}

.timeline-time {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ribbon-deep);
  white-space: nowrap;
}

.timeline-title {
  font-size: 15.5px;
  color: var(--text-main);
  line-height: 1.4;
}

/* ---------- Photo section ---------- */
.photo-frame-wrap {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: min(320px, 78vw);
  padding: 14px;
  background: var(--glass-strong);
  border-radius: 4px 30px 4px 30px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px 22px 2px 22px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-ribbon-corner {
  position: absolute;
  top: -20px;
  right: -14px;
  width: 66px;
  height: 50px;
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 8px rgba(150, 80, 95, 0.25));
}

/* ---------- Venue ---------- */
.venue-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.venue-hall {
  font-family: var(--font-display);
  font-size: clamp(21px, 5.4vw, 25px);
  color: var(--text-main);
}

.venue-addr {
  font-size: 15px;
  color: var(--text-soft);
}

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--ribbon), var(--ribbon-deep));
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 14px 26px -12px rgba(192, 100, 120, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-button:active {
  transform: scale(0.97);
}

/* ---------- Footer ---------- */
.footer-deco {
  padding: 30px 4px 8px;
  text-align: center;
}

.footer-note {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 10px;
}

/* ---------- Floating audio player ---------- */
.audio-player[hidden] {
  display: none;
}

.audio-player {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  box-shadow: var(--shadow-card);
}

.audio-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--ribbon), var(--ribbon-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

.audio-track-title {
  font-size: 13px;
  color: var(--text-main);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Links ---------- */
a {
  color: var(--ribbon-deep);
}

a:hover {
  color: var(--text-main);
}

/* ---------- Desktop widening ---------- */
@media (min-width: 720px) {
  .hero-card,
  .card {
    padding-left: 54px;
    padding-right: 54px;
  }
}
