:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  --night-0: #05070f;
  --night-1: #0a1020;
  --night-2: #17152a;
  --ink: #f4eee5;
  --muted: #c9c0b6;
  --gold: #e5c38e;
  --gold-soft: rgba(229, 195, 142, .48);
  --rose: #cf9c9f;
  --glass: rgba(11, 14, 26, .42);
  --line: rgba(244, 238, 229, .14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night-0);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(117, 99, 154, .21), transparent 34rem),
    radial-gradient(circle at 20% 80%, rgba(121, 75, 70, .14), transparent 38rem),
    linear-gradient(180deg, var(--night-1), var(--night-0) 68%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .18;
  background-image:
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 3px,
      rgba(255,255,255,.018) 4px
    );
  mix-blend-mode: soft-light;
}

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.moon {
  position: absolute;
  width: min(28vw, 21rem);
  aspect-ratio: 1;
  right: clamp(3rem, 11vw, 12rem);
  top: clamp(2rem, 7vh, 6rem);
  border-radius: 50%;
  opacity: .88;
  background:
    radial-gradient(circle at 35% 35%, #fff9e6 0 7%, transparent 8%),
    radial-gradient(circle at 66% 58%, rgba(195, 177, 145, .13) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, #fff4d3 0 53%, #ead8ad 72%, #cab583 100%);
  box-shadow:
    0 0 3rem rgba(239, 217, 174, .24),
    0 0 9rem rgba(239, 217, 174, .12);
}

.stars {
  position: absolute;
  inset: -20%;
  opacity: .65;
  background-repeat: repeat;
  animation: drift-stars 75s linear infinite;
}

.stars-a {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px);
  background-size: 83px 91px;
}

.stars-b {
  opacity: .35;
  background-image:
    radial-gradient(circle, rgba(255,239,202,.95) 0 1.2px, transparent 1.6px);
  background-size: 137px 153px;
  animation-duration: 105s;
  animation-direction: reverse;
}

.stars-c {
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(203,218,255,.9) 0 .8px, transparent 1.3px);
  background-size: 53px 67px;
  animation-duration: 135s;
}

@keyframes drift-stars {
  to { transform: translate3d(5%, 2.5%, 0); }
}

.tree-scene {
  position: absolute;
  width: min(54vw, 46rem);
  height: auto;
  left: max(-10rem, -8vw);
  bottom: -2rem;
  opacity: .87;
  filter: drop-shadow(0 2rem 2.5rem rgba(0,0,0,.42));
  transform-origin: 44% 100%;
}

.tree {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: tree-sway 7.8s ease-in-out infinite alternate;
}

@keyframes tree-sway {
  0%   { transform: rotate(-.65deg) translateX(-1px); }
  45%  { transform: rotate(.45deg) translateX(1px); }
  100% { transform: rotate(1.1deg) translateX(3px); }
}

.trunk,
.branch {
  fill: #141610;
  stroke: #16170f;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch {
  fill: none;
  stroke-width: 22;
}

.crown {
  transform-box: fill-box;
  transform-origin: 50% 70%;
}

.crown-back {
  fill: #101a16;
  opacity: .88;
  animation: crown-sway 5.9s ease-in-out infinite alternate;
}

.crown-front {
  fill: #15251d;
  opacity: .91;
  animation: crown-sway 4.7s ease-in-out infinite alternate-reverse;
}

@keyframes crown-sway {
  from { transform: translateX(-4px) rotate(-.7deg); }
  to   { transform: translateX(7px) rotate(.8deg); }
}

.leaves {
  fill: #9f8665;
  opacity: .55;
  animation: leaf-drift 5s ease-in-out infinite alternate;
}

@keyframes leaf-drift {
  from { transform: translate(-2px, 0) rotate(-2deg); }
  to   { transform: translate(10px, 8px) rotate(7deg); }
}

.ground {
  fill: #090c0a;
  opacity: .95;
}

.haze {
  position: absolute;
  inset: auto -20% -10% -20%;
  height: 45vh;
  opacity: .35;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(170,145,119,.15), transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(105,114,148,.12), transparent 50%);
  filter: blur(18px);
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 7rem) 1.25rem;
}

