:root {
  --brand: #2c4a8a;
  --brand-dark: #1f3670;
  --paper: #faf8f5;
  --ink: #1d2433;
  --muted: #5b6475;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  overflow: hidden;
}

#site {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.offline {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--paper);
}

.offline[hidden] {
  display: none;
}

.offline img {
  border-radius: 22%;
  box-shadow: 0 4px 16px rgb(44 74 138 / 0.25);
}

.offline h1 {
  margin: 8px 0 0;
  font-size: 1.35rem;
}

.offline p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.offline button {
  margin-top: 12px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.offline button:hover {
  background: var(--brand-dark);
}

.offline button:focus-visible {
  outline: 3px solid #9bb6ee;
  outline-offset: 2px;
}

.offline button:disabled {
  cursor: progress;
  opacity: 0.7;
}
