/* ---------- Base ---------- */

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

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f2f2f2;
  color: #222;
}

img {
  display: block;
  max-width: 100%;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ---------- Header ---------- */

header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.headshot {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.title {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
}

.location {
  margin: 0.1rem 0 0;
  color: #555;
}

.availability {
  margin: 0.1rem 0 0.5rem;
  color: #555;
  font-style: italic;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* ---------- Sections ---------- */

section + section {
  margin-top: 2rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #ccc;
}

p {
  margin: 0 0 0.9rem;
}

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

/* ---------- Links ---------- */
/* Underlined, so they're the only things that look clickable */

a {
  color: #0077aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: #941352;
}

a:hover,
a:focus-visible {
  color: #005577;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  main { padding-top: 2rem; }
  header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .headshot { width: 96px; height: 96px; }
  h1 { font-size: 1.75rem; }
}
