/* Shared with Rainbark, Pronoun Tags and OrchidUI. */
:root {
  color-scheme: dark;
  --page: #0d0a0f;
  --card: #16121a;
  --card-2: #1c1720;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f0f5;
  --muted: #b4a9b3;
  --faint: #85798a;
  --accent: #f28ac9;
  --accent-hover: #f6a8d7;
  --on-accent: #2b1130;
  --accent-soft: rgba(242, 138, 201, 0.12);
  --purple: #a57cdb;
  --danger: #ff8a8a;
  --danger-soft: rgba(255, 138, 138, 0.13);
  --success: #7ee2a8;
  --font: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.docs .wrap {
  width: min(1240px, 100% - 40px);
}
code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 0.9em var(--mono);
}
svg.i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header and footer */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 10, 15, 0.75);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.brand small {
  color: var(--faint);
  font-weight: 500;
  font-size: 15px;
}
header nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
header nav a {
  color: var(--muted);
}
header nav a:hover,
header nav a[aria-current] {
  color: var(--text);
  text-decoration: none;
}
footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
footer a {
  color: var(--muted);
}

/* Hero */

.hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 520px;
  background: radial-gradient(
    closest-side,
    rgba(242, 138, 201, 0.15),
    rgba(165, 124, 219, 0.06) 60%,
    transparent
  );
  pointer-events: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
