:root {
  --page: #fff;
  --text: #111;
  --muted: #666;
  --rule: #e5e5e5;
  --link: #337ab7;
  --link-hover: #23527c;
  --measure: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
}

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

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

main,
.site-footer {
  width: min(var(--measure), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  background: var(--text);
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 6px;
  padding-right: 6px;
  margin-top: 32px;
  margin-bottom: 26px;
  margin-left: max(16px, calc((100% - var(--measure)) / 2));
  margin-right: 0;
}

.site-name {
  display: inline-block;
  color: #ff2b2b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

nav a {
  display: inline-block;
  color: var(--page);
  font-weight: 700;
  line-height: 1.2;
}

nav a[aria-current="page"] {
  color: var(--page);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

nav a:visited {
  color: var(--page);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-name:hover,
.site-name:focus,
nav a:hover,
nav a:focus {
  color: var(--page);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-name:hover,
.site-name:focus {
  color: #ff2b2b;
}

h1,
h2 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
}

h2 {
  font-size: 24px;
  font-weight: 500;
}

p {
  margin: 10px 0 0;
}

.intro {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.entry-list {
  margin-top: 0;
}

.entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.entry.compact {
  padding-bottom: 18px;
}

.about-collage {
  display: flex;
  justify-content: center;
  padding: 24px 0 4px;
}

.about-collage img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
}

.entry-meta {
  color: var(--muted);
  font-size: 14px;
}

.byline {
  color: var(--muted);
  font-size: 14px;
}

.post {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.post h1 {
  margin-top: 4px;
}

.post p {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 24px;
  padding-bottom: 44px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .site-header {
    display: inline-flex;
    flex-wrap: wrap;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-top: 28px;
    margin-left: 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }
}
