  :root {
    --bg: #0e0e0e;
    --text: #eaeaea;
    --link: #79aaff;
    --border: #2a2a2a;
    --muted: #999999;
    --max-width: 80ch;
  }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}




.content {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin: 1rem 0;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
  outline: none;
}

blockquote {
  border-left: 3px solid var(--border);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--muted);
}

pre, code {
  font-family: ui-monospace, monospace;
  background: var(--border);
  color: inherit;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  padding: 0.8rem;
  overflow-x: auto;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.5rem;
  text-align: left;
}

.csl-bib-body {
  margin-top: 2rem;
}
.csl-entry {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.csl-left-margin {
  float: left;
  width: 2em;
  color: var(--muted);
}
.csl-right-inline {
  margin-left: 2.5em;
}

#postamble {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
#postamble a {
  color: var(--muted);
  text-decoration: none;
}
#postamble a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }
  .title {
    font-size: 1.4rem;
  }
  .csl-left-margin {
    float: none;
    width: auto;
    display: inline;
    margin-right: 0.4em;
  }
  .csl-right-inline {
    margin-left: 0;
    display: block;
  }
}



/* minimalist navigation bar */
.navbar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 600;
  font-size: 1rem;
  color: #FFDD00;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  
}

.nav-menu a {
  color: #D90085;
  text-decoration: underline;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--link);
}

@media (max-width: 600px) {
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.3rem;
  }
  .nav-container {
    flex-direction: column;
    align-items: center;
  }
}










.site-footer .badge-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0px 8px;   /* vertical horizontal */
  margin-top: 20px;

}


.site-footer .badge {
  display: block;
  height: 31px;
  width: auto;
  line-height: 0;
}


