/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream:      #faf8f5;
  --ivory:      #fff9f4;
  --primary:    #9b7b6b;
  --gold:       #c9a97e;
  --gold-light: #e8d5b8;
  --dark:       #3d2b1f;
  --text:       #5c4033;
  --blush:      #f5e8e0;
  --border:     #e8d5c4;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'Noto Serif KR', '나눔명조', Georgia, serif;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


/* =====================
   Hero
   ===================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px 80px;
  text-align: center;
  background: linear-gradient(170deg, #fffaf6 0%, var(--cream) 60%, #f5ede3 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold) 60%, transparent 100%);
}

.hero-floral {
  width: 220px;
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;
}

.hero-floral.top {
  margin-bottom: 20px;
  animation-delay: 0.2s;
}

.hero-floral.bottom {
  margin-top: 20px;
  animation-delay: 0.4s;
}

.hero-date {
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-names {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.name {
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.08em;
}

.heart {
  font-size: 1.1rem;
  color: var(--gold);
}

.hero-time {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--text);
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-venue {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  opacity: 0;
  animation: fadeInUp 1s ease 1.0s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 1.8s ease-in-out infinite;
}

.scroll-hint p {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.4; }
}


/* =====================
   Section Shared
   ===================== */
section {
  padding: 60px 28px;
}

.section-title {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--primary);
  margin-bottom: 32px;
  font-weight: 300;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}

.ornament:last-child .line {
  background: linear-gradient(90deg, var(--border), transparent);
}

.ornament .flower {
  font-size: 1rem;
  color: var(--gold);
}


/* =====================
   Message
   ===================== */
.message {
  background: white;
  text-align: center;
}

.message-text {
  font-size: 0.95rem;
  line-height: 2.4;
  color: var(--text);
  word-break: keep-all;
}


/* =====================
   Countdown
   ===================== */
.countdown {
  background: var(--blush);
  text-align: center;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--primary);
  margin-bottom: 24px;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.box {
  background: white;
  border-radius: 14px;
  padding: 14px 10px;
  min-width: 64px;
  box-shadow: 0 2px 16px rgba(155, 123, 107, 0.12);
}

.box span {
  display: block;
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.box small {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-top: 6px;
  display: block;
}

.sep {
  font-size: 1.4rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 18px;
}


/* =====================
   Details
   ===================== */
.details {
  background: white;
}

.detail-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 8px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.detail-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 6px;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.8;
}

.detail-sub {
  font-size: 0.78rem;
  color: var(--primary);
  margin-top: 4px;
}

.divider-line {
  height: 1px;
  background: var(--border);
}

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-family: 'Noto Serif KR', serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(201, 169, 126, 0.35);
}

.map-btn:hover,
.map-btn:active {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(155, 123, 107, 0.4);
}


/* =====================
   Contact
   ===================== */
.contact {
  background: var(--blush);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 14px rgba(155, 123, 107, 0.1);
}

.contact-role {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-name {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 3px;
}

.contact-number {
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.05em;
}


/* =====================
   Account
   ===================== */
.account {
  background: white;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
}

.account-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 6px;
}

.account-number {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.account-holder {
  font-size: 0.75rem;
  color: var(--text);
}


/* =====================
   Action Buttons
   ===================== */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: 'Noto Serif KR', serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.action-btn.call {
  background: var(--primary);
  color: white;
}

.action-btn.call:hover,
.action-btn.call:active {
  background: var(--dark);
  transform: translateY(-1px);
}

.action-btn.copy {
  background: var(--gold);
  color: white;
}

.action-btn.copy:hover,
.action-btn.copy:active {
  background: var(--primary);
  transform: translateY(-1px);
}


/* =====================
   Footer
   ===================== */
.footer {
  padding: 50px 30px 60px;
  text-align: center;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
}

.footer-flowers {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.6em;
  margin-bottom: 16px;
}

.footer-date {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  margin-bottom: 6px;
}

.footer-names {
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}


/* =====================
   Toast
   ===================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(61, 43, 31, 0.92);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-family: 'Noto Serif KR', serif;
  letter-spacing: 0.05em;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}


/* =====================
   Scroll Animations
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================
   Keyframes
   ===================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
