/* SPDX-License-Identifier: Unlicense */
/* packages.overpressure.org in the app's look, as overpressure.org: its tokens, Inter, a line under the top bar. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #181a1f;
  --glow: #1c2b52;
  --panel: #202329;
  --line: #343840;
  --text: #e9eaed;
  --muted: #a0a6b1;
  --blue: #77a2ff;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f8fa;
    --glow: #dfe8fb;
    --panel: #fff;
    --line: #dde0e5;
    --text: #20242a;
    --muted: #606773;
    --blue: #245fc9;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(60rem 30rem at 70% -8rem, var(--glow), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 15px/1.55 "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

a {
  color: var(--blue);
}

.bar,
main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.top {
  border-bottom: 1px solid var(--line);
}

.top .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.1rem;
}

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

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

main {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

section {
  margin-top: 2rem;
}

.channels {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.channels th,
.channels td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.channels th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.channels tr:last-child td {
  border-bottom: 0;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 0.85rem;
  line-height: 1.6;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

section p {
  color: var(--muted);
}

.fingerprint code {
  color: var(--text);
  overflow-wrap: anywhere;
}

footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
