@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/source-code-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050505;
  --bone: #f4f4f0;
  --instrument: min(26.5rem, 62vmin);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  color: var(--bone);
  cursor: crosshair;
}

html {
  background: #000;
}

body {
  font-family: "Source Sans 3", ui-sans-serif, sans-serif;
  font-weight: 400;
  overflow: hidden;
  background: radial-gradient(
    ellipse 75% 68% at 50% 46%,
    #070707 0%,
    var(--void) 52%,
    #000 100%
  );
}

main {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 3.25rem;
}

.lockup {
  display: block;
  width: min(17.5rem, 72vw);
  height: auto;
}

.instrument {
  position: relative;
  width: var(--instrument);
  aspect-ratio: 1;
  margin-top: 3.25rem;
  isolation: isolate;
}

.instrument canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.tracklet {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

#track-error {
  stroke-width: 1;
  stroke-opacity: 0.42;
}

#track-ghost,
#track-mark {
  stroke: #f4f4f0;
  stroke-width: 1;
}

#track-ghost {
  stroke-opacity: 0.45;
}

#track-mark {
  stroke-opacity: 0.85;
}

#track-ghost[hidden],
#track-mark[hidden] {
  display: none;
}

.track-eps {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 6;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--bone);
  opacity: 0.55;
  white-space: nowrap;
}

.track-eps[hidden] {
  display: none;
}

.ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fallback-ring {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px solid var(--bone);
  opacity: 0.72;
  pointer-events: none;
}

.instrument.is-live .fallback-ring {
  visibility: hidden;
}

.thesis {
  margin: 3.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.05vw, 1.25rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.mail {
  margin-top: 1.15rem;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-decoration: none;
}

.mail:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.mail:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

@media (max-width: 40rem) {
  main {
    padding: 3.25rem 1.1rem 2.5rem;
  }

  .instrument {
    margin-top: 2.5rem;
  }

  .thesis {
    margin-top: 2.5rem;
  }
}

@media (max-height: 44rem) {
  main {
    padding-block: 2rem;
  }

  .instrument {
    width: min(22rem, 52vmin);
    margin-top: 1.75rem;
  }

  .thesis {
    margin-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fallback-ring {
    transition: none;
  }
}
