:root {
  --bg: #fbf4ec;
  --surface: #ffffff;
  --text: #3b2f2a;
  --muted: #8a776c;
  --accent: #d9776a;
  --halo: #f3e1d3;
  --baby: #fde8e1;
  --mother: #e9eefb;
  --shadow: 0 6px 20px rgb(120 80 60 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a17;
    --surface: #2a2420;
    --text: #f3e9e1;
    --muted: #b5a397;
    --accent: #f0998b;
    --halo: #3a302a;
    --baby: #3b2a27;
    --mother: #262c3b;
    --shadow: none;
  }
}

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

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding:
    max(16px, env(safe-area-inset-top)) 16px
    max(16px, env(safe-area-inset-bottom));
}

.day {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2dvh, 16px);
}

.day[hidden], .message[hidden] { display: none; }

.term { text-align: center; }

.term__label, .item__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.term__value {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 2.6rem);
  line-height: 1.1;
}

.term__left { color: var(--muted); font-size: 0.9rem; }

.item {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.item__stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
}

.item__art {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, transparent 70%);
  animation: grow 900ms cubic-bezier(.2, .9, .3, 1.3) both;
}

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

@keyframes grow {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .item__art { animation: none; }
}

.item__name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 7.5vw, 2.2rem);
  line-height: 1.15;
  color: var(--accent);
}

.item__size {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.item__real {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed var(--muted);
}

.item__real[hidden] { display: none; }

.facts { display: grid; gap: 10px; }

.fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: clamp(0.9rem, 3.9vw, 1rem);
  line-height: 1.4;
}

.fact--baby { background: var(--baby); }
.fact--mother { background: var(--mother); }
.fact__icon { font-size: 1.3rem; line-height: 1.2; }

.message {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
}

.message__emoji { font-size: 4rem; }

.message__text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  max-width: 20ch;
}

/* Day arrows, shown only when the page is served locally. */
.dev-nav[hidden] { display: none; }

.dev-nav__button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 56px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.35;
  cursor: pointer;
}

.dev-nav__button:hover, .dev-nav__button:focus-visible { opacity: 1; }
.dev-nav__button--prev { left: 0; }
.dev-nav__button--next { right: 0; }
