@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, "Cascadia Code", monospace;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
}

.band-top { top: 25%; }
.band-bot { top: 75%; }

.wordmark {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}

.tagline {
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 8px;
}

.email {
  display: inline-block;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
}

.email:hover {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.email:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 1px;
}

#event {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

main {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

#event path {
  stroke: #fff;
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  opacity: var(--opacity, 1);
}

#event path.draw {
  animation: draw var(--dur, 1200ms) linear var(--delay, 0ms) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

#event.fading {
  animation: fade 800ms ease-out forwards;
}

@keyframes fade {
  to {
    opacity: 0;
  }
}

#event.paused path.draw,
#event.paused.fading {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  #event path,
  #event path.draw {
    animation: none;
    stroke-dashoffset: 0;
  }
  #event.fading {
    animation: none;
  }
}

.legal-links {
  font-size: 10px;
  letter-spacing: 0.05em;
  opacity: 0.5;
  margin: 20px 0 0;
}

.legal-links a,
.legal-links .anim-toggle {
  color: #fff;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 0 1px;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.legal-links a:hover,
.legal-links .anim-toggle:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.legal-links a:focus-visible,
.legal-links .anim-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 1px;
}

.legal-links .sep {
  margin: 0 8px;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .legal-links .anim-toggle,
  .legal-links .sep:has(+ .anim-toggle) {
    display: none;
  }
}

body.legal {
  position: static;
  overflow: visible;
}

.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  position: static;
  z-index: auto;
}

.legal-page .back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}

.legal-page .back:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.legal-page h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 32px;
}

.legal-page h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page ul {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  opacity: 0.9;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-page a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
}

.legal-page a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}
