:root {
  color-scheme: light;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-head: var(--font-body);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #1d1d1f;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.38;
}
a { color: #0066cc; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; padding: 6px 10px; background: #fff; }

.site-nav { border-bottom: 1px solid #ececec; }
.site-nav nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; max-width: 800px; margin: 0 auto; padding: 14px 20px; }
.site-nav a { color: #1d1d1f; }
.site-nav a:hover, .site-nav a:focus { color: #0066cc; text-decoration: none; }
.site-nav a.current { font-weight: 600; color: #1d1d1f; }

.wrap { max-width: 800px; margin: 0 auto; padding: 20px 20px 36px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.012em; color: #1d1d1f; }
b, strong { font-weight: 600; }
h2 { font-size: 24px; margin: 32px 0 14px; scroll-margin-top: 16px; }

/* Intro */
.intro { display: flex; align-items: center; gap: 40px; }
.intro-text { flex: 1 1 60%; min-width: 0; }
.content .intro-text h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-align: center; margin: 4px 0 14px; }
.content .intro-text p { margin: 0 0 10px; }
.intro-links { text-align: center; margin-top: 12px !important; }
.intro-photo { flex: 0 0 280px; }
.intro-photo img { display: block; width: 100%; border-radius: 50%; }

/* News */
.content .news { margin: 0; padding: 0; list-style: none; }
.content .news li { display: flex; align-items: center; gap: 18px; margin: 0; padding: 1px 0; }
.news-date { flex: 0 0 72px; font-weight: 600; }

/* Publications */
.pub { display: flex; align-items: center; gap: 32px; margin-bottom: 28px; }
.pub-thumb { flex: 0 0 230px; }
.pub-thumb img { display: block; width: 100%; }
.thumb-credit { margin-top: 4px; color: #6e6e73; font-size: 11px; line-height: 1.25; }
.pub-body { flex: 1 1 auto; min-width: 0; }
.pub-title { font-weight: 600; color: #1d1d1f; }
.pub-links { margin-top: 3px; }
.pub-summary { margin-top: 8px; }
.pub-body > div:not(.pub-title), .intro ~ .pres .pres-meta { font-size: 13px; }
.pres { display: flex; gap: 18px; margin-bottom: 10px; }
.pres[hidden] { display: none; }
.pres-toggle { margin-left: 90px; padding: 0; border: 0; background: none; color: #0066cc; font: inherit; font-variant: small-caps; letter-spacing: 0.03em; cursor: pointer; }
.pres-toggle[hidden] { display: none; }
.pres-toggle:hover, .pres-toggle:focus { text-decoration: underline; }
.pres-date { flex: 0 0 72px; font-weight: 600; }
.pres-body { flex: 1 1 auto; min-width: 0; }
.pres-title { color: #1d1d1f; }
.pres-meta { color: #6e6e73; }
.pres-meta b { color: #1d1d1f; }
.title-link { font-size: 14px; font-weight: 450; font-variant: small-caps; letter-spacing: 0.03em; }

/* Secondary pages */
.page-title { font-size: 30px; margin: 0 0 18px; }
.cv-head ~ h2 { font-size: 24px; margin: 26px 0 14px; }
.content h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 0; }
.content hr { margin: 30px 0 0; border: 0; border-top: 1px solid #e8e8ed; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 5px; }
.content p { margin: 0 0 14px; }
.content small { display: block; margin-top: 3px; color: #6e6e73; font-size: 13px; line-height: 1.4; }

/* CV */
.cv-head { margin-bottom: 18px; text-align: center; }
.content .cv-head + hr { margin-top: 0; }
.content .cv-head h1 { margin: 4px 0 8px; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.content .cv-head p { margin: 0 0 4px; }
.cv-head { position: relative; }
.content .cv-head .cv-downloads { position: absolute; top: 0; right: 0; margin: 0; color: #6e6e73; font-size: 12px; }
.cv-downloads a { color: inherit; text-decoration: underline; text-decoration-color: #c9c9ce; text-underline-offset: 2px; }
.cv-downloads a:hover, .cv-downloads a:focus { color: #0066cc; }
.cv-pub { margin-bottom: 11px; }
.exp-header { display: flex; align-items: center; gap: 16px; margin-bottom: 9px; }
.tight-list + .exp-header, .tight-block + .exp-header, .tight-desc + .exp-header { margin-top: 28px; }
.edu-detail + .exp-header { margin-top: 20px; }
.edu-detail small { margin-top: 0; }
.exp-header-text { flex: 1 1 auto; min-width: 0; }
.content h3.tight-block { margin: 0; font-size: 15px; line-height: 1.3; }
.tight-meta { color: #6e6e73; }
.exp-meta-right { flex: 0 0 auto; text-align: right; font-size: 13px; line-height: 1.4; }
.exp-location { color: #6e6e73; }
.exp-logo { flex: 0 0 38px; width: 38px; height: 38px; object-fit: contain; }
.content p.tight-desc { margin: 0 0 8px; }
.content ul.tight-list { margin: 0; padding-left: 20px; line-height: 1.45; }
.content p.tight-block { margin: 10px 0 0; color: #6e6e73; font-size: 13px; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover, .to-top:focus { border-color: #0066cc; color: #0066cc; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}

.foot { margin-top: 28px; color: #6e6e73; font-size: 12px; }
.epsg { display: block; margin-top: 10px; color: #f1f1f3; font-size: 9px; text-align: right; }
.epsg:hover, .epsg:focus { color: #a1a1a6; text-decoration: none; }

@media (max-width: 680px) {
  .site-nav nav { gap: 6px 18px; padding: 14px 12px; }
  .intro { flex-direction: column-reverse; gap: 14px; }
  .intro-text { flex-basis: auto; }
  .intro-photo { flex-basis: auto; width: 180px; }
  .content .news li { align-items: flex-start; gap: 12px; }
  .exp-header { flex-wrap: wrap; gap: 2px 12px; }
  .exp-header-text { flex: 1 1 calc(100% - 54px); order: 1; }
  .exp-logo { order: 2; }
  .exp-meta-right { order: 3; flex-basis: 100%; text-align: left; }
  .content .cv-head .cv-downloads { position: static; margin-bottom: 8px; text-align: right; }
  .pub { display: block; }
  .pub-thumb { width: 100%; max-width: 340px; margin-bottom: 10px; }
}

@media print {
  @page { size: letter; margin: 0.5in 0.6in; }
  html { scroll-behavior: auto; }
  body { font-size: 9.5pt; line-height: 1.3; }
  .site-nav, .to-top, .foot, .no-print, .pres-toggle, .skip-link { display: none !important; }
  .pres[hidden] { display: flex !important; }
  .wrap { max-width: none; padding: 0; }
  a { color: #0050a0; }
  .cv-head ~ h2, .exp-header { break-after: avoid; }
  .cv-pub, .pres, .content li, .edu-detail { break-inside: avoid; }
  .content hr { margin-top: 9px; }
  .cv-head ~ h2 { margin: 9px 0 6px; font-size: 13pt; }
  .content .cv-head h1 { margin-top: 0; font-size: 22pt; }
  .cv-head { margin-bottom: 9px; }
  .content .cv-head + hr { margin-top: 0; }
  .content h3.tight-block { font-size: 10pt; }
  .content small, .exp-meta-right, .title-link { font-size: 8.5pt; }
  .content ul.tight-list { line-height: 1.3; }
  .content li { margin-bottom: 2px; }
  .exp-header { margin-bottom: 5px; gap: 12px; }
  .tight-list + .exp-header, .tight-block + .exp-header, .tight-desc + .exp-header { margin-top: 13px; }
  .edu-detail + .exp-header { margin-top: 10px; }
  .exp-logo { flex-basis: 28px; width: 28px; height: 28px; }
  .cv-pub { margin-bottom: 6px; }
  .pres { gap: 12px; margin-bottom: 5px; }
  .pres-date { flex-basis: 56px; white-space: nowrap; }
}
