*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, hsl(188 60% 28% / 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, hsl(220 50% 20% / 0.5), transparent 50%),
    hsl(var(--hero-bg));
  color: hsl(var(--hero-foreground));
  line-height: 1.5;
}

.labs {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--site-header-height) + 3rem) 1.5rem 4rem;
}

.labs__intro {
  margin-bottom: 2.5rem;
}

.labs__intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.labs__tagline {
  margin: 0;
  font-size: 1.0625rem;
  color: hsl(var(--hero-foreground) / 0.7);
}

.labs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 560px) {
  .labs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .labs__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.labs__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border: 1px solid hsl(var(--hero-foreground) / 0.12);
  border-radius: 0.5rem;
  background: hsl(var(--hero-foreground) / 0.04);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.labs__card:hover,
.labs__card:focus-visible {
  border-color: hsl(var(--accent) / 0.55);
  background: hsl(var(--hero-foreground) / 0.07);
  outline: none;
  transform: translateY(-2px);
}

.labs__card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--hero-foreground));
}

.labs__card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  color: hsl(var(--hero-foreground) / 0.65);
}

.labs__card-cta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--accent));
}
