/* business.jkozlovsky.cz: one plain column, local fonts only, one accent colour. Light and dark follow the system. */
:root {
  --bg: #fdfdfb;
  --text: #1d1d1b;
  --muted: #5a5a55;
  --rule: #ddddd6;
  --accent: #1f5f99;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --text: #e6e5e0;
    --muted: #a3a29b;
    --rule: #3a3a36;
    --accent: #8cb8e8;
  }
}

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

body {
  margin: 0;
  padding: 3rem 1rem 2rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

main, footer { max-width: 65ch; margin: 0 auto; }

h1 { margin: 0; font-size: 1.9rem; line-height: 1.2; font-weight: 700; }
.sub { margin: .2rem 0 1.5rem; color: var(--muted); }
h2 { margin: 2.4rem 0 .6rem; font-size: 1.2rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: .6rem; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); }
footer p { margin: 0; font-size: .9rem; }   /* the size here, not on footer: footer's 65ch stays main's */

@media print {
  body { padding: 0; background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  footer { display: none; }
}
