:root {
  --paper: #123c6e;        /* cyanotype blue, the sheet */
  --paper-deep: #0d2f59;   /* the darker edge of the sheet */
  --line: #f4f8ff;         /* the white of every line and word */
  --line-soft: rgba(244, 248, 255, 0.72);
  --line-faint: rgba(244, 248, 255, 0.34);
  --accent: #ffd37a;       /* the only accent: the pointer's sight and the rolling figures */
  --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(--line);
  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;
  cursor: crosshair;
  /* what is left without canvas: the same grid, still, in CSS */
  background:
    linear-gradient(rgba(244, 248, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 248, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(120% 90% at 50% 45%, var(--paper) 40%, var(--paper-deep) 100%);
}

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

/* a light grain, so the blue reads as paper soaked in ink and not as a screen */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  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 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* registration marks in the corners, as on a printed sheet */
.reg {
  position: absolute;
  width: clamp(16px, 3.4vmin, 28px);
  height: clamp(16px, 3.4vmin, 28px);
  pointer-events: none;
  opacity: 0;
  border: 1px solid var(--line-faint);
  border-radius: 50%;
}
.reg::before, .reg::after {
  content: "";
  position: absolute;
  background: var(--line-faint);
}
.reg::before { left: -35%; right: -35%; top: 50%; height: 1px; transform: translateY(-0.5px); }
.reg::after { top: -35%; bottom: -35%; left: 50%; width: 1px; transform: translateX(-0.5px); }
.reg--tl { top: clamp(14px, 3.6vmin, 30px); left: clamp(14px, 3.6vmin, 30px); }
.reg--tr { top: clamp(14px, 3.6vmin, 30px); right: clamp(14px, 3.6vmin, 30px); }
.reg--bl { bottom: clamp(14px, 3.6vmin, 30px); left: clamp(14px, 3.6vmin, 30px); }
.reg--br { bottom: clamp(14px, 3.6vmin, 30px); right: clamp(14px, 3.6vmin, 30px); }

.hero {
  width: min(640px, 100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 2.4vh, 20px);
  position: relative;
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.7em;
  font-size: clamp(10px, min(1.7vh, 2.4vw), 13px);
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker__soft { color: var(--line-faint); font-weight: 520; }

.title {
  font-weight: 760;
  font-stretch: 125%;
  font-size: min(11vw, 10.5vh, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--line);
}
.title__line { display: inline-block; }

.lede {
  max-width: 34ch;
  font-size: clamp(12px, min(2.1vh, 3.4vw), 17px);
  line-height: 1.45;
  font-weight: 430;
  color: var(--line-soft);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: clamp(9px, min(1.4vh, 2.5vw), 11.5px);
  letter-spacing: 0.04em;
  color: var(--line-faint);
  white-space: nowrap;
}
.meta__rule { width: 18px; height: 1px; background: var(--line-faint); }
.meta__read { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 17ch; text-align: left; }

@media (max-width: 520px) {
  .meta > :nth-child(2), .meta > :nth-child(3) { display: none; }
}
