@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: local("Lato Regular"), local("Lato-Regular"), url("https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: local("Lato Bold"), local("Lato-Bold"), url("https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  src: local("Lato Italic"), local("Lato-Italic"), url("https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2") format("woff2");
}

:root {
  --global-bg-color: #fff;
  --global-text-color: #000;
}

body,
td,
th,
tr,
p,
a,
li {
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

body {
  margin: 0;
  color: var(--global-text-color);
  background: var(--global-bg-color);
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

strong {
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 32px;
  text-align: center;
}

.links {
  text-align: center;
}

.page-table {
  width: 100%;
  max-width: 800px;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  margin-right: auto;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.page-table > tbody > tr > td {
  padding: 0;
}

.intro-table,
.section-table {
  width: 100%;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  margin-right: auto;
  margin-left: auto;
}

.section-table {
  margin-top: -28px;
}

.intro-copy {
  padding: 2.5%;
  width: 63%;
  vertical-align: middle;
}

.intro-photo {
  padding: 2.5%;
  width: 37%;
  max-width: 37%;
  vertical-align: middle;
}

.intro-photo img {
  display: block;
  width: 78%;
  max-width: 100%;
  margin: 18px auto 0;
  object-fit: cover;
  border-radius: 50%;
  cursor: default;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.section-table td {
  padding: 4px 16px 16px;
  width: 100%;
  vertical-align: middle;
}

.research-summary {
  margin: 12px 0 18px;
}

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

.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.research-grid ol {
  margin: 0;
  padding-left: 20px;
}

.research-grid > ol > li {
  margin-bottom: 12px;
}

.research-grid ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.paper-note {
  color: #c00;
  font-weight: 700;
  text-decoration: underline;
}

.research-orb {
  display: flex;
  justify-content: center;
  margin: 6px 0 0;
}

.research-orb canvas {
  display: block;
  width: 256px;
  height: 256px;
  margin: 0 auto;
  image-rendering: pixelated;
}

.plain-page {
  width: 100%;
  max-width: 800px;
  margin: 80px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.attribution {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin: 18px 0 28px;
}

.attribution a {
  font-size: 12px;
}

body.distort-bg-page {
  background-color: transparent;
}

body.distort-bg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--global-bg-color);
  pointer-events: none;
}

.distort-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: var(--distort-bg-base-color, transparent);
  filter: var(--distort-bg-filter, none);
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}

.distort-background canvas,
.distort-background img {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  object-fit: cover;
  opacity: var(--distort-bg-opacity, 1);
  mix-blend-mode: var(--distort-bg-blend-mode, overlay);
}

.distort-background canvas {
  opacity: 0;
}

.distort-background.is-ready canvas {
  opacity: var(--distort-bg-opacity, 1);
}

.distort-background.is-ready img {
  opacity: 0;
}

.distort-background.is-fallback img {
  opacity: var(--distort-bg-opacity, 1);
}

.hidden {
  display: none;
}

.unselectable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.egg {
  position: fixed;
  height: 40vh;
  z-index: 1040;
  pointer-events: none;
}

.egg-howard {
  right: 0;
  bottom: 35px;
}

.egg-gaster {
  left: 20px;
  bottom: 0;
}

@media (max-width: 790px) {
  .distort-background canvas {
    display: none;
  }

  .distort-background img,
  .distort-background.is-ready img {
    opacity: var(--distort-bg-opacity, 1);
  }

  .intro-table,
  .intro-table tbody,
  .intro-table tr,
  .intro-table td {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .intro-table .intro-photo {
    width: min(70vw, 240px);
    max-width: 240px;
    margin: 0 auto;
  }

  .intro-photo img {
    width: 100%;
    margin-top: 8px;
  }

  .section-table {
    margin-top: 0;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .research-grid ol + ol {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .distort-background canvas {
    display: none;
  }

  .distort-background img {
    opacity: var(--distort-bg-opacity, 1);
  }
}
