:root {
  --ink: #434343;
  --muted: #9e9e9e;
  --rule: #e2e0e0;
  --accent: #0875e1;
  --accent-dark: #064f9e;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: 'Google Sans', 'Helvetica', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: .65rem 1rem;
  color: #fff;
  background: #111;
  border-radius: 0 0 .35rem .35rem;
  transform: translateY(-110%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  position: relative;
  flex-grow: 1;
  width: auto;
  max-width: 1152px;
  margin: 0 auto;
}

.container.is-max-desktop {
  max-width: 960px;
}

.columns {
  display: flex;
  margin: -.75rem -.75rem .75rem;
}

.columns:last-child {
  margin-bottom: -.75rem;
}

.columns.is-centered {
  justify-content: center;
}

.column {
  min-width: 0;
  width: 100%;
  padding: .75rem;
}

.column.is-four-fifths {
  flex: 0 1 80%;
  width: 80%;
}

.column.is-8 {
  flex: 0 1 66.6667%;
  width: 66.6667%;
}

.has-text-centered {
  text-align: center;
}

.has-text-justified {
  text-align: justify;
}

.hero-body {
  padding: 1rem 1.5rem 0;
  background: #000;
  border-bottom: 1px solid var(--rule);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: #4e4e4e;
  line-height: 1.125;
}

.publication-title {
  margin: 0 0 1.5rem;
  color: rgb(158, 158, 158);
  font-weight: 600;
  letter-spacing: normal;
}

.paper-name {
  display: inline-block;
  color: #9f0018;
  font-size: 50pt;
  font-weight: 700;
  background: linear-gradient(45deg, #9f0018, #007bff 70%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-inline {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(45deg, #9f0018, #007bff 70%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paper-subtitle {
  display: block;
  margin-top: 0;
  color: rgb(158, 158, 158);
  font-size: 2rem;
  line-height: 1.125;
}

.publication-authors {
  color: darkgray;
  font-size: 1.25rem;
}

.publication-authors sup,
.publication-affiliations sup {
  color: #fff;
  font-size: small;
  vertical-align: super;
}

.publication-authors a {
  font-weight: 700;
}

.author-block {
  display: inline-block;
  margin-right: 5px;
  font-weight: 700;
}

.publication-affiliations {
  margin: 0;
  color: darkgray;
  font-size: 12pt !important;
  line-height: 1.5;
  font-weight: 400;
}

.affiliation-block {
  display: inline;
  margin-right: 5px;
}

a {
  color: rgb(211, 72, 72) !important;
}

a:hover {
  text-decoration: underline;
}

.publication-links {
  margin: 0;
}

.link-block {
  display: inline-block;
}

.resource-column {
  padding-bottom: .75rem;
}

.button.is-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 2.5em;
  margin: 5px 0;
  padding: calc(.5em - 1px) 1em;
  color: #fff !important;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: #000;
  border: 1px solid transparent;
  border-radius: 999px;
  vertical-align: top;
}

.button.is-dark:hover,
.button.is-dark:active {
  color: #fff !important;
  text-decoration: none;
  background: #000;
  border-color: #a23737;
}

.button.is-disabled,
.button.is-disabled:hover {
  color: #aaa !important;
  cursor: not-allowed;
  background: #171717;
  border-color: #333;
  transform: none;
}

.release-status {
  font-size: .82em;
  font-weight: 400;
}

.button .icon {
  display: inline-flex;
  width: 1.5em;
  height: 1.5em;
}

.button .icon:first-child:not(:last-child) {
  margin-right: .25em;
  margin-left: calc(-.5em - 1px);
}

.section {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.title.is-3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.title.is-4 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: darkred !important;
  font-size: 1.5rem;
  font-weight: 600;
}

.content .title.is-4:first-child {
  margin-top: 0;
}

.content em {
  color: #000;
  font-style: normal;
  font-weight: 700;
}

.content ul,
.content ol {
  margin-top: 1em;
  margin-bottom: 1em;
}

.content p {
  margin: 0 0 1rem;
}

.content p:last-child {
  margin-bottom: 0;
}

.video-section {
  background: #fff;
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  object-fit: contain;
  background: #111;
  border: 1px solid #2d2d2d;
  border-radius: .7rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
}

.skill-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.skill-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.skill-card h4 {
  margin: 0 0 .35rem;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.skill-card p {
  min-height: 4.5rem;
  margin-bottom: .85rem;
}

.skill-card .video-player {
  margin-top: auto;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .1);
}

.perception-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

.perception-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.perception-card.is-wide {
  grid-column: 1 / -1;
}

.perception-card h4 {
  margin: 0 0 .35rem;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.perception-card p {
  min-height: 3rem;
  margin-bottom: .85rem;
}

.perception-card .video-player {
  margin-top: auto;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .1);
}

.paper-strip-scroller {
  width: 100%;
  overflow-x: auto;
  padding: .25rem;
  scrollbar-width: thin;
}

.paper-strip-link {
  display: block;
  min-width: 720px;
}

.paper-strip-link:hover {
  text-decoration: none;
}

ol.paper-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  list-style: none;
}

ol.paper-strip > li {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 1px 0 gray;
}

ol.paper-strip img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 120ms ease;
}

.paper-strip-link:hover img {
  opacity: .88;
}

.cite-title {
  margin-top: 3rem;
}

.bibtex-block {
  min-height: 10rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: rgb(50, 50, 50);
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: .875rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}

.footer {
  padding: 3rem 1.5rem 6rem;
  text-align: center;
  background: #fafafa;
}

.footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }

  .columns {
    display: block;
  }

  .column.is-four-fifths,
  .column.is-8 {
    width: 100%;
  }

  .hero-body {
    padding: 1.5rem 1rem .25rem;
  }

  .publication-title {
    margin-bottom: 1rem;
  }

  .paper-name {
    font-size: clamp(2.6rem, 13vw, 50pt);
  }

  .paper-subtitle {
    font-size: 1.75rem;
  }

  .paper-subtitle br,
  .desktop-break {
    display: none;
  }

  .publication-affiliations {
    font-size: .84rem;
  }

  .affiliation-block {
    display: block;
    margin-bottom: .2rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .has-text-justified {
    text-align: left;
  }

  .footer {
    padding: 2.5rem 1rem 4rem;
  }

  .skill-video-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .perception-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .perception-card.is-wide {
    grid-column: auto;
  }

  .skill-card p,
  .perception-card p {
    min-height: 0;
  }
}
