/* The site's own copies of its two typefaces, the Latin letters only, so
   the page asks nothing of another server. Both are variable fonts: one file
   gives every weight. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ground: #f6f5f9;
  --surface: #ffffff;
  --raised: #efedf4;
  --line: #e1dee9;
  --text: #241f31;
  --muted: #5e5c64;
  --faint: #6b6774;
  --pink: #c4378f;
  --yellow: #b8860b;
  --blue: #1c71d8;
  --pink-fill: #e35db5;
  --yellow-fill: #f6d32d;
  --blue-fill: #62a0ea;
  --button: #241f31;
  --button-text: #ffffff;
  --code: #241f31;
  --code-text: #f6f5f4;
  --shadow: 0 24px 60px -24px rgb(36 31 49 / 0.35);
  --display: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "DejaVu Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17141d;
    --surface: #211d29;
    --raised: #2a2534;
    --line: #342e40;
    --text: #f6f5f4;
    --muted: #c0bfbc;
    --faint: #8b8794;
    --pink: #f08fcd;
    --yellow: #f8e45c;
    --blue: #99c1f1;
    --button: #f6f5f4;
    --button-text: #17141d;
    --code: #0f0d13;
    --code-text: #f6f5f4;
    --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 19px; max-width: 62ch; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}

/* The bar along the top. */
.bar { padding-block: 20px; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px var(--display); }
.brand img { width: 36px; height: 36px; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--text); }

/* The opening. */
.hero { padding-block: 56px 24px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.02em; max-width: 17ch; margin: 18px auto 0; }
.hero .lead { margin: 22px auto 0; }
.faders { display: inline-flex; gap: 8px; }
.faders span { width: 34px; height: 8px; border-radius: 4px; }
.faders span:nth-child(1) { background: var(--pink-fill); }
.faders span:nth-child(2) { background: var(--yellow-fill); }
.faders span:nth-child(3) { background: var(--blue-fill); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line);
}
.button.primary { background: var(--button); color: var(--button-text); border-color: transparent; }
.button:hover { filter: brightness(1.08); }
.button svg { width: 18px; height: 18px; }
.shot { margin-top: 48px; }
.shot img { border-radius: 16px; box-shadow: var(--shadow); margin-inline: auto; }

section { padding-block: 72px; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }

/* What it does. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }

/* The matrix, drawn small. */
.matrix-section .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.terms { display: grid; gap: 22px; margin-top: 28px; }
.terms div { display: grid; gap: 4px; }
.terms dt { font: 800 18px var(--display); }
.terms dd { margin: 0; color: var(--muted); font-size: 16px; }
.matrix {
  display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  font-size: 14px;
}
.matrix > div { border-radius: 10px; min-height: 52px; display: flex; align-items: center; padding: 0 12px; background: var(--raised); }
.matrix .corner { background: none; }
.matrix .mix { font-weight: 600; justify-content: center; }
.matrix .row { font-weight: 600; gap: 8px; }
.matrix .row i { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.matrix .cell { gap: 8px; }
.matrix .cell b { height: 6px; border-radius: 3px; background: var(--blue-fill); }
.matrix .cell s { flex: 1; height: 6px; border-radius: 3px; background: var(--line); text-decoration: none; }
.matrix .empty { justify-content: center; color: var(--faint); font-size: 22px; font-weight: 300; }

/* Effects. */
.effects .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.effect-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.effect-list li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: baseline; }
.effect-list strong { font-weight: 600; }
.effect-list span { color: var(--muted); }
.effects img { border-radius: 14px; box-shadow: var(--shadow); }
.note { margin-top: 22px; color: var(--faint); font-size: 15px; }

/* Integrations. */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pair .feature a { font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pair .feature a:hover { text-decoration-thickness: 2px; }

/* Install. */
.install { display: grid; gap: 12px; }
.package {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 10px 28px; align-items: center;
}
.package h3 { margin-bottom: 4px; }
/* A grid item keeps its content's width unless told otherwise: the
   commands scroll inside their card instead of spilling out of it. */
.package, .package > *, .source, .source > *, .command { min-width: 0; }
.package .for { color: var(--muted); font-size: 15px; }
.command { display: flex; gap: 8px; align-items: flex-start; }
pre {
  flex: 1; margin: 0; padding: 13px 16px;
  background: var(--code); color: var(--code-text); color-scheme: dark;
  border-radius: 10px; font: 14px/1.55 var(--mono); overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: #5e5c64 transparent;
}
.copy {
  flex: none; font: 500 13px var(--body); color: var(--text);
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; cursor: pointer;
}
.copy:hover { filter: brightness(1.06); }
.source { margin-top: 28px; display: grid; gap: 12px; }
.source p { color: var(--muted); font-size: 16px; }

footer { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .wrap { display: grid; gap: 8px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .package { grid-template-columns: 1fr; }
  .matrix-section .wrap, .effects .wrap { grid-template-columns: 1fr; gap: 36px; }
  .bar nav > a:not(.keep) { display: none; }
  section { padding-block: 52px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .matrix { gap: 6px; padding: 10px; font-size: 12px; }
  .matrix > div { padding: 0 8px; min-height: 44px; }
  .matrix .row i { display: none; }
}

/* What used to be written on the elements themselves, which the page's
   Content Security Policy does not allow. */
.dot.pink, .matrix .row i.music { background: var(--pink-fill); }
.dot.yellow { background: var(--yellow-fill); }
.dot.blue { background: var(--blue-fill); }
.dot.green { background: #57e389; }
.matrix .row i.mic { background: #e66151; }
.matrix .row i.game { background: #ed333b; }
.matrix .cell .w22 { width: 22%; }
.matrix .cell .w32 { width: 32%; }
.matrix .cell .w55 { width: 55%; }
.matrix .cell .w64 { width: 64%; }
.matrix .cell .w82 { width: 82%; }
.matrix .cell .w92 { width: 92%; }
.eyebrow + h2 { margin-top: 14px; }

/* The language menu: a details element, so it opens without a script. */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary, .langs summary:hover { color: var(--text); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  display: grid; gap: 2px; min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.bar .langs a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.bar .langs a:hover { background: var(--raised); }
.bar .langs a[aria-current="page"] { font-weight: 600; }

/* The legal notice: a column of text. */
.legal .wrap { max-width: 760px; padding-block: 32px 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.legal h2 { font-size: 22px; font-weight: 800; margin-top: 40px; }
.legal p { margin-top: 12px; color: var(--muted); }
.legal a { color: var(--blue); }
.legal .note { margin-top: 48px; }

/* Where the keyboard is: one ring for every control, in both themes. */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.button:focus-visible, .langs summary:focus-visible { border-radius: 999px; }

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

