html {
  line-height: 1.6;
}

body {
  max-width: 80ch;
  margin: 0 auto;
  padding: 2em;
}

header {
  padding-bottom: 1em;
}

h1,h2,h3 {
  font-family: sans-serif;
}

p,
li,
blockquote {
  font-size: 18px;
}

h1 a {
  text-decoration: none;
  color: black;
}

article {
  margin-bottom: 2em;
  padding-bottom: 1em;
}

li {
  margin-bottom: .5em;
}

pre {
  background: #333;
  color: #f8f8f2;
  padding: 1em;
  border-radius: 7px;
  overflow-x: auto;
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1em 0;
}

article:after {
  content: "❧";
  display: block;
  height: 1px;
  margin-top: 1em;
}

img {
  max-width: 100%;
  height: auto;
}

#posts div {
  padding: 1em 0;
  border-bottom: 1px solid #ccc;
}

#volver {
  display: none;
  font-size: 0.8em;
  color: #666;
  cursor: pointer;
  padding-right: .75em;
  border-right: 1px solid #ccc;
  margin-right: .5em
}

.date {
    font-family: sans-serif;    
    font-size: 0.8em;
    color: #666;
}

.post-link {
    font-family:sans-serif;
    cursor: pointer;
    color: #007bff;
    text-decoration: none;
    margin-left: 1em;
    margin-bottom: 0
}

.post-link:hover {
  text-decoration: underline;
}

a:not(.post-link):not(.internal):after {
    content: '☍';
    font-size: 0.8em;
    margin-left:.25em;
    text-decoration: none!important;
    display: inline-block;
}

/* Animaciones */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }
  h1 a, .date {
    color: #eee; 
  }

  pre {
    background: #1e1e1e;
    color: #d4d4d4;
  }

  blockquote {
    border-color: #444;
  }
  a, .post-link {
    color: powderblue;
  }
}