:root {
  --ink: #3d4247;
  --muted: #687078;
  --link: #2f7f99;
  --line: #e4e6e8;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: #205c71;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.masthead-inner {
  display: flex;
  width: min(100% - 2.5rem, 1220px);
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
}

.site-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 0.4rem;
}

.top-nav a {
  display: flex;
  min-width: 5.4rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  color: #555c62;
  border-bottom: 2px solid transparent;
  font-size: 0.94rem;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus,
.top-nav a.active {
  color: #22272b;
  border-bottom-color: var(--link);
}

.page-shell {
  display: grid;
  width: min(100% - 2.5rem, 1220px);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 3.25rem;
  margin: 0 auto;
  padding: 2.6rem 0 4.5rem;
}

.profile {
  min-width: 0;
}

.profile-photo {
  display: block;
  width: 174px;
  height: 174px;
  border: 1px solid #dfe2e4;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
}

.profile h2 {
  margin: 0.85rem 0 0.25rem;
  color: #363b3f;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.profile-details {
  display: grid;
  gap: 0.48rem;
  margin: 1.2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  list-style: none;
}

.profile-details li {
  position: relative;
  padding-left: 1rem;
}

.profile-details li::before {
  position: absolute;
  top: 0.68em;
  left: 0.1rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8d9499;
  content: "";
}

.page-content {
  min-width: 0;
  max-width: 930px;
}

.page-content h1,
.page-content h2 {
  color: #363b3f;
  font-weight: 700;
  letter-spacing: 0;
}

.page-content h1 {
  margin: -0.25rem 0 0.55rem;
  font-size: 2rem;
  line-height: 1.25;
}

.page-content h2 {
  margin: 2.6rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
  line-height: 1.3;
}

.page-content p {
  margin: 0 0 1.15rem;
}

.page-content ol,
.page-content ul {
  margin: 0.75rem 0 1.3rem;
  padding-left: 1.45rem;
}

.page-content li {
  margin-bottom: 0.85rem;
  padding-left: 0.2rem;
}

.page-content li p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.page-content strong {
  color: #363b3f;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1.55rem;
  font-size: 0.92rem;
}

.page-cv .page-shell {
  width: min(100% - 2.5rem, 960px);
  grid-template-columns: 1fr;
  padding-top: 2.2rem;
}

.page-cv .profile {
  display: none;
}

.page-cv .page-content {
  max-width: none;
}

.page-cv .page-content > h1:first-child {
  margin-bottom: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  text-align: center;
}

.cv-tagline,
.cv-contact,
.cv-actions,
.cv-updated,
.cv-logo {
  text-align: center;
}

.cv-logo {
  margin: 0 0 0.55rem !important;
}

.cv-logo img {
  display: inline-block;
  width: min(100%, 290px);
  height: auto;
}

.cv-tagline {
  margin-bottom: 0.25rem !important;
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-contact {
  margin-bottom: 0.8rem !important;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cv-actions {
  margin: 1.05rem 0 2rem !important;
}

.cv-download {
  display: inline-block;
  padding: 0.48rem 0.8rem;
  color: #fff;
  border: 1px solid var(--link);
  border-radius: 3px;
  background: var(--link);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.cv-download:hover,
.cv-download:focus {
  color: #fff;
  border-color: #205c71;
  background: #205c71;
}

.page-cv .page-content h2 {
  margin-top: 2.15rem;
  padding-bottom: 0.28rem;
  color: var(--link);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  letter-spacing: 0.025em;
}

.page-cv .page-content h3 {
  margin: 1.2rem 0 0.35rem;
  color: var(--link);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.page-cv .page-content p,
.page-cv .page-content td {
  font-family: Georgia, "Times New Roman", serif;
}

.page-cv .page-content table {
  width: 100%;
  margin: 0.7rem 0 1rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.page-cv .page-content thead {
  display: none;
}

.page-cv .page-content td {
  padding: 0.25rem 0 0.8rem;
  border: 0;
  vertical-align: top;
  line-height: 1.48;
}

.page-cv .page-content td:first-child {
  width: 80%;
  padding-right: 1.4rem;
}

.page-cv .page-content td:last-child {
  width: 20%;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.page-cv #references + table td {
  width: 50%;
  padding-right: 1.6rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  text-align: left;
  white-space: normal;
}

.cv-updated {
  margin-top: 2rem !important;
  color: #8a9095;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 0.76rem;
}

.page-cv .site-footer {
  width: min(100% - 2.5rem, 960px);
  padding-left: 0;
}

.site-footer {
  display: flex;
  width: min(100% - 2.5rem, 1220px);
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.25rem 0 2rem 243px;
  color: #8a9095;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.site-footer a {
  color: #737b81;
}

@media (max-width: 760px) {
  .masthead-inner {
    width: min(100% - 2rem, 1220px);
    min-height: 58px;
  }

  .top-nav {
    gap: 0;
  }

  .top-nav a {
    min-width: auto;
    padding: 0 0.48rem;
    font-size: 0.83rem;
  }

  .page-shell {
    width: min(100% - 2rem, 680px);
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-top: 2rem;
  }

  .profile {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
  }

  .profile-photo {
    width: 112px;
    height: 112px;
    grid-row: 1 / span 3;
  }

  .profile h2 {
    margin-top: 0;
  }

  .profile-details {
    grid-column: 2;
    margin-top: 0.7rem;
  }

  .profile-details li:first-child,
  .profile-details li:nth-child(2) {
    display: none;
  }

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

  .page-cv .page-shell {
    width: min(100% - 2rem, 680px);
  }

  .page-cv .page-content table,
  .page-cv .page-content tbody,
  .page-cv .page-content tr,
  .page-cv .page-content td {
    display: block;
    width: 100%;
  }

  .page-cv .page-content tr {
    margin-bottom: 0.8rem;
  }

  .page-cv .page-content td:first-child,
  .page-cv .page-content td:last-child,
  .page-cv #references + table td {
    width: 100%;
    padding: 0;
    text-align: left;
    white-space: normal;
  }

  .page-cv .page-content td:last-child {
    margin-top: 0.15rem;
  }

  .page-cv #references + table td {
    margin-bottom: 1.1rem;
  }

  .site-footer {
    width: min(100% - 2rem, 680px);
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .masthead-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0 0;
  }

  .top-nav {
    width: 100%;
    min-height: 2.4rem;
  }

  .top-nav a {
    flex: 1;
  }

  .profile {
    grid-template-columns: 86px minmax(0, 1fr);
    column-gap: 1rem;
  }

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

  .profile-details {
    margin-top: 0.45rem;
  }

  .page-content {
    font-size: 0.96rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.2rem;
  }
}
