/* Agent Assurance subsite. Direction: controlled reference document.
   One serif voice for prose, monospace reserved for the checkable layer
   (dates, statuses, ledger IDs), one institutional accent. No motion. */

:root {
  --paper: #fdfdfc;
  --ink: #191917;
  --muted: #605f5a;
  --rule: #d8d6d0;
  --registry: #2e4b6e;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 42rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--registry); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--registry); outline-offset: 2px; }

/* Masthead */

.masthead { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.masthead .site { margin: 0; font-variant-caps: all-small-caps; letter-spacing: 0.08em; font-size: 1rem; }
.masthead .site a { color: var(--ink); text-decoration: none; }
.masthead .site a:hover { color: var(--registry); }
.masthead.home { padding-bottom: 1.75rem; }

.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.subtitle { margin: 0.4rem 0 0; font-size: 1.0625rem; color: var(--muted); }
.mark { margin: 0.9rem 0 0; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }

/* Front page */

.definition {
  margin: 0 0 1.5rem;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--registry);
}
.definition p { margin: 0; font-size: 1.15rem; line-height: 1.6; }

.serial { color: var(--muted); margin: 0 0 2.5rem; }

.contents h2 {
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}
.contents li:last-child { border-bottom: 1px solid var(--rule); }
.contents .n { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.contents .status { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.contents .scheduled span:nth-child(2) { color: var(--muted); }

@media (max-width: 34rem) {
  .contents li { grid-template-columns: 2rem 1fr; }
  .contents .status { grid-column: 2; }
}

/* Chapter pages */

article h1 { font-size: 1.55rem; font-weight: 600; line-height: 1.3; margin: 0 0 1.5rem; }
article h2 { font-size: 1.15rem; font-weight: 600; margin: 2.2rem 0 0.8rem; }
article blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--registry);
}
article blockquote p { margin: 0; }
article sup { line-height: 0; font-size: 0.72em; }
article sup a { text-decoration: none; padding: 0 0.1em; }

.ledger { font-family: var(--mono); font-size: 0.82em; color: var(--muted); }

.footnotes { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.footnotes h2 { font-size: 1rem; font-variant-caps: all-small-caps; letter-spacing: 0.08em; }
.footnotes ol { padding-left: 1.4rem; }
.footnotes li { font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.7rem; color: var(--ink); }
.footnotes .back { text-decoration: none; }

.chapnav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* Footer */

footer { margin-top: 4rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
footer p { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
