:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --ink: #1f2933;
  --muted: #5f6b72;
  --rule: #ddd6c8;
  --link: #315f72;
  --link-hover: #214958;
  --accent: #b8732d;
  --paper-warm: #f6ead9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration-color: rgba(49, 95, 114, 0.35);
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  outline: 2px solid rgba(184, 115, 45, 0.55);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-header,
main,
.site-footer {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 46px 0 34px;
}

.header-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.header-lockup img {
  width: 38px;
  height: 38px;
  border: 1px solid #d8c3a4;
  background: var(--paper-warm);
}

.header-lockup span {
  display: block;
}

.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.site-nav a {
  text-decoration: none;
}

.section {
  padding: 0 0 46px;
}

h1,
h2 {
  margin: 0 0 18px;
  color: var(--link);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

.lead {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.95rem;
}

.about-copy {
  padding-top: 0;
}

.news-list,
.publication-list,
.timeline-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list {
  display: grid;
  gap: 4px;
}

.news-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
}

.news-list time {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.publication-list {
  display: grid;
  gap: 26px;
}

.publication-list li {
  display: block;
}

.publication-list p {
  margin: 2px 0 0;
}

.paper-title {
  color: #8a641a;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(138, 100, 26, 0.35);
  text-underline-offset: 0.18em;
}

a.paper-title:hover {
  color: #6f4e10;
  text-decoration-color: currentColor;
}

strong {
  color: var(--ink);
  font-weight: 800;
}

.publication-list strong {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(49, 95, 114, 0.35);
  text-underline-offset: 0.18em;
}

em {
  color: var(--muted);
  font-style: italic;
}

.timeline-list,
.contact-list {
  display: grid;
  gap: 12px;
}

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

.experience-role {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.company-logo {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.timeline-list time,
.contact-list li > span:first-child {
  color: var(--muted);
}

.contact-list {
  max-width: 520px;
}

.contact-list li {
  grid-template-columns: 84px minmax(0, 1fr);
}

.site-footer {
  padding: 6px 0 44px;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(760px, calc(100% - 28px));
  }

  .site-header {
    display: block;
    padding: 28px 0 30px;
  }

  .site-nav {
    justify-content: flex-start;
    max-width: none;
    margin-top: 12px;
  }

  .section {
    padding-bottom: 36px;
  }

  .news-list li,
  .timeline-list li,
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .publication-list {
    gap: 24px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header {
    padding-top: 0;
  }

  .site-header,
  main,
  .site-footer {
    width: 100%;
  }
}
