cartulary 0.3.0-alpha.1

The knowledge layer of your project — decisions, issues, docs, all in one place.
Documentation
:root {
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #666;
  --accent: #0a66c2;
  --border: #e1e4e8;
  --code-bg: #f6f8fa;
  --max-width: 48rem;
  --hl-keyword: #cf222e;
  --hl-string: #0a3069;
  --hl-comment: #6e7781;
  --hl-constant: #0550ae;
  --hl-entity: #8250df;
  --hl-type: #953800;
  --hl-variable: #1a1a1a;
  --hl-punctuation: #57606a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --bg: #1a1a1a;
    --muted: #9aa0a6;
    --accent: #66b3ff;
    --border: #30363d;
    --code-bg: #161b22;
    --hl-keyword: #ff7b72;
    --hl-string: #a5d6ff;
    --hl-comment: #8b949e;
    --hl-constant: #79c0ff;
    --hl-entity: #d2a8ff;
    --hl-type: #ffa657;
    --hl-variable: #e6e6e6;
    --hl-punctuation: #8b949e;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.site-nav a {
  margin-left: 1rem;
}

.site-main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

h1, h2, h3 { line-height: 1.25; }
h1 { margin-top: 0; }

dl.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
dl.meta dt { font-weight: 600; }
dl.meta dd { margin: 0; }

table.records {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
table.records th, table.records td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
table.records th {
  background: var(--code-bg);
  font-weight: 600;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 0.9em;
}
pre {
  background: var(--code-bg);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
pre code { background: none; padding: 0; }
pre.mermaid { background: transparent; padding: 0; }

pre code .hl-keyword,
pre code .hl-storage { color: var(--hl-keyword); }
pre code .hl-string { color: var(--hl-string); }
pre code .hl-comment { color: var(--hl-comment); font-style: italic; }
pre code .hl-constant { color: var(--hl-constant); }
pre code .hl-entity { color: var(--hl-entity); }
pre code .hl-support,
pre code .hl-type { color: var(--hl-type); }
pre code .hl-variable { color: var(--hl-variable); }
pre code .hl-punctuation { color: var(--hl-punctuation); }

.breadcrumb { color: var(--muted); font-size: 0.9rem; }

.record-ref .status {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--code-bg);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout {
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-left: 3px solid var(--accent);
  background: var(--code-bg);
  border-radius: 0 4px 4px 0;
}
.callout-warning { border-left-color: #d97706; }
.callout-danger { border-left-color: #dc2626; }

/* GFM-style alerts (DDR-01861F1CBBFDD): rendered by site/markdown.rs as
 * <aside class="alert alert-<marker-lowercase>">. Per-marker colours
 * override the default accent so the section stands out at a glance. */
aside.alert {
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-left: 3px solid var(--accent);
  background: var(--code-bg);
  border-radius: 0 4px 4px 0;
}
aside.alert::before {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
aside.alert-decision { border-left-color: #2563eb; }
aside.alert-decision::before { content: "Decision"; color: #2563eb; }
aside.alert-context::before { content: "Context"; }
aside.alert-consequences::before { content: "Consequences"; }
aside.alert-references::before { content: "References"; }

.empty {
  color: var(--muted);
  font-style: italic;
}