:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f6672;
  --border: #e5e7eb;
  --link: #457A4B;
  --link-hover: #94BF36;
  --extra-link: #8C6A2A;
  --extra-link-hover: #A69B7C;
  --max-content-width: 850px;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__groups {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.site-nav__brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav__links a {
  font-weight: 700;
}

.site-nav__extra-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.site-nav__extra-links a {
  color: var(--extra-link);
  font-weight: 700;
  white-space: nowrap;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

.site-nav__extra-links a,
.site-nav__extra-links a:visited {
  color: var(--extra-link);
}

.site-nav__extra-links a:hover,
.site-nav__extra-links a:focus-visible,
.site-nav__extra-links a:visited:hover,
.site-nav__extra-links a:visited:focus-visible {
  color: var(--extra-link-hover);
}

.page-content {
  padding-top: calc(var(--nav-height) + 2.1rem);
  padding-bottom: 3rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.6rem 0;
}

strong {
  font-weight: 650;
}

.thesis-cover-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 0.6rem 0 1rem;
}

.thesis-cover-grid__image {
  height: 400px;
}

.thesis-cover-grid__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thesis-cover-grid__text {
  margin-top: 0;
}

.pub-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 0.8rem 0 1.1rem;
}

.pub-card__ga {
  width: 320px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fafafa;
  overflow: visible;
}

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

.pub-card__ga--empty {
  background: #ffffff;
  min-height: 200px;
}

.pub-card__content p {
  margin: 0 0 0.55rem;
}

.pub-card__title {
  margin: 0 0 0.3rem;
  line-height: 1.35;
  font-weight: 800;
}

.pub-card__title a,
.pub-card__title a:visited {
  color: var(--link);
  font-weight: inherit;
}

.pub-card__authors {
  margin: 0;
  color: var(--text);
}

.pub-card__me {
  color: var(--text);
  font-weight: 700;
}

.pub-card__venue {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pub-card__summary {
  margin: 0 0 0.55rem;
}

@media (max-width: 760px) {
  .site-nav {
    height: auto;
  }

  .site-nav__inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    flex-wrap: nowrap;
  }

  .site-nav__links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .site-nav__groups {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav__links,
  .site-nav__extra-links {
    width: auto;
    flex-wrap: nowrap;
  }

  .site-nav__extra-links {
    padding-left: 0.8rem;
    border-left: 1px solid var(--border);
    padding-top: 0;
    border-top: 0;
  }

  .page-content {
    padding-top: 5.6rem;
  }

}

@media (max-width: 560px) {
  .thesis-cover-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .pub-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .pub-card__ga {
    width: 320px;
    max-width: 100%;
    height: auto;
  }

  .pub-card__ga img {
    width: 100%;
    height: auto;
  }

  .thesis-cover-grid__image {
    max-width: 360px;
    height: auto;
  }

  .thesis-cover-grid__image img {
    height: auto;
    object-fit: contain;
  }
}