:root {
  --primary-color: #3478F6;
  --background-color: #F0EDE7;
  --background-secondary-color: #FDFCF6;
  --text-primary: #000;
  --text-secondary: #8A8A8E;
  --text-tertiary: #C0C0C2;
}

body {
  font-family: "EB Garamond", "Noto Naskh Arabic", serif;
  background-color: var(--background-color);
  color: #000;
  margin: auto;
  overflow-x: hidden;
}

a,
a:visited,
a:hover,
a:active {
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
}

.everything {
  max-width: 560px;
  padding: 40px 0px 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  background-image: url('img/paper.png');
  background-repeat: repeat-y;
  box-shadow:
    0px 2.8px 2.2px rgba(0, 0, 0, 0.02),
    0px 6.7px 5.3px rgba(0, 0, 0, 0.028),
    0px 12.5px 10px rgba(0, 0, 0, 0.035),
    0px 22.3px 17.9px rgba(0, 0, 0, 0.042),
    0px 41.8px 33.4px rgba(0, 0, 0, 0.05),
    0px 100px 80px rgba(0, 0, 0, 0.07);
  ;
  border-radius: 6px;
}

.logo {
  /* object-fit: contain; */
  margin: 0px 32px;
  display: flex;
  align-items: baseline;

  .line {
    flex: 1;
    font-size: 48px;
    font-weight: 500;
    margin: 0;
  }

  .second {
    text-align: end;
    margin-top: -8px;
  }
}

.after-logo {
  margin-bottom: 32px;
}

p {
  margin-inline-start: 32px;
  margin-inline-end: 32px;
}

h2 {
  margin-inline-start: 32px;
  margin-inline-end: 32px;
}

hr {
  margin-inline-start: 32px;
  margin-inline-end: 32px;
  border: 0;
  height: 1px;
  background-color: var(--text-secondary);
}

figcaption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.bookshelf {
  width: calc(100% - calc(2 * 32px));
  margin: 0px 32px;
  object-fit: contain;
  border: 1px solid var(--text-secondary);
}

.post {
  margin-inline-start: 32px;
  margin-inline-end: 32px;
  display: inline-block;
}

.date {
  position: absolute;
  text-align: end;
  margin-inline-start: 32px;
  color: var(--text-secondary);
}

.title {
  margin-inline-start: 120px;
  margin-inline-end: 32px;
  font-weight: 500;

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

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

.post-paper {
  margin-top: 8px;
}

.home-button {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 32px;

  a {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
  }

  a:hover {
    background-color: rgba(253, 252, 246, 0.8);
  }
}

.title-date {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  text-align: end;
  color: var(--text-secondary);
}

.title {
  margin-bottom: 8px;
}

h1 {
  margin-inline-start: 32px;
  margin-inline-end: 32px;
}