@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  --bg:        #f5f3ee;
  --ink:       #17140e;
  --ink-mid:   #8a8480;
  --ink-faint: #cbc7c0;
  --accent:    #4a3f32;
  --rule:      #e0dcd5;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  padding: 5rem 2rem 7rem;
  -webkit-font-smoothing: antialiased;
}

/* ── paper grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

main {
  max-width: 520px;
  margin: 0 auto;
}

/* ── staggered fade-in ── */
.fade {
  opacity: 0;
  transform: translateY(6px);
  animation: appear 0.45s ease forwards;
}
.fade:nth-child(1) { animation-delay: 0.05s; }
.fade:nth-child(2) { animation-delay: 0.18s; }
.fade:nth-child(3) { animation-delay: 0.30s; }
.fade:nth-child(4) { animation-delay: 0.42s; }
.fade:nth-child(5) { animation-delay: 0.54s; }

@keyframes appear {
  to { opacity: 1; transform: translateY(0); }
}

/* ── wordmark ── */
h1 {
  font-size: clamp(2.8rem, 9vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ── tagline ── */
.tagline {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  margin-bottom: 2.8rem;
}

/* ── contact links ── */
.contact {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.contact a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.contact a:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── dividers ── */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.8rem 0;
}

/* ── section label ── */
.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 1.6rem;
}

/* ── project list ── */
.projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.projects li {
  padding-left: 0.9rem;
  border-left: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.projects li:hover {
  border-left-color: var(--accent);
}

.projects a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.18s;
}

.project-name .arr {
  font-size: 0.85em;
  color: var(--ink-faint);
  display: inline-block;
  transition: transform 0.18s, color 0.18s;
}

.projects a:hover .project-name { color: var(--accent); }
.projects a:hover .arr           { transform: translateX(3px); color: var(--accent); }

.project-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ink-mid);
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

/* ── footer ── */
footer {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
