:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  --wine: #421225;
  --plum: #641f3b;
  --rose: #b85b76;
  --blush: #f4cdd0;
  --cream: #fff9f3;
  --ink: #4b2434;
  --muted: #76515e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.75rem);
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #a85570 0, transparent 29%),
    radial-gradient(circle at 91% 87%, #7e294b 0, transparent 31%),
    linear-gradient(145deg, #2f0b1c 0%, #531a35 54%, #2d0b1b 100%);
}

.glow {
  position: fixed;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ef9aaa24;
  filter: blur(45px);
  pointer-events: none;
}

.glow-one { top: -10rem; right: -7rem; }
.glow-two { bottom: -12rem; left: -8rem; }

a:focus-visible { outline: 3px solid #f6b8c8; outline-offset: 4px; }

.countdown-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #ffece7;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .55rem .85rem;
  border: 1px solid #fff2e938;
  border-radius: 999px;
  color: inherit;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.topbar a:hover { background: #fff2e91c; transform: translateY(-2px); }

.countdown-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  overflow: hidden;
  border: 1px solid #fff8f230;
  border-radius: 32px;
  background: var(--cream);
  box-shadow: 0 34px 100px #18050f80, 0 0 0 1px #fff9f314;
}

.love-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding: clamp(2.25rem, 6vw, 5.5rem);
  background: linear-gradient(145deg, #fffaf5 0%, #fff4ed 100%);
}

.eyebrow {
  align-self: flex-start;
  margin: 0 0 1.25rem;
  padding: .52rem .8rem;
  border: 1px solid #e5bec3;
  border-radius: 999px;
  background: #fbe4e3;
  color: #a24c66;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #4a1e31;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.3rem, 7.2vw, 6.7rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
}

h1 em { color: #a84665; font-weight: 400; }

.intro {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.love-art {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 460px;
  margin: 0;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #fff9f2 0, #f6d4d5 55%, transparent 56%),
    linear-gradient(155deg, #f0b9c2, #dc879d);
}

.love-art::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #fff9f3a6;
  border-radius: 24px;
  pointer-events: none;
}

.love-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 380px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px #70243d30);
}

.love-art figcaption {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  padding: .7rem 1.05rem;
  border: 1px solid #fff9f38a;
  border-radius: 999px;
  background: #fff9f34d;
  color: #762e48;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

.tiny-note {
  position: absolute;
  z-index: 2;
  color: #fff8f0b8;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  animation: float 3.4s ease-in-out infinite;
}

.note-one { top: 11%; left: 13%; font-size: 3.8rem; transform: rotate(-14deg); }
.note-two { right: 12%; bottom: 18%; font-size: 2.7rem; animation-delay: -1.4s; }

.timer-wrap {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-top: 1px solid #ecd4d4;
  background: linear-gradient(180deg, #fff9f4 0%, #fbe8e5 100%);
}

.timer-label {
  max-width: 38rem;
  margin: 0 0 1.15rem;
  color: #8d4a60;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.55rem, 2vw, 1.15rem);
  width: min(100%, 780px);
}

.time-box {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(1rem, 3vw, 1.65rem) .5rem 1rem;
  overflow: hidden;
  border: 1px solid #e1bbc0;
  border-radius: 20px;
  background: #fffdfa;
  box-shadow: 0 14px 30px #6a1e3b10;
}

.time-box::before {
  content: "♡";
  position: absolute;
  top: -.45rem;
  right: .2rem;
  color: #f0d7d961;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.1rem;
}

.time-box strong {
  color: #63223e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.05em;
}

.time-box span {
  margin-top: .55rem;
  color: #9b6070;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.countdown-actions {
  display: grid;
  justify-items: center;
  gap: .85rem;
  margin-top: 1.6rem;
}

.song-link,
.celebration-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: .9rem 1.35rem;
  border-radius: 14px;
  color: #fffaf6;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px #6a1e3b2e;
  transition: transform .18s ease, box-shadow .18s ease;
}

.song-link { background: linear-gradient(135deg, #963451, #681b3b); }
.celebration-link {
  min-height: 60px;
  padding-inline: 1.6rem;
  background: linear-gradient(135deg, #b35c38, #8b2d50);
  font-size: 1.08rem;
  animation: button-arrives .65s ease both, button-glow 1.8s ease-in-out .65s infinite;
}

.song-link:hover,
.celebration-link:hover { transform: translateY(-3px); box-shadow: 0 16px 28px #6a1e3b40; }

.countdown-finished .time-box {
  border-color: #c8758c;
  background: #fff3f1;
  animation: celebrate .8s ease both;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes celebrate {
  0% { transform: scale(.96); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes button-arrives {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes button-glow {
  0%, 100% { box-shadow: 0 12px 24px #6a1e3b2e, 0 0 0 0 #e1909670; }
  50% { box-shadow: 0 16px 30px #6a1e3b3d, 0 0 0 9px #e1909600; }
}

@media (max-width: 760px) {
  body { padding: 1rem; }
  .topbar { font-size: .67rem; }
  .countdown-card { grid-template-columns: 1fr; border-radius: 24px; }
  .love-copy { min-height: 0; padding: 2.25rem 1.5rem 2rem; }
  .love-art { min-height: 310px; padding: 1.25rem; }
  .love-art::after { inset: 11px; border-radius: 18px; }
  .love-art img { width: min(75vw, 290px); }
  .timer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timer-wrap { padding: 2rem 1.25rem 2.4rem; }
  .time-box strong { font-size: clamp(2.4rem, 14vw, 4rem); }
}

@media (max-width: 390px) {
  .topbar span { display: none; }
  h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
