:root {
  --ink: #2f2f27;
  --olive: #7a7f5e;
  --olive-dark: #5c6047;
  --paper: #fbfaf7;
  --marble-a: #ececea;
  --marble-b: #e2e1dd;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,0.6), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(0,0,0,0.05), transparent 50%),
    linear-gradient(135deg, var(--marble-a), var(--marble-b));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 900px;
  background: var(--paper);
  border: 1px solid rgba(122,127,94,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.card__media {
  flex: 1 1 50%;
  min-width: 0;
}

.stamp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--olive-dark);
}

.stamp::before,
.stamp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(122,127,94,0.4);
}

.video-frame {
  position: relative;
  border: 1px solid rgba(122,127,94,0.5);
  padding: 6px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #efeee9;
  overflow: hidden;
  cursor: pointer;
}

.std-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #efeee9;
}

.mute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(47,47,39,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mute-btn:hover {
  background: rgba(47,47,39,0.75);
  transform: scale(1.06);
}

.card__content {
  flex: 1 1 50%;
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--olive-dark);
  margin: 0 0 8px;
}

.names {
  font-family: 'Cormorant Garamond', 'EB Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 4px;
  line-height: 1.1;
}

.names .amp {
  color: var(--olive);
  font-style: normal;
  margin: 0 6px;
}

.date-line {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 20px;
}

.message {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 32ch;
}

.below {
  border-top: 1px solid rgba(122,127,94,0.35);
  padding-top: 22px;
}

.countdown {
  display: flex;
  gap: 22px;
  margin-bottom: 18px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.countdown__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--olive-dark);
}

.countdown__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47,47,39,0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary {
  background: var(--olive);
  color: #fff;
}

.btn--primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
}

.btn--secondary {
  background: transparent;
  color: var(--olive-dark);
}

.btn--secondary:hover {
  background: rgba(122,127,94,0.1);
}

.calendar-wrap {
  position: relative;
}

.calendar-menu[hidden] {
  display: none;
}

.calendar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  background: var(--paper);
  border: 1px solid rgba(122,127,94,0.4);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(47,47,39,0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.calendar-menu a {
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.calendar-menu a:hover {
  background: rgba(122,127,94,0.12);
}

@media (max-width: 720px) {
  .card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 24px;
  }
  .card__content {
    text-align: left;
  }
  .message {
    max-width: none;
  }
  .countdown {
    gap: 16px;
  }
  .actions {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }
  .calendar-wrap {
    width: 100%;
  }
  .calendar-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}
