:root {
  --text: #111;
  --muted: #666;
  --line: #eaeaea;
  --bg: #ffffff;
  --max-width: 860px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.hero {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.page { display: none; }
.page.is-active { display: block; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 28px;
}

.headshot {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.footer {
  margin-top: 32px;
  color: var(--muted);
}

/* =========================
   MOBILE LAYOUT
   ========================= */
@media (max-width: 720px) {

  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Move image under heading */
  .about-grid .headshot {
    order: -1;
    margin: 16px auto 20px;
    border-radius: 50%;
    width: 180px;
    height: 180px;
  }

}
