
:root {
  --bordeaux: #817;
  --red: #a35;
  --pink: #c66;
  --orange: #e94;
  --yellow: #ed0;
  --applegreen: #9d5;
  --emeraldgreen: #4d8;
  --cyan: #0bc;
  --lightblue: #09c;
  --darkblue: #36b;
  --violet: #639;
  --lightgray: #EEE;

  --text-multiplier: 1;

  --size-biggest: 1.9rem;
  --size-bigger: 1.8rem;
  --size-big: 1.3rem;
  --size-normal: 1.1rem;
}

@media (min-width: 48rem) {
  :root {
    --text-multiplier: 1.1;
  }
}
@media (min-width: 64rem) {
  :root {
    --text-multiplier: 1.2;
  }
}
@media (min-width: 80rem) {
  :root {
    --text-multiplier: 1.3;
  }
}

html {
  border-top: var(--violet) 1rem solid;
  border-image: linear-gradient(90deg, var(--red), var(--darkblue)) 1;
  border-bottom: var(--violet) 1rem solid;
  font-size: 100%;
}

body {
  width: 100%;
  margin: 0;
  text-wrap: pretty;
}

hr {
  border: 0;
  border-top: var(--violet) 3px dashed;
  color: transparent;
}

header {
  background-color: var(--lightgray);
  background-image: linear-gradient(0deg, var(--lightgray), white);
  width: 100%;
}

header a, header a:visited {
  font-family: 'PT Sans', sans-serif;
  text-decoration: none;
  color: black;
  font-size: calc(var(--text-multiplier) * var(--size-big));
  font-weight: bold;
}

header > div > a {
  font-size: calc(var(--text-multiplier) * var(--size-biggest));
}

nav {
  margin-top: 0.8rem;
}

nav ul {
  margin: 0;
  padding: 0;
  font-size: calc(var(--text-multiplier) * var(--size-big));
}

nav ul li {
  display: inline-block;
  margin-right: 2rem;
  font-weight: bold;

}

nav ul li a, nav ul li a:visited {
  text-decoration: none;
  color: var(--red);
}

nav ul li a:hover {
  border-bottom: 1em solid white;
}

main, aside > div, header > div {
  max-width: 80ch;
  padding: 1rem 1rem;
  margin: auto;
  line-height: 1.5;
  font-size: calc(var(--text-multiplier) * var(--size-normal));
}

main > div > h1 {
  color: black;
  font-family: 'PT Sans', sans-serif;
  font-variant-caps: all-small-caps;
}

main > div > h1::before {
  content: '❯ ';
}

main table td {
  padding: 0.4rem;
}

aside {
  background-color: var(--lightgray);
  margin-top: 1em;
  padding-top: 1em;
}

footer {
  background-color: var(--lightgray);
  padding: 0.5em;
  text-align: center;
  font-size: calc(var(--text-multiplier) * var(--size-big));
}

footer p {
  margin: 0;
}

footer .social {
  margin: 1rem;
  margin-top: 0;
}

footer .social a {
  padding-left: 0.5rem;
  text-decoration: none;
  display: inline-block;
}

footer .social a img:hover {
  filter: invert(26%) sepia(51%) saturate(1700%) hue-rotate(310deg) brightness(84%) contrast(97%);
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', sans-serif;
  margin: 1rem 0 1rem;
  color: var(--darkblue);
  text-wrap: balance;
}

