/* retroframe.css developed by Bob Tianqi Wei */

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 24px;
  box-sizing: border-box;
  background: #d8e5f6;
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(#edf4fb, #d8e5f6 180px, #cedcf1);
  color: #33393f;
  font: 11px/1.5 Verdana, Arial, Helvetica, sans-serif;
}

a {
  color: #5a7188;
  text-decoration: underline;
}

img {
  border: 0;
  display: block;
}

.page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 960px;
  margin: 0;
  min-height: 0;
  border: 1px solid rgba(107, 140, 187, 0.95);
  background: linear-gradient(rgba(255, 255, 255, 0.78), rgba(231, 239, 250, 0.78));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 18px 30px rgba(76, 104, 149, 0.24);
  overflow: hidden;
  backdrop-filter: blur(7px) saturate(115%);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
}

body[data-page="project"] {
  background: #d9dddf;
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(#eceff1, #d9dddf 180px, #c9ced1);
}

body[data-page="project"] .page {
  border: 1px solid rgba(152, 158, 164, 0.92);
  background: linear-gradient(rgba(255, 255, 255, 0.84), rgba(243, 245, 246, 0.82));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 18px 30px rgba(67, 73, 79, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] {
  background: #d9dddf;
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(#eceff1, #d9dddf 180px, #c9ced1);
}

body[data-page="home"] .page {
  border: 1px solid rgba(152, 158, 164, 0.92);
  background: linear-gradient(rgba(255, 255, 255, 0.84), rgba(243, 245, 246, 0.82));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 18px 30px rgba(67, 73, 79, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(194, 198, 202, 0.9);
  background: #f7f7f7;
  text-align: right;
  color: #686d72;
  font-size: 10px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.topbar-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  opacity: 0.9;
}

.topbar-link {
  margin-right: auto;
  color: #5f656b;
  text-decoration: underline;
}

.topbar-text {
  color: #787d82;
}

#sf-prefix {
  margin-right: 4px;
  color: #787d82;
}

#sf-status {
  margin-left: 2px;
  color: #5f656b;
}

.banner {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(83, 114, 164, 0.92);
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 36%),
    linear-gradient(#7eb1ed, #4c7bc0 46%, #2b579f 75%, #244b8e);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 -18px 36px rgba(255, 255, 255, 0.12) inset;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.banner h1 {
  margin: 0 0 4px;
  font: 600 28px/1.1 Tahoma, Verdana, Arial, sans-serif;
  letter-spacing: 0.02em;
}

body[data-page="project"] .banner {
  border-top: 1px solid rgba(170, 174, 178, 0.52);
  border-bottom: 1px solid rgba(82, 87, 93, 0.95);
  background: linear-gradient(#8b9095, #5f6368);
  color: #eff1f2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.16) inset;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
}

body[data-page="project"] .banner h1 {
  color: #f5f6f7;
  font-size: 30px;
  letter-spacing: 0.01em;
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .banner {
  border-top: 1px solid rgba(170, 174, 178, 0.52);
  border-bottom: 1px solid rgba(82, 87, 93, 0.95);
  background: linear-gradient(#8b9095, #5f6368);
  color: #eff1f2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.16) inset;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
}

body[data-page="home"] .banner h1 {
  color: #f5f6f7;
  font-size: 30px;
  letter-spacing: 0.01em;
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.banner p {
  margin: 0;
  font-size: 12px;
}

body[data-page="project"] .banner p {
  color: #d7dbde;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
}

body[data-page="home"] .banner p {
  color: #d7dbde;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(118, 145, 187, 0.72);
  background:
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.1)),
    linear-gradient(rgba(228, 238, 251, 0.86), rgba(205, 221, 242, 0.84));
  font-size: 11px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 -1px 0 rgba(255, 255, 255, 0.28) inset;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
}

.nav a {
  margin-right: 14px;
  color: #204978;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  white-space: nowrap;
}

.language-switch a,
body[data-page="home"] .language-switch a,
body[data-page="project"] .language-switch a {
  margin: 0;
  padding: 1px 3px;
  border: 1px solid transparent;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.language-switch span {
  color: rgba(255, 255, 255, 0.64);
}

body[data-page="project"] .nav {
  border-bottom: 1px solid rgba(117, 122, 128, 0.82);
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 34%),
    linear-gradient(#92969a, #7e8287 50%, #70757a 51%, #868b90);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

body[data-page="project"] .nav a {
  color: #eceeef;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.65);
}

body[data-page="home"] .nav {
  border-bottom: 1px solid rgba(117, 122, 128, 0.82);
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 34%),
    linear-gradient(#92969a, #7e8287 50%, #70757a 51%, #868b90);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

body[data-page="home"] .nav a {
  color: #eceeef;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.65);
}

.best-viewed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-bottom: 1px solid rgba(169, 150, 79, 0.6);
  background:
    linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0) 44%),
    linear-gradient(rgba(255, 253, 241, 0.92), rgba(249, 241, 200, 0.88));
  color: #5b4b12;
  font-size: 10px;
  line-height: 1.3;
}

.best-viewed-label {
  flex: 0 0 auto;
  color: #7b5b00;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.best-viewed-text {
  flex: 1 1 auto;
  min-width: 0;
}

body[data-page="project"] .best-viewed {
  border-bottom: 1px solid rgba(182, 171, 137, 0.56);
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 44%),
    linear-gradient(rgba(244, 240, 227, 0.94), rgba(230, 223, 200, 0.9));
  color: #655f4e;
}

body[data-page="home"] .best-viewed {
  border-bottom: 1px solid rgba(182, 171, 137, 0.56);
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 44%),
    linear-gradient(rgba(244, 240, 227, 0.94), rgba(230, 223, 200, 0.9));
  color: #655f4e;
}

.content {
  flex: 1 1 auto;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.content td {
  vertical-align: top;
}

.sidebar {
  width: 220px;
  border-right: 1px solid #c4d4ea;
  background: linear-gradient(rgba(241, 246, 252, 0.78), rgba(226, 236, 248, 0.7));
}

body[data-page="project"] .sidebar {
  background: linear-gradient(rgba(224, 228, 231, 0.84), rgba(212, 217, 221, 0.76));
}

body[data-page="home"] .sidebar {
  background: linear-gradient(rgba(224, 228, 231, 0.84), rgba(212, 217, 221, 0.76));
}

.main {
  background: #fff;
}

.box {
  margin: 10px;
  border: 1px solid rgba(162, 185, 217, 0.95);
  background: linear-gradient(rgba(255, 255, 255, 0.84), rgba(244, 248, 253, 0.72));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(106, 131, 168, 0.12);
  overflow: hidden;
}

body[data-page="project"] .box {
  border: 1px solid rgba(189, 194, 199, 0.95);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(73, 79, 87, 0.06);
}

body[data-page="home"] .box {
  border: 1px solid rgba(189, 194, 199, 0.95);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(73, 79, 87, 0.06);
}

.box-title {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(159, 183, 217, 0.95);
  background:
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 48%),
    linear-gradient(rgba(236, 244, 253, 0.95), rgba(212, 227, 245, 0.92));
  color: #133a73;
  font: 600 11px Tahoma, Verdana, Arial, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-page="project"] .box-title {
  border-bottom: 1px solid rgba(173, 178, 184, 0.94);
  background:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 36%),
    linear-gradient(#d2d5d8, #c4c8cc 50%, #babec3 51%, #d0d4d8);
  color: #4c5258;
}

body[data-page="home"] .box-title {
  border-bottom: 1px solid rgba(173, 178, 184, 0.94);
  background:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 36%),
    linear-gradient(#d2d5d8, #c4c8cc 50%, #babec3 51%, #d0d4d8);
  color: #4c5258;
}

.box-body {
  padding: 8px;
  background: #fff;
}

body[data-page="project"] .box-body,
body[data-page="project"] .box-body p,
body[data-page="project"] .box-body a {
  color: #464b50;
  text-shadow: none;
}

body[data-page="home"] .box-body,
body[data-page="home"] .box-body p,
body[data-page="home"] .box-body a {
  color: #464b50;
  text-shadow: none;
}

.box-body p {
  margin: 0 0 8px;
}

.box-body strong {
  font-weight: 600;
}

.mini-nav a {
  display: block;
  padding: 2px 0;
}

.plain-list {
  margin: 0;
  padding-left: 16px;
}

.plain-list li {
  margin-bottom: 4px;
}

.profile-photo {
  display: block;
  width: calc(100% - 16px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-sizing: border-box;
  margin: 8px 8px 10px;
  border: 1px solid #a9bfdc;
  background: #fff;
}

body[data-page="project"] a {
  color: #5f6f7e;
}

body[data-page="home"] a {
  color: #5f6f7e;
}

.intro-copy,
.intro-copy p {
  color: #464b50;
  font-size: 12px;
  line-height: 1.7;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 18px 22px;
}

.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  width: 100%;
  min-height: 44px;
}

.trust-item:not(:nth-child(6n))::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 1px;
  height: 30px;
  background: #d8e3f1;
  transform: translateY(-50%);
}

.trust-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 28px;
}

