main {
  position: relative;
  width: 100%;
  margin: 15vh auto;
  min-height: calc(70vh - (10vw + 11vh + 3px) - 10em);
}

section#posts {
  color: var(--text);
}

article.post {
  --post-background: #fff;
  --pinned-post-info-background: var(--post-background);
  --pinned-post-info-text: #000;
  --post-info-background: var(--post-background);
  --post-info-text: #000;
  --username: #222;
  --username-hover: var(--text);
  --deactivated: var(--text);
  --footer-links: #222;
  --footer-links-hover: #515959;
  --tags: #888;
  --tag-accent: var(--accent);
  --tags-hover: #313434;
  --note-accent: var(--accent);
  --note-like: #db0a68;
  --note-reblog: #400520;
  --note-reply: var(--text);
  --note-original: var(--text);
  --note-link: #2b2e2e;
}

.night article.post {
  --post-background: #000;
  --pinned-post-info-text: #fff;
  --post-info-text: #fff;
  --username: #ddd;
  --footer-links: #ddd;
  --footer-links-hover: #c6c7c7;
  --tags: #aaa;
  --tags-hover: #ecf4f4;
  --note-like: #ec1877;
  --note-reblog: #ef7db1;
  --note-link: #d8dbdb;
}

div#pagination {
  --pagination-background: #fff;
}

.night div#pagination {
  --pagination-background: #000;
}

article:not(:first-child) {
  margin: 8vw 0;
}

article.post a:hover {
  /* text-decoration: underline; */
}

article.post .pinned_post_info {
  background: var(--post-background);
}

article.post .pinned_post_info span, article.post .pinned_post_info svg {
  display: inline-block;
  vertical-align: middle;
}

article.post .pinned_post_info svg {
  /* height: 0.75em; */
  /* width: 0.75em; */
  height: 1em;
  width: 1em;
  /* line-height: 1em; */
  margin-right: 0.5em;
}

article.post .post_info {
  display: grid;
  grid-template-columns: auto auto;
  background: var(--post-background);
}

article.post .post_info a, article.post .post_info svg {
  display: inline-block;
  vertical-align: middle;
}

article.post .post_info svg {
  /* height: 0.75em; */
  /* width: 0.75em; */
  height: 1em;
  width: 1em;
  /* line-height: 1em; */
}

article.post .post_info .post_date svg {
  margin-right: 0.5em;
}

article.post .post_info .post_notes {
  text-align: right;
}

article.post .post_info .post_notes svg {
  margin-left: 0.5em;
}

article.post .post_title {
  background: var(--post-background);
}

article.post .photo_container img {
  width: 100%;
}

article.post .audio_container iframe.tumblr_audio_player {
  height: 85px;
  width: 100%;
}

article.post .audio_container iframe.spotify_audio_player {
  height: 80px;
  width: 100%;
}

article.post .audio_container iframe.soundcloud_audio_player {
  width: 100%;
  height: 100%;
}

article.post.chat .post_body .chat_line {
  margin: 1em 0;
}

article.post.chat .post_body .chat_line:first-child {
  margin-top: 0;
}

article.post.chat .post_body .chat_line:last-child {
  margin-bottom: 0;
}

article.post.chat .post_body .chat_line .chat_label {
  font-weight: bold;
  font-variant: small-caps;
  color: var(--tag-accent);
}

article.post.quote .post_body {
  text-align: center;
}

article.post.quote .post_body .quote_words {
  font-size: 1.5em;
  line-height: 1.35em;
}

article.post.quote .post_body .quote_source {
  font-style: italic;
}

article.post.quote .post_body .quote_source::before {
  content: '';
  position: absolute;
  display: block;
  height: 1px;
  width: 4em;
  left: calc(50% - 2em);
  top: 0;
  background: var(--tag-accent);
}

article.post:not(.answer) .post_body .comment_blog * {
  display: inline-block;
  vertical-align: middle;
}

article.post .post_body .comment_blog span.user_name {
  color: var(--deactivated);
}

article.post .post_body .comment_blog span.user_name.deactivated::after {
  content: "(deactivated)";
  font-weight: normal;
  text-transform: none;
  margin-left: 0.5em;
  font-size: 0.8em;
}

article.post .post_body .comment_blog a {
  /* color: #fff; */
  color: var(--username);
}

article.post .post_body .comment_blog a:hover {
  color: var(--username-hover);
}

article.post .reblog_info {
  background: var(--post-background);
}

article.post .reblog_info a {
  color: var(--footer-links);
}

article.post .reblog_info a:hover {
  color: var(--footer-links-hover);
}

