:root {
  --paper: #f3eee5;
  --paper-deep: #e9e2d5;
  --ink: #1d2540;
  --ink-soft: rgba(29, 37, 64, 0.62);
  --ink-faint: rgba(29, 37, 64, 0.28);
  --accent: #e0472b;
  --serif: "Newsreader Variable", "Newsreader", Georgia, serif;
  --sans: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
}

* { 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;
  /* what is left without canvas: the same screen of dots, still, in CSS */
  background:
    radial-gradient(circle, rgba(29, 37, 64, 0.22) 1.6px, transparent 2.2px) 0 0 / 13px 13px,
    var(--paper);
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  background: var(--paper);
}

/* a fine paper grain over the ink, so the dots sit on paper and not on a screen */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .33  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* crop marks in the corners, as on a printer's proof */
.crop {
  position: absolute;
  width: clamp(14px, 3vmin, 26px);
  height: clamp(14px, 3vmin, 26px);
  pointer-events: none;
  opacity: 0;
}
.crop::before, .crop::after {
  content: "";
  position: absolute;
  background: var(--ink-faint);
}
.crop::before { width: 100%; height: 1px; }
.crop::after { width: 1px; height: 100%; }
.crop--tl { top: clamp(12px, 3.5vmin, 28px); left: clamp(12px, 3.5vmin, 28px); }
.crop--tr { top: clamp(12px, 3.5vmin, 28px); right: clamp(12px, 3.5vmin, 28px); }
.crop--tr::after { right: 0; }
.crop--bl { bottom: clamp(12px, 3.5vmin, 28px); left: clamp(12px, 3.5vmin, 28px); }
.crop--bl::before { bottom: 0; }
.crop--br { bottom: clamp(12px, 3.5vmin, 28px); right: clamp(12px, 3.5vmin, 28px); }
.crop--br::before { bottom: 0; }
.crop--br::after { right: 0; }

.hero {
  width: min(620px, 100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.6vh, 22px);
  /* a soft clearing of paper behind the words, so the dots never fight the type */
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 238, 229, 0.55) 30%, rgba(243, 238, 229, 0) 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker__mark {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.kicker__mark::before, .kicker__mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.kicker__mark::before { left: -4px; right: -4px; top: 50%; height: 1px; transform: translateY(-0.5px); }
.kicker__mark::after { top: -4px; bottom: -4px; left: 50%; width: 1px; transform: translateX(-0.5px); }

.title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: min(10.5vw, 9.6vh, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.title em {
  font-style: italic;
  font-weight: 340;
  color: var(--accent);
}

.lede {
  max-width: 34ch;
  font-size: clamp(13px, 2vh, 17px);
  line-height: 1.45;
  color: var(--ink-soft);
  font-variation-settings: "wdth" 96;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10px, 1.5vh, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.meta__rule { width: 18px; height: 1px; background: var(--ink-faint); }

@media (max-width: 480px) {
  .meta { gap: 7px; letter-spacing: 0.05em; }
  .meta__rule { width: 10px; }
}
