@font-face {
  font-family: 'Space Mono';
  src: url('/SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/SpaceMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/SpaceMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

:root {
  --bg: #fafafa;
  --fg: #333333;
  --muted: #888888;
  --border: #dddddd;
  --accent: #2f5d62;
  --accent-tint: #6b9a9e;
  --code-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  background-color: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  padding: 0;
}

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

.wrapper {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}

/* Page divider (borrowed from Centrarium) */
.page-divider {
  display: block;
  width: 50%;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.page-divider .one {
  position: relative;
  top: -9px;
  display: block;
  background: var(--border);
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
}
.page-divider .two {
  position: relative;
  top: -26px;
  display: block;
  background: var(--bg);
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-radius: 50%;
}

/* Navigation */
.navigation {
  box-shadow: 0 2px var(--accent-tint);
  padding: 0 1em;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 1;
}
.navigation-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.navigation .logo {
  float: left;
  height: 4em;
  line-height: 4em;
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
}
.navigation .logo .avatar {
  height: 2.4em;
  width: 2.4em;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.6em;
}
.navigation .logo:hover {
  text-decoration: none;
}
.navigation nav {
  float: right;
  line-height: 4em;
}
.navigation .navigation-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation .nav-link {
  display: inline-block;
}
.navigation .nav-link a {
  padding-left: 1.5em;
  font-size: 1.4rem;
}

.page-content {
  margin-top: 5em;
}

/* Hero header (home + post) */
.site-header-container,
.post-header-container {
  width: 100%;
  text-align: center;
  color: #fff;
  background-color: var(--accent);
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.33);
}
.site-header-container .scrim,
.post-header-container .scrim {
  padding: 3em 1em;
}
.site-header .title,
.post-header .title {
  font-size: 3rem;
  margin: 0;
}
.site-header .subtitle {
  font-style: italic;
  font-size: 1.6rem;
  margin: 0.5em 0 0 0;
  opacity: 0.9;
}

/* Post list on home */
.post-list {
  list-style: none;
  margin: 2em 0;
  padding: 0;
}
.post-list li {
  padding: 1em 0;
}
.post-list h2 {
  margin: 0.2em 0 0 0;
  font-size: 1.9rem;
}
.post-meta {
  color: var(--muted);
  font-size: 1.3rem;
}

/* Post page */
.post-content {
  font-size: 1.5rem;
  line-height: 1.7;
  padding: 1em 0 2em 0;
}
.post-content img {
  display: block;
  margin: 1em auto;
  max-width: 100%;
}
.post-content h2,
.post-content h3 {
  margin-top: 1.5em;
}

.rss {
  text-align: center;
  padding: 1em 0;
  font-size: 1.3rem;
}

pre {
  overflow-x: auto;
  padding: 1em;
  background-color: var(--code-bg);
  border-radius: 4px;
  font-size: 1.3rem;
}
code {
  background-color: var(--code-bg);
  border-radius: 3px;
  padding: 0 3px;
}
pre code {
  background: none;
  padding: 0;
}
blockquote {
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--border);
  margin-left: 0;
  padding-left: 1.5em;
}

/* Footer */
.site-footer {
  margin-top: 3em;
  padding: 2em 1em;
  background-color: var(--accent);
  color: #fff;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: rgba(255, 255, 255, 0.75);
}
.site-signature {
  text-align: center;
  font-size: 1.3rem;
}
.site-signature .text {
  opacity: 0.85;
}
