:root {
  --paper: #f5f2ec;        /* warm paper, the page */
  --paper-deep: #ebe6dd;   /* the slightly darker edge of the page */
  --ink: #1d1c1a;          /* the words and the hairlines */
  --ink-soft: rgba(29, 28, 26, 0.62);
  --ink-faint: rgba(29, 28, 26, 0.38);
  --accent: #2d4fd6;       /* the only accent: the cell under the pointer and the raised count */
  --face-top: #fffefb;     /* the top face of a cube */
  --face-left: #e6dfd2;    /* the left face, in the light */
  --face-right: #d3c9b9;   /* the right face, in the shade */
  --sans: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  background: radial-gradient(120% 90% at 50% 45%, var(--paper) 45%, var(--paper-deep) 100%);
}

.sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

/* a light grain, so the paper reads as paper */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .37  0 0 0 0 .33  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero {
  position: relative;
  text-align: center;
  padding: 0 clamp(16px, 4vmin, 40px);
  max-width: min(92vw, 760px);
  pointer-events: none;
}

.kicker {
  font-family: var(--mono);
  font-size: clamp(9px, 1.5vmin, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(10px, 2.4vmin, 22px);
}

.kicker__soft { color: var(--ink-faint); margin-left: 0.8em; }

.title {
  font-size: clamp(30px, min(9vw, 11vh), 104px);
  font-weight: 560;
  font-stretch: 92%;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.title__line { display: inline-block; }

.lede {
  margin: clamp(10px, 2.4vmin, 22px) auto 0;
  max-width: 34ch;
  font-size: clamp(12px, 2vmin, 17px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-top: clamp(12px, 3vmin, 28px);
  font-family: var(--mono);
  font-size: clamp(8px, 1.35vmin, 11px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.meta__rule { width: clamp(12px, 3vmin, 28px); height: 1px; background: currentColor; opacity: 0.6; }

[data-read] { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 8.5ch; text-align: left; }

@media (max-width: 420px) {
  .kicker__soft { display: block; margin: 0.5em 0 0; }
  .meta { gap: 0.6em; }
}
