/* Eigenes Layout statt eines Themes: ein Rechtstext soll nicht davon abhaengen,
   was ein fremdes Theme beim naechsten Update um ihn herum schreibt. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #5a5a5a;
  --link: #0b5ea8;
  --rule: #e2e2e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e6e6e6;
    --muted: #a3a3a3;
    --link: #7fb6f0;
    --rule: #2e3238;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, footer {
  max-width: 38rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

main { padding-top: 2.5rem; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 1.5rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2.2rem 0 .6rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: rgba(127, 127, 127, .14);
  padding: .1em .3em;
  border-radius: 3px;
  /* Der drive.appdata-Scope ist laenger als ein Telefondisplay breit. */
  overflow-wrap: anywhere;
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: .9rem;
}
footer a { color: var(--muted); }
