:root {
  --ink: #e8e8e8;
  --muted: #b8b8b8;
  --blue: #249fc6;
  --author: #afd0d5;
  --line: #3b3b3b;
  --panel: #151515;
  --page: #1b1b1b;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.container { width: min(960px, calc(100% - 40px)); margin: 0 auto; }
.navbar { min-height: 52px; border-bottom: 1px solid var(--line); background: #1b1b1b; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { color: #f3f3f3; font-size: 19px; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 0; }
.nav-links a { color: #b3b3b3; text-decoration: none; padding: 15px 14px; }
.nav-links a:hover, .brand:hover { color: #fff; }
.menu-button { display: none; border: 1px solid #4a4a4a; border-radius: 4px; background: #202020; color: #eee; font-size: 19px; padding: 3px 8px; }

.intro { display: grid; grid-template-columns: 195px 1fr; gap: 30px; padding: 46px 0 29px; }
.portrait { display: block; width: 180px; height: 180px; border: 1px solid #333; border-radius: 4px; object-fit: cover; }
.intro h1 { margin: 0 0 18px; font-size: 31px; font-weight: 700; line-height: 1.15; }
.intro p { margin: 0 0 12px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.links a, a { color: var(--blue); text-decoration: none; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.icon-link:hover { color: #7ac1d4; text-decoration: none; }
.icon-link svg { width: 18px; height: 18px; stroke-width: 1.8; }
.icon-link .fa-brands { font-size: 17px; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a:hover { text-decoration: underline; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
section { padding: 28px 0 8px; }
h2 { margin: 0 0 17px; color: #fafafa; font-size: 24px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }

.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { margin: 0 0 8px; }
.news-list time { display: inline-block; width: 52px; color: var(--muted); font-weight: 500; }
.timeline-list { margin: 0; padding: 0; list-style: none; }
.timeline-list li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 24px; margin: 0 0 14px; padding-left: 14px; }
.timeline-list li::before { position: absolute; top: 0; left: 0; color: var(--muted); content: "\2022"; }
.timeline-list strong { display: block; color: #f1f1f1; font-weight: 700; }
.timeline-list span { display: block; color: var(--muted); font-size: 15px; }
.timeline-list time { align-self: start; color: var(--muted); font-size: 15px; white-space: nowrap; }
.section-note { margin: -5px 0 18px; }

.pub-list { margin: 0; padding-left: 0; list-style: none; }
.pub-list li { display: grid; grid-template-columns: 145px 1fr; gap: 15px; margin: 0 0 23px; }
.pub-list .year { display: block; margin: 40px 0 18px; }
.pub-list .year:first-child { margin-top: 0; }
.pub-list h3 { margin: 0; color: var(--muted); font-size: 22px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.venue { align-self: start; color: #f1f1f1; font-size: 16px; font-weight: 700; line-height: 1.35; }
.venue:not(:empty) { justify-self: start; padding: 4px 9px; border-radius: 3px; background: var(--blue); color: #f8f8f8; }
.title { color: var(--blue); font-size: 17px; font-weight: 700; line-height: 1.35; }
.pub-list p { margin: 5px 0 0; color: #b5b5b5; font-size: 15px; font-weight: 300; line-height: 1.55; }
.pub-list p strong { color: var(--author); font-weight: 700; }

#service ul { margin: 0; padding-left: 20px; }
#service li { margin: 0 0 8px; }
footer { margin-top: 28px; padding: 21px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer span { float: right; }

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; z-index: 2; top: 51px; right: 16px; left: 16px; flex-direction: column; border: 1px solid #3a3a3a; background: #1b1b1b; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 14px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; }
  .portrait { width: 126px; height: 126px; }
  .timeline-list li { grid-template-columns: 1fr; gap: 2px; }
  .timeline-list time { grid-row: 2; }
  .pub-list li { grid-template-columns: 1fr; gap: 3px; margin-bottom: 22px; }
  .pub-list .year { margin: 34px 0 14px; }
  .venue { font-size: 16px; }
  footer span { display: block; float: none; margin-top: 5px; }
}
