@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: #a1a1a1;
  --subtle: #6b6b6b;
  --border: #1f1f1f;
  --hover: #141414;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Identity */

.avatar {
  display: block;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.role {
  margin-top: 6px;
  font-size: 16px;
}

.tagline {
  margin-top: 12px;
  max-width: 320px;
  color: var(--muted);
}

.toc {
  display: none;
}

.links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.links a {
  display: flex;
  align-items: center;
}

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

/* Content */

.content {
  margin-top: 56px;
}

.about p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.about p + p {
  margin-top: 16px;
}

.about a {
  color: var(--fg);
}

.about a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--subtle);
}

section {
  scroll-margin-top: 96px;
}

section + section {
  margin-top: 64px;
}

h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-bottom: 12px;
}

.job,
.item {
  display: grid;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 8px;
}

.job:hover,
.item:hover {
  background: var(--hover);
}

.job {
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: baseline;
}

.item {
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.date {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--subtle);
  white-space: nowrap;
}

.title {
  font-weight: 500;
}

.arrow {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 400;
}

.job:hover .arrow,
.item:hover .arrow {
  color: var(--fg);
}

.logo {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
  object-fit: cover;
}

.desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.award {
  font-size: 13px;
  margin-top: 8px;
}

.event {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}

footer {
  margin-top: 64px;
  font-size: 13px;
  color: var(--subtle);
}

/* Desktop: identity pinned on the left, content scrolls on the right */

@media (min-width: 1024px) {
  .page {
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    padding: 0 64px;
  }

  h1 {
    font-size: 44px;
    letter-spacing: -0.03em;
  }

  .role {
    margin-top: 8px;
    font-size: 18px;
  }

  .tagline {
    margin-top: 16px;
  }

  .side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 96px 0 64px;
  }

  .toc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 56px;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--subtle);
  }

  .toc a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
  }

  .toc a::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
  }

  .toc a:hover,
  .toc a.active {
    color: var(--fg);
  }

  .toc a.active::before {
    width: 64px;
  }

  .links {
    margin-top: 0;
  }

  .content {
    margin-top: 0;
    padding: 96px 0;
  }

  .content section + section {
    margin-top: 80px;
  }

  .job,
  .item {
    grid-template-columns: 160px 1fr;
  }
}

@media (min-width: 1280px) {
  .page {
    padding: 0 96px;
  }
}

@media (max-width: 520px) {
  .job {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
