/* Agent3 Labs: the one stylesheet. Dark only, flat, from Agentry's UI. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --ground: #1a1d23;
  --panel: #16181d;
  --raised: #21252d;
  --raised-2: #2b2f38;
  --hairline: #2b2f38;
  --text: #e4e6eb;
  --text-secondary: #b3b7c0;
  --text-muted: #8b919e;
  --orange: #fc6d26;
  --ink-on-orange: #16181d;
  --radius: 4px;
  --gutter: 16px;
  --measure: 960px;
  --font-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.25rem);
}

h2 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--text);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--orange);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  font-variant-ligatures: none;
}

pre {
  margin: 0 0 1rem;
  padding: 12px var(--gutter);
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

th,
td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
}

td code {
  overflow-wrap: break-word;
}

/* Layout: one centred column with 16px gutters. */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px var(--gutter);
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--raised);
}

main {
  flex: 1;
  padding: 40px 0 56px;
}

/* Prose: about 65 characters a line; Home's cards keep their full width. */

main p,
main li,
main figcaption {
  max-width: 65ch;
}

.cards li,
.cards p {
  max-width: none;
}

.lead {
  max-width: 34ch;
  margin-bottom: 32px;
}

/* Cards: the whole card is the link. */

.cards {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  display: block;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  background: var(--raised);
  color: var(--text);
}

.card h2 {
  margin-bottom: 0.25rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
}

.card .more {
  display: block;
  margin-top: 12px;
  color: var(--orange);
  font-weight: 600;
}

/* Buttons: at most one primary per page, ink on orange. */

.button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--raised-2);
  color: var(--text);
}

.button-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink-on-orange);
}

.button-primary:hover {
  background: var(--orange);
  text-decoration: underline;
  color: var(--ink-on-orange);
}

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--orange);
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    padding-top: 56px;
  }
}

/* Product page: pitch, media figures, numbered steps and the install grid. */

.pitch {
  max-width: 64ch;
  font-size: 1.125rem;
}

.section {
  margin-top: 40px;
}

.section h2 {
  margin-bottom: 1rem;
}

.media figure {
  margin: 0 0 24px;
}

.media video,
.media img {
  display: block;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.media figcaption {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.steps,
.needs {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.steps li,
.needs li {
  margin-bottom: 0.5rem;
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px var(--gutter);
  margin-bottom: 24px;
  max-width: none;
}

.install code {
  overflow-wrap: anywhere;
}

.systems {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
  margin-bottom: var(--gutter);
}

.systems > div {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.systems h3 {
  font-size: 1.0625rem;
}

.systems ol {
  margin: 0;
  padding-left: 1.25rem;
}

.systems li {
  margin-bottom: 0.5rem;
}

.systems li:last-child {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .systems {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
