/* rouxlabs sites: one stylesheet for the index and every project.
   No fonts, scripts or images from elsewhere. Color lives in the product shots only. */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #0f0f12;
  --panel-2: #16161b;
  --line: #1b1b20;
  --line-2: #29292f;
  --fg: #ededef;
  --muted: #8e8f98;
  --dim: #5f606a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --running: #9488ff;
  --needs: #f2d45c;
  --review: #ec6cc0;
  --done: #5fd77a;
  --waiting: #8e8f98;
  --cyan: #3fc6d1;
  --orange: #d97757;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--fg); }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.84em;
  padding: 0.12em 0.42em;
  color: var(--fg);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  white-space: nowrap;
}
:not(pre) > code.long { white-space: normal; overflow-wrap: anywhere; }
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.06em 0.45em;
  font-size: 0.78em;
  line-height: 1.55;
  text-align: center;
  color: var(--fg);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
}
::selection { background: #34343f; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wide { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.tone { color: var(--muted); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(9 9 11 / 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--muted); }
.top nav a { transition: color 0.15s; }
.top nav a:hover { color: var(--fg); }
.top nav .button, .top nav .button:hover { color: var(--bg); }

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.button.primary { background: var(--fg); color: var(--bg); }
.button.primary:hover { background: #fff; }
.button.small { height: 34px; padding: 0 16px; font-size: 14px; }
.more-link { font-size: 15px; font-weight: 500; color: var(--fg); white-space: nowrap; }
.more-link:hover { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 5px; }

/* Hero */
.hero { padding: 104px 0 64px; }
.release { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; font-size: 14px; color: var(--muted); transition: color 0.15s; }
.release:hover { color: var(--fg); }
.release b { padding: 3px 10px; font: 500 12px/1.4 var(--mono); color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; }
h1 { font-size: clamp(2.8rem, 7.2vw, 5.6rem); line-height: 1; letter-spacing: -0.036em; }
.lede { max-width: 33em; margin-top: 30px; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.lede strong { font-weight: 500; color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 40px; }
.meta { margin-top: 24px; font-size: 14px; color: var(--dim); }

/* Media */
.frame {
  overflow: hidden;
  background: #171717;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 40px 120px -48px rgb(0 0 0 / 0.95);
}
.frame video, .frame img { width: 100%; }
.caption { margin-top: 18px; font-size: 14px; color: var(--dim); }
.caption kbd { font-size: 11.5px; }

/* Sections */
.section { padding-block: 120px; border-top: 1px solid var(--line); }
.hero + .demo { padding-bottom: 120px; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.032em; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 28px 72px; margin-bottom: 64px; }
.split p { max-width: 30em; font-size: 1.1rem; line-height: 1.65; color: var(--muted); }

/* Product shots drawn in HTML */
.panel { overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; }
.panel .bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  font: 12.5px/1.5 var(--mono);
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.panel pre { margin: 0; padding: 22px 22px 24px; overflow-x: auto; font-size: 13px; line-height: 1.75; color: #c9cad0; }
.panel .hint { padding: 3px 22px; font: 12.5px/1.6 var(--mono); color: #111; background: #c8d84e; }
.c-run { color: var(--running); }
.c-needs { color: var(--needs); font-weight: 700; }
.c-needs-q { color: var(--needs); }
.c-rev { color: var(--review); }
.c-done { color: var(--done); }
.c-wait { color: var(--waiting); }
.c-dim { color: var(--dim); }
.c-cyan { color: var(--cyan); }
.c-orange { color: var(--orange); }
.c-fg { color: var(--fg); font-weight: 700; }
.c-del { color: #f0d6d6; background: #4a1a1c; }
.c-add { color: #d4f0da; background: #173d22; }

/* Three short points under a rule */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 64px; }
.points > div { padding-top: 22px; border-top: 1px solid var(--line-2); }
.points h3 { margin-bottom: 8px; font-size: 16.5px; letter-spacing: -0.01em; }
.points p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.points p + p { margin-top: 14px; }
.states { grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 48px; }
.states h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 2px;
  background: var(--c);
  border-radius: 50%;
}
.s-run { --c: var(--running); }
.s-wait { --c: var(--waiting); }
.s-needs { --c: var(--needs); }
.s-rev { --c: var(--review); }
.s-done { --c: var(--done); }

/* Two shots side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pair h3 { margin: 26px 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }
.pair p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Keys */
.keys { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; border-top: 1px solid var(--line); }
.keys div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  font-size: 15.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.keys div > kbd { justify-self: start; font-size: 13px; }

/* Install */
.steps { display: grid; gap: 44px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.step .n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font: 13px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.step > div { min-width: 0; }
.step > div > p { margin: 2px 0 16px; }
.note { max-width: 52em; margin-top: 40px; font-size: 15px; color: var(--muted); }
.note p + p { margin-top: 8px; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px 80px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 20px/1.3 var(--mono); color: var(--dim); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 44em; padding-bottom: 24px; font-size: 15.5px; color: var(--muted); }

/* Footer */
footer { padding: 40px 0 64px; font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer a { color: var(--muted); transition: color 0.15s; }
footer a:hover { color: var(--fg); }

/* The lab index */
.lab { padding: 136px 0 112px; }
.projects { margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.projects a {
  display: grid;
  grid-template-columns: 48px 1fr auto 20px;
  align-items: center;
  gap: 24px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.projects a:hover { background: var(--panel); }
.projects img { width: 48px; height: 48px; }
.projects strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.projects .desc { font-size: 15px; color: var(--muted); }
.projects .host { font: normal 13px var(--mono); color: var(--dim); }
.projects .go { color: var(--dim); transition: color 0.15s, transform 0.15s; }
.projects a:hover .go { color: var(--fg); transform: translateX(3px); }

/* Not found */
.missing { padding: 160px 0; }
.missing .lede { margin-top: 20px; }

@media (max-width: 960px) {
  .split, .faq-grid { grid-template-columns: 1fr; align-items: start; }
  .points, .states { grid-template-columns: 1fr 1fr; }
  .pair, .keys { grid-template-columns: 1fr; }
  .pair { gap: 56px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .top nav { gap: 20px; }
  .hero { padding: 80px 0 48px; }
  .hero + .demo { padding-bottom: 88px; }
  .section { padding-block: 88px; }
  .split { margin-bottom: 40px; }
  .points, .states { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .panel .bar { padding: 10px 16px; }
  .panel pre { padding: 16px; font-size: 12px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .lab { padding: 88px 0 72px; }
  .projects { margin-top: 56px; }
  .projects a { grid-template-columns: 40px 1fr 16px; gap: 16px; padding: 22px 4px; }
  .projects img { width: 40px; height: 40px; }
  .projects .host { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
