:root {
  --ink: #202328;
  --muted: #626870;
  --accent: #075b9f;
  --line: #d9dde2;
  --paper: #fffefa;
  --page: #f4f3ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-color: currentColor; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

.site-header,
main,
footer {
  width: min(920px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 2rem;
}

.site-name {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none;
}

nav { display: flex; gap: 1.5rem; }
nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { color: var(--accent); }

main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(32, 35, 40, 0.06);
}

section { padding: 4rem; scroll-margin-top: 1rem; }
section + section { border-top: 1px solid var(--line); }

.intro {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-block: 4.5rem;
}

.portrait {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
}

.lead { font-size: 1.1rem; line-height: 1.6; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-top: 1.8rem;
}
.links a { font-weight: 700; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 2rem;
}

h2 { margin-bottom: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.section-heading p { margin-bottom: 0; color: var(--muted); }

.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-list li { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.publication-list li:last-child { padding-bottom: 0; }

.publication {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.publication-media {
  display: block;
  width: 240px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef0f2;
}

.publication-media img,
.publication-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-media img {
  transition: transform 180ms ease;
}

a.publication-media:hover img {
  transform: scale(1.035);
}

.video-link,
.video-preview {
  position: relative;
  aspect-ratio: 16 / 10;
}

.video-link span,
.video-preview span {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: rgba(18, 24, 30, 0.84);
  color: white;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.video-preview span {
  top: 0.45rem;
  bottom: auto;
  pointer-events: none;
}

.publication-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

h3 { margin-bottom: 0.3rem; font-size: 1.03rem; line-height: 1.4; }
h3 a { color: var(--ink); text-decoration-thickness: 1px; }
article p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }
article strong { color: var(--ink); }
.patent { padding-top: 1.5rem; border-top: 1px solid var(--line); }

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 2.25rem 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}
footer p { margin-bottom: 0; }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 1.5rem, 920px); }
  .site-header { padding-block: 1.25rem; }
  nav { gap: 0.9rem; }
  nav a:first-child { display: none; }
  main { border-radius: 12px; }
  section { padding: 2.2rem 1.5rem; }
  .intro { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.5rem; }
  .portrait { width: 112px; height: 112px; }
  .section-heading { grid-template-columns: 1fr; gap: 0.4rem; }
  .publication-meta { align-items: baseline; }
  .publication { grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; }
  .publication-media { width: 120px; }
}

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