:root {
  --creme: #fff6ee;
  --papel: #fffaf6;
  --tinta: #102448;
  --suave: #5c6484;
  --lavanda: #8066d2;
  --pessego: #d75f30;
  --fronteira: #8066d2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --creme: #15122b;
    --papel: #1e1a3a;
    --tinta: #f4f1ff;
    --suave: #b9b2d8;
    --lavanda: #a78bde;
    --pessego: #ff9f78;
    --fronteira: #a78bde;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 2.5rem;
  background: var(--creme);
  color: var(--tinta);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 33rem;
  text-align: center;
}

/* O bebé dentro do símbolo está a dormir. É a única coisa que se mexe. */
.marca {
  width: 9rem;
  height: 9rem;
  animation: respirar 4.5s ease-in-out infinite;
}
@keyframes respirar {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marca {
    animation: none;
  }
}

/* A contagem é uma frase, não um painel: as mães contam o tempo em
   semanas e dias, não em horas e segundos. */
.contagem {
  margin: 1.5rem 0 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 7.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.contagem b {
  font-weight: 700;
  font-size: 1.32em;
  letter-spacing: -0.04em;
  margin: 0 0.04em;
}

.data {
  margin: 1.35rem 0 0;
  font-size: 1.1875rem;
}

.entrada {
  margin: 0.75rem auto 0;
  max-width: 27rem;
  color: var(--suave);
}

.ajuda {
  margin: 2.75rem auto 0;
  max-width: 29rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--papel);
  border: 1px solid var(--fronteira);
  border-radius: 1.25rem;
  font-size: 1rem;
}
.ajuda p {
  margin: 0.3rem 0 0;
  color: var(--suave);
}
.ajuda a {
  color: var(--lavanda);
  font-weight: 600;
  white-space: nowrap;
}
.ajuda a.urgente {
  color: var(--pessego);
}

.voltar {
  display: inline-block;
  margin-top: 2rem;
  color: var(--lavanda);
}

a:focus-visible {
  outline: 2px solid var(--lavanda);
  outline-offset: 3px;
  border-radius: 4px;
}
