/* Midnight Protocol. Four colors only.
   Contrast: text on bg 14.76:1, text on surface 10.08:1.
   --muted (4.12:1 on bg) is used only for rules and separators. */
:root {
  --bg: #111820;
  --surface: #263747;
  --muted: #607D91;
  --text: #E8EAE6;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 42em;
  margin: 0 auto;
  padding: 1em;
}
a, a:visited { color: var(--text); text-decoration: underline; }
a:hover { background: var(--surface); }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: normal; line-height: 1.3; }
b, strong, em, i, th { font-weight: normal; font-style: normal; }
header, footer, .centered { text-align: center; }
.centered p { max-width: 36em; margin-left: auto; margin-right: auto; }
.centered ul { list-style: none; padding: 0; }
header > *, header p, footer p { margin: 0 0 1rem; }
header > :last-child, header > :last-child p, footer p { margin-bottom: 0; }
.site-name { font-size: 2.75em; line-height: 1.1; }
.site-name a { text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5em; }
.menu a { border: 1px solid var(--text); padding: 0.4em 1em; line-height: 1.2; text-decoration: none; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--muted); margin: 1.5rem 0; }
main > :first-child { margin-top: 0; }
.page-title { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: min(1.6em, 5vw); color: var(--text); text-align: center; white-space: nowrap; margin-top: 0; }
.post-title { white-space: normal; }
.center { text-align: center; }
.post-list { list-style: none; padding: 0; text-align: center; }
.post-list li + li { margin-top: 0.5em; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--surface); padding: 0.4em; text-align: left; vertical-align: top; }
.sections td:first-child { width: 7em; text-align: center; }
pre { background: var(--surface); padding: 1em; overflow-x: auto; text-align: left; }
img { max-width: 100%; height: auto; }
.sep { color: var(--muted); }