article.post .reblog_info svg {
  height: 1em;
  width: 1em;
}

article.post .reblog_info .info {
  display: grid;
  grid-template-columns: auto auto;
  -ms-align-items: center;
          align-items: center;
  grid-gap: 0.5em;
}

article.post .reblog_info .orig_poster, article.post .reblog_info .reblogged_from {
  display: inline-block;
}

article.post div.reblog_info div.orig_poster img {
  border-radius: 100%;
}

article.post .reblog_info .reblogged_from * {
  display: inline-block;
  vertical-align: middle;
}

article.post .reblog_info .info .buttons {
  text-align: right;
  line-height: 1em;
}

article.post .reblog_info .info .buttons div {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5em;
  /* font-size: 1.5em; */
}

article.post .reblog_info .info .buttons .like_button .like_button {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 !important;
  height: 100%;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

article.post .reblog_info .info .buttons .like_button .like_button iframe {
  width: 100% !important;
  height: 100% !important;
}

article.post .reblog_info .info .buttons .like_button .like_button + svg {
  stroke: var(--footer-links);
}

article.post .reblog_info .info .buttons .like_button .like_button:hover + svg {
  stroke: var(--footer-links-hover);
}

article.post .reblog_info .info .buttons .like_button .like_button.liked + svg {
  stroke: var(--accent);
}

article.post .reblog_info .tags {
  margin-top: 1em;
}

article.post .reblog_info .tags a.tag {
  color: var(--tags);
  margin-right: 0.75em;
  display: inline-block;
  word-break: break-word;
}

article.post .reblog_info .tags a.tag::before {
  content: '#';
  margin-right: 0.15em;
  font-size: 0.8em;
  color: var(--tag-accent);
}

article.post .reblog_info .tags a.tag:hover {
  /* color: var(--tags-hover); */
  color: var(--tag-accent);
}

article.post .post_notes_list {
  background: var(--post-background);
}

article.post .post_notes_list ol.notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

article.post .post_notes_list ol.notes li:not(:last-child) {
  margin-bottom: 0.65em;
}

article.post .post_notes_list ol.notes li.note.original_post:not(:last-child) {
  display: none;
}

article.post .post_notes_list ol.notes svg {
  height: 0.9em;
  width: 0.9em;
  margin-right: 0.65em;
}

article.post .post_notes_list ol.notes li.note.like svg {
  stroke: var(--note-like);
}

article.post .post_notes_list ol.notes li.note.reblog:not(.original_post) svg {
  stroke: var(--note-reblog);
}

article.post .post_notes_list ol.notes li.note.reblog.original_post svg {
  stroke: var(--note-original);
}

article.post .post_notes_list ol.notes li.note.reply svg {
  stroke: var(--note-reply);
}

article.post .post_notes_list ol.notes a.avatar_frame {
  display: none;
}

article.post .post_notes_list ol.notes li.note a {
  /* color: #000; */
  color: var(--note-link);
}

article.post .post_notes_list ol.notes li.note span.action a {
  font-weight: bold;
}

article.post .post_notes_list ol.notes li.note a:hover {
  color: var(--link-hover);
}

article.post .post_notes_list ol.notes li.note blockquote {
  margin-left: 1.485em;
}

article.post .post_notes_list ol.notes li.note.more_notes_link_container {
  text-transform: lowercase;
}

article#no_results span {color: var(--accent);}

div#pagination {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 5vh;
  background: var(--pagination-background);
  align-items: center;
  text-transform: lowercase;
}

div#total_pages {
  text-align: center;
}

div#total_pages span {
  color: var(--accent);
}

div#next {
  text-align: right;
}

div#pagination a {
  /* border: 1px solid var(--accent); */
  padding: 0.75em 1em;
  /* border-radius: 0.5em; */
  /* font-weight: bold; */
  /* transition: 0.35s all; */
  --transition-duration: 0.15s;
  transition-duration: var(--transition-duration);
  transition-property: background, color;
  /* background: #fff; */
  display: block;
}

div#pagination a:hover {
  background: var(--accent);
  color: var(--pagination-background);
}