h1 {
  position: relative;
  margin: 18px auto 14px;
  max-width: 820px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 span {
  background: linear-gradient(90deg, #f28ac9, #e7a9e8, #a57cdb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  position: relative;
  margin: 0 auto 30px;
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}
.buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.note {
  position: relative;
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}
.shot {
  position: relative;
  margin: 56px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(242, 138, 201, 0.06);
  background: var(--card);
}

/* Sections */

section {
  padding: 72px 0;
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sub {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 620px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.card {
  padding: 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.card a.more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14.5px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split > * {
  min-width: 0;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.steps b {
  color: var(--text);
}
.phone {
  justify-self: center;
  width: min(330px, 100%);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.names li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.extra {
  margin: 0 0 36px;
  color: var(--muted);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 16px;
  align-items: start;
}
.gallery figure {
  margin: 0;
}
.gallery .wide {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery button:hover {
  transform: translateY(-3px);
}
.gallery button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.gallery figcaption b {
  color: var(--muted);
  font-weight: 600;
}
dialog.viewer {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
dialog.viewer::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}
dialog.viewer img {
  max-height: 90vh;
  width: auto;
  border-radius: 14px;
}

/* Callout */

.privacy {
  padding: 28px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(242, 138, 201, 0.08),
      rgba(165, 124, 219, 0.04) 40%,
      transparent 65%
    ),
    var(--card);
  border: 1px solid var(--line);
}
.privacy h2 {
  font-size: 24px;
}
.privacy p {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 800px;
}
.privacy p:last-child {
  margin: 0;
}

/* The sample deck on the landing page */

.demo {
  justify-self: center;
  width: min(400px, 100%);
  margin: 0;
}
.device {
  padding: 14px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 6px 12px;
  color: var(--muted);
  font-size: 13px;
}
.status b {
  color: var(--text);
  font-weight: 600;
}
.host {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.pills {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill[hidden] {
  display: none;
}
.mono {
  font-family: var(--mono);
}
.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.key {
  aspect-ratio: 1;
  display: grid;
  grid-template: "icon badge" auto "gap gap" 1fr "label label" auto "sub sub" auto / auto 1fr;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 80ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}
.key:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.key:active {
  transform: scale(0.96);
}
.key .ic {
  grid-area: icon;
  display: flex;
  width: 24px;
  height: 24px;
}
.key .ic svg {
  width: 100%;
  height: 100%;
}
.key .badge {
  grid-area: badge;
  justify-self: end;
  align-self: start;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.key .badge:empty {
  display: none;
}
.key .label {
  grid-area: label;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.key .sub {
  grid-area: sub;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.key.on {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}
.key.on .ic,
.key.on .sub {
  color: var(--accent);
}
.key.off {
  background: var(--danger-soft);
  border: 2px solid var(--danger);
}
.key.off .ic,
.key.off .sub {
  color: var(--danger);
}
.key.off .badge {
  background: var(--danger);
}
.key.ok .badge {
  background: var(--success);
}
.demo figcaption {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* Docs */

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: 48px;
  align-items: start;
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
  padding: 40px 0 80px;
}
.side {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.side h4,
.toc h4 {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.side h4 {
  padding-left: 12px;
}
.side ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.side a {
  position: relative;
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
}
.side a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}
.side a[aria-current] {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}
.side a[aria-current]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.toc {
  position: sticky;
  top: 92px;
  font-size: 13.5px;
}
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid transparent;
  color: var(--faint);
  line-height: 1.4;
}
.toc a.subhead {
  padding-left: 26px;
}
.toc a:hover {
  color: var(--text);
  text-decoration: none;
}
.toc a.on {
  color: var(--accent);
  border-left-color: var(--accent);
}
.toc .edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--muted);
}
.toc .edit svg {
  width: 14px;
  height: 14px;
}
.picker {
  display: none;
}
.doc {
  min-width: 0;
}
.doc h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.doc h2 {
  margin: 52px 0 14px;
  padding-top: 4px;
  font-size: 26px;
  line-height: 1.2;
}
.doc h3 {
  margin: 34px 0 10px;
  font-size: 19px;
  line-height: 1.3;
}
.doc h4 {
  margin: 26px 0 8px;
  font-size: 16px;
}
.doc p,
.doc li {
  color: #ddd2db;
}
.doc p {
  margin: 0 0 16px;
}
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.doc li {
  margin: 4px 0;
}
.doc li::marker {
  color: var(--faint);
}
.doc strong {
  color: var(--text);
}
.doc hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.doc img {
  margin: 8px 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.doc blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}
.doc blockquote p:last-child {
  margin: 0;
}
.doc :not(pre) > code {
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
.doc .table {
  margin: 0 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow-x: auto;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.doc th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.doc td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: #ddd2db;
  vertical-align: top;
}
.doc tr:first-child td {
  border-top: 0;
}
.doc .code {
  position: relative;
  margin: 0 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.doc pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #e9dfe7;
  font: 500 13.5px/1.65 var(--mono);
  tab-size: 4;
}
.doc pre code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: 500 12.5px var(--font);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.code:hover .copy,
.copy:focus-visible {
  opacity: 1;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}
.pager a {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}
.pager a:hover {
  border-color: rgba(242, 138, 201, 0.4);
  text-decoration: none;
}
.pager small {
  display: block;
  color: var(--faint);
  font-size: 12.5px;
}
.pager .next {
  grid-column: 2;
  text-align: right;
}

.missing {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.missing p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }
  .toc {
    display: none;
  }
}
@media (max-width: 860px) {
  .split,
  .pair {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery .wide {
    grid-row: auto;
  }
  header nav {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .side {
    display: none;
  }
  .picker {
    display: block;
    width: 100%;
    height: 44px;
    margin-bottom: 24px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font: 500 15px var(--font);
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager .next {
    grid-column: 1;
  }
}
@media (max-width: 560px) {
  .key {
    padding: 9px;
  }
  .key .label {
    font-size: 12.5px;
  }
  .key .sub {
    font-size: 11px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery .wide {
    grid-column: auto;
  }
}
/* Big screens: scale the page so it keeps the same proportions as on 1080p. */
@media (min-width: 1800px) {
  html {
    zoom: 1.12;
  }
}
@media (min-width: 2200px) {
  html {
    zoom: 1.25;
  }
}
@media (min-width: 2500px) {
  html {
    zoom: 1.35;
  }
}
@media (min-width: 3200px) {
  html {
    zoom: 1.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gallery button,
  .key {
    transition: none;
  }
}
