/* The one stylesheet of the site. No import, no font file, no request. */
:root {
  color-scheme: light dark;
  --text: #1a1a1a;
  --ground: #ffffff;
  --link: #0b57d0;
  --line: 1rem;
  --group: 2.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --ground: #121212;
    --link: #8ab4f8;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: left;
}

main {
  box-sizing: border-box;
  max-width: 65ch;
  margin: 0 auto;
  padding: var(--group) var(--line);
}

h1 {
  margin: 0 0 var(--group);
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: var(--group) 0 var(--line);
  font-size: 1.375rem;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 var(--line);
}

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

nav {
  display: flex;
  flex-direction: column;
  margin-top: var(--group);
}

nav a,
a.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