.hero {
  width: min(48rem, 100%);
  margin-left: clamp(0rem, 14vw, 15rem);
  text-align: center;
  text-shadow: 0 2px 2rem rgba(0,0,0,.5);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(.68rem, 1.1vw, .82rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.2rem, 8.5vw, 7.7rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.intro,
.promise,
.after-text {
  margin-inline: auto;
  max-width: 42rem;
  text-wrap: balance;
}

.intro {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.42rem);
  line-height: 1.75;
}

.intro-secondary {
  margin-top: .55rem;
  color: var(--muted);
  font-size: clamp(.98rem, 1.8vw, 1.22rem);
}

.divider {
  width: min(19rem, 70%);
  margin: clamp(2.2rem, 5vw, 3.6rem) auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .85rem;
  color: var(--gold);
}

.divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.divider span:last-child {
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.divider i {
  font-style: normal;
  font-size: .72rem;
  opacity: .9;
}

.promise {
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.promise em {
  color: var(--ink);
  font-size: 1.08em;
}

.promise-step {
  margin-top: 1.3rem;
}

.promise-step strong {
  color: var(--ink);
  font-weight: 400;
  font-style: italic;
}

.countdown {
  width: min(51rem, 100%);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    var(--glass);
  box-shadow:
    0 1.8rem 5rem rgba(0,0,0,.28),
    inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.countdown-label {
  margin: 0;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.target-date {
  margin: .7rem 0 0;
  color: rgba(244,238,229,.55);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.75rem, 1.5vw, .92rem);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.4rem, 1.4vw, .9rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.time-card {
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.35rem) .35rem;
  border-radius: .9rem;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}

.time-card strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.65rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-card span {
  display: block;
  margin-top: .65rem;
  color: rgba(244,238,229,.52);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.58rem, 1.2vw, .72rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status {
  min-height: 1.3em;
  margin: 1.2rem 0 0;
  color: var(--gold);
  font-style: italic;
}

.after {
  margin: clamp(3rem, 7vw, 5rem) auto 0;
}

.after-kicker {
  margin: 0;
  color: var(--rose);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
}

.after-text {
  margin-top: .9rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.after-text strong {
  color: var(--ink);
  font-weight: 400;
}

.signature {
  margin: clamp(2.8rem, 6vw, 4rem) 0 0;
  color: var(--gold);
  font-size: clamp(.95rem, 2vw, 1.14rem);
  font-style: italic;
  opacity: .9;
}

noscript {
  position: fixed;
  z-index: 50;
  left: 1rem;
  bottom: 1rem;
  padding: .75rem 1rem;
  background: #000;
  color: #fff;
}

/* Smaller laptops / tablets */
@media (max-width: 60rem) {
  .tree-scene {
    width: min(67vw, 39rem);
    left: -14rem;
    opacity: .68;
  }

  .hero {
    margin-left: clamp(0rem, 8vw, 5rem);
  }

  .moon {
    width: min(33vw, 16rem);
    right: 4vw;
  }
}

/* Phones */
@media (max-width: 42rem) {
  .page {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero {
    margin-left: 0;
  }

  .tree-scene {
    width: 30rem;
    left: -16rem;
    bottom: -4rem;
    opacity: .43;
  }

  .moon {
    width: 10rem;
    right: -2rem;
    top: 1.2rem;
    opacity: .62;
  }

  .timer {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown {
    padding-inline: .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tree,
  .crown-back,
  .crown-front,
  .leaves,
  .stars {
    animation: none !important;
  }
}


/* ---- Personal Easter eggs ---- */

.nightingale {
  fill: #0b0d0d;
  opacity: .72;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
  cursor: default;
}

.nightingale:hover,
.nightingale:focus {
  opacity: 1;
  transform: scale(1.07) rotate(-2deg);
  filter: drop-shadow(0 0 .4rem rgba(229,195,142,.22));
  outline: none;
}

.secret-33 {
  fill: rgba(229,195,142,.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  letter-spacing: .08em;
  user-select: none;
}

.secret-star {
  position: relative;
  margin: 1.1rem auto -.15rem;
  padding: .25rem .65rem;
  border: 0;
  background: transparent;
  color: rgba(229,195,142,.68);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  transition: transform .3s ease, color .3s ease, text-shadow .3s ease;
}

.secret-star:hover,
.secret-star:focus {
  color: var(--gold);
  transform: scale(1.15);
  text-shadow: 0 0 1.1rem rgba(229,195,142,.38);
  outline: none;
}

.secret-star span {
  position: absolute;
  left: 50%;
  top: calc(100% + .4rem);
  width: max-content;
  max-width: 15rem;
  transform: translate(-50%, .2rem);
  opacity: 0;
  pointer-events: none;
  color: rgba(244,238,229,.7);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .65rem;
  font-style: normal;
  letter-spacing: .07em;
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}

.secret-star:hover span,
.secret-star:focus span {
  opacity: .82;
  transform: translate(-50%, 0);
}

.whisper {
  margin: .7rem 0 -.15rem;
  color: rgba(229,195,142,.13);
  font-size: .68rem;
  font-style: italic;
  letter-spacing: .08em;
  transition: color .4s ease;
  user-select: none;
}

.countdown:hover .whisper {
  color: rgba(229,195,142,.36);
}

.secret-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 1rem 1.5rem;
  text-align: center;
  color: rgba(244,238,229,.08);
  font-size: .72rem;
  font-style: italic;
  letter-spacing: .03em;
  transition: color .6s ease;
  user-select: none;
}

.secret-footer:hover {
  color: rgba(244,238,229,.3);
}

@media (max-width: 42rem) {
  .secret-star span {
    max-width: 11rem;
    white-space: normal;
  }

  .secret-33 {
    opacity: .7;
  }
}