@media screen and (max-width: 600px) {
  main {
    width: 90%;
    /* margin: auto; */
  }

  article.post .pinned_post_info {
    /* padding: 2em 2em; */
    padding: 2em 2em 0;
    /* padding: 0 2em 2em; */
    /* padding: 2.5vw; */
    background: var(--post-background);
  }

  article.post .pinned_post_info span {
    color: var(--text);
  }

  article.post .pinned_post_info svg {
    stroke: var(--text);
  }
  
  article.post .post_info {
    /* padding: 2em 2em; */
    /* padding: 2em 2em 0; */
    padding: 0 2em 2em;
    /* padding: 2.5vw; */
    background: var(--post-background);
  }

  article.post .post_info a {
    color: var(--text);
  }

  article.post .post_info svg {
    stroke: var(--text);
  }

  article.post .post_title {
    padding: 2em 2em 0;
  }

  article.post .post_title.tall_title {
    padding-bottom: 2em;
  }

  article.post .post_title .title_icon {
    display: none;
  }

  article.post .post_title .title_text {
    font-size: 1.35em;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--username);
  }

  article.post.link .post_link .link_icon {
    display: none;
  }

  article.post.link .post_link .link_title span {
    color: var(--username);
  }

  article.post.link .post_link .link_title span.link_name {
    font-size: 1.35em;
    text-transform: uppercase;
    font-weight: bold;
  }

  article.post.link .post_link .link_title span.link_host {
    font-size: 0.9em;
    margin-left: 0.35em;
  }

  article.post .post_body {
    background: var(--post-background);
    padding: 2em;
    /* padding: 2.5vw; */
  }

  article.post.quote .post_body .quote_source {
    margin-top: 2em;
    padding: 2em;
  }

  article.post .post_body .comment:not(:last-child) {
    margin-bottom: 2em;
  }

  article.post .post_body .comment_blog {
    margin-bottom: 1em;
    font-size: 1.05em;
    font-weight: bold;
    /* text-transform: lowercase; */
    text-transform: uppercase;
    /* font-variant: small-caps; */
    /* line-height: 1em; */
    letter-spacing: 1px;
  }

  article.post .post_body .comment_blog img {
    margin-right: 1em;
  }

  article.post .post_body .comment_blog span.user_dot {
    height: 0.6em;
    width: 0.6em;
    margin-top: 0.15em;
    margin-right: 0.5em;
    border-radius: 0.15em;
    background: var(--accent);
    line-height: 2em;
  }

  article.post.answer .comment .answer_icon {
    text-align: center;
    margin: 0 auto 1.5em;
    padding-bottom: 0.75em;
    color: #aaa;
    border-bottom: 1px solid;
    width: 4em;
  }

  article.post.answer .comment .comment_blog {
    text-align: center;
  }

  article.post .reblog_info {
    /* padding: 2em 2em; */
    padding: 0 2em 2em;
    /* padding: 2.5vw; */
  }

  article.post .reblog_info img {
    /* display: none; */
    /* height: 2em; */
    /* width: 2em; */
    /* margin-right: 0.75em; */
  }

  article.post .reblog_info .info .orig_poster img {
    display: none;
  }

  article.post .reblog_info .info .orig_poster a {
    text-transform: uppercase;
    font-weight: bold;
  }

  article.post .reblog_info .reblogged_from {
    display: none;
  }

  article.post .reblog_info .tags {
    font-size: 0.9em;
  }

  article.post .post_notes_list {
    margin-top: 1em;
    padding: 2em;
  }
}

