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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #080808;
  color: #525252;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 15vh 24px 10vh;
}

main {
  max-width: 640px;
  width: 100%;
}

/* ── header ── */

header {
  margin-bottom: 80px;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  color: #e5e5e5;
  letter-spacing: -0.04em;
}

.caret {
  color: #00ff9f;
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.bio {
  margin-top: 6px;
  font-size: 13px;
  color: #888;
  font-weight: 300;
  font-style: italic;
}

.gh {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  transition: color 0.25s;
}

.gh:hover {
  color: #00ff9f;
}

/* ── projects ── */

.section-label {
  font-size: 11px;
  color: #555;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  user-select: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.card {
  border: 1px solid #1e1e1e;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: border-color 0.25s, background-color 0.25s;
}

a.card:hover {
  border-color: #00ff9f22;
  background: #0c0c0c;
}

a.card:hover h3 {
  color: #00ff9f;
}

a.card:hover .thumb img {
  opacity: 1;
}

/* thumbnail */

.thumb {
  aspect-ratio: 16 / 10;
  background: #0e0e0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.thumb.placeholder {
  background: transparent;
  border-bottom: 1px dashed #333;
}

.prompt {
  font-size: 11px;
  color: #444;
  animation: blink 2s step-end infinite;
}

/* card info */

.info {
  padding: 10px 12px 12px;
}

.card h3 {
  font-size: 12px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 2px;
  transition: color 0.25s;
}

.card.muted h3 {
  color: #666;
}

.card p {
  font-size: 11px;
  color: #777;
}

/* ── responsive ── */

@media (max-width: 540px) {
  body {
    padding: 12vh 20px 8vh;
  }

  h1 {
    font-size: 24px;
  }

  header {
    margin-bottom: 56px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
