:root {
  --background: #141313;
  --surface-lowest: #0e0e0e;
  --surface: #1c1b1b;
  --text: #e5e2e1;
  --muted: rgba(229, 226, 225, 0.64);
  --faint: rgba(253, 248, 248, 0.1);
  --line: rgba(253, 248, 248, 0.14);
  --blue: #003366;
  --max-width: 1520px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  height: 80px;
  border-bottom: 1px solid rgba(68, 71, 72, 0.72);
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner,
.footer-inner {
  display: flex;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 40px;
}

.nav-inner {
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.page {
  min-height: 100vh;
  padding: 112px 40px 92px;
}

.labs {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.labs h1 {
  margin: 0 0 40px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lab-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--faint);
  background: var(--surface-lowest);
}

.lab-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(1) contrast(1.04);
  image-rendering: auto;
  transition: filter 700ms ease;
}

.lab-frame:hover img {
  filter: grayscale(0.15) contrast(1.08);
}

.lab-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  background: rgba(20, 19, 19, 0.42);
  text-align: center;
}

.lab-link {
  display: flex;
  min-width: 0;
  height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline-offset: 8px;
}

.lab-link + .lab-link {
  border-left: 1px solid var(--line);
}

.lab-title {
  font-family: "Libre Baskerville", Georgia, serif;
  color: rgba(253, 248, 248, 0.88);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
  text-shadow: 0 1px 0 #000, 0 12px 28px rgba(0, 0, 0, 0.65);
  transition: color 260ms ease, opacity 260ms ease;
}

.lab-label {
  margin-top: 12px;
  color: rgba(253, 248, 248, 0.46);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  transition: color 260ms ease, opacity 260ms ease;
}

.lab-link:hover .lab-title,
.lab-link:focus-visible .lab-title {
  color: #ffffff;
}

.lab-link:hover .lab-label,
.lab-link:focus-visible .lab-label {
  color: rgba(253, 248, 248, 0.84);
}

.lab-link-disabled {
  pointer-events: none;
}

.lab-link-disabled .lab-title {
  color: rgba(253, 248, 248, 0.32);
}

.lab-link-disabled .lab-label {
  color: rgba(253, 248, 248, 0.25);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 56px;
  border-top: 1px solid rgba(68, 71, 72, 0.45);
  background: rgba(14, 14, 14, 0.86);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.footer-inner {
  min-height: 56px;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-footer a {
  color: #004f9e;
  transition: color 240ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #8e9192;
}

.footer-disabled {
  color: var(--muted);
  cursor: default;
  transition: color 240ms ease;
}

.footer-disabled:hover {
  color: #050505;
}

@media (max-width: 980px) {
  .top-nav {
    height: 72px;
  }

  .nav-inner,
  .footer-inner,
  .page {
    padding-right: 24px;
    padding-left: 24px;
  }

  .page {
    padding-top: 104px;
  }

  .lab-frame {
    aspect-ratio: auto;
    min-height: 620px;
  }

  .lab-overlay {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .lab-link + .lab-link {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    position: static;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .labs h1 {
    font-size: 34px;
  }

  .lab-title {
    font-size: 26px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
  }
}
