@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/inter-medium.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --page: #fafafa;
  --ink: #1d1d1f;
  --muted: #6b6b6b;
  --column: 560px;
  --line: 22px;
  --section-gap: 56px;
  --reveal: 180ms;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: var(--line);
  letter-spacing: -0.21px;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
body { min-width: 280px; }
h1, h2 { font: inherit; color: var(--muted); }

.home {
  width: min(var(--column), calc(100% - 80px));
  margin-inline: auto;
  padding-block: var(--section-gap) 80px;
  text-align: left;
}

.intro { display: flex; flex-direction: column; gap: 16px; }
.portrait { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.bio p + p { margin-top: var(--line); }
.bio a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: #a5a5a6;
}
.bio a:hover { text-decoration-color: currentColor; }
.home a:focus-visible, .home button:focus-visible { outline: 1px solid var(--muted); outline-offset: 4px; border-radius: 2px; }

.project-section { margin-top: var(--section-gap); }
.project-list { padding: 0; list-style: none; }
.project { position: relative; transition: opacity var(--reveal) ease-out; }
.project-trigger {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  min-height: var(--line);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.project-name { flex: 0 0 auto; }
.project-description {
  min-width: 0;
  color: var(--muted);
  transition: opacity var(--reveal) ease-out, transform var(--reveal) ease-out;
}
.project-icon {
  position: absolute;
  left: -30px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  pointer-events: none;
  transition: opacity var(--reveal) ease-out, transform var(--reveal) ease-out;
}
.project-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }

.js .project-description { opacity: 0; transform: translateX(-4px); }
.js .project-icon { opacity: 0; transform: translateX(4px); }
.js .project.is-active .project-description,
.js .project.is-active .project-icon { opacity: 1; transform: translateX(0); }
.home.has-active .project:not(.is-active) { opacity: 0.32; }

/* Reserve space for wrapped descriptions so revealing a row never moves its neighbors. */
@media (max-width: 520px) {
  .project-trigger { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 12px; }
}
@media (pointer: coarse) and (min-width: 521px) {
  .project-trigger { padding-block: 11px; }
  .project-icon { top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .project, .project-description, .project-icon { transition: none; }
  .js .project-description, .js .project-icon { transform: none; }
}
