/* The Kyrios app's pages (app.kyriosid.com): one small style sheet, the site's only one. No fonts, images or anything
   else from another site: the system's own font, light or dark as the reader's device prefers. The colours keep a
   contrast of at least 4.5 to 1 against their background in both (tests/test_app_site.py checks it). */
:root {
  color-scheme: light dark;
  --text: #1b1f24;
  --muted: #4a535e;
  --background: #ffffff;
  --link: #0b57d0;
  --link-visited: #6a2fb3;
  --rule: #d5dbe1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8ecf1;
    --muted: #b4bec9;
    --background: #14171b;
    --link: #8ab4f8;
    --link-visited: #c9a7f5;
    --rule: #3a424b;
  }
}

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

body {
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main,
footer {
  max-width: 38rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
}

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

p,
ul,
address {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.5rem;
}

address {
  font-style: normal;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--link-visited);
}

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

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

footer a {
  display: inline-block;
  margin-right: 1.25rem;
  padding: 0.25rem 0;
}
