@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Roboto.woff2") format("woff2");
}

:root {
  --fs-name: 28px;
  --fs-lg: 17px;
  --fs-base: 16px;
  --fs-sm: 15px;
  --fs-xs: 14px;
  --fs-xxs: 13px;

  --c-text: #222;
  --c-text-2: #444;
  --c-text-3: #555;
  --c-text-muted: #888;
  --c-text-faint: #bbb;
  --c-border: #ddd;
  --c-border-hover: #aaa;
  --c-bg: #fff;
  --c-accent: #4d7ea8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-bg);
  padding: 48px 0 160px;
}

.page {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.main {
  width: 880px;
  flex-shrink: 0;
}

header {
  margin-bottom: 56px;
}

header h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: var(--fs-name);
  font-weight: 700;
  margin-bottom: 8px;
}

.header-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  margin-bottom: 8px;
}

.contact {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  padding-top: 8px;
}

.contact a {
  color: var(--c-text);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact span {
  margin: 0 8px;
  color: var(--c-text-faint);
}

section + section {
  margin-top: 56px;
}

.toc {
  position: sticky;
  top: 48px;
  align-self: flex-start;
  width: 144px;
  flex-shrink: 0;
  padding-top: 4px;
}

.toc a {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: var(--fs-xxs);
  color: var(--c-text-faint);
  text-decoration: none;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  margin-bottom: 4px;
}

.toc a:hover {
  color: var(--c-text-muted);
}

.toc a.active {
  color: var(--c-text);
  border-left-color: var(--c-text);
  font-weight: 500;
}

.section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 8px;
  margin-bottom: 20px;
  margin-top: 40px;
}

.section-title:first-child {
  margin-top: 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 32px 0 0;
}

.entry {
  margin-bottom: 20px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.entry-title {
  font-weight: 700;
  font-size: var(--fs-lg);
}

.entry-date {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  white-space: nowrap;
  margin-left: 16px;
}

.entry-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  margin-top: 4px;
}

.entry ul {
  margin-top: 8px;
  padding-left: 20px;
}

.entry ul li {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  margin-bottom: 4px;
  line-height: 1.5;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  text-decoration: underline;
}

.pub {
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-fig {
  flex-shrink: 0;
  width: 280px;
}

.pub-fig img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.pub-title {
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
}

.pub-title a:hover {
  text-decoration: underline;
}

.pub-venue {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  font-style: italic;
  margin-top: 4px;
}

.pub-authors {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  margin-top: 4px;
}

.pub-authors strong {
  font-weight: 700;
  color: var(--c-text);
}

.pub-abbr {
  font-style: normal;
  font-weight: 600;
  color: var(--c-text-2);
}

.pub-note {
  font-size: var(--fs-sm);
  color: var(--c-accent);
  font-weight: 500;
  font-style: normal;
}

.pub-status {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-style: normal;
}

.pub-github {
  margin-top: 8px;
}

.pub-sep {
  margin: 0 6px;
  color: var(--c-text-muted);
}

.pub-link {
  font-size: var(--fs-sm);
  color: var(--c-text);
  text-decoration: none;
  font-style: normal;
}

.pub-link:hover {
  text-decoration: underline;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pub-tag {
  font-size: var(--fs-xxs);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: 2px 8px;
  border-radius: 2px;
}

.pub-cofirst {
  font-size: var(--fs-xxs);
  color: var(--c-text-muted);
}

.pub-more {
  margin-top: 8px;
  background: none;
  border: 1px solid var(--c-border);
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  cursor: pointer;
}

.pub-more:hover {
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

@media (max-width: 1080px) {
  .page {
    padding: 0 24px;
  }

  .main {
    width: 100%;
    min-width: 0;
  }

  .toc {
    display: none;
  }

  header {
    text-align: center;
  }

  .pub {
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
  }

  .pub:last-of-type {
    border-bottom: none;
  }

  .pub-fig {
    width: 100%;
  }
}
