html,
body,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  border: 0;
  padding: 0;
}

a {
  color: #330c15;
}

a:hover {
  text-decoration: none;
}

html {
  background-color: #ffe5eb;
}

body {
  max-width: 40%;
  min-height: 100vh;
  background-color: #ffd5e4;
  color: #330c15;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto;
  border-left: 2px solid #330c15;
  border-right: 2px solid #330c15;
  padding: 0 20px;
  padding-bottom: 20px;
}

header {
  border-bottom: 2px solid #330c15;
  padding-bottom: 5px;
}

header h1 {
  font-size: 3em;
}

header #navbar {
  display: flex;
  font-size: 1.2em;
  justify-content: space-between;
}

#navbar ul {
  list-style-type: none;
}

#navbar ul li {
  display: inline-block;
}

#navbar ul li:not(:last-child) {
  padding-right: 10px;
}

main {
  padding-top: 20px;
}

main p {
  padding-bottom: 10px;
}

main h2:not(:first-child),
main h3,
#buttons-header {
  margin-top: 10px;
}

#buttons a {
  text-decoration: none;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-header time {
  color: #552e37;
  border-left: 1px solid #330c15;
  padding-left: 5px;
}

.post:not(:last-child) {
  border-bottom: 1px solid #330c15;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.monospace {
  font-family: monospace;
}

@media screen and (max-width: 768px) {
  body {
    max-width: 100%;
    border: none;
  }

  header h1 {
    text-align: center;
  }

  main {
    padding-top: 10px;
  }

  main h2 {
    line-height: 1.2;
  }
}
