:root {
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #d8d8d8;
  --bg: #ffffff;
  --accent: #1f4ba8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececec;
    --muted: #a6a6a6;
    --line: #3a3a3a;
    --bg: #141414;
    --accent: #8ab0ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

a { color: var(--accent); }
a:focus-visible, :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
}

header.site .company {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

header.site .cin {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }

.lede { color: var(--muted); margin-top: 0; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th { font-weight: 600; width: 38%; }

.scroll { overflow-x: auto; }

.todo {
  background: #fff2c2;
  color: #4a3600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}

@media (prefers-color-scheme: dark) {
  .todo { background: #4a3d00; color: #ffe9a3; }
}

ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }

footer.site {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site p { margin: 0.3rem 0; }

@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .todo { background: none; border: 1px solid #000; }
}
