/* Minimal, minima-inspired styling for John Senneker's blog. */
:root {
  --text: #111;
  --muted: #828282;
  --link: #2a7ae2;
  --border: #e8e8e8;
  --wrap: 800px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrapper {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* Header */
.site-header {
  border-top: 5px solid var(--muted);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 56px;
}
.site-title:hover { text-decoration: none; }
.site-nav .page-link { color: var(--text); margin-left: 20px; }

/* Content */
.page-content { padding: 30px 0; }

.post-title,
.page-heading { font-size: 2.2rem; line-height: 1.2; margin: 0 0 10px; }
.post-meta { color: var(--muted); font-size: 0.9rem; }
.post-content { margin-top: 20px; }
.post-content h1,
.post-content h2,
.post-content h3 { margin-top: 1.6em; }

/* Post list (home) */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li { margin-bottom: 24px; }
.post-list h3 { margin: 2px 0; }
.post-list-heading { font-size: 1.6rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }

/* Canvas demos in the post */
canvas { max-width: 100%; }
button { cursor: pointer; padding: 4px 14px; font-size: 1rem; }

/* 404 */
.container-404 {
  margin: 10px auto;
  max-width: 600px;
  text-align: center;
}
.container-404 h1 {
  margin: 30px 0;
  font-size: 4em;
  line-height: 1;
  letter-spacing: -1px;
}
