@font-face {
  font-family: Inter;
  src: url("assets/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #0a0c14;
  --panel: #121627;
  --line: #2a3350;
  --text: #f2f5ff;
  --muted: #98a2c3;
  --cyan: #00e5ff;
  --lime: #b6ff3b;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: var(--void);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(ellipse at 96% 0%, #00e5ff14, transparent 54%),
    radial-gradient(ellipse at 0% 100%, #ff2e9312, transparent 54%),
    var(--void);
}

.card {
  width: min(100%, 30rem);
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.intro { text-align: center; }
.monogram { display: block; margin: 0 auto 12px; height: auto; }

h1 {
  margin: 0;
  font: 700 clamp(1.65rem, 6vw, 2.125rem)/1.12 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.role, .tagline { margin: 10px 0 0; line-height: 1.5; }
.role { font-weight: 600; }
.tagline { color: var(--muted); font-size: .9375rem; }

#contact, #profiles { margin-top: 24px; }
nav ul { margin: 0; padding: 0; list-style: none; }
li + li { margin-top: 8px; }

.link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151a2d;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.link:hover { background: #1a2036; }
.link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.arrow { color: var(--muted); }
.label { overflow-wrap: anywhere; }

.link--primary {
  min-height: 52px;
  background: var(--void);
  border-color: var(--cyan);
}
.link--primary:hover { background: #10222d; }

.social { margin-top: 24px; }
.social h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font: 500 .75rem/1.4 "JetBrains Mono", monospace;
  letter-spacing: .1em;
}

.projects { margin-top: 30px; }
.projects h2 {
  margin: 0 0 12px;
  font: 700 1.25rem/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -.025em;
}

.project-list { margin: 0; padding: 0; list-style: none; }

.project-link {
  display: grid;
  grid-template-columns: clamp(76px, 22vw, 120px) minmax(0, 1fr) 17px;
  gap: clamp(8px, 2.5vw, 14px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #151a2d;
  color: var(--text);
  text-decoration: none;
}

.project-link:hover { background: #1a2036; }
.project-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.project-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 5px;
  background: var(--void);
}

.project-copy { overflow-wrap: anywhere; }
.project-copy h3 { margin: 0; font-size: .9375rem; line-height: 1.3; }
.project-copy p { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
