:root {
  --paper: #f3f0ed;      /* the ivory of the page */
  --paper-deep: #e9e3dc; /* the slightly darker corners */
  --ink: #1c1714;        /* the ink of the title and the text */
  --ink-wet: #070504;    /* the edge of the ink while it is still wet */
  --accent: #8c4a32;     /* the sienna of the word in italic */
  --muted: #7d736c;      /* small text */
  --line: rgba(28, 23, 20, 0.16);
  --serif: 'Bodoni Moda Variable', 'Bodoni 72', 'Didot', Georgia, serif;
  --sans: 'Instrument Sans Variable', 'Helvetica Neue', Arial, 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;
  height: 100vh;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 3.2vmin, 34px) clamp(16px, 4vw, 48px);
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 55%, var(--paper-deep) 130%),
    var(--paper);
  overflow: hidden;
}

.head, .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(10px, min(1.3vw, 2.6vh), 13px);
  letter-spacing: 0.01em;
}

.brand { display: flex; align-items: center; gap: 0.6em; font-weight: 500; }
.brand__mark { width: 1.6em; height: 1.6em; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }

.replay {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1em 0.55em 0.85em;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(28, 23, 20, 0.05);
  transition: background-color 0.3s, border-color 0.3s;
}
.replay__icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.replay:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .replay:hover { background: rgba(255, 255, 255, 0.75); border-color: rgba(28, 23, 20, 0.28); }
}

.hero {
  align-self: center;
  justify-self: center;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(10px, 2.4vh, 24px);
}

.title { position: relative; width: 100%; max-width: 1240px; }
.title__ink { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.title__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, min(11vw, 15vh), 168px);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.01em;
}
.title__text em { color: var(--accent); }
/* with WebGL the text stays for screen readers and the canvas draws it */
.has-ink .title__text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.no-ink .title__ink { display: none; }
.no-ink .title__text .ch { display: inline-block; }

.rule {
  display: block;
  width: min(120px, 24vw);
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
  transform: scaleX(0);
}

.lede {
  max-width: 34em;
  text-align: center;
  font-size: clamp(11px, min(1.7vw, 3vh), 17px);
  line-height: 1.5;
  color: var(--muted);
  padding: 0 0.5em;
}
.lede .w { display: inline-block; opacity: 0; }

.foot { color: var(--muted); }
.foot span { opacity: 0; }
