:root {
  --blue:#10578d;
  --link:#07558b;
  --nav:#002f53;
  --orange:#ffb849;
  --heading:#b35800;
  --purple:#704498;
  --text:#25333d;
  --muted:#586878;
  --line:#dce4eb;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--blue);
  color: var(--text);
  font:
    16px/1.7 Verdana,
    Arial,
    sans-serif;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--purple);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #d17b18;
  outline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  line-height: 1.3;
}
h2,
h3 {
  margin: 0 0 16px;
}
h2 {
  color: var(--heading);
  font:
    bold 25px/1.35 "Trebuchet MS",
    Verdana,
    sans-serif;
}
h3 {
  font-size: 18px;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 15px;
  background: white;
  padding: 8px 16px;
  z-index: 2;
}
.skip-link:focus {
  top: 10px;
}
#wrapper {
  width: min(1110px, calc(100% - 64px));
  margin: 38px auto 0;
}
.title {
  display: inline-block;
  min-width: 440px;
  padding: 22px 30px;
  background: #282828;
  border-radius: 10px;
  box-shadow: 0 3px 0 #002f5350;
}
.title h1 {
  font:
    normal 30px/1.3 Georgia,
    "Times New Roman",
    serif;
  margin: 0;
}
.title h1 a {
  color: var(--orange);
  text-decoration: none;
}
.title p {
  color: #e0e7ee;
  font-size: 14px;
  margin: 6px 0 0;
}
.content {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}
.column-left {
  color: white;
  text-align: center;
  padding-top: 9px;
}
.column-left h2 {
  font: normal 19px/1.3 Georgia, serif;
  color: white;
  margin: 0 0 16px;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu a {
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 3px;
}
.menu a:hover,
.menu a[aria-current=page] {
  background: var(--nav);
}
.column-right {
  min-width: 0;
  background: #fff;
  border: 1px solid #d1dce6;
  border-radius: 9px;
  padding: 32px;
}
.intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.portrait {
  width: 220px;
  height: auto;
  border: 1px solid #d7dfe5;
  padding: 4px;
  background: #fff;
}
.intro h2 {
  margin: 0 0 16px;
  font-size: 25px;
}
.intro p {
  font-size: 15px;
  line-height: 1.8;
}
.contact-block {
  margin-top: 28px;
}
.contact-block h3 {
  color: var(--heading);
  margin-bottom: 8px;
}
.contact-block p {
  margin: 0 0 8px;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.fun-note {
  margin-top: 26px;
  color: var(--purple);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.home-section {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.section-heading > a {
  font-size: 14px;
  white-space: nowrap;
}
.publication {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.publication:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.publication h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.publication p {
  font-size: 14px;
  margin-bottom: 4px;
}
.publication .venue {
  color: var(--muted);
}
.publication.has-image {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 20px;
  align-items: center;
}
.publication img {
  width: 115px;
  height: 105px;
  object-fit: contain;
}
.earlier-talks {
  font-size: 14px;
}
.earlier-talks summary {
  cursor: pointer;
  color: var(--purple);
  font-size: 17px;
  font-weight: bold;
}
.earlier-talks ul {
  margin-bottom: 0;
  padding-left: 22px;
}
.site-footer {
  margin: 24px 0 35px 147px;
  color: #e1edf6;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.site-footer a {
  color: #fff;
}
.page-intro {
  color: var(--muted);
  margin-bottom: 24px;
}
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.project-tabs a {
  border: 1px solid #d1dce6;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 8px 13px;
  color: #244c6a;
  text-decoration: none;
  font-size: 14px;
}
.project-tabs a:hover {
  background: #e3edf5;
}
.project-tabs a[aria-selected=true] {
  background: var(--nav);
  border-color: var(--nav);
  color: white;
}
.project-panel[hidden] {
  display: none;
}
.project-panel + .project-panel:not([hidden]) {
  margin-top: 35px;
}
.tabs-enabled .project-panel {
  margin-top: 0;
}
.project-panel > h3 {
  color: var(--purple);
  font-size: 21px;
  margin-bottom: 12px;
}
.project-description {
  color: var(--muted);
  font-size: 15px;
}
.empty-project {
  margin: 22px 0 5px;
  padding: 19px 22px;
  background: #f5f7fa;
  border-left: 3px solid #a8b9ca;
  color: var(--muted);
  font-size: 14px;
}
.post {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 23px;
}
.post h4 {
  margin: 0 0 8px;
  font-size: 18px;
}
.post-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 17px;
}
.gameplay-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gameplay-heading time {
  color: var(--muted);
  font-size: 13px;
}
.gameplay-row {
  display: flex;
  gap: 18px;
  overflow-x: scroll;
  scroll-snap-type: x proximity;
  padding: 4px 0 14px;
  scrollbar-color: var(--link) #edf2f6;
  scrollbar-width: auto;
}
.gameplay-row::-webkit-scrollbar {
  height: 12px;
}
.gameplay-row::-webkit-scrollbar-button {
  display: none;
  width: 0;
}
.gameplay-row::-webkit-scrollbar-track {
  background: #edf2f6;
  border-radius: 8px;
}
.gameplay-row::-webkit-scrollbar-thumb {
  background: var(--link);
  border: 2px solid #edf2f6;
  border-radius: 8px;
}
.gameplay-clip {
  flex: 0 0 86%;
  max-width: 560px;
  min-width: 0;
  scroll-snap-align: start;
}
.gameplay-clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
  border-radius: 5px;
}
.gameplay-clip figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.gameplay-carousel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}
.gameplay-row.carousel-enabled {
  display: block;
  overflow: visible;
  padding: 4px 0;
}
.carousel-enabled .gameplay-clip {
  max-width: none;
  margin: 0;
}
.carousel-enabled .gameplay-clip[hidden] { display: none; }
.gameplay-arrow {
  width: 36px;
  height: 52px;
  padding: 0;
  border: 1px solid #cddbe6;
  border-radius: 6px;
  background: #edf2f6;
  color: var(--link);
  font: 32px/1 sans-serif;
  cursor: pointer;
}
.gameplay-arrow:hover { background: #dce8f1; }
.gameplay-arrow:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@media (max-width: 520px) {
  .gameplay-carousel { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 4px; }
  .gameplay-arrow { width: 28px; height: 44px; }
}
.post p {
  font-size: 15px;
}
.project-post-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.project-post-layout img {
  max-height: 190px;
  width: 100%;
  object-fit: contain;
}
.archive-link {
  font-size: 14px;
}
.gallery-grid,
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 20px;
  margin-top: 24px;
}
.gallery-item button {
  width: 100%;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #eef2f5;
}
.gallery-item figcaption,
.snapshot-grid figcaption {
  font-size: 14px;
  margin-top: 9px;
}
.gallery-item figcaption span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.snapshot-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #eef2f5;
}
.lightbox {
  border: 0;
  border-radius: 6px;
  padding: 20px;
  color: var(--text);
  background: white;
  max-width: min(960px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
}
.lightbox::backdrop {
  background: #07263ee8;
}
.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.lightbox-top h2 {
  margin: 0;
  font: bold 18px/1.4 Verdana, sans-serif;
  color: var(--text);
}
.lightbox button {
  border: 1px solid #b8c8d7;
  border-radius: 3px;
  color: var(--text);
  background: #f1f5f9;
  font-size: 14px;
  padding: 7px 13px;
}
.lightbox img {
  max-height: calc(100dvh - 190px);
  width: auto;
  max-width: 100%;
  margin: auto;
}
.lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.lightbox-count {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1000px) {
  #wrapper {
    width: calc(100% - 40px);
  }
  .content {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
  }
  .column-right {
    padding: 25px;
  }
  .intro {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 23px;
  }
  .portrait {
    width: 170px;
  }
  .site-footer {
    margin-left: 118px;
  }
}
@media (max-width: 720px) {
  #wrapper {
    width: calc(100% - 26px);
    margin-top: 18px;
  }
  .title {
    min-width: 0;
    width: 100%;
    padding: 21px 23px;
  }
  .title h1 {
    font-size: 27px;
  }
  .title p {
    font-size: 13px;
  }
  .content {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 16px;
  }
  .column-left {
    padding: 0;
    text-align: left;
  }
  .column-left h2 {
    display: none;
  }
  .menu {
    flex-direction: row;
    gap: 10px;
  }
  .menu a {
    padding: 9px 17px;
  }
  .column-right {
    padding: 25px 21px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .portrait {
    width: 205px;
  }
  .intro p {
    font-size: 16px;
  }
  .section-heading {
    flex-direction: column;
    align-items: start;
    gap: 0;
    margin-bottom: 8px;
  }
  .section-heading h2 {
    margin-bottom: 8px;
  }
  .publication.has-image {
    grid-template-columns: 85px 1fr;
    gap: 14px;
  }
  .publication img {
    width: 85px;
    height: 85px;
  }
  .publication h3 {
    font-size: 16px;
  }
  .publication p {
    font-size: 13px;
  }
  .site-footer {
    margin-left: 0;
    flex-direction: column;
    gap: 7px;
  }
  .project-tabs {
    gap: 7px;
  }
  .project-tabs a {
    padding: 7px 10px;
    font-size: 13px;
  }
  .project-post-layout {
    grid-template-columns: 1fr;
  }
  .project-post-layout img {
    width: 210px;
  }
  .gallery-grid,
  .snapshot-grid {
    gap: 22px 13px;
  }
  .gallery-item figcaption {
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .gallery-grid,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }
  .publication.has-image {
    grid-template-columns: 1fr;
  }
  .publication.has-image img {
    width: 115px;
    height: 85px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body {
    background: white;
    font-size: 11pt;
  }
  #wrapper {
    width: 100%;
    margin: 0;
  }
  .title {
    background: transparent;
    box-shadow: none;
    padding: 0 0 20px;
  }
  .title h1 a,
  .title p {
    color: black;
  }
  .content {
    display: block;
    margin: 0;
  }
  .column-left,
  .site-footer,
  .project-tabs {
    display: none;
  }
  .column-right {
    border: 0;
    padding: 0;
  }
  .project-panel[hidden] {
    display: block;
  }
  .publication,
  .post,
  figure {
    break-inside: avoid;
  }
  .portrait {
    width: 150px;
  }
}
