:root {
  color-scheme: light;
  color: #252322;
  background: #f8f7f3;
  font: 16px/1.5 system-ui, sans-serif;
}

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.splash {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.splash h1 {
  width: min(100%, 7rem);
  margin: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.connection {
  display: grid;
  justify-items: center;
  align-content: start;
  width: min(100%, 20rem);
  margin-top: 1.6rem;
}

.loading {
  width: 7rem;
  height: .2rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #e3ded7;
}

.loading span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: #e14b41;
  animation: connect 1.35s ease-in-out infinite alternate;
}

@keyframes connect {
  from { transform: translateX(0); }
  to { transform: translateX(110%); }
}

p {
  margin: .8rem 0 0;
  color: #655e59;
  font-size: .9rem;
}

button {
  margin-top: .75rem;
  padding: .5rem 1rem;
  border: 1px solid #d9d3cb;
  border-radius: .65rem;
  color: #252322;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

footer {
  grid-row: 3;
  align-self: end;
  padding: 0 1.25rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .82rem;
}

a {
  color: #655e59;
  text-underline-offset: .22em;
}

:focus-visible { outline: 2px solid #be4037; outline-offset: 4px; }
[hidden] { display: none; }
.connection-failed .loading { display: none; }

@media (prefers-reduced-motion: reduce) {
  .loading span { width: 100%; animation: none; }
}
