@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b0a0d;
  --raised: rgb(255 255 255 / 3.5%);
  --line: rgb(255 255 255 / 9%);
  --text: #ece9ef;
  --muted: #a49eab;
  --accent: #eb459e;
  --accent-dim: rgb(235 69 158 / 14%);

  color-scheme: dark;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  cursor: url("https://raw.doughmination.gay/cursors/sandrone/Normal.png") 0 0, default;
}

a,
button,
.button,
[role="button"],
label[for] {
  cursor: url("https://raw.doughmination.gay/cursors/sandrone/Link.png") 4 0, pointer;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
}

.skip:focus {
  top: 1rem;
}

a {
  color: var(--text);
  text-decoration-color: rgb(235 69 158 / 55%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 0.86em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  text-wrap: balance;
}

/* Top bar */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
  outline: 1px solid var(--line);
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--text);
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.nav-icon {
  font-size: 1.2em;
}

/* Hero */

.hero {
  position: relative;
  padding-block: 4rem 2rem;
  margin-top: -4.75rem;
  padding-top: 8.75rem;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/banner-full.png") center / cover no-repeat;
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgb(11 10 13 / 55%), rgb(11 10 13 / 80%) 55%, var(--bg)),
    radial-gradient(70% 60% at 20% 30%, rgb(235 69 158 / 12%), transparent 70%);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.lede {
  max-width: 36rem;
  margin: 0 0 2rem;
  color: #cfc9d6;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 4%);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  border-color: rgb(255 255 255 / 20%);
  background: rgb(255 255 255 / 9%);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: #f45cad;
}

.status {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #43b581;
  box-shadow: 0 0 0 3px rgb(67 181 129 / 18%);
}

.dot-ok {
  background: #43b581;
  box-shadow: 0 0 0 3px rgb(67 181 129 / 18%);
}

.dot-warn {
  background: #faa61a;
  box-shadow: 0 0 0 3px rgb(250 166 26 / 18%);
}

.dot-off {
  background: #ed4245;
  box-shadow: 0 0 0 3px rgb(237 66 69 / 18%);
}

/* Sections */

main {
  flex: 1 0 auto;
  padding-block: 0 4rem;
}

section {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}

section:first-child {
  border-top: 0;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-lede {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.section-lede code,
.warn code {
  color: var(--text);
}

.note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.more {
  font-size: 0.9rem;
}

/* Capability cards */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
  margin-top: 1.75rem;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--raised);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Shard cards */

.shard-card h3 {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.05rem;
  color: var(--text);
}

.shard-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.shard-stat:first-of-type {
  margin-top: 0.6rem;
}

/* Legal prose (privacy, terms) */

.legal ul {
  max-width: 44rem;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal li {
  margin: 0.4rem 0;
}

.legal li::marker {
  color: var(--accent);
}

.legal li strong {
  color: var(--text);
}

/* Command groups */

.groups {
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}

.group h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.group dl {
  margin: 0;
}

.group dt {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.group dt:first-child {
  margin-top: 0;
}

.group dt code {
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  background: var(--accent-dim);
  color: #f7a5d1;
  font-size: 0.82rem;
}

.group dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Genuine-bot panel */

.panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--raised);
}

.appid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: baseline;
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgb(0 0 0 / 25%);
}

.appid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appid code {
  font-size: 1rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.domains {
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.domains li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.domains li code {
  color: #f7a5d1;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.domains li span {
  flex: 1 1 14rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.domains li span code {
  color: var(--text);
}

.warn {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.93rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / 30%);
}

.footer-inner {
  padding-block: 2.5rem;
}

.footer-links {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.footer-links h4 {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.disclaimer {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: #7d7784;
  font-size: 0.8rem;
}

/* Error pages */

.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 5.5rem);
  padding-block: 3rem 5rem;
}

.centered h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}