@font-face {
  font-family: Inter;
  src: url(assets/inter.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url(assets/inter-tight.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
body {
  font-family: Inter, sans-serif;
  color: var(--color-fw-ink);
  background: white;
}
* {
  box-sizing: border-box;
}
h1,
h2,
p {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
.lab-header {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--color-fw-border);
}
.lab-header > a:last-child {
  margin-left: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.wordmark {
  font-family: 'Inter Tight', sans-serif;
  font-size: 32px;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.wordmark span {
  color: #ff682c;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 64px 40px;
}
.lab-intro {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.lab-intro > p:last-child {
  font-size: 18px;
  line-height: 28px;
  max-width: 650px;
  color: var(--color-fw-body);
}
.eyebrow {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.03em;
  color: var(--color-fw-muted);
}
.global-controls {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px 0;
  margin: 40px 0;
  border-block: 1px solid var(--color-fw-border);
}
.global-controls p {
  font-size: 12px;
  color: var(--color-fw-muted);
}
.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.component-study {
  border: 1px solid var(--color-fw-border);
  min-width: 0;
}
.study-heading {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.study-heading h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.02em;
}
.study-heading p {
  line-height: 24px;
  color: var(--color-fw-body);
}
.component-scene {
  height: 280px;
  background: var(--color-fw-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
}
.study-transport {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}
.transport-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.transport-actions output {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.study-transport label {
  font-size: 12px;
  line-height: 18px;
}
.study-transport input {
  width: 100%;
}
.timeline-status {
  font-size: 12px;
  color: var(--color-fw-muted);
}
.mechanism {
  font-size: 14px;
  line-height: 22px;
  min-height: 44px;
  color: var(--color-fw-body);
}
.study-transport a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
footer {
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-fw-muted);
}
.demo-button {
  height: 44px;
  background: var(--color-fw-ink);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.check-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-fw-ink);
  background: white;
}
.check-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-fw-canvas);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.switch-track {
  width: 40px;
  height: 24px;
  border: 1px solid var(--color-fw-ink);
  border-radius: 200px;
  padding: 3px;
  background: var(--color-fw-surface);
}
.switch-track span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-fw-ink);
}
.demo-tabs {
  display: flex;
  position: relative;
  border-bottom: 1px solid var(--color-fw-control);
}
.demo-tabs > span {
  width: 120px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-tabs i {
  position: absolute;
  width: 120px;
  bottom: -1px;
  height: 2px;
  left: 0;
  background: var(--color-fw-ink);
}
.demo-accordion {
  width: 320px;
  max-width: 100%;
  border-block: 1px solid var(--color-fw-control);
  background: white;
}
.demo-accordion > div:first-child {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.reveal-clip {
  overflow: hidden;
}
.reveal-clip p {
  padding: 8px 16px 16px;
  line-height: 24px;
  color: var(--color-fw-body);
}
.menu-scene {
  width: 220px;
  position: relative;
  height: 220px;
}
.menu-trigger {
  height: 44px;
  border: 1px solid var(--color-fw-control);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.demo-menu {
  position: absolute;
  top: 52px;
  left: 0;
  width: 220px;
  background: white;
  border: 1px solid var(--color-fw-control);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-menu span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  line-height: 24px;
}
.tooltip-scene {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.demo-tooltip {
  padding: 10px 12px;
  background: var(--color-fw-ink);
  color: white;
  font-size: 12px;
  border-radius: 8px;
  line-height: 18px;
}
.demo-rows {
  width: 340px;
  max-width: 100%;
  background: white;
}
.demo-rows > div {
  padding: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-fw-border);
  line-height: 24px;
}
.demo-rows > div > span:last-child {
  color: var(--color-fw-muted);
  font-size: 12px;
}
@media (max-width: 760px) {
  .lab-header {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .lab-header > a:last-child {
    margin-left: 0;
  }
  .lab-header > span {
    font-size: 12px;
  }
  main {
    padding: 40px 16px;
  }
  h1 {
    font-size: 44px;
  }
  .study-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .study-heading,
  .study-transport {
    padding: 20px;
  }
  .component-scene {
    padding: 16px;
  }
  .global-controls {
    gap: 12px;
  }
}

body {
  margin: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 12px;
  background: white;
  z-index: 10;
}
.skip-link:focus {
  top: 8px;
}
a:focus-visible {
  outline: 2px solid var(--color-fw-ink);
  outline-offset: 3px;
}

.demo-button,
.demo-tabs {
  font:
    400 16px/20px 'Inter Tight',
    sans-serif;
  letter-spacing: -0.02em;
}
.component-scene > .check-box + span,
.component-scene > .switch-track + span {
  font:
    400 14px/20px Inter,
    sans-serif;
}
