html {
  font-size: 90%;
}

@font-face {
  font-family: "cmunbx";
  src: url("cmunrm.ttf");
}

header {
  margin: 0 0 3rem;
  padding: 1.2rem 0;
}

body {
  font-family: "cmunbx";
  font-size: 1.3rem;
  color: #000;
  max-width: 900px;
  padding: 0 1rem;
  margin: 0 auto;
}

.logo {
    margin: 0;
    text-align: left;
}

.logo a {
  float: left;
  font-size: 1.8rem;
}

pre {
  max-width: 900px;
  overflow-x: auto;
  padding: 1rem;
  background: #f5f2f0;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre;
}

code {
  font-size: 0.85rem;
}

pre code {
  font-size: 0.85rem;
  padding: 0;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

thead {
  border-bottom: 2px solid #000;
}

td, th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 1.1rem;
}

tbody tr:nth-child(even) {
  background: #f5f2f0;
}

tbody tr:nth-child(odd) {
  background: #fff;
}

figure {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
}

figure figcaption {
  order: -1;
  font-style: italic;
  text-align: center;
  color: #777;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

figure video, img {
  max-width: 100%;
  height: auto;
}

/* Tile multiple video wikilinks horizontally */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 1.5rem 0;
}

.video-grid figure {
  flex: 1 1 280px;
  min-width: 200px;
  margin: 0;
}

.video-grid figure figcaption {
  order: 0;
  text-align: center;
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.video-grid figure video {
  width: 100%;
  height: auto;
}

/* Pandoc syntax highlighting */
.sourceCode .kw { color: #007020; font-weight: bold; }
.sourceCode .cf { color: #007020; font-weight: bold; }
.sourceCode .dt { color: #902000; }
.sourceCode .dv { color: #40a070; }
.sourceCode .bn { color: #40a070; }
.sourceCode .fl { color: #40a070; }
.sourceCode .ch { color: #4070a0; }
.sourceCode .st { color: #4070a0; }
.sourceCode .co { color: #60a0b0; font-style: italic; }
.sourceCode .ot { color: #007020; }
.sourceCode .al { color: #ff0000; font-weight: bold; }
.sourceCode .fu { color: #06287e; }
.sourceCode .er { color: #ff0000; }
.sourceCode .wa { color: #60a0b0; font-weight: bold; font-style: italic; }
.sourceCode .cn { color: #880000; }
.sourceCode .sc { color: #4070a0; }
.sourceCode .vs { color: #4070a0; }
.sourceCode .ss { color: #bb6688; }
.sourceCode .im { color: #007020; }
.sourceCode .va { color: #19177c; }
.sourceCode .bu { color: #007020; }
.sourceCode .ex { }


nav {
  text-align: right;
}

nav a {
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
  text-decoration: none;
  margin: 0 0 0 1.2rem;
  text-transform: uppercase;
}

footer {
  margin-top: 3rem;
  padding: 1.2rem 0;
  font-size: 1.0rem;
  color: #555;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.8rem;
}

article .header {
  font-size: 1.2rem;
  font-style: italic;
  color: #555;
}

.logo a {
  font-weight: bold;
  color: #000;
  text-decoration: none;
}
