:root {
  --bg: #ffffff;
  --text-color: #000000;
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --muted: #686868;
  --divider: rgba(0, 0, 0, 0.24);
  --menu-text-highlight-color: #ffffff;
  --menu-back-highlight-color: #000000;
}

/* Follow the device setting automatically, unless the visitor has
   explicitly chosen light mode via the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1e1e;
    --text-color: #e8e8e8;
    --navbar-bg: rgba(30, 30, 30, 0.8);
    --muted: #9a9a9a;
    --divider: rgba(255, 255, 255, 0.18);
    --menu-text-highlight-color: #1e1e1e;
    --menu-back-highlight-color: #e8e8e8;
  }
}

/* Manual override via the day/night toggle. */
[data-theme="dark"] {
  --bg: #121212;
  --text-color: #e8e8e8;
  --navbar-bg: rgba(18, 18, 18, 0.8);
  --muted: #9a9a9a;
  --divider: rgba(255, 255, 255, 0.18);
  --menu-text-highlight-color: #121212;
  --menu-back-highlight-color: #e8e8e8;
}

html {
  margin:    0 auto;
  max-width: 1050px;
}

a:link,
a:visited,
a:hover,
a:active
{ color: var(--text-color); }

/* Smooth fade when switching themes (kept off the menu/toggle hover, which
   should react instantly like the other menu links). */
body {
  transition: background-color 0.6s ease, color 0.6s ease;
}

.navbar,
hr.footer {
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

/* Day/night toggle button — lives in the footer, left of the copyright text. */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Show the sun when light mode is active, the moon when dark mode is active. */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}


/*
a:link {
  text-decoration: none;
}

a:hover {
  background-color: var(--menu-back-highlight-color);
  color: var(--menu-text-highlight-color)
}

.footer a:hover {
  background-color: transparent;
}
*/


.topname {
  font-size: 64px;
  text-align: center;
  margin-bottom: 50;
}

.intro {
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
}

.freetext {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.articles {
  text-align: center;
}

hr.footer {
  margin-top: 30px;
  margin-bottom: 20px;
  border-top: 1px solid var(--divider);
}

footer {
  padding-bottom: 16px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer {
 margin: 0;
 color: var(--muted);
 text-align: right;
 font-size: 14px;
}

.footer-icon-rss:hover img {
  filter: invert(76%) sepia(28%) saturate(6316%) hue-rotate(358deg) brightness(100%) contrast(106%);
}

body {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  background-color: var(--bg);
  color: var(--text-color);
}

.navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: var(--navbar-bg) !important;
  margin-bottom: 2.5rem !important;
  position: -webkit-sticky;
  position: sticky;
  z-index: 1;
  top: 0;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.nav-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.menu li {
  float: left;
}

.menu li a {
  display: block;
  color: var(--text-color);
  text-align: center;
  padding: 4px 16px;
  text-decoration: none;
}

.menu li a:hover {
  background-color: var(--menu-back-highlight-color);
  color: var(--menu-text-highlight-color)
}

.menu .active {
  text-decoration: underline;
  text-align: center;
  padding: 4px 16px;
}

/* Fade images in once loaded instead of having them pop in abruptly.
   Scoped to html.js so visitors without JS still see images normally. */
html.js img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

html.js img.is-loaded {
  opacity: 1;
}

/* IMG Grid */

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 2px;
}

.column {
  flex: 24%;
  max-width: 24%;
  padding: 0 2px;
}

.column img {
  margin-top: 3px;
  vertical-align: middle;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 49%;
    max-width: 49%;
  }
}

@media screen and (max-width: 400px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* Fonts */
.ubuntu-light {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .ubuntu-regular {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .ubuntu-medium {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .ubuntu-light-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .ubuntu-regular-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .ubuntu-medium-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .ubuntu-bold-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: italic;
  }

p.post-taxonomies {
  color: #787878;
  font-size: 16px;
  }
  
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.prev-post {
  text-align: left;
}

.next-post {
  text-align: right;
}

@media screen and (max-width: 768px) {
  body {
    padding: 0 16px;
    font-size: 16px;
  }

  .topname {
    font-size: 36px;
  }

  .intro {
    font-size: 22px;
  }

  .freetext {
    font-size: 16px;
  }

  .menu li a {
    padding: 6px 10px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer {
    text-align: left;
  }
}