/* BLOCK - VARIABLES AND PREFERENCES */

html {
  --background-base: #0f0f0f;
  --background-highlight: #212121;
  --foreground-base: #dedede;
  --foreground-highlight: #f0f0f0;
}

@media (prefers-color-scheme:light) {
  html {
    --background-base: #dedede;
    --background-highlight: #f0f0f0;
    --foreground-base: #212121;
    --foreground-highlight: #0f0f0f;
  }
}

@media only screen and (max-width: 500px) {
  aside {
    padding: 1rem;
  }
}

/* BLOCK - BEARBLOG ELEMENTS */

body {
  width: min(80%, 600px);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 1.2em;
  line-height: 2rem;
  overflow-wrap: break-word;
  background-color: var(--background-base);
  color: var(--foreground-base);
  font-family: "Atkinson Hyperlegible Next", sans-serif;

}

header {
  margin-bottom: 2rem;
}

header h1 {
  text-decoration: none;
  color: var(--foreground-base);
  text-align: center;
  line-height: 2.5rem;
  font-weight: normal;
}

header nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1rem;
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
}

.post main p.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1rem;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
}

ul.embedded.blog-posts {
  list-style-type: none;
  padding-left: 0;
}

main .blog-posts li {
  margin-bottom: 1rem;
}

.upvote-button::before {
  content: "♡ toast this post";
  cursor: pointer;
}

.upvote-button:hover::before {
  content: "❣ click to toast!";
  cursor: pointer;
}

.upvote-button[disabled]::before {
  content: "♥ post toasted";
  cursor: default;
}

.upvote-count,
.upvote-button svg {
  display: none;
}

footer span {
  display: none;
}

/* BLOCK - TEXT ELEMENTS */

p {
  margin: 1rem 0;
  padding: 0;
}

a {
  color: var(--foreground-base);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

a:hover,
a:focus {
  background-color: var(--foreground-base);
  color: var(--background-base);
  text-decoration: none;
}

main h1 {
  text-transform: uppercase;
  font-size: 1.5rem;
}

main h2,
main h3 {
  font-size: 1.3rem;
}

time {
  font-family: 'Courier New', Courier, monospace;
  margin-right: 0.5rem;
  font-style: normal;
}

/* BLOCK - CUSTOM ELEMENTS */

hr {
  margin: 2rem 0;
  padding: 0;
  border: var(--foreground-base) dotted 1px
}

aside {
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  text-wrap: wrap;
  background-color: var(--background-highlight);
  color: var(--foreground-base);
  border: var(--foreground-highlight) dashed 1px;
  border-radius: 25px;
  padding: 1rem 2rem;
  margin: 1.5rem 0;
}

aside ul,
aside ol {
  margin-left: -1.5rem;
}

blockquote {
  text-wrap: wrap;
  background-color: var(--background-highlight);
  color: var(--foreground-base);
  border-left: var(--foreground-highlight) solid 2px;
  padding: 1rem 2rem;
  margin: 1.5rem 0;
}

img {
  width: 100%
}

.toots {
  font-size: 1rem;
  line-height: 1.2rem;
  display: block;
  list-style-type: none;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
}

.toot {
  text-wrap: wrap;
  background-color: var(--background-highlight);
  color: var(--foreground-base);
  border: var(--foreground-highlight) dashed 1px;
  border-radius: 10px;
  padding: 1rem 2rem;
}

.toot .user {
  display: none;
}

.toot .body p {
  text-align: left;
  margin: 0.5rem 0;
}

.toot .attachment,
.toot .permalink {
  display: none;
}