.trust-item img.trust-item--invert {
  filter: brightness(0);
}

.feature-table,
.project-table {
  width: 100%;
  border-collapse: collapse;
}

.feature-table td,
.project-table td {
  padding: 8px;
  border-top: 1px solid #e2ebf6;
}

.feature-table tr:first-child td,
.project-table tr:first-child td {
  border-top: 0;
}

.thumb {
  width: 160px;
}

.thumb a {
  display: block;
  position: relative;
}

.thumb img,
.project-gallery-image {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #a9bfdc;
  background: #fff;
}

body[data-page="project"] .project-gallery-image {
  background: #eef3f8;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb img {
  width: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-title {
  margin: 0 0 4px;
  font: 600 12px Tahoma, Verdana, Arial, sans-serif;
}

.project-meta {
  color: #5a6f8d;
  font-size: 10px;
  text-transform: uppercase;
}

.project-submeta {
  margin: 0 0 4px;
  color: #6d737a;
  font-size: 10px;
  line-height: 1.5;
}

.project-header {
  margin: 10px 10px 0;
  padding: 16px 18px 14px;
  border-top: 1px solid rgba(170, 174, 178, 0.52);
  border-bottom: 1px solid rgba(82, 87, 93, 0.95);
  background: linear-gradient(#8b9095, #5f6368);
  color: #eff1f2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.16) inset;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
}

.project-header-title {
  margin: 0 0 6px;
  color: #f5f6f7;
  font: 600 30px/1.1 Tahoma, Verdana, Arial, sans-serif;
}

.project-header-headline {
  margin: 0;
  color: #d7dbde;
  font-size: 12px;
  line-height: 1.55;
}

.project-hero-media {
  margin: 10px;
}

.project-richtext,
.project-richtext p {
  color: #464b50;
  font-size: 12px;
  line-height: 1.65;
}

.project-richtext p:first-child {
  margin-top: 0;
}

.project-richtext p:last-child {
  margin-bottom: 0;
}

.publication-meta p {
  margin: 0 0 8px;
  color: #464b50;
  font-size: 11px;
  line-height: 1.55;
}

.publication-meta p:last-child {
  margin-bottom: 0;
}

.project-figure {
  margin: 14px 0 0;
  max-width: 100%;
}

.image-description {
  margin-top: 8px;
  color: #6f7780;
  font-size: 10px;
  text-align: center;
}

.classic-slider {
  position: relative;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #a9bfdc;
  background: #eef3f8;
}

.classic-slider-frame {
  position: relative;
  overflow: hidden;
  background: #eef3f8;
  max-width: 100%;
}

.classic-slide {
  display: none;
}

.classic-slide.is-active {
  display: block;
}

.classic-slide .project-gallery-image {
  border: 0;
}

.classic-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 1px solid rgba(101, 114, 128, 0.78);
  border-radius: 999px;
  background: rgba(247, 250, 253, 0.94);
  color: #4f5d6a;
  font: 600 22px/1 Verdana, Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.classic-slider-prev {
  left: 10px;
}

.classic-slider-next {
  right: 10px;
}

.classic-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #c6d5e7;
  background: rgba(240, 245, 251, 0.96);
}

.classic-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #a6b6c8;
  cursor: pointer;
}

