:root {
  color-scheme: dark light;
  --paper: #07090c;
  --ink: #eff4f1;
  --muted: #8d9a9a;
  --rule: rgba(141, 154, 154, 0.14);
  --accent: #72f0d4;
  --accent-soft: rgba(114, 240, 212, 0.16);
  --focus: #72f0d4;
  --ambient: rgba(114, 240, 212, 0.16);
  --hero-ambient: rgba(114, 240, 212, 0.18);
  --section-wash: rgba(114, 240, 212, 0.045);
  --surface: rgba(255, 255, 255, 0.01);
  --logo-filter: invert(1);
}

@media (prefers-color-scheme: light) {
  :root {
    --paper: #f7f3ec;
    --ink: #11100e;
    --muted: #625d55;
    --rule: rgba(17, 16, 14, 0.13);
    --accent: #126a5c;
    --accent-soft: rgba(18, 106, 92, 0.1);
    --focus: #126a5c;
    --ambient: rgba(18, 106, 92, 0.11);
    --hero-ambient: rgba(18, 106, 92, 0.14);
    --section-wash: rgba(18, 106, 92, 0.035);
    --surface: rgba(17, 16, 14, 0.012);
    --logo-filter: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: none;
}

.logo-link {
  position: relative;
  display: block;
  width: min(48rem, 72vw);
  max-height: 78svh;
  outline-offset: 1rem;
}

.logo-link::before {
  position: absolute;
  inset: -14%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at center, transparent 0 48%, var(--hero-ambient) 64%, transparent 76%);
  filter: blur(24px);
  opacity: 0.85;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78svh;
  filter: var(--logo-filter);
  object-fit: contain;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  left: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  translate: -50% 0;
  opacity: 0.52;
  outline-offset: 0.45rem;
}

.scroll-cue span {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  rotate: 45deg;
}

.contact {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  background:
    linear-gradient(180deg, transparent, var(--section-wash)),
    var(--surface);
}

.contact::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 45%, var(--ambient), transparent 34rem);
  opacity: 0.95;
}

.contact-inner {
  position: relative;
  width: min(42rem, 100%);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 500;
  line-height: 0.96;
}

.lines {
  display: grid;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  gap: 0.78rem;
}

.line {
  display: grid;
  grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
}

.line > span {
  color: var(--accent);
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0.86;
}

.line p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  line-height: 1.45;
}

.stack-line {
  display: block;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: inherit;
  opacity: 1;
}

.stack-line + .stack-line {
  margin-top: 0.32rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0;
  font-size: 1rem;
  text-decoration: none;
}

.email-link {
  gap: 0;
  border-bottom: 1px solid currentColor;
}

.icon-link {
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.links a:hover {
  color: var(--accent);
}

.icon-link:hover {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.3rem;
}

@media (max-width: 640px) {
  .logo-link {
    width: min(24rem, 82vw);
  }

  .links {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: 10ch;
  }

  .line {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
