@font-face {
  font-family: "Hanken Grotesk";
  src: url(fonts/hanken-grotesk-latin-wght.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(fonts/ibm-plex-mono-latin-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #0c0d0d;
  --ink: #ece9e2;
  --dim: #96948c;
  --line: rgba(236, 233, 226, 0.16);
  --signal: #ff4f00;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px / 1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}
h1,
h2,
p,
ol {
  margin: 0;
  padding: 0;
}
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.n,
.label,
.state,
.tag,
.readout {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 20px;
}
.brand {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 24px;
  min-height: clamp(560px, 52vw, 760px);
  padding-bottom: clamp(28px, 4vw, 56px);
}
.hero-words {
  position: relative;
  z-index: 2;
  padding-bottom: 6px;
}
h1 {
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin-top: 22px;
  max-width: 25em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.35;
  color: var(--dim);
}
.bench {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: clamp(420px, 46vw, 700px);
}
.canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
}
.canvas:active {
  cursor: grabbing;
}
.canvas canvas {
  display: block;
}
.readout {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--dim);
}
.readout label {
  white-space: nowrap;
}
.readout output {
  color: var(--ink);
  min-width: 3ch;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(150px, 18vw, 260px);
  height: 28px;
  background: transparent;
  cursor: ew-resize;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--dim);
}
input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--dim);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 22px;
  margin-top: -11px;
  background: var(--ink);
  border: 0;
  border-radius: 2px;
}
input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 22px;
  background: var(--ink);
  border: 0;
  border-radius: 2px;
}

/* sheets */
.sheet {
  border-top: 1px solid var(--line);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  padding-block: clamp(40px, 6vw, 88px);
}
.label {
  font-weight: 400;
  color: var(--dim);
}
.method li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding-block: 18px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.method li:first-child {
  border-top: 0;
  padding-top: 0;
}
.method p {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.n {
  color: var(--dim);
}

.log {
  border-bottom: 1px solid var(--line);
}
.entry {
  border-top: 1px solid var(--line);
}
.entry summary,
.entry-empty {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0;
  padding-block: 18px;
}
.entry summary {
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}
.entry summary::-webkit-details-marker {
  display: none;
}
.entry summary:hover .name,
.entry summary[data-hot] .name {
  color: var(--signal);
}
.name {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  transition: color 0.15s;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}
.entry-empty .name,
.entry-empty .state {
  color: var(--dim);
}
.body {
  padding: 0 0 26px 56px;
  max-width: 44em;
  display: grid;
  gap: 12px;
}
.dim {
  color: var(--dim);
}

.end .grid {
  padding-block: 28px 40px;
}

/* the cursor that works here */
.bot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 0.35s;
}
.bot-arrow {
  position: absolute;
  left: -4px;
  top: -4px;
  display: block;
  transition: transform 0.1s;
}
.bot[data-press] .bot-arrow {
  transform: scale(0.88);
}
.bot-tag {
  position: absolute;
  left: 22px;
  top: 24px;
  white-space: nowrap;
  background: var(--signal);
  color: #0c0d0d;
  font: 400 11px / 1 var(--mono);
  padding: 3px 5px;
  border-radius: 2px;
}
.bot-dot {
  display: none;
}
.bot[data-touch] .bot-arrow,
.bot[data-touch] .bot-tag {
  display: none;
}
.bot[data-touch] .bot-dot {
  display: block;
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(236, 233, 226, 0.35);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.bot[data-touch][data-press] .bot-dot {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 8px;
  }
  .bench {
    min-height: 440px;
  }
  .readout {
    left: 0;
    right: 0;
    justify-content: space-between;
  }
  input[type="range"] {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
