:root {
  --red: #C5004A;
  --darkred: #7F0036;
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --darkgray: #333;
  --navy: #17050F;
  --blue: #082840;
  --white: #fff;
  --lightyellow: #ffc;
  --lightpink: #fcc;
}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
  font-size: 1.1em;
}

header {
  padding-bottom: 1em;
  border-bottom: 1px dashed var(--lightgray);
}

footer {
  margin-top: 1em;
  border-top: 1px dashed var(--lightgray);
}

/* Header */
.home {
  padding: 0 1rem;
  margin: 1rem 0; /* 16px /16 */
}
.home :link:not(:hover) {
  text-decoration: none;
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  margin-left: 1em;
}
.nav-item {
  display: inline-block;
  margin-right: 1em;
}
.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

/* Posts list */
.postlist {
  list-style: none;
  padding: 0;
}
.postlist-date, footer p {
  font-size: 0.8125em; /* 13px /16 */
  color: var(--darkgray);
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}
.tmpl-home .postlist-link {
  font-weight: 700;
}


/* Tags */
.post-tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-size: 0.625em; /* 10px /16 */
  padding: 2px 4px;
  margin-left: 0.8em; /* 8px /10 */
  background-color: var(--red);
  color: var(--white);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
}
a[href].post-tag,
a[href].post-tag:visited {
  color: #fff;
}

.note {
  background-color: var(--lightyellow);
}
.warning {
  background-color: var(--lightpink);
  font-style: italic;
}

.note, .warning {
  padding: 0.625em; 
}
.note:last-child, .warning:last-child {
  margin-top: 2em;
}
.note:first-child, .warning:first-child {
  margin-bottom: 2em;
}
.note ol:only-child, .warning ol:only-child {
  margin: 0;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: .1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
a[href].direct-link:focus:visited,
:hover > a[href].direct-link,
:hover > a[href].direct-link:visited {
  color: #aaa;
}

blockquote p {
  padding-left: 1em;
  border-left: 4px solid var(--lightgray);
}

.highlight {
  background-color: var(--lightyellow);
}

.colophon {
  font-size: 12px;
}