:root {
  --bg: #f6ece8;
  --card: #ffffff;
  --text: #2b2326;
  --muted: #7a6a6f;
  --accent: #c8607a;
  --accent-soft: #f8e1e7;
  --line: #eadcd8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a1c;
    --card: #2a2326;
    --text: #f3e9ec;
    --muted: #b09ea4;
    --accent: #ec8fa6;
    --accent-soft: #3d2c32;
    --line: #3a3034;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.06);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.age {
  margin: 8px 0 4px;
  font-size: clamp(3.5rem, 18vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.age small {
  font-size: 0.45em;
  font-weight: 600;
  margin: 0 0.2em 0 0.05em;
  color: var(--muted);
}

.trimester {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0;
}

.facts div {
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.size {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.size-emoji {
  display: block;
  font-size: 2.5rem;
  line-height: 1.2;
}

.size p {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.size[hidden] { display: none; }
