@font-face {
  font-family: 'General Sans';
  src: url('https://api.fontshare.com/v2/fonts/general-sans');
}

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --mid: #9a9a9a;
  --hairline: #e9e9e6;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

/* corner logo, present on every page except the hero */
.corner-mark {
  position: fixed;
  top: clamp(20px, 4vw, 40px);
  left: clamp(20px, 4vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 20;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 0.15s forwards;
}

.corner-logo {
  display: block;
  width: 38px;
  height: auto;
}

.corner-mark span {
  color: var(--mid);
  font-weight: 400;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.back-link {
  position: fixed;
  top: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--mid);
  z-index: 20;
  transition: color 0.3s var(--ease);
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 0.15s forwards;
}

.back-link:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
