/* hyperhive prose-docs theme — Catppuccin Mocha + amber accent.
 *
 * Mirrors the website's identity (sass/main.scss is the canonical
 * source of the same palette) so the rendered `/docs/` tree reads as
 * part of the landing site, not a separate artifact. Plain CSS — this
 * file is consumed by the nix cmark-gfm renderer (nix/docs.nix), not
 * by Zola's sass pipeline, so it ships verbatim.
 */

:root {
  /* Tell the UA the page is dark so native chrome (scrollbars,
     form controls, system-color keywords) matches. */
  color-scheme: dark;
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
  --text: #cdd6f4;
  --subtext0: #a6adc8;
  /* overlay2 is the lightest muted shade that still clears WCAG AA
     (4.5:1 on --base) for small (0.85rem) secondary text — nav,
     footer, doc descriptions. overlay0 (#6c7086) is only ~3.3:1, so
     it's reserved for non-text decoration. */
  --overlay2: #9399b2;
  --overlay0: #6c7086;
  --surface0: #313244;
  --surface1: #45475a;
  --sky: #89dceb;
  --sapphire: #74c7ec;
  --mauve: #cba6f7;
  --amber: #ffb300;
  --amber-glow: rgba(255, 179, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo,
    Consolas, monospace;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--text);
  background: var(--base);
  line-height: 1.6;
  font-size: 0.95rem;
}

::selection {
  background: var(--amber-glow);
  color: var(--crust);
}

nav.docs-nav {
  margin-bottom: 2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--surface1);
  font-size: 0.85rem;
  color: var(--overlay2);
}

nav.docs-nav a {
  color: var(--amber);
  text-decoration: none;
}

nav.docs-nav a:hover {
  text-decoration: underline;
}

nav.docs-nav .sep {
  margin: 0 0.5rem;
  color: var(--surface1);
}

a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--sapphire);
  border-bottom-color: var(--sapphire);
}

h1,
h2,
h3,
h4 {
  color: var(--amber);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 1.7rem;
  margin-top: 0;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface0);
}

h3 {
  font-size: 1.02rem;
  margin-top: 1.75rem;
  color: var(--mauve);
}

h4 {
  font-size: 0.95rem;
  color: var(--subtext0);
}

p {
  margin: 0.8rem 0;
}

code {
  background: var(--mantle);
  padding: 0.12em 0.38em;
  border-radius: 0.25em;
  font-size: 0.9em;
  color: var(--text);
}

pre {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 0.4rem;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  line-height: 1.45;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

blockquote {
  margin: 1rem 0;
  padding: 0.1rem 1rem;
  border-left: 3px solid var(--amber);
  color: var(--subtext0);
  background: var(--mantle);
  border-radius: 0 0.3rem 0.3rem 0;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

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

th,
td {
  border: 1px solid var(--surface0);
  padding: 0.45rem 0.7rem;
  text-align: left;
}

th {
  background: var(--mantle);
  color: var(--amber);
}

tr:nth-child(even) td {
  background: rgba(49, 50, 68, 0.35);
}

hr {
  border: none;
  border-top: 1px dashed var(--surface1);
  margin: 2rem 0;
}

img {
  max-width: 100%;
}

/* Docs index listing */
.docs-index-group {
  margin: 1.5rem 0;
}

.docs-index-group h2 {
  margin-top: 1.75rem;
}

ul.docs-list {
  list-style: none;
  padding-left: 0;
}

ul.docs-list li {
  margin: 0.5rem 0;
}

ul.docs-list .doc-desc {
  color: var(--overlay2);
  font-size: 0.85rem;
}

footer.docs-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--surface1);
  font-size: 0.8rem;
  color: var(--overlay2);
}

footer.docs-footer a {
  color: var(--amber);
}
