:root {
  color-scheme: dark;
  --paper: #050505;
  --ink: #ecece6;
  --muted: #8c8c84;
  --hairline: rgba(236, 236, 230, 0.12);
  --soft: rgba(236, 236, 230, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
  background: var(--paper);
  overscroll-behavior: none;
}

body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overscroll-behavior: none;
  touch-action: none;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(236, 236, 230, 0.1) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 70%);
}

a {
  color: inherit;
}

#name-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.identity {
  width: min(100%, 920px);
}

.kicker {
  margin: 0 0 28px;
  color: var(--muted);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 11rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: lowercase;
}

.line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  max-width: 680px;
  margin: 34px 0 0;
  color: #d7d7d0;
  font-size: 1.35rem;
  line-height: 1.45;
}

.line span {
  display: inline-flex;
  align-items: center;
}

.mail {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 52px;
  margin-top: 48px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--ink);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0;
  text-decoration: none;
}

.mail::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.mail:hover::after,
.mail:focus-visible::after {
  transform: translateX(4px) rotate(45deg);
}

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

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 236, 230, 0.26);
  background: rgba(255, 255, 255, 0.04);
  transition:
    width 150ms ease,
    height 150ms ease,
    border-color 150ms ease;
}

body:has(a:hover) .cursor-ring,
body:has(a:focus-visible) .cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(236, 236, 230, 0.46);
}

::selection {
  background: #ededed;
  color: #050505;
}

@media (max-width: 760px) {
  .page {
    align-items: flex-end;
    padding: 34px 24px 54px;
  }

  h1 {
    font-size: 5.5rem;
  }

  .kicker {
    margin-bottom: 18px;
  }

  .line {
    display: block;
    margin-top: 28px;
    font-size: 1.08rem;
  }

  .line span {
    display: flex;
  }

  .line span + span {
    margin-top: 18px;
  }

  .mail {
    margin-top: 38px;
    font-size: 0.95rem;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
