/* The holdback page. Self-hosted on purpose: a denial page that pulled
   stylesheet or script from a CDN would be handing that origin a privileged
   context on the one route a client is guaranteed to load. */

:root {
  --bg: #0f1115;
  --fg: #e8eaed;
  --dim: #9aa0a6;
  --bar: #2a2f3a;
  --accent: #6ee7b7;
  --warn: #fca5a5;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --fg: #1a1d21;
    --dim: #5f6672;
    --bar: #dfe3e9;
    --accent: #0f9d76;
    --warn: #b42318;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 2rem 1.25rem;
}

main { width: min(34rem, 100%); }

h1 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  margin: 0 0 .5rem;
  letter-spacing: -0.01em;
}

.sub { color: var(--dim); margin: 0 0 1.75rem; }

/* Progress. A plain bar, not a `progressbar` role: it repeats the count printed
   next to it, and a progressbar whose value only exists in CSS is one a screen
   reader announces as stuck at nothing. The numbers are in the description list
   above it, where they are already the content. */
.bar {
  height: 8px;
  background: var(--bar);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .fill { transition: none; }
}

dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

dl div { display: flex; flex-direction: column; gap: .2rem; }

dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dim);
}

dd {
  margin: 0;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.eta {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.miner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid var(--bar);
  border-radius: .6rem;
  color: var(--dim);
  font-size: .9rem;
}

.miner #count { color: var(--fg); font-variant-numeric: tabular-nums; }

.warn {
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  border-radius: .6rem;
  border: 1px solid currentColor;
  color: var(--warn);
  font-size: .9rem;
}
