:root {
  --color-accent: #be3434;
  --color-border: #ccc;
  --size-page-width: 42em;
}

body {
  color: #333;
  margin: 0;
  font-family: "Recursive", sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.6;
  font-variation-settings:
    "MONO" 0,
    "CASL" 0.5;
}

.columnator {
  max-width: var(--size-page-width);
  margin: 0 auto;
  padding-left: 1em;
  padding-right: 1em;
}

/* navigation */

nav.navigation {
  color: #fff;
  padding: 1em;
  background: var(--color-accent);
  margin: 0;
}

.navigation .navigation-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

nav.navigation .navigation-title {
  color: currentColor;
  font-size: 1.2em;
  margin: 0;
}

nav.navigation .navigation-title:hover {
  text-decoration: underline;
  text-decoration-style: dashed;
}

#searchbar {
  font: inherit;
  font-size: 16px;
  line-height: 1;
  border: 0;
  padding: 0.25em 0.5em;
  border-radius: 2px;
}

#searchresults {
  text-align: right;
  padding: 1em;
  border-bottom: 1px dashed var(--color-border);
}

#searchresults:empty {
  display: none;
}

#searchresults ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 600px) {
  .navigation .navigation-content {
    text-align: center;
    flex-direction: column;
  }

  #searchresults {
    text-align: center;
  }
}

/* tags */

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

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

hr {
  display: block;
  border: none;
  height: 2px;
  margin: 1.5em auto;
  background: #eee;
}

h1,
h2,
h3 {
  font-weight: 400;
}

p {
  margin-block-start: 1.5em;
  margin-block-end: 1.5em;
}

/* main */

main.main {
  padding-top: 4em;
  transition: 0.25s padding-top;
}

@media (max-width: 42em) {
  main.main {
    padding-top: 2em;
  }
}

/* Header */

.single-header {
  text-align: center;
}

.single-header .title-permalink {
  display: block;
  margin-bottom: 2em;
}

.single-header .title {
  font-size: 2em;
  margin: 0;
}

.single-header .title-extended {
  font-size: 1.5em;
}

.single-header a {
  color: inherit;
}

.share-and-listen {
  display: flex;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.listen-button > img,
.share-button > img {
  border-radius: 4px;
}

@media (hover: hover) {
  .share .whatsapp-share-button {
    display: none;
  }
}

footer {
  text-align: center;
  padding: 2em;
  margin-top: 4em;
  border-top: 1px dashed var(--color-border);
}

footer p {
  margin: 0;
}

/* comments */

.comments-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.25em 0.5em;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.comments-form input {
  box-sizing: border-box;
  padding: 0.25em 0.5em;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.comments-form button {
  font: inherit;
  padding: 0.25em 0.5em;
  margin-left: 1em;
}

.comments-success, .comments-failure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1em;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.comment {
  margin-top: 1em;
  padding: 0.25em 0.5em;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.comment .comment--author-name {
  font-weight: bold;
}

.comment .comment--created-at {
  font-size: 0.8em;
  color: #777;
}
