:root {
  color-scheme: light;
  --background: #f3f5f6;
  --surface: #ffffff;
  --text: #263238;
  --muted: #66747c;
  --accent: #25627f;
  --accent-soft: #eaf2f6;
  --rule: #dbe2e6;
  --content-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--text);
  color: #fff;
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

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

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.site-name:hover {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 26px;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
}

main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.profile,
main > section {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.profile {
  padding: 34px 38px 38px;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: normal;
  line-height: 1.15;
}

.contact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 38px;
  align-items: start;
}

.about p:first-child {
  margin-top: 0;
}

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

.about img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

main > section {
  margin-top: 24px;
  padding: 30px 38px 34px;
}

h2 {
  margin: 0 0 22px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--accent-soft);
  color: #1f465a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: normal;
  line-height: 1.3;
}

h2:not(:first-child) {
  margin-top: 36px;
}

h3 {
  margin: 25px 0 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

h2 + h3 {
  margin-top: 0;
}

ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin-bottom: 11px;
  padding-left: 4px;
}

li::marker {
  color: #8aa8b7;
}

.dated-list .dated-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: baseline;
}

.event-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.publication-list {
  padding-left: 0;
  list-style: none;
}

.publication-list li {
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}

.publication-list li:first-child {
  padding-top: 0;
}

.publication-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.publication-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 600;
}

em {
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header-inner,
  main {
    width: min(100% - 28px, var(--content-width));
  }

  .site-header-inner {
    min-height: 58px;
  }

  .site-logo {
    width: 34px;
    height: 34px;
  }

  nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  main {
    padding-top: 24px;
  }

  .profile,
  main > section {
    padding: 24px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about img {
    width: min(100%, 360px);
  }

  .dated-list .dated-entry {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  nav a:nth-child(2) {
    display: none;
  }

  .contact {
    display: grid;
    gap: 3px;
  }

  .profile,
  main > section {
    padding: 21px;
    border-radius: 6px;
  }
}
