:root {
  --bg: #fdfdfc;
  --text: #2b2b2b;
  --muted: #8a8a85;
  --line: #ececea;
  --link: #3b5bdb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #e4e4e1;
    --muted: #8d8d88;
    --line: #2a2a2a;
    --link: #8ea6ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}

/* profile column */
#profile { position: sticky; top: 72px; align-self: start; }
.avatar { border-radius: 50%; object-fit: cover; display: block; margin-bottom: 16px; }
.handle { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.dot { margin: 0 6px; }
.building { margin-top: 28px; }
.label { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.building ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.building li::before { content: "→ "; color: var(--muted); }

/* main column */
nav { display: flex; gap: 20px; margin-bottom: 40px; }
nav a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* views share one grid cell so the page height never changes when switching */
.views { display: grid; }
.views > section { grid-area: 1 / 1; }
.views > section[hidden] { display: block; visibility: hidden; }

h2 { font-size: 20px; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 40px 0 12px; text-transform: lowercase; }
main p { margin: 0 0 14px; }

#projects { list-style: none; padding: 0; margin: 0; }
.project { padding: 16px 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project-head a { font-weight: 600; }
.project p { margin: 4px 0 0; color: var(--text); font-size: 15px; }
.project .tags { color: var(--muted); font-size: 13px; }
.stars { color: var(--muted); font-size: 13px; white-space: nowrap; }

footer { grid-column: 2; color: var(--muted); font-size: 13px; margin-top: 24px; }

@media (max-width: 680px) {
  .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-inline: 16px; }
  #profile { position: static; }
  footer { grid-column: 1; }
}
