:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --text: #f2f4f8;
  --muted: #9ca6b4;
  --faint: #697381;
  --line: rgba(242, 244, 248, 0.13);
  --line-strong: rgba(242, 244, 248, 0.22);
  --accent: #ffffff;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
}

body.has-pointer-glow {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

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

.cursor-glow {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 64%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x) - 110px), calc(var(--cursor-y) - 110px), 0);
  transition: opacity 220ms ease;
  will-change: transform, opacity;
}

body.has-pointer-glow .cursor-glow {
  opacity: 1;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.brand,
.nav-links,
.eyebrow,
.section-kicker,
.project-index,
.project-tag,
.profile-links,
.site-footer,
.footer-links {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

.brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a,
.footer-links a,
.profile-links a,
.title-link,
.project-card {
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.profile-links a:hover,
.title-link:hover {
  color: var(--accent);
}

.hero {
  min-height: 64vh;
  display: grid;
  align-items: center;
  padding: 74px 0 88px;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.welcome {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 28px;
  color: #c7ced8;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.profile-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-links a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.project-list {
  display: grid;
}

.project-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 88px;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.experience-card {
  grid-template-columns: 42px minmax(0, 1fr);
}

.project-card:last-child {
  border-bottom: 1px solid var(--line);
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.muted-card {
  opacity: 0.72;
}

.project-card h3,
.project-card p {
  margin-bottom: 4px;
}

.title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.title-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.82);
}

.project-card p {
  color: var(--muted);
  line-height: 1.6;
}

.project-card .role-meta {
  color: var(--faint);
  font-size: 14px;
}

.project-index,
.project-tag {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-tag {
  text-align: right;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 980px);
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 74px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-tag {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

}

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