/* ── Licitar palette ─────────────────────────────── */
:root {
  --icing:        #FAF1E4;
  --crimson:      #A41623;
  --crimson-deep: #7E0F1A;
  --maroon:       #4A1017;
  --gold:         #D9A441;
  --muted:        #8A6A52;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
  background: var(--icing);
}

body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #FFF8ED 0%, var(--icing) 55%);
  color: var(--maroon);
  font-family: "Karla", system-ui, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── piped-dot frame around the page ─────────────── */
.frame {
  position: fixed;
  inset: 10px;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle, var(--crimson) 1.6px, transparent 2.1px),
    radial-gradient(circle, var(--crimson) 1.6px, transparent 2.1px),
    radial-gradient(circle, var(--crimson) 1.6px, transparent 2.1px),
    radial-gradient(circle, var(--crimson) 1.6px, transparent 2.1px);
  background-size: 14px 6px, 14px 6px, 6px 14px, 6px 14px;
  background-position: top left, bottom left, top left, top right;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}

/* ── the hanging heart ───────────────────────────── */
.hanger {
  position: relative;
  z-index: 1;
  animation: drop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.sway {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: sway 6.5s ease-in-out 1.1s infinite;
}

.ribbon {
  width: 9px;
  height: clamp(84px, 14vh, 130px);
  background: linear-gradient(to right,
    var(--crimson-deep) 0%, var(--crimson) 30%,
    var(--crimson) 70%, var(--crimson-deep) 100%);
}

.heart {
  position: relative;
  /* capped by viewport height too, so the page never scrolls */
  width: max(200px, min(88vw, 460px, calc(105svh - 290px)));
  margin-top: -60px;             /* ribbon threads into the notch */
  filter: drop-shadow(0 18px 28px rgba(126, 15, 26, 0.22));
  container-type: inline-size;
}

.heart svg { display: block; width: 100%; height: auto; }

.arc-text  { font-family: "Yeseva One", Georgia, serif; }

/* ── countdown in the mirror ─────────────────────── */
.mirror-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52%;
  text-align: center;
  font-size: clamp(12px, calc(min(88vw, 460px) / 28), 16.5px);
  font-size: 3.6cqw;
}

.num {
  font-family: "Yeseva One", Georgia, serif;
  color: var(--maroon);
  line-height: 1;
  display: block;
}

.unit {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.days .num  { font-size: 4em; color: var(--crimson); }
.days .unit { margin-top: 0.2em; }

.hms {
  margin-top: 0.55em;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.3em;
}

.hms .cell .num { font-size: 1.7em; min-width: 2.1ch; }
.hms .cell .unit { margin-top: 0.3em; font-size: 0.5em; letter-spacing: 0.02em; }

.colon {
  font-family: "Yeseva One", Georgia, serif;
  font-size: 1.5em;
  color: var(--gold);
  line-height: 1.1;
}

.yes .num  { font-size: 4.2em; color: var(--crimson); }
.yes .unit { margin-top: 0.6em; }

/* ── below the heart ─────────────────────────────── */
.content {
  margin-block: auto;
  text-align: center;
  padding: clamp(26px, 5vh, 48px) 20px 12px;
  position: relative;
  z-index: 1;
}

.date-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 14px;
  row-gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
}

.date-line span { white-space: nowrap; }
.date-line .dot { color: var(--gold); }

.schedule {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.place {
  color: var(--maroon);
  text-decoration: none;
  font-size: 15.5px;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(164, 22, 35, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.place .time {
  font-family: "Yeseva One", Georgia, serif;
  color: var(--crimson);
  margin-right: 3px;
}

.place:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

.place:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .date-line .dot { display: none; }
}

.cal-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--icing);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(126, 15, 26, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cal-btn:hover {
  background: var(--crimson-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(126, 15, 26, 0.32);
}

.cal-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.footer {
  margin-top: auto;
  padding: 18px 20px 24px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── motion ──────────────────────────────────────── */
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-1.7deg); }
  75%      { transform: rotate(1.7deg); }
}

@keyframes drop {
  from { transform: translateY(-26px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sway   { animation: none; }
  .hanger { animation: none; }
  .cal-btn, .cal-btn:hover { transition: none; transform: none; }
}
