:root {
  --paper: #f4f0e9;
  --grout: #fbfaf7;
  --tint-a: #ff9566;
  --tint-b: #a596ff;
  --hot: #ffb36e;
  --ink: #1c1917;
  --ink-soft: #57514b;
  --line: rgba(28, 25, 23, 0.1);
  --cta: #1c1917;
  --cta-ink: #fbf8f3;
  --font: "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(--font);
  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 WebGL: a still apricot and lilac gradient behind a grid of grout lines, in CSS */
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.85) 0 2px, transparent 2px 64px),
    radial-gradient(ellipse 40% 46% at 30% 36%, rgba(255, 149, 102, 0.55), transparent 70%),
    radial-gradient(ellipse 44% 50% at 72% 64%, rgba(165, 150, 255, 0.5), transparent 70%),
    var(--paper);
}

.glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
  opacity: 0;
}

/* a soft wash of paper behind the words, so the small text reads over the brightest blocks */
.veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse min(380px, 52%) min(230px, 34%) at 50% 50%, rgba(244, 240, 233, 0.62), rgba(244, 240, 233, 0.28) 55%, transparent 78%);
}

/* a still grain over the glass, so the soft gradient does not band */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero {
  width: min(640px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.4vh, 22px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.62);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -14px rgba(60, 40, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 100%;
}

.pill__text { overflow: hidden; text-overflow: ellipsis; }

.pill__tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cta-ink);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.01em;
}

.title {
  font-size: clamp(30px, min(9.4vw, 10.5vh), 84px);
  line-height: 0.96;
  font-weight: 620;
  font-stretch: 110%;
  letter-spacing: -0.045em;
  color: var(--ink);
  /* a soft paper halo keeps the letters clean over the brightest blocks */
  text-shadow: 0 0 1px rgba(244, 240, 233, 0.5), 0 2px 34px rgba(244, 240, 233, 0.7);
}

.lede {
  max-width: 36ch;
  font-size: clamp(13px, min(3.6vw, 2.2vh), 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: 0 1px 14px rgba(244, 240, 233, 0.95), 0 0 2px rgba(244, 240, 233, 0.8);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(2px, 0.8vh, 8px);
}

.cta {
  position: relative;
  display: inline-flex;
  height: clamp(38px, 6vh, 46px);
  padding: 0 clamp(16px, 2.2vh, 20px);
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-size: clamp(13px, 1.9vh, 15px);
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(28, 25, 23, 0.25),
    0 12px 28px -12px rgba(255, 120, 60, 0.6);
  -webkit-tap-highlight-color: transparent;
}

.cta__face {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.cta__row {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.cta__row--done { opacity: 0; }

.cta__arrow,
.cta__check {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a thin band of warm light that crosses the button when the light behind the wall reaches it */
.cta__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 179, 110, 0.3) 47%, rgba(255, 240, 220, 0.55) 50%, rgba(255, 179, 110, 0.3) 53%, transparent 70%);
  transform: translateX(-110%);
}

.cta:focus-visible { outline: 2px solid var(--tint-a); outline-offset: 3px; }

.note {
  font-size: clamp(11px, 1.6vh, 13px);
  color: var(--ink-soft);
  text-shadow: 0 1px 10px rgba(244, 240, 233, 0.95);
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  fill: #fff;
  stroke: #1c1917;
  stroke-width: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  z-index: 5;
}
