:root {
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html, body { height: 100%; }

body {
  box-sizing: border-box;
  margin: 0;
  padding: 24px;
  background: #fff;
  color: #111;
  font: 400 clamp(18px, 3vw, 28px)/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  text-align: center;
}

p { margin: 0; }
a { color: inherit; }

.line { color: #666; text-wrap: balance; }

input {
  font: inherit;
  width: 4.5em;
  text-align: center;
  color: #111;
  background: none;
  border: 0;
  border-bottom: 2px solid #111;
}

input:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

/* Sized so "$12,345.67" fits a phone: the six digits are the wide part
   (~3.4em at tabular widths), the dollar sign and cents are scaled down,
   ≈ 4.8em × 17vw ≈ 82vw. */
.figure {
  font-size: clamp(60px, 17vw, 300px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.figure small { font-size: 0.4em; vertical-align: super; }

/* Until the price series arrives (~8 s on the first visit of a day). */
.waiting { opacity: 0.2; }
