/* Book-like styling for the GitHub Pages HTML booklet. */
:root {
  --accent: #4169e1;
  --ink: #1b1b1b;
  --muted: #666;
  --rule: #e2e2e2;
}

html {
  font-size: 18px;
}

body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

header#title-block-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 2rem;
}

header#title-block-header h1.title {
  color: var(--accent);
  font-size: 2.6rem;
  margin-bottom: 0.25rem;
}

header#title-block-header p.subtitle {
  color: var(--muted);
  font-style: italic;
  font-size: 1.2rem;
}

h1, h2, h3, h4 {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.25;
}

h1 {
  color: var(--accent);
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.3rem;
  margin-top: 3rem;
}

nav#TOC {
  background: #fafafa;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

nav#TOC::before {
  content: "Summary";
  display: block;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
}

pre {
  background: #f6f8fa;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
}

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

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

img, svg {
  max-width: 100%;
  height: auto;
}
