:root {
  --ink: #f0fff8;
  --muted: #95aaa4;
  --quiet: #627771;
  --phosphor: #6ef7bd;
  --cyan: #77e7ff;
  --background: #020605;
  --focus: #c7fff0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 82%, rgb(45 255 186 / 18%), transparent 31rem),
    radial-gradient(circle at 84% 18%, rgb(91 228 255 / 15%), transparent 28rem),
    linear-gradient(180deg, #04120f 0%, #020b09 100%);
  color: var(--ink);
  font-family: ui-sans-serif, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "cv05", "cv08", "ss03";
  letter-spacing: 0;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgb(255 255 255 / 1.8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.2%) 1px, transparent 1px);
  background-size: 100% 4px, 6px 100%;
  mix-blend-mode: soft-light;
  opacity: 0.22;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at center, transparent 40%, rgb(0 0 0 / 38%) 100%);
}

#forest-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.site-shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.identity {
  max-width: min(42rem, 100%);
  transform: translateY(-1vh);
}

.signal {
  margin: 0 0 1.35rem;
  color: color-mix(in srgb, var(--phosphor) 72%, transparent);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-shadow: 0 0 24px rgb(110 247 189 / 34%);
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.25rem, 13vw, 9.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 0 32px rgb(111 247 190 / 10%),
    0 1px 0 rgb(255 255 255 / 8%);
}

.tagline {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  line-height: 1.6;
}

.tagline {
  margin-top: clamp(1.3rem, 3vw, 2.1rem);
}

.email-link {
  width: fit-content;
  color: color-mix(in srgb, var(--quiet) 72%, transparent);
  font-size: clamp(0.86rem, 2vw, 0.98rem);
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 0.34em;
  text-decoration-thickness: 1px;
  opacity: 0.58;
  text-shadow: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    text-shadow 180ms ease;
}

.email-link:hover {
  color: color-mix(in srgb, var(--cyan) 82%, white);
  opacity: 0.95;
  text-decoration: underline;
  text-shadow: 0 0 20px rgb(119 231 255 / 16%);
}

.email-link:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 0.5rem;
}

@media (max-width: 720px) {
  .site-shell {
    padding: 2rem 1.35rem;
  }

  .identity {
    transform: none;
  }

  .signal {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .email-link {
    transition: none;
  }
}
