:root {
  --text: #1a1a1a;
  --muted: #63625d;
  --bg: #fdfdfb;
  --accent: #7a3b2e;
  --border: #e4e2dd;
  --max-width: 700px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover { border-bottom-color: currentColor; }

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: none;
}

nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: none;
}
nav a:first-child { margin-left: 0; }
nav a.active,
nav a:hover { color: var(--text); }

main {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  min-height: 55vh;
}

h1 { font-size: 1.7rem; margin: 0 0 1.5rem; }
h2 {
  font-size: 1.45rem;
  margin: 4rem 0 0.5rem;
  scroll-margin-top: 1.5rem;
}
h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
h2 + h3 { margin-top: 1rem; }

p { margin: 0 0 1rem; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.55rem; }

.lede { color: var(--muted); }

.links-inline a { margin-right: 0.75rem; }

.cv-item { margin-bottom: 1.1rem; }
.cv-item .dates,
.entry-meta { color: var(--muted); font-size: 0.9rem; }
.cv-item .role { font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); border-bottom: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 480px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  nav a { margin-left: 0; margin-right: 1.1rem; }
}
