@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("instrument-sans-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("instrument-sans.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg: #faf9f6;
  --ink: #171614;
  --muted: #6f6a62;
  --line: #e4e1da;
  --accent: #4a6fa5;
  --label-col: 152px 1fr;
  --sec-pad: 30px;
  --item-gap: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
a:hover { color: var(--ink); border-bottom-color: currentColor; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }

.page { max-width: 980px; margin: 0 auto; padding: 96px 40px 120px; }
.profile {
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
}
.profile-copy { flex: 1 1 380px; }
.profile h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.profile-list li, .details li { display: grid; grid-template-columns: 14px 1fr; }
.profile-photo {
  width: 223px;
  height: 223px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  display: block;
  margin-top: 7px;
}

.section {
  display: grid;
  grid-template-columns: var(--label-col);
  gap: 12px 36px;
  padding: var(--sec-pad) 0;
  border-top: 1px solid var(--line);
}
.section h2, .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.section h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.stack { display: flex; flex-direction: column; gap: var(--item-gap); }
.item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
.item-header h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.publication-title { max-width: 44ch; }
.meta { color: var(--muted); white-space: nowrap; }
.authors { font-size: 14.5px; margin-top: 6px; }
.muted { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.publication-links { margin-top: 8px; }
.details {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  color: var(--muted);
}
.education .details { margin-top: 12px; }
.details .highlight { color: var(--ink); }
.markdown-line p { display: inline; }
.markdown-line em { color: var(--muted); font-style: normal; }

.skills { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.skills > div { display: grid; grid-template-columns: 120px 1fr; gap: 4px 16px; }
.skills > div > span:first-child { color: var(--muted); }
.skills > div > span:last-child { white-space: nowrap; }
.project-date { margin-top: 4px; }
.awards { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.awards > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline; }

footer {
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  :root { --label-col: 1fr; --sec-pad: 22px; }
  .page { padding: 56px 24px 80px; }
  .profile-list, .meta, .skills > div > span:last-child { white-space: normal; }
}
