/*
 * O primeiro quadro, antes do código da tela: carregado no <head>, pinta já.
 * Na volta do login, a página nasce na abertura — o mar, a rosa no norte,
 * "Entrando…" —, a mesma em que o provedor saiu e a mesma que a tela vai
 * mostrar: uma cópia em HTML puro (`index.html`), no lugar exato da de
 * `componentes/abertura`, que monta por cima dela. Quem marca a volta é
 * `inicio.js`; a tela desmarca quando a dela já cobre esta.
 */
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-display: block;
  src: url(/fontes/barlow-400.woff2) format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 700;
  font-display: block;
  src: url(/fontes/barlow-700.woff2) format("woff2");
}

html[data-voltando],
html[data-voltando] body {
  margin: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #c9dfeb, #b9d2e0 60%, #a9c5d6) fixed;
}

.inicio {
  display: none;
}

/* as medidas são as de `abertura.css`, com os tokens por extenso: nada daquilo está carregado ainda */
html[data-voltando] .inicio {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  font-family: "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #c9dfeb, #b9d2e0 60%, #a9c5d6);
}

.inicio-malha {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(oklch(83% 0.03 230 / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, oklch(83% 0.03 230 / 0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
}

.inicio-centro {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.inicio-rosa {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: oklch(99.4% 0.004 225 / 0.97);
  box-shadow: 0 10px 40px -10px oklch(24% 0.045 258 / 0.35);
  color: oklch(24% 0.045 258);
}

.inicio-rosa .norte {
  fill: oklch(50% 0.21 356);
}

.inicio-marca {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 22px;
  /* o atalho \`font:\` da abertura zera a altura da linha */
  line-height: normal;
  letter-spacing: -0.01em;
  color: oklch(24% 0.045 258);
}

.inicio-etapa {
  margin: 0;
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.5;
  color: oklch(38% 0.04 255);
}

.inicio-passos {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.inicio-passos li {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: oklch(24% 0.045 258 / 0.14);
}

/* "Entrando" é o primeiro passo: o traço dele já tem o magenta, parado no começo da corrida */
.inicio-passos li:first-child {
  background: linear-gradient(90deg, oklch(50% 0.21 356) 40%, oklch(24% 0.045 258 / 0.14) 40%);
  background-size: 250% 100%;
  background-position: 100% 0;
}
