:root {
  --grey: rgb(90, 90, 90);
  --blue1: rgb(2, 33, 105);
  --blue2: rgb(0, 51, 160);
  --pink1: #f9564f;
  --line: #dddddd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--grey);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

a {
  color: var(--pink1);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--blue2);
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 1000px;
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  width: 1000px;
  height: 52px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  padding: 0 30px;
}

.nav a {
  color: var(--grey);
}

.nav a:hover,
.nav a:focus {
  color: var(--pink1);
}

.section {
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 64px;
}

.project-header {
  padding-top: 92px;
  text-align: center;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--blue1);
  font-weight: 500;
}

h1 {
  margin-bottom: 10px;
  font-size: 3em;
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.8em;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2em;
}

p {
  margin: 0 0 14px;
}

.project-subtitle {
  max-width: 760px;
  margin: 0 auto 16px;
  color: var(--blue1);
  font-size: 1.35em;
  line-height: 1.35;
}

.authors {
  max-width: 820px;
  margin: 0 auto 6px;
}

.authors strong {
  color: var(--grey);
  font-weight: 700;
}

.venue {
  margin-bottom: 12px;
  font-style: italic;
}

.project-links {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.project-links a:not(:last-child)::after {
  margin: 0 8px;
  color: var(--grey);
  content: "/";
}

.intro {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 38px;
}

.teaser,
.result-figure {
  margin: 0;
}

.teaser img {
  width: 100%;
}

figcaption {
  margin-top: 8px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.text-section {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.text-width,
#results > h2 {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--pink1);
  color: var(--blue1);
  font-size: 1.15em;
}

.equation {
  color: var(--blue1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25em;
  text-align: center;
}

.note {
  color: var(--grey);
  font-size: 14px;
}

.result-figure {
  margin-top: 22px;
}

.result-figure img {
  width: 100%;
}

.result-copy {
  margin-top: 28px;
}

.table-wrap {
  max-width: 800px;
  overflow-x: auto;
  margin: 18px auto 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  margin-bottom: 8px;
  font-size: 13px;
  text-align: left;
}

th,
td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--blue1);
  font-weight: 600;
}

details {
  margin-top: 24px;
}

summary {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  color: var(--pink1);
  cursor: pointer;
}

pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  padding: 20px 30px 36px;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1048px) {
  .container,
  .site-header {
    width: 100%;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .nav {
    padding: 0 20px;
  }

  .section {
    padding: 24px 20px;
  }

  .project-header {
    padding-top: 80px;
  }

  h1 {
    font-size: 2.5em;
  }

  .project-subtitle {
    font-size: 1.2em;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .teaser {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  th,
  td {
    padding: 8px;
  }
}
