@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/BeVietnamPro-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/BeVietnamPro-SemiBold.ttf") format("truetype");
}

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green-50: #f0fdf4;
  --green-700: #15803d;
  --red-50: #fef2f2;
  --red-700: #b91c1c;
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
}

a {
  color: var(--orange-600);
  text-decoration: none;
}

a:hover {
  color: var(--orange-700);
  text-decoration: underline;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
}

:not(pre) > code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.375rem;
  background: var(--gray-100);
  color: var(--gray-800);
}

pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--gray-900);
  color: var(--gray-100);
  line-height: 1.7;
}

pre .comment {
  color: var(--gray-500);
}

pre .accent {
  color: #fdba74;
}

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header and footer */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-900);
}

.brand:hover {
  text-decoration: none;
  color: var(--gray-900);
}

.brand img {
  height: 1.5rem;
  width: auto;
}

.brand .labs-mark {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--gray-600);
}

.site-nav a:hover {
  color: var(--orange-600);
  text-decoration: none;
}

.site-footer {
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--gray-600);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--orange-600);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 .highlight {
  color: var(--orange-500);
}

.lede {
  max-width: 42rem;
  margin: 0;
  color: var(--gray-600);
  font-size: 1.2rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

section {
  padding: 2.5rem 0;
}

section > .container > p,
.prose p,
.prose li {
  max-width: 46rem;
  color: var(--gray-700);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* Callouts and cards */

.notice {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius);
  background: var(--orange-50);
  color: var(--gray-800);
  font-size: 0.95rem;
}

.notice strong {
  color: var(--orange-700);
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.feature p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.feature .metric {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--orange-600);
  font-size: 1.6rem;
  font-weight: 600;
}

/* Lab cards on the index */

.lab-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lab-card:hover {
  border-color: var(--orange-500);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.12);
  color: inherit;
  text-decoration: none;
}

.lab-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.lab-card p {
  margin: 0;
  color: var(--gray-600);
}

.lab-card .lab-host {
  color: var(--orange-600);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.badge {
  align-self: flex-start;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Steps */

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  min-width: 0;
  padding-left: 3rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--orange-500);
  color: #fff;
  font-weight: 600;
}

.steps p {
  margin: 0 0 0.75rem;
  color: var(--gray-700);
}

/* Lookup */

.lookup form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

@media (max-width: 40rem) {
  .lookup form {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--gray-900);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--orange-500);
  outline-offset: -1px;
  border-color: var(--orange-500);
}

button {
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--orange-600);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--orange-700);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.result {
  margin-top: 1.5rem;
}

.result[hidden] {
  display: none;
}

.result .error {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--red-50);
  color: var(--red-700);
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.result-head h3 {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  word-break: break-all;
}

.state {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--gray-100);
  color: var(--gray-700);
}

.state.running {
  background: var(--green-50);
  color: var(--green-700);
}

.state.paused {
  background: var(--orange-50);
  color: var(--orange-700);
}

.details {
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0;
}

.details div {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--gray-50);
}

.details dt {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.details dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  word-break: break-word;
}

.muted {
  color: var(--gray-500);
  font-size: 0.875rem;
}

@media (max-width: 40rem) {
  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
