:root {
	--base: #faf4ed;
	--text: #575279;
	--link: #286983;
	--visited: #907aa9;
	--muted: #f2e9e1;

	--font-system: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Google Atkinson Hyperlegible Next', Lexend, system-ui, sans-serif;
	--font-mono: 'FantasqueSansM Nerd Font Propo', 'Fantasque Sans Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	--font-geometrical: Lexend, 'Google Lexend', Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;

	--font-body: var(--font-system);
	--font-nav: var(--font-geometrical);
	--font-heading: var(--font-geometrical);
}

@media (prefers-color-scheme: dark) {
	:root {
		--base: #191724;
		--text: #e0def4;
		--link: #31748f;
		--visited: #c4a7e7;
		--muted: #26233a;
	}
}

html {
  font-size: clamp(1rem, calc(13.6px + 0.4vw), 1.5rem);
  color: var(--text);
  background-color: var(--base);
  font-family: var(--font-body);
}

body {
  line-height: 1.5;
  margin: 0 auto;
  max-width: 42rem;
}

p {
  text-align: justify;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-top: 0;
  margin-left: 1rem;
  line-height: 1.2;
  font-family: var(--font-heading);
}

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

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

article h1.title {
  text-align: center;
}

article blockquote {
  margin: 0;
  padding: 0px 16px 0 10px;
  border-left-width: 5px;
  border-left-style: solid;
  border-radius: 2px;
  border-color: var(--muted);
}

nav {
  font-family: var(--font-nav);
  display: inline-flex;
  align-items: baseline;
  width: 100%;
  margin: 0;
  justify-content: space-evenly;
}

nav.site h1.title {
  font-size: 2rem;
  margin-bottom: 0;
}

nav ul {
  display: inline-flex;
  list-style-type: none;
  justify-content: space-around;
  padding-left: 0px;
}

nav a {
  text-decoration-line: none;
  color: var(--text) !important;
}

nav a:hover {
  text-decoration: overline;
}

nav li {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

main {
  padding: 1rem;
}

nav.blog ul {
  font-size: 1.5rem;
  width: 100%;
}

footer {
  text-align: center;
}

footer span {
  padding-left: 0.5rem;
}