h1, h1 > a, h1 > a:visited {
  font-size: calc(var(--text-multiplier) * var(--size-bigger));
  background-image: linear-gradient(45deg, var(--darkblue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
}

h1 {
  margin-top: 0.5em;
}

h2 {
  font-size: calc(var(--text-multiplier) * var(--size-big));
}

h3 {
  color: black;
  font-size: calc(var(--text-multiplier) * var(--size-normal));
}

p, ul, ol, article div {
  margin-bottom: 2rem;
  font-family: 'PT Sans', sans-serif;
}

time, .author, footer p {
  font-family: 'PT Sans', sans-serif;
  font-weight: bold;
}

.author {
  font-style: italic;
}

.canonical {
  font-style: italic;
  padding: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background-image: linear-gradient(135deg, var(--lightgray), white);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 3%);
  border-radius: 1rem;
}

main article img {
  max-width: 100%;
}

pre, code {
  font-family: 'Comic Mono', 'Courier New', Courier, monospace;
}

pre {
  width: 95%;
  overflow-x: auto;
  padding: 1rem;
  background-image: linear-gradient(135deg, var(--lightgray), white);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 3%);
  border-radius: 1rem;
}

:not(pre) > code {
  background-color: var(--lightgray);
  padding: 0.3rem 0.5rem 0.1rem 0.5rem;
  color: var(--red);
  border-radius: 0.5rem;
}

blockquote {
  border-width: 0 0 0 0.5rem;
  border-style: solid;
  border-image: linear-gradient(180deg, var(--red), var(--orange)) 1;
  border-radius: 0.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 3%);
  padding: 0.5rem;
  padding-left: 2rem;
  background-image: linear-gradient(135deg, var(--lightgray), white);
  font-style: italic;
  margin: 0rem;
}

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

a:visited {
  color: var(--bordeaux);
}

a.readmore {
  display: block;
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  width: 10ch;
  background-color: var(--lightgray);
  color: var(--red);
  text-decoration: none;
  font-weight: bold;
}

div.tags a {
  content: '🏷 ';
  text-decoration: none;
  margin-right: 1rem;
  font-style: italic;
}

div.tags a::before {
  content: '🏷 ';
  white-space: nowrap;
}

.pagination {
  font-family: 'PT Sans', sans-serif;
  font-weight: bold;
  font-size: calc(var(--text-multiplier) * var(--size-big));
  text-align: center;
}

.pagination a {
  text-decoration: none;
  padding-left: 1rem;
  padding-left: 1rem;
  display: inline-block;
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--lightgray);
  color: var(--red);
  text-decoration: none;
  font-weight: bold;
}

.prevnext {
  display: flex;
  flex-direction: row;
  margin-top: 4rem;
  margin-bottom: 0rem;
}

.prevnext .prev, .prevnext .next {
  flex: 50%;
}

.prevnext .prev {
  text-align: right;
  padding-right: 1rem;
}

.prevnext .next {
  text-align: left;
  padding-left: 1rem;
}

.prevnext strong {
  font-family: 'Roboto Slab', sans-serif;
}

img.transparent {
  width: 1px;
  height: 1px;
  border: 0;
  margin: 0;
  display: block;
}

.latest {
  display: flex;
  width: 100%;
  flex-direction: row;
}

.latest > div {
  flex: 50%;
}

details {
  border: 5px solid var(--lightgray);
  border-radius: 10px;
  background-image: linear-gradient(90deg, var(--lightgray), white);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 3%);
}

details > summary {
  list-style-type: '⬇ ';
  padding: 5px;
  font-weight: bold;
  cursor: pointer;
}

details[open] > summary {
  list-style-type: '⬆ ';
}

details > :not(summary) {
  margin: 10px;
}

.similar-articles {
  border-width: 0 0 0 0.5rem;
  border-style: solid;
  border-image: linear-gradient(180deg, var(--red), var(--orange)) 1;
  border-radius: 0.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 3%);
  padding: 0.5rem;
  padding-left: 2rem;
  background-image: linear-gradient(135deg, var(--lightgray), white);
  margin: 4rem 0;
}

.similar-articles h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.similar-articles ul {
  padding: 0.5em;
  padding-left: 1em;
  margin: 0;
}

.similar-articles li {
  margin-bottom: 0.5rem;
}

@media (max-width: 64rem) {
  .latest {
    flex-direction: column;
  }

  .prevnext {
    flex-direction: column;
  }

  .prevnext .prev {
    text-align: left;
  }

  .prevnext .next {
    text-align: right;
  }
}