:root {
  --max-width: 680px;
  --primary-color: #423266;
}

body {
  font-family: EditorialNew, serif;
  font-weight: 400;
  margin: 0;
  padding: 0;

  font-size: 1.1rem;
}

h1 {
  display: block;
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

#backspace {
  margin-bottom: 0.4rem;
}

date {
  font-size: 1.4rem;
  line-height: 2.5;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
}

p {
  font-family: 'Libre Franklin', sans-serif;
  line-height: 1.6;
}

a {
  color: #0066cc;
}

img {
  max-width: 100%;
}

#contents {
  width: 93.33333333%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
  position: relative;
}

#header {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;

  margin-bottom: 2.8rem;
}

#no_posts {
  color: #cecece;
  font-size: 1.2em;
}

.post_container {
  position: relative;

  margin-bottom: 2.4rem;
  white-space: normal;

  transform: translateY(0px);
  opacity: 1;
  transition: transform 1.5s cubic-bezier(0.075, 0.82, 0.165, 1),
    opacity 1.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.post_container.animate {
  transform: translateY(24px);
  opacity: 0;
}

.post_link {
  text-decoration: none;
  position: relative;
  width: fit-content;
  display: block;
  font-size: 2.8rem;
  color: var(--primary-color);
}

.post_date {
  margin: 0;
  margin-bottom: 0.6rem;
}

.post_info {
  margin-top: 0.6rem;
  font-family: "Space Mono", monospace;

  display: flex;
  align-items: center;
}

.post_date,
.post_publicity,
.post_edit,
.link_home {
  font-family: "Space Mono", monospace;
  font-size: 0.8em;
}

.post_date,
.link_home {
  color: #666666;
}

.post_publicity,
.post_edit,
.link_home {
  text-decoration: none;
}

.post_publicity,
.post_edit {
  background-color: #000000;
  color: #ffffff;

  box-sizing: border-box;

  padding: 0.1rem 0.4rem;

  font-size: 0.6em;
}

.post_edit {
  margin-left: 0.6rem;
}

.post_publicity.private {
  background-color: #ee0202;
}

.post_publicity.public {
  background-color: #008e00;
}

.post_edit svg {
  fill: #eec402;
}

#footer_container {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 48px;
}

#footer {
  width: 93.33333333%;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8em;
  background-color: #ffffff;
}

#footer nav a {
  text-decoration: underline;
  color: var(--primary-color);
}

#footer nav a:not(:last-child) {
  margin-right: 12px;
}

pre {
  font-family: 'Inconsolata', monospace;

  background-color: #eeeeee;
  color: #000000;

  padding: 0.6rem;
  font-size: 1rem;

  white-space: pre-wrap;
  overflow-x: auto;
}

@media only screen and (max-width: 600px) {
  body {
    font-size: 0.9rem;
  }

  #contents {
    padding: 1rem 0;
  }

  h1,
  .post_link {
    font-size: 2rem;
  }

  h1 {
    margin-bottom: 0.4rem;
  }

  #backspace {
    margin: 0;
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  date {
    font-size: 0.8rem;
    line-height: 1.95;
  }

  #header {
    margin-bottom: 1.8rem;
  }

  .post_date {
    margin-bottom: 0.2rem;
  }

  .post_info {
    margin-top: 0.4rem;
  }
}