:root {
  --paper: #f4f1ec;
  --c1: #95d6b8;   /* sage mint */
  --c2: #86aef0;   /* soft sky */
  --c3: #c0a3f4;   /* lavender */
  --c4: #f8bb92;   /* apricot */
  --accent: #ff5a36;   /* the one accent: the grabbed point */
  --line: rgba(255, 255, 255, 0.72);
  --ink: #15171c;
  --ink-soft: rgba(21, 23, 28, 0.62);
  --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;
  height: 100lvh;
  max-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  touch-action: none;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  cursor: default;
}
.field.is-over { cursor: grab; }
.field.is-drag { cursor: grabbing; }

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  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(620px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vh, 20px);
  text-align: center;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 18px -10px rgba(21, 23, 28, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(11px, 1.8vh, 13px);
  font-weight: 500;
  font-stretch: 105%;
  color: var(--ink-soft);
}
.pill__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.title {
  font-size: clamp(30px, min(8.4vw, 11.5vh), 84px);
  line-height: 0.98;
  font-weight: 640;
  font-stretch: 88%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 1.8vh, 13px);
  font-weight: 500;
  color: var(--ink-soft);
  font-stretch: 105%;
}
.hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reset {
  pointer-events: auto;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.08) inset;
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}
.reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reset:active { transform: scale(0.94); }
@media (hover: hover) {
  .reset:hover { background: rgba(255, 255, 255, 0.85); }
}

@media (max-width: 560px) {
  .title { font-stretch: 82%; }
}