@media screen and (min-width: 600px) {
  main {
    width: 85vw;
    /* margin: auto; */
  }

  section#posts {
    display: inline-block;
    vertical-align: top;
    position: -webkit-sticky;
    position: sticky;
    top: 5vw;
    width: 55vw;
    box-sizing: border-box;
    /* delete later */
    /* margin-bottom: 3em; */
  }

  article.post .pinned_post_info {
    padding: 1.5em;
    /* padding: 2em; */
    /* padding: 0 1.5em 1.5em; */
    /* padding: 2.5vw; */
    /* border-bottom: 0.35em solid var(--accent); */
    background: var(--pinned-post-info-background);
  }

  article.post .pinned_post_info span {
    color: var(--pinned-post-info-text);
  }

  article.post .pinned_post_info svg {
    stroke: var(--pinned-post-info-text);
  }
  
  article.post .post_info {
    padding: 1.5em 2em;
    /* padding: 2em; */
    /* padding: 0 1.5em 1.5em; */
    /* padding: 2.5vw; */
    /* border-bottom: 0.35em solid var(--accent); */
    background: var(--post-info-background);
  }

  article.post .post_info a {
    color: var(--post-info-text);
  }

  article.post .post_info svg {
    stroke: var(--post-info-text);
  }

  article.post .post_title {
    padding: 1.5em 1.5em 0;
    text-align: center;
  }

  article.post .post_title.tall_title {
    padding-bottom: 1.5em;
  }

  article.post.link .post_link {
    /* text-align: center; */
  }

  article.post .title_icon {
    text-align: center;
    margin: 0 auto 1.5vw;
    padding-bottom: 1vw;
    color: #aaa;
    border-bottom: 1px solid;
    width: 4em;
  }

  article.post .title_icon svg {
    height: 1.25em;
    width: 1.25em;
  }

  article.post .title_text {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.25em;
    color: var(--username);
  }

  /* article.post a:hover .title_text { */
  article.post a:hover .title_icon svg {
    color: var(--tag-accent);
  }

  article.post.link .link_icon {
    text-align: center;
    margin: 0 auto 1.5vw;
    padding-bottom: 1vw;
    color: #aaa;
    border-bottom: 1px solid;
    width: 4em;
  }

  article.post.link .link_icon svg {
    height: 1.25em;
    width: 1.25em;
  }

  article.post.link .link_title span {
    display: block;
  }

  article.post.link .link_title span.link_name {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.25em;
    color: var(--username);
  }

  /* article.post.link a:hover .link_title span.link_name, article.post.link .link_title span.link_host { */
  article.post.link a:hover .link_icon svg, article.post.link .link_title span.link_host {
    color: var(--tag-accent);
  }

  article.post .post_body {
    background: var(--post-background);
    padding: 1.5em;
    /* padding: 2.5vw; */
  }

  article.post.quote .post_body .quote_source {
    margin-top: 1.5em;
    padding-top: 1.5em;
  }

  article.post .post_body .comment:not(:last-child) {
    margin-bottom: 1.5em;
  }

  article.post .post_body .comment_blog {
    /* margin-bottom: 1vw; */
    margin-bottom: 0.9em;
    font-size: 1.05em;
    font-weight: bold;
    /* text-transform: lowercase; */
    text-transform: uppercase;
    /* font-variant: small-caps; */
    line-height: 1em;
    letter-spacing: 1px;
  }

  article.post .post_body .comment_blog img {
    margin-right: 1em;
  }

  article.post .post_body .comment_blog span.user_dot {
    height: 0.6em;
    width: 0.6em;
    margin-top: 0.15em;
    margin-right: 0.5em;
    border-radius: 0.15em;
    background: var(--accent);
    line-height: 2em;
  }

  article.post .post_body .comment_content {
    /* padding: 2.5vw; */
  }
/*
  article.post .post_body .comment_content a {
    background: var(--accent);
    color: #fff;
    padding: 0.15em 0.4em;
    font-size: 0.9em;
    border-radius: 0.35em;
    -webkit-transition: 0.35s all;
    transition: 0.35s all;
  }

  article.post .post_body .comment_content a:hover {
    color: var(--color-link-hover);
    background: #fff;
  }*/

  article.post .reblog_info {
    padding: 2em;
    /* padding: 0 1.5em 1.5em; */
    /* padding: 2.5vw; */
    border-top: 0.25em solid var(--accent);
    /* border-top: 0.35em solid var(--accent); */
  }

  /* article.post .reblog_info .info {
    display: grid;
    grid-template-columns: auto auto;
    -ms-align-items: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  } */

  article.post .reblog_info .info .orig_poster * {
    display: inline-block;
    vertical-align: middle;
  }

  article.post .reblog_info .info .orig_poster img {
    height: 2em;
    width: 2em;
    margin-right: 1em;
    /* border-radius: 100%; */
  }

  /* article.post .reblog_info .info .buttons {
    text-align: right;
    line-height: 1em;
  } */

  article.post .reblog_info .info .buttons div {
    /* display: inline-block; */
    /* vertical-align: middle; */
    /* margin-left: 0.5em; */
    /* font-size: 1.5em; */
  }

  article.post .reblog_info .info .buttons div {
    /* display: inline-block; */
    /* vertical-align: middle; */
    /* margin-right: 0.5em; */
    /* font-size: 1.5em; */
  }

  article.post .reblog_info .tags {
    font-size: 0.875em;
  }

  article.post .post_notes_list {
    margin-top: 2em;
    padding: 2em;
  }

  @supports (display:grid) {
    article.post.answer .comment {
      display: grid;
      grid-template-columns: 2em auto;
      /* grid-template-areas: "icon text"; */
      align-items: center;
      grid-gap: 1.75vw;
    }

    article.post.answer .comment:nth-child(even) {
      /* grid-template-areas: "text icon"; */
    }

    article.post.answer .comment .answer_icon {
      color: #aaa;
      /* grid-area: icon; */
    }

    article.post.answer .comment .answer_text {
      border-left: 1px solid #aaa;
      padding-left: 1.75vw;
      /* grid-area: text; */
    }

    article.post.answer .comment:nth-child(odd) .answer_text {
      /* border-left: 1px solid #aaa;
      padding-left: 1.75vw; */
    }

    article.post.answer .comment:nth-child(even) .answer_text {
      /* border-right: 1px solid #aaa;
      padding-right: 1.75vw; */
    }
  }

  @supports not (display:grid) {
    article.post.answer .comment .comment_blog {
      text-align: center;
    }

    article.post.answer .comment .answer_icon {
      text-align: center;
      margin: 0 auto 2vw;
      padding-bottom: 1.25vw;
      color: #aaa;
      border-bottom: 1px solid;
      width: 4em;
    }
  }

}

