/* Colors are the app's palette (docs/ux/README.md, section 8.1). System fonts only: nothing is loaded from another file. */
:root {
  color-scheme: light dark;
  --bg: #fbf7f1;
  --surface: #f1eae0;
  --text: #24201c;
  --muted: #5c554d;
  --primary: #1e6b73;
  --hairline: #d9d0c3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --surface: #24211c;
    --text: #ece5da;
    --muted: #b3aa9d;
    --primary: #7fcbd1;
    --hairline: #3a352e;
  }
}

body {
  margin: 0 auto;
  padding: 1.5rem 1rem;
  max-width: 38rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

p,
ul,
ol {
  margin: 0.75rem 0;
}

ul,
ol {
  /* The browser's 40px indent leaves a narrow text column at large zoom, where words then break inside the word. */
  padding-left: 1.25rem;
}

li {
  margin: 0.375rem 0;
}

.lead {
  margin-top: 0;
  font-size: 1.25rem;
}

.meta {
  color: var(--muted);
}

a {
  color: var(--primary);
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

summary {
  cursor: pointer;
  /* With the line of text, a touch target of about 44 px. */
  padding: 0.625rem 0;
}

code {
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
  background: var(--surface);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9375em;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  /* A flex item does not wrap an unbroken address on its own, so a long address would widen the page at large text sizes. */
  overflow-wrap: anywhere;
}
