:root {
  --bg: #efefef;
  --ink: #111827;
  --muted: #4b5563;
  --line: rgba(0, 0, 0, 0.06);
  --yellow: #ffcc00;
  --yellow-hover: #f0c000;
  --dark: #111827;
  --dark-hover: #1f2937;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max: 1440px;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(242, 101, 34, 0.08), transparent 55%),
    radial-gradient(900px 500px at 88% 8%, rgba(255, 204, 0, 0.12), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
}

.nav-left,
.nav-right,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.nav-left {
  gap: 1.75rem;
}

.nav-links {
  display: none;
  gap: 1.5rem;
}

.nav-links a,
.nav-right {
  font-size: 14px;
}

.nav-links a {
  transition: color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #6b7280;
}

.logo img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: brightness(0);
}

.nav-right {
  display: none;
  gap: 1.25rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.4s var(--ease);
}

.menu-toggle:hover {
  background: var(--dark-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.4s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: transform 0.45s var(--ease);
}

.btn:hover .arrow {
  transform: rotate(-45deg);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-hover);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: var(--yellow-hover);
}

.hero,
.labs,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero {
  display: flex;
  min-height: calc(100dvh - 5rem);
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero h1,
.labs h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.75rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.labs {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.labs-head {
  margin-bottom: 2rem;
}

.labs h2 {
  max-width: 14ch;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
}

.labs-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.lab-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s var(--ease);
}

.lab-row:hover {
  opacity: 0.72;
}

.lab-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 13px;
  color: var(--muted);
}

.lab-status {
  color: var(--ink);
}

.lab-blurb {
  margin: 0;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.labs-empty {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.labs-empty p {
  margin: 0;
  max-width: 34rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-meta .sep {
  display: none;
  color: #d1d5db;
}

.footer-meta a {
  transition: color 0.3s var(--ease);
}

.footer-meta a:hover {
  color: var(--ink);
}

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobile-sheet[hidden] {
  display: none;
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.mobile-panel {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateY(0);
  animation: sheet-up 0.45s var(--ease);
}

.mobile-panel a:not(.btn) {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.65rem 0;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 500;
}

.mobile-cta {
  justify-content: space-between;
  margin-top: 1.5rem;
  width: 100%;
  font-size: 14px;
}

[data-enter] {
  opacity: 0;
  transform: translateY(18px);
  animation: enter 0.9s var(--ease) forwards;
}

.site-header[data-enter] {
  animation-delay: 0.05s;
}

.hero[data-enter] {
  animation-delay: 0.16s;
}

.labs[data-enter] {
  animation-delay: 0.28s;
}

.site-footer[data-enter] {
  animation-delay: 0.36s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .hero,
  .labs,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .logo img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .btn {
    font-size: 14px;
    padding-left: 1.5rem;
  }

  .btn .arrow {
    width: 2rem;
    height: 2rem;
  }

  .lab-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
    gap: 1.5rem;
    padding: 1.6rem 0;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-meta .sep {
    display: inline;
  }
}

@media (min-width: 768px) {
  .nav-links,
  .nav-right {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero,
  .labs,
  .site-footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  [data-enter] {
    opacity: 1;
    transform: none;
  }
}
