:root {
  --max-width: 720px;
  --accent: #000000;
  --nav-gap: 0.6rem;
}

html {
  height: 100%;
}

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

body {
  margin: 0;
  padding: 4rem 0 2rem;
  min-height: 100vh;
  color: var(--accent);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  box-sizing: border-box;
}

.wrapper {
  width: calc(100% - 2rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* this ensures every "line" has the exact same distance to the next one */
header h1,
.site-desc,
.site-nav h2,
.site-nav ul,
.site-nav li,
.site-nav>a,
.posts li,
ul,
footer p {
  margin: 0 0 var(--nav-gap) 0;
  padding: 0 !important;
}

.site-nav>a,
.site-nav ul li,
.posts li {
  display: flex;
  align-items: center;
}

header h1 {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

.site-desc {
  color: #000;
  font-style: italic;
}

/* Navigation */
.site-nav {
  display: block;
  margin-top: 1.6rem;
}

.site-nav h2 {
  font-size: 1rem;
  text-transform: lowercase;
}

.site-nav ul {
  list-style: none;
}

ul.posts li,
.site-nav ul li {
  text-transform: lowercase;
}

.site-nav a,
.site-nav ul li a {
  color: #000;
  text-decoration: none;
}

.site-nav a:hover,
.site-social a:hover {
  text-decoration: underline;
}

.post-date {
  color: #000;
  margin-left: calc(var(--nav-gap) / 1.5);
  font-size: 0.9rem;
}

.post-meta {
  text-align: right;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

ul.posts,
.posts ul {
  list-style: none;
}

.posts li::before {
  content: "—";
  color: var(--accent);
  margin-right: var(--nav-gap);
}

footer p {
  font-size: 0.9rem;
}

footer {
  margin-top: 4rem;
}

.site-disclaimer {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
}

.post-nav a {
  font-weight: bold;
  font-size: 1.6rem;
  text-decoration: none;
  border-bottom: none;
  outline: none;
}