/* RFC-like: minimum distraction, structure carried by indentation and whitespace rather than
   font-size jumps, bold, or color. See AGENTS.md / session_log for why. */

:root {
  color-scheme: light dark;
}

html {
  font-size: 16px;
}

body {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  line-height: 1.5;
  max-width: 72ch;
  margin: 2rem auto;
  padding: 0 1.25rem 4rem;
  color: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #d8d8d8;
    background: #14161a;
  }
}

header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
}

header a {
  font-weight: 600;
  text-decoration: none;
}

header p {
  margin: 0.4rem 0 0;
  opacity: 0.75;
}

/* Headings: distinguished by weight and a little space, not by size - h1/h2/h3 all read close
   to body text, the way a numbered RFC section title does, not a magazine headline. */
h1, h2, h3, h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  line-height: 1.4;
}

h1 { text-transform: uppercase; letter-spacing: 0.03em; }
h3 { margin-top: 2.25rem; }
h3::before { content: "\2014\a0"; opacity: 0.5; } /* em dash + nbsp, a quiet marker, not a number */

p, ul, ol {
  margin: 0.75rem 0;
}

/* The actual point of this file: definition lists (render.py's "Field / : value" output) read as
   indented plain text, term un-bolded, no color - the RFC "field: value" look. */
dl {
  margin: 0.75rem 0 1.25rem;
}

dt {
  font-weight: 400;
  margin-top: 0.6rem;
}

dd {
  margin: 0.15rem 0 0 2ch;
}

ul, ol {
  padding-left: 2ch;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code, pre {
  font-family: inherit;
  font-size: 0.95em;
}

pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}

hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.4;
  margin: 2rem 0;
}
