/* assets/manual/manual.css */
/*
 * Light colors are the default. Dark colors follow the system scheme when
 * these files are opened in a browser.
 *
 * The app copy appends one :root block that points these variables at the
 * light or dark set, so every page follows the app theme.
 */
:root {
  color-scheme: light dark;
  --text-light: #1c1c1c;
  --bg-light: #fafafa;
  --link-light: #0d47a1;
  --muted-light: #444;
  --rule-light: #ccc;
  --code-bg-light: #ececec;
  --text-dark: #f2f2f2;
  --bg-dark: #121212;
  --link-dark: #90caf9;
  --muted-dark: #c8c8c8;
  --rule-dark: #3a3a3a;
  --code-bg-dark: #1e1e1e;
  --text: var(--text-light);
  --bg: var(--bg-light);
  --link: var(--link-light);
  --muted: var(--muted-light);
  --rule: var(--rule-light);
  --code-bg: var(--code-bg-light);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --text: var(--text-dark);
    --bg: var(--bg-dark);
    --link: var(--link-dark);
    --muted: var(--muted-dark);
    --rule: var(--rule-dark);
    --code-bg: var(--code-bg-dark);
  }
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  margin: 0 auto;
  padding: 16px 20px 48px;
  max-width: 40rem;
}

a {
  color: var(--link);
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0.2rem 0 0.6rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2rem 0 0.4rem;
  padding-top: 0.8rem;
  border-top: 2px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.3rem;
}

p,
li {
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
}

.purpose {
  font-size: 1.05rem;
}

.group {
  margin-top: 1.5rem;
}

.nowrap {
  white-space: nowrap;
}

ul,
ol {
  padding-left: 1.25rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: var(--code-bg);
  padding: 0.05em 0.3em;
}

pre {
  background: var(--code-bg);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  line-height: 1.4;
}

pre code {
  background: transparent;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.4rem 0;
}
