:root {
  --ink: #23352f;
  --muted: #8a5660;
  --green: #4f8763;
  --green-dark: #3f7352;
  --green-soft: #eaf2ed;
  --wine: #843a49;
  --paper: #fffdf9;
  --paper-warm: #f8f3ec;
  --line: rgba(35, 53, 47, 0.12);
  --shadow: 0 18px 50px rgba(37, 45, 40, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 24px;
  background: #35363a;
  color: var(--ink);
  font-family: var(--sans);
}

body.intro-locked {
  overflow: hidden;
}

body.intro-locked .floating-actions {
  opacity: 0;
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.invite-card {
  position: relative;
  width: min(100%, 490px);
  min-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  scroll-behavior: smooth;
}

.fill-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.envelope-screen {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 30;
  width: 100%;
  display: grid;
  place-items: center;
  height: calc(100dvh - 48px);
  min-height: 680px;
  overflow: hidden;
  background: #eadfce;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.envelope-screen.is-fading-out {
  opacity: 0;
}

.open-button {
  position: absolute;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(51, 44, 39, 0.64);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.open-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.wedding-site {
  min-height: 100%;
  background:
    linear-gradient(rgba(255, 253, 249, 0.92), rgba(255, 253, 249, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(79, 135, 99, 0.025) 28px 29px);
}

.hero-section {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: url("assets/wedding-hero.png") center / cover no-repeat;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  opacity: 1;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(22, 27, 24, 0.18), rgba(22, 27, 24, 0.28) 42%, rgba(22, 27, 24, 0.48)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 380px);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 14vw, 5.1rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.hero-line {
  opacity: 0;
  transform: translateY(24px);
}

.hero-section.is-active .hero-line {
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-section.is-active .eyebrow { animation-delay: 2s; }
.hero-section.is-active h1 { animation-delay: 2.28s; }
.hero-section.is-active .hero-date { animation-delay: 2.56s; }
.hero-section.is-active .hero-place { animation-delay: 2.84s; }
.hero-section.is-active .ghost-button { animation-delay: 3.12s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeUpCue {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
}

.hero-section.is-active .scroll-cue {
  animation:
    heroFadeUpCue 1s cubic-bezier(0.22, 1, 0.36, 1) 3.5s forwards,
    scrollCueBob 2.4s ease-in-out 4.8s infinite;
}

@keyframes scrollCueBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.reveal,
.reveal-child {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child:nth-child(2) { transition-delay: 0.08s; }
.reveal-child:nth-child(3) { transition-delay: 0.16s; }
.reveal-child:nth-child(4) { transition-delay: 0.24s; }
.reveal-child:nth-child(5) { transition-delay: 0.32s; }

.timeline-item.reveal-child:nth-child(1) { transition-delay: 0.04s; }
.timeline-item.reveal-child:nth-child(2) { transition-delay: 0.12s; }
.timeline-item.reveal-child:nth-child(3) { transition-delay: 0.2s; }
.timeline-item.reveal-child:nth-child(4) { transition-delay: 0.28s; }
.timeline-item.reveal-child:nth-child(5) { transition-delay: 0.36s; }

.hero-date,
.hero-place {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-place {
  margin-top: 8px;
}

.ghost-button,
.primary-button,
.outline-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ghost-button {
  margin-top: 36px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

.floating-actions {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  width: min(calc(100vw - 48px), 442px);
  display: flex;
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.round-action {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 28, 38, 0.22);
  cursor: pointer;
  pointer-events: auto;
}

.lang-badge {
  position: absolute;
  top: -7px;
  right: -4px;
  min-width: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--wine);
  font-size: 0.62rem;
  font-weight: 800;
}

.sound-off,
.is-muted .sound-on {
  display: none;
}

.is-muted .sound-off {
  display: block;
}

.section {
  padding: 78px 24px;
  text-align: center;
}

.section h2 {
  margin: 0;
  color: #17332d;
  font-size: clamp(2.5rem, 10vw, 3.35rem);
  line-height: 1.05;
  font-weight: 400;
}

.section-lead {
  max-width: 380px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.countdown-section {
  padding-top: 86px;
  padding-bottom: 88px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 34px;
}

.countdown-grid div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.countdown-grid strong {
  color: #17332d;
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.divider {
  width: min(72%, 320px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(35, 53, 47, 0.16), transparent);
}

.divider::after {
  content: "";
  display: block;
  width: 28px;
  height: 10px;
  margin: -5px auto 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 8px 0 0 -4px rgba(79, 135, 99, 0.2), -8px 0 0 -4px rgba(79, 135, 99, 0.2);
}

.info-card,
.hotel-card,
.faq-card,
.gift-card,
.portrait-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.venue-card {
  margin-top: 44px;
  padding: 32px;
  text-align: left;
}

.venue-visual {
  aspect-ratio: 1.4;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--green-soft);
}

.venue-visual video,
.venue-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.venue-map {
  aspect-ratio: 1.35;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--green-soft);
}

.venue-card h3,
.timeline-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
}

.strong {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.detail-list {
  display: grid;
  gap: 18px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.detail-list li,
.hotel-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.soft-icon,
.large-icon,
.timeline-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--green-soft);
  color: var(--green);
}

.soft-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.large-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 50%;
}

.primary-button,
.outline-button {
  width: 100%;
  border: 1px solid var(--green);
  padding: 0 20px;
}

.primary-button {
  background: var(--green);
  color: #fff;
}

.outline-button {
  margin-top: 12px;
  background: transparent;
  color: var(--green);
}

.program-section,
.portrait-section,
.faq-section,
.gifts-section {
  padding-top: 86px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 22px;
  width: 1px;
  background: rgba(79, 135, 99, 0.25);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(79, 135, 99, 0.28);
  border-radius: 50%;
  background: #f5fbf7;
}

.timeline-item div {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 32px rgba(37, 45, 40, 0.08);
}

.timeline-item time {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.timeline-item p,
.hotel-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hotel-list {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.hotel-card {
  min-height: 104px;
  padding: 22px 28px;
  text-align: left;
}

.hotel-card .soft-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.small-note {
  margin: 28px auto 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.small-note a {
  color: var(--green);
}

.faq-card {
  margin-top: 34px;
  overflow: hidden;
  text-align: left;
}

details + details {
  border-top: 1px solid var(--line);
}

summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.1rem;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: -4px 22px 20px;
  color: var(--muted);
  line-height: 1.5;
}

.gift-card {
  margin-top: 44px;
  padding: 32px 28px;
  text-align: center;
}

.gift-message {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.portrait-card {
  margin-top: 44px;
  overflow: hidden;
  text-align: left;
}

.portrait-photo {
  overflow: hidden;
  aspect-ratio: 27 / 40;
  margin: 0;
  background: #f3f0eb;
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.portrait-copy {
  padding: 28px 32px 32px;
}

.portrait-copy h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.5rem;
}

.portrait-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.portrait-copy p:last-of-type {
  margin-bottom: 0;
}

.portrait-tips {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.portrait-tips li + li {
  margin-top: 8px;
}

.site-footer {
  padding: 72px 24px 82px;
  background: var(--green);
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.back-to-top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-decoration: none;
}

.footer-mark {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
}

.site-footer h2 {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: 400;
}

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

.made-by {
  margin-top: 34px !important;
  font-size: 0.92rem;
}

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

button:active,
a:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(79, 135, 99, 0.38);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  body {
    padding: 0;
  }

  .invite-card {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .envelope-screen {
    height: 100dvh;
    min-height: 100dvh;
  }

  .hero-section {
    min-height: 794px;
  }

  .floating-actions {
    width: calc(100vw - 48px);
  }
}

@media (max-width: 380px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .venue-card,
  .gift-card,
  .portrait-copy {
    padding: 22px;
  }

  .countdown-grid strong {
    font-size: 2rem;
  }
}

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

  .hero-line,
  .scroll-cue,
  .reveal,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}
