/* From lugo */
footer {
  text-align: center;
  clear: both;
}

#nextprev {
  /* The container for both the previous and next articles. */
}
#prevart {
  float: left;
  text-align: left;
}
#nextart {
  float: right;
  text-align: right;
}
#nextart,
#prevart {
  max-width: 33%;
}
/* From lugo */

html {
  color-scheme: dark;
}
body {
  margin: 2rem 3rem;
  font-family: Arial, Helvetica, sans-serif, system;
}

header {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  text-underline-offset: 0.4rem;
  cursor: pointer;
}

article {
  margin-block: 2.5rem;
}

li p {
  margin-block: 0.25rem;
}

@media (orientation: landscape) {
  h3 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h1 {
    font-size: 3rem;
  }
}

@media (orientation: portrait) {
  h3 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
}

a {
  text-decoration: none;
  font-size: 1rem;
  color: #4795e1;
}
a:hover {
  text-decoration: underline;
  color: #9cdcfe;
}
a:active {
  color: #999999;
}

@media (orientation: landscape) {
  img {
    width: min(50%, calc(50dvw - 2 * 3rem));
  }
}

@media (orientation: portrait) {
  img {
    width: min(100%, calc(100dvw - 2 * 3rem));
  }
}

code > * {
  padding-inline: 1rem;
  font-size: 0.9rem;
}
code > *:first-child {
  padding-top: 0.5rem;
}
code > *:last-child {
  padding-bottom: 0.5rem;
}

blockquote {
  margin-inline: 0;
  border-left: 4px solid #555;
  padding-left: 1rem;
  color: #ccc;
}

blockquote p {
  padding-block: 0.5rem 0;
}

.RSS {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.RSS img {
  height: 3rem;
}
