/* ──────────────────────────────────────────
   Paul Mumma — Personal Site
   Simple, elevated, fast.
   ────────────────────────────────────────── */

:root {
  --text: #2e352e;
  --text-muted: #828282;
  --bg: #fff;
  --max-width: 640px;
  --font-body: 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ────────────────────────── */

nav {
  padding: 48px 0 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* ── Page Header ───────────────────────── */

.page-header {
  padding: 64px 0 0;
}

.page-header h1 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Content ───────────────────────────── */

main {
  padding: 32px 0 120px;
}

main p {
  margin-bottom: 1.2em;
}

main p:last-child {
  margin-bottom: 0;
}

main h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 2em 0 0.8em;
}

main h2:first-child {
  margin-top: 0;
}

main a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

main a:hover {
  color: var(--text-muted);
}

/* ── Home: Intro ───────────────────────── */

.intro {
  padding: 32px 0 40px;
}

/* ── Home: Social Links ────────────────── */

.social-links {
  display: flex;
  gap: 28px;
  padding: 8px 0 0;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--text);
}

/* ── Home: Image ───────────────────────── */

.portrait {
  margin: 48px 0 0;
  width: 160px;
  height: 160px;
  border-radius: 4px;
  object-fit: cover;
  filter: grayscale(15%);
}

/* ── Footer ────────────────────────────── */

footer {
  padding: 0 0 48px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── Responsive ────────────────────────── */

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .page-header {
    padding: 48px 0 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  nav {
    padding: 32px 0 0;
  }

  .portrait {
    width: 120px;
    height: 120px;
  }
}
