/* depus docs site — legibility first, no framework, no webfonts, no JS.
   Deliberately minimal: this is a reference site read by developers and
   accountants, and no brand direction has been given. Replace wholesale when
   one is. */

:root {
  --ink: #16181d;
  --ink-soft: #4a5058;
  --bg: #fdfdfc;
  --rule: #d8d8d4;
  --link: #10496b;
  --quote-bg: #f4f4f1;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e6e3;
    --ink-soft: #a3a8b0;
    --bg: #16181b;
    --rule: #33363c;
    --link: #7fbde0;
    --quote-bg: #1e2126;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font: 1.05rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

main, header.site { max-width: var(--measure); margin: 0 auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  padding: 0.5rem 0.75rem;
}

header.site {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
header.site p { margin: 0; }

.brand {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1.5rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }

p, ul, ol, table, blockquote, pre { margin: 0 0 1.15rem; }

a { color: var(--link); text-underline-offset: 0.15em; }

ul.index { list-style: none; padding: 0; }
ul.index li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }

blockquote {
  margin-inline: 0;
  padding: 0.9rem 1.1rem;
  background: var(--quote-bg);
  border-left: 3px solid var(--rule);
}
blockquote > :last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--quote-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre {
  overflow-x: auto;
  padding: 0.9rem 1.1rem;
  background: var(--quote-bg);
  border-radius: 3px;
}
pre code { background: none; padding: 0; }

/* Tables carry the source/citation matrices — they must stay readable on a
   phone without forcing the page itself to scroll sideways. */
.table-wrap, table { display: block; overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; font-size: 0.95rem; }
th, td { border: 1px solid var(--rule); padding: 0.45rem 0.65rem; text-align: left; vertical-align: top; }
th { background: var(--quote-bg); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

img { max-width: 100%; height: auto; }

section { margin-bottom: 2rem; }

.ladder {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.85rem;
}
