
:root {
  --bg-color-light: #ffffff;
  --bg-color-dark: #141518;
  --text-color-light: #333333;
  --text-color-dark: #ffffff;
}

/* LAYOUT */

body {
  color: var(--text-color-light);
  background-color: var(--bg-color-light);
  transition: background-color 0.3s, color 0.3s;
  font-size: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6em;
  max-width: 45rem;
  padding: 5px;
  margin: 0 auto;
}

h1, h2 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2em;
}

img {
  max-width: 45rem;
}

/* .dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
} */

.content {
  margin-bottom: 2rem;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

blockquote {  
  padding: 10px;
  margin: 10px 0;
  border-left: 2px solid #ccc;
  background-color: #f7f7f7;
  font-style: italic;
}

.article-date {
  color: #5f5f5f;
  font-size: 14px;
  display: block;
}


/* NAVIGATION */

.site-nav {
  display: flex;
  background-color: #e8e8e8;
  border-radius: 5px;
  padding-left: 1rem;
}

.site-nav a {
  display: block;
  padding: 1rem;
}

.site-nav .logo {
  font-weight: bold;
  padding-left: 0;
  text-decoration: none;
  color: var(--text-color-light);
}

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a {
  font-size: 18px;
  color: var(--text-color-light);
  text-decoration: none;
}

.main-menu a:hover {
  text-decoration: underline;
}

figure {
  margin: 0 auto;
}

figcaption p {
  text-align: center;
  color: #5f5f5f;
  font-size: 14px;
  margin-top: 0px;
}


@media screen and (max-width: 48rem) {
  .site-nav,
  .main-menu {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.5rem;
    padding-left: 0;    
  }

  img {
    max-width: 100%;
  }

}

/* LISTS */

.post-snippet {
  margin-bottom: 1rem;
}

.post-snippet h3 {
  margin-bottom: 0.25rem;
}
