:root {
  color-scheme: light;
  --ink: #30363b;
  --ink-strong: #1e252a;
  --muted: #667079;
  --blue: #1f608a;
  --red: #8e3044;
  --red-dark: #702334;
  --line: #dfe5e8;
  --paper: #ffffff;
  --sidebar: #f7f9fa;
  --max-width: 1160px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body,
a {
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
}

a:focus-visible {
  outline: 3px solid #bd6979;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--ink-strong);
  color: #ffffff;
  font-size: 13px;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.topbar-name {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topbar nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--red-dark);
}

.page-shell {
  display: grid;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 58px 0 70px;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 72px;
}

.profile {
  position: sticky;
  top: 106px;
}

.profile-portrait {
  display: block;
  width: 174px;
  height: 174px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgb(31 76 114 / 12%);
}

.profile h2 {
  margin: 28px 0 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.profile-alias {
  margin: 2px 0 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.profile-focus {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.profile-details {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.profile-details div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.social-links {
  display: flex;
  margin-top: 20px;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #c9d2d8;
  border-radius: 50%;
  color: var(--ink-strong);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease,
    color 160ms ease;
}

.social-link:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: #ffffff;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.resume-content {
  min-width: 0;
}

.intro {
  padding: 6px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
}

.intro-role {
  margin: 10px 0 30px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 550;
}

.prose {
  max-width: 790px;
  color: var(--ink-strong);
  font-size: 17px;
}

.prose p {
  margin: 0 0 20px;
}

.resume-section {
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
}

.resume-section > h2 {
  margin: 0 0 30px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.25;
}

.resume-section > h2::before {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin: 0 10px 7px 0;
  background: var(--blue);
  content: "";
}

.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  border-top: 1px solid var(--line);
}

.interest-grid article {
  display: grid;
  min-height: 132px;
  padding: 22px 0;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.interest-grid article > span {
  padding-top: 4px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.interest-grid h3 {
  margin: 0 0 7px;
  color: var(--ink-strong);
  font-size: 17px;
}

.interest-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.awards-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.awards-list li {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.awards-list time {
  padding-top: 2px;
  color: var(--red);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.award-title {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 700;
}

.award-title:hover {
  color: var(--red-dark);
}

.awards-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.education-row {
  display: grid;
  padding: 26px 0;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-row + .education-row {
  border-top: 0;
}

.education-logo {
  display: block;
  width: 80px;
  height: 80px;
  padding: 4px;
  border: 1px solid #b9c9d5;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.education-period {
  margin-bottom: 4px !important;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.education-row h3 {
  margin: 0 0 3px;
  color: var(--ink-strong);
  font-size: 19px;
}

.education-row p {
  margin: 0;
}

.education-note {
  max-width: 650px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.resume-footer {
  display: flex;
  padding-top: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.resume-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 66px;
  }

  .topbar-inner {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .topbar nav a:nth-child(2),
  .topbar nav a:nth-child(4) {
    display: none;
  }

  .topbar nav {
    gap: 20px;
  }

  .page-shell {
    width: min(calc(100% - 36px), 680px);
    padding-top: 40px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: start;
    column-gap: 28px;
  }

  .profile-portrait {
    width: 140px;
    height: 140px;
    grid-row: 1 / 6;
  }

  .profile h2 {
    margin-top: 8px;
  }

  .profile-focus {
    margin-top: 12px;
  }

  .profile-details,
  .social-links {
    grid-column: 2;
  }

  .profile-details {
    margin-top: 14px;
  }

  .intro {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .topbar-name {
    max-width: 118px;
  }

  .topbar nav a:first-child {
    display: none;
  }

  .profile {
    display: block;
  }

  .profile-portrait {
    width: 128px;
    height: 128px;
  }

  .profile-details,
  .social-links {
    max-width: 320px;
  }

  .intro h1 {
    font-size: 41px;
  }

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

  .interest-grid article {
    min-height: 112px;
  }

  .awards-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .education-row {
    grid-template-columns: 1fr;
  }

  .education-logo {
    width: 68px;
    height: 68px;
  }

  .resume-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
