:root { color-scheme: light; --accent: #b92c2c; --ink: #252525; --muted: #555; }
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: 1.65rem; margin: 1rem 0 .4rem; }
h2 { font-size: 2rem; margin: 2.5rem 0 1.5rem; padding-bottom: .2rem; text-align: right; border-bottom: 2px solid var(--ink); }
h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.page { max-width: 1080px; margin: auto; padding: 1.25rem 2rem 3rem; }
.skip-link { position: absolute; top: -5rem; left: 1rem; background: #fff; padding: .5rem; }
.skip-link:focus { top: 1rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.3rem; margin-bottom: 2.5rem; }
.site-nav a { text-decoration: none; font-size: 1.1rem; padding: .25rem 0; }
.site-nav a:hover { text-decoration: underline; }
.about { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; align-items: center; }
.identity { text-align: center; }
.portrait { width: 230px; margin: 0 auto; }
.identity p { margin-bottom: .25rem; overflow-wrap: anywhere; }
.social { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .65rem; font-size: .9rem; }
.project { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; margin: 0 0 2.2rem; align-items: start; }
.project-image { width: 100%; max-height: 220px; object-fit: contain; padding: 5px; border: 1px solid #ddd; border-radius: 4px; }
.summary-authors { margin-bottom: .2rem; }
.summary-publication-status { color: var(--accent); margin-bottom: .5rem; }
.summary-text { margin-bottom: .7rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-links a { display: inline-block; padding: .2rem .55rem; background: #fbe9e9; border-radius: 2px; text-decoration: none; font-size: .85rem; }
.project-links a:hover { text-decoration: underline; background: #f8dcdc; }
.text-project { margin-left: calc(210px + 1.5rem); }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #ddd; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 700px) {
  .page { padding: 1rem 1.1rem 2rem; }
  .site-nav { justify-content: center; gap: .4rem 1rem; margin-bottom: 2rem; }
  .site-nav a { font-size: 1rem; }
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
  .portrait { width: 190px; }
  .project { grid-template-columns: 135px minmax(0, 1fr); gap: 1rem; }
  .text-project { margin-left: 0; }
}
@media (max-width: 450px) {
  .project { grid-template-columns: 1fr; }
  .project-image { width: auto; max-width: 100%; max-height: 190px; margin: 0 auto .3rem; }
  h2 { font-size: 1.75rem; }
}
@media print {
  .site-nav, .skip-link, footer { display: none; }
  .page { max-width: none; padding: 0; }
  .project { break-inside: avoid; }
}
