*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eff1f5;
  color: #4c4f69;
  font: 14px/1.4 ui-monospace, "SFMono-Regular", "Berkeley Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

#hex-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
}

a {
  color: #1e66f5;
  text-decoration: none;
}

a:hover,
a:active {
  color: #209fb5;
}

p {
  margin: 15px 0;
}

h1,
h2,
h3 {
  margin: 1em 0 15px;
  padding: 0;
  color: #4c4f69;
  font: inherit;
  font-weight: 700;
  line-height: 1.7;
}

h1 {
  font-size: 50px;
}

h1 a {
  color: inherit;
}

h2 {
  font-size: 24px;
}

ul {
  margin: 15px 0;
  padding-left: 30px;
  list-style: disc;
}

img {
  max-width: 100%;
}

.wide-image {
  display: block;
  width: 100%;
  margin: 24px 0;
  border-radius: 5px;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.image-pair img {
  width: 100%;
  border-radius: 5px;
}

::selection {
  color: #eff1f5;
  background: #ea76cb;
}

.wrapper-masthead {
  margin-bottom: 50px;
}

.masthead {
  min-height: 0;
  padding: 20px 0;
  border-bottom: 1px solid #9ca0b0;
}

.masthead::after {
  display: table;
  clear: both;
  content: "";
}

.site-avatar {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 0 10px;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.site-avatar img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}

.site-info {
  display: block;
}

.site-name {
  display: inline-block;
  margin: 0;
  border-radius: 2em;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1px;
}

.site-description {
  display: inline-block;
  margin: -5px 0 0;
  border-radius: 2em;
  color: #8c8fa1;
  font-size: 16px;
}

nav {
  display: inline-block;
  margin-top: 14px;
  border-radius: 2em;
  font-size: 18px;
}

nav a {
  margin-right: 20px;
  color: #4c4f69;
  font-weight: 300;
  letter-spacing: 1px;
}

.posts > .post {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post + .post {
  margin-top: 0;
}

.post h1 {
  display: inline-block;
  margin-top: 0.62em;
  margin-bottom: 0;
  border-radius: 2em;
  font-size: 28px;
  line-height: 1;
}

.date,
.tags {
  display: inline-block;
  margin-bottom: 0;
  border-radius: 2em;
  color: #8c8fa1;
  font-style: italic;
}

.page {
  padding-top: 72px;
}

.page h1,
.page p,
.page ul,
.page article {
  border-radius: 2em;
}

.entry {
  padding-top: 7px;
}

.entry article {
  margin: 0 0 42px;
}

.entry p a {
  text-decoration: underline;
}

.tags {
  color: #6c6f85;
  font-size: 13px;
  font-style: normal;
}

footer {
  padding: 72px 0 20px;
  color: #8c8fa1;
  text-align: center;
}

@media screen and (max-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .masthead {
    text-align: center;
  }

  .site-avatar {
    margin: 0 auto 10px;
  }

  .site-info {
    float: none;
    display: block;
    margin: 0 auto;
  }

  .site-description {
    margin: 3px 0;
  }

  nav {
    float: none;
    display: block;
    margin-top: 9px;
    font-size: 16px;
  }

  nav a {
    margin: 0 10px;
  }

  h1 {
    font-size: 37px;
    line-height: 1.12;
  }

  .post h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 22px;
  }

  .page {
    padding-top: 54px;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #hex-bg {
    display: none;
  }
}