@media screen and (min-width: 960px) {
  article.post .pinned_post_info {
    padding: 2.25vw;
    /* padding: 3vw; */
    /* padding: 0 2.5vw 2.5vw; */
  }
  
  article.post .post_info {
    padding: 2.25vw 3vw;
    /* padding: 3vw; */
    /* padding: 0 2.5vw 2.5vw; */
  }

  article.post .post_title {
    padding: 2.5vw 2.5vw 0;
  }

  article.post .post_title.tall_title {
    padding-bottom: 2.5vw;
  }

  article.post .post_body {
    padding: 2.5vw;
  }

  article.post.quote .post_body .quote_source {
    margin-top: 2.5vw;
    padding-top: 2.5vw;
  }

  article.post .post_body .comment:not(:last-child) {
    margin-bottom: 2.5vw;
  }

  article.post .post_body .comment_blog {
    margin-bottom: 1.5vw;
  }

  article.post .reblog_info {
    padding: 3vw;
    /* padding: 0 2.5vw 2.5vw; */
  }

  article.post .reblog_info .info .orig_poster img {
    height: 3vw;
    width: 3vw;
    margin-right: 1.5vw;
  }

  article.post .reblog_info .info .orig_poster a {
    font-size: 1.25vw;
  }

  article.post .reblog_info .reblogged_from {
    font-size: calc(1.25vw - 1px);
  }

  article.post .reblog_info .info .buttons div {
    font-size: 1.5vw;
  }

  article.post .reblog_info .tags {
    margin-top: 1.5vw;
    font-size: 1em;
  }

  article.post .post_info .post_date svg {
    margin-right: 1vw;
  }

  article.post .post_info .post_notes svg {
    margin-left: 1vw;
  }

  article.post .post_notes_list {
    margin-top: 2.5vw;
    padding: 2.5vw;
  }
}

/* @media screen and (min-width: 1200px) { */
@media screen and (min-width: 15in) {
  article.post [class$="_container"], article.post .post_body {
    width: 100%;
  }

  body:not([permalink]) article.post [class$="_container"], body:not([permalink]) article.post [class$="_container"] + div {
    display: inline-block;
    vertical-align: top;
    width: 25vw;
    position: -webkit-sticky;
    position: sticky;
    top: 2vw;
  }

  article.post .post_caption ~ .reblog_info, article.post .post_caption ~ .post_info {
    /* display: inline-block; */
    /* vertical-align: top; */
    /* width: 25vw; */
    /* margin-left: 30vw; */
    /* position: -webkit-sticky; */
    /* position: sticky; */
    /* top: 2vw; */
  }

  article.post [class$="_container"] {
    margin-right: 5vw;
  }

  article.post .photo_container img {
    /* border: 3px solid var(--accent-hsl); */
  }

  article.post .reblog_info {
    padding: 2.5vw;
  }

  article.post .reblog_info .info .orig_poster img {
    height: 2.25vw;
    width: 2.25vw;
    margin-right: 1.125vw;
  }

  article.post .reblog_info .info .orig_poster a {
    font-size: 0.9375vw;
  }

  article.post .reblog_info .info .reblogged_from {
    display: none;
  }

  article.post .reblog_info .info .buttons div {
    font-size: 1.125vw;
  }

  article.post .post_info .post_date svg {
    margin-right: 0.8vw;
  }

  article.post .post_info .post_notes svg {
    margin-left: 0.8vw;
  }

  article.post .pinned_post_info {
    padding: 2vw 2.5vw;
  }

  article.post .pinned_post_info svg {
    margin-right: 0.8vw;
  }

  article.post .post_notes_list ol.notes li.note:not(.more_notes_link_container) {
    width: 50%;
    display: inline-block;
    box-sizing: border-box;
  }

  article.post .post_notes_list ol.notes li.note:nth-child(odd) {
    padding-right: 0.5em;
  }
}
