:root {
  --ink: #2a2532;
  --muted: #5f5870;
  --accent: #7d5cc0;
  --accent-soft: #f3f0fa;
  --warm: #fdeadd;
  --rule: #e4e0ee;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  line-height: 1.62;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

header.doc {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: .02em;
  margin: 0 0 .4rem;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
}

.meta { font-size: .88rem; color: var(--muted); margin: 0; }

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 2.4rem 0 .6rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--rule);
}

h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }

p, li { font-size: 1rem; }

a { color: var(--accent); }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

.lede {
  font-size: 1.08rem;
  color: var(--muted);
}

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: .9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.4rem 0;
}

.callout.warm {
  background: var(--warm);
  border-left-color: #d98b4a;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.tablewrap { overflow-x: auto; margin: 1.2rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .93rem;
  min-width: 34rem;
}

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

th { background: var(--accent-soft); font-weight: 600; }

footer.doc {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: .88rem;
  color: var(--muted);
}

footer.doc a { margin-right: 1rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9f2;
    --muted: #a9a2b8;
    --accent: #b79ce8;
    --accent-soft: #2a2438;
    --warm: #3a2c22;
    --rule: #3a3448;
    --bg: #191524;
  }
}

@media print {
  body { max-width: none; padding: 0; font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  h2 { page-break-after: avoid; }
}