.classic-slider-dot.is-active {
  background: #586b7f;
}

.footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(118, 145, 187, 0.72);
  background: linear-gradient(rgba(240, 246, 252, 0.86), rgba(220, 232, 246, 0.78));
  color: #264b7d;
  font-size: 10px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-page="project"] .footer {
  border-top: 1px solid rgba(111, 117, 123, 0.82);
  background: #f1f2f3;
  color: #70757a;
  text-shadow: none;
}

body[data-page="home"] .footer {
  border-top: 1px solid rgba(111, 117, 123, 0.82);
  background: #f1f2f3;
  color: #70757a;
  text-shadow: none;
}

@media screen and (max-width: 980px) {
  .page {
    width: calc(100vw - 20px);
    margin: 10px auto 20px;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 13px;
    line-height: 1.65;
  }

  .topbar,
  .best-viewed,
  .footer,
  .project-meta,
  .project-submeta,
  .image-description {
    font-size: 12px;
  }

  .banner h1,
  body[data-page="home"] .banner h1,
  body[data-page="project"] .banner h1 {
    font-size: 34px;
  }

  .project-header-title {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .banner p,
  .intro-copy,
  .intro-copy p,
  .project-header-headline,
  .project-richtext,
  .project-richtext p,
  .project-title {
    font-size: 14px;
  }

  .project-title {
    line-height: 1.5;
  }

  .publication-meta p,
  .box-title {
    font-size: 13px;
  }

  .nav {
    align-items: center;
    gap: 6px;
    padding: 8px;
    font-size: 12px;
  }

  .nav-links {
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
  }

  .nav-links > a {
    margin-right: 0;
  }

  .nav-links > a:nth-last-child(-n + 3) {
    display: none;
  }

  .language-switch {
    gap: 3px;
    font-size: 12px;
  }

  .quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .quick-links-grid li {
    min-width: 0;
    margin-bottom: 0;
  }

  .content,
  .content tbody,
  .content tr,
  .content td {
    display: block;
    width: 100%;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #c4d4ea;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item::after {
    display: none;
  }

  .thumb,
  .thumb img {
    width: 100%;
  }

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

  .feature-table .thumb {
    padding: 8px 8px 0;
  }

  #projects .feature-table tr + tr .thumb,
  #publications .project-table tr + tr td {
    padding-top: 16px;
  }

  .feature-table .thumb + td {
    padding-top: 6px;
  }

  .profile-photo {
    width: 60%;
    margin-right: auto;
    margin-left: auto;
  }
}
