body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #111;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px 64px;
  background: #f3f3f3;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 56px;
}

.top-links a {
  font-size: 0.9rem;
  color: #111;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.top-links a:hover {
  color: #4a6fae;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  margin-bottom: 72px;
}

.profile-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text {
  max-width: 520px;
}

.profile-text h1 {
  margin: 0 0 12px 0;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.links-row .separator {
  color: #111;
}

.resume-link, .links-row a {
  color: #4a6fae;
  text-decoration: underline;
  transition: opacity 0.25s ease;
}

.resume-link:hover, .links-row a:hover {
  opacity: 0.75;
}

section {
  margin-bottom: 64px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #4a6fae;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}

p {
  line-height: 1.7;
  margin-bottom: 14px;
}

.intro {
  font-size: 1.05rem;
}

.subintro {
  color: #555;
}

ul {
  padding-left: 18px;
  margin-top: 8px;
}

li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

td {
  padding: 8px 0;
  font-size: 0.95rem;
}

td:first-child {
  width: 120px;
}

a {
  color: #4a6fae;
  text-decoration: underline;
  transition: opacity 0.25s ease;
}

a:hover {
  opacity: 0.75;
}
@media (max-width: 600px) {

  /* Page spacing */
  .page {
    padding: 32px 18px 48px;
  }

  /* Top navigation */
  .top-links {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
  }

  .top-links a {
    font-size: 0.85rem;
  }

  /* Profile section */
  .profile {
    gap: 20px;
    margin-bottom: 48px;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .profile-text h1 {
    font-size: 1.8rem;
  }

  /* Links row (Resume | First Aid | etc.) */
  .links-row {
    gap: 8px;
    font-size: 0.85rem;
  }

  .links-row .separator {
    display: none;
  }

  /* Typography tweaks */
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  p {
    font-size: 0.95rem;
  }

  section {
    margin-bottom: 48px;
  }
}
