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

:root {
  --bg:    #f5f2eb;
  --ink:   #1a1a18;
  --muted: #6b6860;
  --faint: #b0ada6;
  --rule:  #dedad2;
  --font:  'IBM Plex Mono', 'Courier New', monospace;
}

html { font-size: 15px; background: var(--bg); color: var(--ink); }

body {
  font-family: var(--font);
  padding: 5rem 2rem 4rem;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

main {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

/* ——— Header ——— */

header {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.name {
  font-size: 1rem;
  font-weight: 500;
}

.philosophy {
  font-size: .875rem;
  color: var(--ink);
  line-height: 1.7;
  max-width: 48ch;
}

.where {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.8;
}

.where strong {
  color: var(--ink);
  font-weight: 500;
}

nav {
  display: flex;
  gap: 1.25rem;
  padding-top: .25rem;
}

nav a {
  font-size: .775rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}

nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ——— Label ——— */

.label {
  font-size: .7rem;
  color: var(--faint);
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

/* ——— Projects ——— */

.project {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity .18s;
}

.project:first-of-type { border-top: 1px solid var(--rule); }
.project:hover { opacity: .5; }

.project__top {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: .4rem;
}

.project__name {
  font-size: .875rem;
  font-weight: 500;
}

.project__stack {
  font-size: .7rem;
  color: var(--faint);
  flex: 1;
}

.project__arrow {
  font-size: .75rem;
  color: var(--faint);
}

.project__desc {
  font-size: .775rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.8;
  max-width: 54ch;
}

/* ——— Blog ——— */

.blog-link {
  font-size: .8125rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
  display: inline-block;
}

.blog-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ——— Responsive ——— */

@media (max-width: 480px) {
  body { padding: 3rem 1.25rem; }
  .project__top { flex-wrap: wrap; }
}
