:root {
  --bg: #f5f3ed;
  --ink: #020f19;
  --muted: #595959;
  --accent: #e25d12;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: -20vmax;
  background: radial-gradient(circle, rgb(226 93 18 / 18%), transparent 38%);
  content: '';
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--tilt-glow-x, 0), var(--tilt-glow-y, 0), 0);
  transition: opacity 300ms ease, transform 140ms ease-out;
}

body.tilt-enabled::before {
  opacity: 1;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

.lp {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 80px 0;
}

.lp-inner {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 7vh, 72px);
  width: min(640px, 88vw);
  margin: 0 auto;
  transform: translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0);
  transition: transform 140ms ease-out;
  will-change: transform;
}

.lp-head {
	margin: 0;
}

.lp-logo-button {
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lp-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translate3d(var(--tilt-logo-x, 0), var(--tilt-logo-y, 0), 0) rotate(var(--tilt-logo-rotation, 0));
  transition: transform 140ms ease-out;
  will-change: transform;
}

.lp-tagline {
	margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.lp-tagline a,
.lp-tagline a:visited {
  color: inherit;
  text-decoration: none;
}

.lp-tagline a:hover,
.lp-footer a:hover {
  color: var(--accent);
}

.lp-tagline a:focus-visible,
.lp-logo-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lp-bio {
  max-width: 100%;
	margin: -24px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.62;
}

.lp-footer {
  display: flex;
  gap: 1.6em;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.lp-footer a,
.tilt-control {
  color: var(--muted);
  transition: color 0.2s ease;
}

.tilt-control:hover {
  color: var(--ink);
}

.tilt-control {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}

.tilt-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tilt-control:disabled {
  cursor: default;
  opacity: 0.6;
}

.cursor-pixel {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  pointer-events: none;
  will-change: opacity, transform;
  animation: cursor-pixel-drop 700ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes cursor-pixel-drop {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--pixel-drift)), 30px) scale(0.45);
  }
}

@media (max-width: 540px) {
  .lp-bio {
    font-size: 1rem;
  }

  .lp-footer {
    flex-wrap: wrap;
    gap: 1.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }

  .lp-inner,
  .lp-logo {
    transform: none;
  }

  .cursor-pixel {
    display: none;
  }
}
