:root {
  --ink: #20252b;
  --heading: #182029;
  --muted: #5f6872;
  --blue: #315c7d;
  --blue-dark: #24465f;
  --line: #d9dee3;
  --soft: #f5f7f8;
  --paper: #ffffff;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--blue-dark);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid rgba(49, 92, 125, 0.3);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 9px 13px;
  color: var(--paper);
  background: var(--blue-dark);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name,
h1,
h2,
h3 {
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
}

.site-name {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: #38414a;
  font-size: 15px;
  text-decoration: none;
}

nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.intro {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding: 72px 0 68px;
}

.portrait {
  display: block;
  width: 250px;
  height: auto;
  border-radius: 2px;
  background: var(--soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 39px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 28px;
  font-size: 29px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.3;
}

.role {
  margin-bottom: 25px;
  color: #46515b;
  font-size: 18px;
  line-height: 1.5;
}

.intro p {
  max-width: 700px;
  margin-bottom: 16px;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
}

.text-links a {
  font-size: 16px;
}

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

.section-soft {
  border-top: 0;
  background: var(--soft);
}

.section-soft + .section {
  border-top: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 52px;
}

.section-grid > h2 {
  margin: 0;
}

.research-list {
  display: grid;
  gap: 32px;
}

.research-list article p:last-child {
  max-width: 740px;
  margin-bottom: 0;
}

.label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.methods li {
  padding: 5px 10px;
  border: 1px solid #cbd2d8;
  border-radius: 3px;
  background: var(--paper);
  font-size: 14px;
}

.timeline {
  display: grid;
}

.experience-item {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.experience-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.date {
  padding-top: 3px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.organization {
  margin-bottom: 8px;
  color: #3f4851;
}

.experience-item div > p:last-child {
  margin-bottom: 0;
}

.contact-copy {
  max-width: 740px;
}

.contact-copy > p {
  margin-bottom: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #e9eef2;
  text-decoration: none;
}

.button-primary,
.button-primary:hover {
  color: var(--paper);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.site-footer {
  padding: 27px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  body {
    font-size: 16px;
  }

  .wrap {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
  }

  nav {
    gap: 15px;
  }

  nav a:nth-child(2),
  nav a:nth-child(3) {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0;
  }

  .portrait {
    width: 190px;
  }

  h1 {
    font-size: 34px;
  }

  .section {
    padding: 43px 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .date {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .site-name {
    font-size: 21px;
  }

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

  h2 {
    font-size: 27px;
  }
}

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