/* Henri — personal site. Plain CSS, no build step. */

:root {
  --text: #111;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --bg: #fff;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

/* Centered single column */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

/* Top nav with a hairline under it */
.nav {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.nav__link { color: var(--muted); font-weight: 500; transition: color .2s ease; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }

/* Photo + text. Stacked on small screens, side by side from 600px. */
.intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
.intro__photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: #f3f4f6;
}
.intro__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.intro__body { flex: 1; min-width: 0; }

.intro__name {
  margin: 0 0 2rem;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.5rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 1px solid var(--rule); transition: border-color .2s ease; }
.prose a:hover { border-color: var(--text); }

/* Footer links */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}
.footer a { transition: color .2s ease; }
.footer a:hover { color: var(--muted); }

@media (min-width: 600px) {
  .intro { flex-direction: row; align-items: flex-start; gap: 3rem; }
}

@media (min-width: 768px) {
  .page { padding: 6rem; }
  .nav { margin-bottom: 4rem; }
  .intro { gap: 4rem; margin-bottom: 4rem; }
  .intro__photo { width: 112px; height: 112px; }
  .intro__name { font-size: 2.25rem; margin-bottom: 3rem; }
}

@media (min-width: 1024px) {
  .page { padding: 8rem 6rem; }
}
