@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Prata&display=swap');

:root {
  --lab-bg: #171a1e;
  --lab-surface: #222830;
  --lab-surface-soft: #2b3441;
  --lab-line: #3d4b5d;
  --lab-text: #f2f4f8;
  --lab-muted: #b8c4d3;
  --lab-accent: #f2a666;
  --lab-accent-2: #7bd5cf;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--lab-text);
  background:
    radial-gradient(1000px 500px at 15% -20%, rgba(242, 166, 102, 0.18), transparent 55%),
    radial-gradient(800px 460px at 100% 0%, rgba(123, 213, 207, 0.2), transparent 55%),
    var(--lab-bg);
}

.lab-shell {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.lab-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--lab-line);
  background: color-mix(in oklab, var(--lab-bg) 86%, black 14%);
  backdrop-filter: blur(8px);
}

.lab-header .lab-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lab-brand {
  display: inline-flex;
  text-decoration: none;
  color: var(--lab-accent);
  font-weight: 700;
}

.lab-header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lab-header a {
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--lab-text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.lab-header a.active,
.lab-header a:hover,
.lab-header a:focus-visible {
  border-color: var(--lab-line);
  background: color-mix(in oklab, var(--lab-surface-soft) 80%, var(--lab-accent-2) 20%);
}

main {
  padding-block: 1.2rem 2.8rem;
}

.lab-panel {
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--lab-surface), color-mix(in oklab, var(--lab-surface) 70%, black 30%));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.lab-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--lab-accent-2);
  font-weight: 700;
}

h1,
h2 {
  font-family: 'Prata', Georgia, serif;
  margin: 0;
  font-weight: 400;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.lab-panel > p {
  color: var(--lab-muted);
  margin: 0.9rem 0 0;
  max-width: 70ch;
}

.lab-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.lab-grid article,
.signal-grid article,
.prototype-list li {
  border: 1px solid var(--lab-line);
  border-radius: 14px;
  background: color-mix(in oklab, var(--lab-surface-soft) 82%, black 18%);
  padding: 0.8rem;
}

.signal-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.signal-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--lab-accent);
  font-size: 1.35rem;
}

.signal-grid p,
.prototype-list p {
  margin: 0.4rem 0 0;
  color: var(--lab-muted);
}

.prototype-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.prototype-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.prototype-list span {
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.66rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab-accent-2);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--lab-line);
  border-radius: 6px;
  padding: 0.14rem 0.3rem;
}

@media (max-width: 900px) {
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lab-header .lab-shell {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.7rem;
  }

  .prototype-list li {
    flex-direction: column;
  }
}
