/* RFC-inspired, readable defaults */
/* Intentionally boring */
/* Dark mode by default */

:root {
  --fg: #e6e6e6;
  --bg: #0d1117;
  --muted: #8b949e;
  --rule: #30363d;
  --code-bg: #161b22;
}

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.65;
}

/* Shared width container */
.container {
  max-width: 80ch;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Main content block */
main {
  max-width: 80ch;
  padding: 2rem 1rem;
  margin: 0 auto;
}

/* Headings — restrained, not loud */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem 0;
}

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

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem 0;
}

/* Paragraphs */
p {
  margin: 0.75rem 0;
}

/* Lists */
ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

li {
  margin: 0.25rem 0;
}

/* Horizontal rules — document separators */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* Links — subtle but clear */
a {
  color: inherit;
  text-decoration: underline;
}

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

/* Code blocks — terminal-like */
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

pre {
  background: var(--code-bg);
  padding: 0.75rem;
  overflow-x: auto;
}
header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

nav {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Breadcrumb navigation */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: left;
}

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

.breadcrumbs a:hover {
  color: var(--fg);
  text-decoration: underline;
}

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
}

th, td {
  border: 1px solid var(--rule);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--code-bg);
}

/* Figure-style images */
main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border: 1px solid var(--rule);
}

/* Limit visual width to text column */
main a img {
  max-width: 72ch;
}

/* Subtle hover affordance */
main a:hover img {
  opacity: 0.95;
}

/* Tighten spacing between section headers and figures */
h3 + a img {
  margin-top: 0.75rem;
}

figure {
  margin: 2rem auto;
  max-width: 72ch;
  text-align: center;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--rule);
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9em;
  color: var(--muted);
}

