:root {
  --ink: #17202a;
  --muted: #56616f;
  --soft-muted: #7a8592;
  --line: #dce3e7;
  --link: #126e9c;
  --link-hover: #a3521f;
  --paper: #f8faf9;
  --panel: #ffffff;
  --wash: #eef5f3;
  --tint: #e7f2ef;
  --accent: #b8642b;
  --teal: #0f766e;
  --shadow: 0 18px 44px rgba(28, 44, 55, 0.08);
  --max-width: 940px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  border-top: 4px solid var(--teal);
  background:
    linear-gradient(180deg, rgba(231, 242, 239, 0.78) 0, rgba(248, 250, 249, 0) 245px),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 38px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  max-width: 820px;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-panel {
  margin-top: 11px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(19, 55, 63, 0.08);
}

.panel-label {
  margin: 0 0 11px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-panel li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.focus-panel li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 46px;
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.32;
  letter-spacing: 0;
}

p {
  margin: 0 0 10px;
}

.intro-copy {
  max-width: 790px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-links a,
.links a,
.links span,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--link);
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.02);
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.links span {
  color: var(--soft-muted);
}

.quick-links a:hover,
.links a:hover,
.button:hover {
  border-color: rgba(179, 95, 35, 0.45);
  background: #fff8f2;
  color: var(--link-hover);
  transform: translateY(-1px);
}

.publications {
  display: grid;
  gap: 18px;
}

.pub-card {
  position: relative;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--panel);
  box-shadow: 0 12px 30px rgba(31, 43, 54, 0.045);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.pub-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pub-card.featured {
  border-left: 4px solid var(--teal);
  padding-left: 12px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.055), rgba(255, 255, 255, 0) 42%),
    var(--panel);
}

.teaser {
  display: block;
  width: 196px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #d8e0e5;
  border-radius: 6px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.teaser img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-info {
  min-width: 0;
}

.pub-info h3 a {
  color: var(--ink);
}

.pub-info h3 a:hover {
  color: var(--link-hover);
}

.authors,
.venue,
.desc {
  color: var(--muted);
}

.authors,
.venue {
  font-size: 15px;
}

.venue {
  color: var(--accent);
  font-style: normal;
  font-weight: 560;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.venue-badge.muted {
  background: #f0f2f3;
  color: var(--soft-muted);
}

.desc {
  max-width: 690px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 9px;
}

#skills p {
  max-width: 780px;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li {
  margin: 5px 0;
}

footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 14px;
}

.footer-meta,
.visitor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: 0;
}

.visitor-stats[hidden] {
  display: none;
}

.visitor-stats strong {
  color: var(--muted);
  font-weight: 650;
}

.site-header,
.cv-layout,
.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0 14px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.cv-layout {
  display: grid;
  gap: 24px;
  padding: 36px 0;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  font: inherit;
  cursor: pointer;
}

.cv-section h2 {
  margin-bottom: 10px;
}

.cv-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px 0;
}

.cv-entry p {
  color: var(--muted);
}

.cv-entry span {
  color: var(--soft-muted);
  white-space: nowrap;
}

.skip-link,
.eyebrow {
  display: none;
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--max-width));
    padding-top: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .focus-panel {
    margin-top: 0;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 20px;
  }

  .intro-copy p {
    font-size: 16px;
  }

  .pub-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }

  .pub-card.featured {
    padding-left: 10px;
  }

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

  .site-header,
  .cv-header,
  .cv-entry {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav,
  .cv-actions {
    justify-content: flex-start;
  }
}

@media print {
  .site-header,
  .site-footer,
  .print-button {
    display: none;
  }

  body {
    border-top: 0;
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

  .pub-card {
    box-shadow: none;
  }
}
