@import url(https://fonts.googleapis.com/css?family=Chivo:900|Yantramanav:900|Poppins:700|VT323|Inconsolata);

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  background-color: ghostwhite;
}

body{
  margin: 0;
  padding: 8px;
}

.container {
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
}

main,
footer,
aside {
  border: 10px solid hsl(8, 85%, 62%);
  border-right-width: 10px;
  border-left-width: 10px;
  padding: 8px;
  margin: 4px;
}

.main-aside {
  padding: 0 0 8px;
  text-align: center;
}

main {
  order: 2;
  width: 686px;
}

aside {
  order: 1;
  width: 686px;
}


footer {
  width: 686px;
  order: 4;
}

@media screen and ( max-width:696px ) {
  main, aside, footer {
    width: 100%;
    flex: 1 100%;
  }

  aside {
    order: 1;
  }
}


body{
  font: 400 0.9em/1.5 "Verdana", helvetica, sans-serif;
}

p {
  margin: 15px 5px;
  line-height: 1.3;
}

code,
kbd,
pre,
samp {
  font-family: 'Inconsolata', monospace;
}

code {
  padding: 2px 4px;
  color: #c7254e;
  background-color: #f9f2f4;
  border-radius: 4px;
  font-family: 'Inconsolata', monospace;
}

pre {
  color: #8B99A5;
  background-color: #333;
  border: 1px solid #111;
  padding: 9.5px;
  margin: 0 0 10px;
  line-height: 1.42857143;
  word-break: break-all;
  word-wrap: break-word;
  border-radius: 4px;
}

.hljs {
  background-color: transparent;
  padding: 0;
}

a {
  color: inherit;
  position: relative;
  z-index: 1;
}

a:visited {
  color: hsl(8, 85%, 35%);
}

.main-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(8, 85%, 62%);
  color: ghostwhite;
  font: 900 1em 'Chivo', sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 5px;
}

.social-links a {
  margin: 0 5px;
  color: ghostwhite;
  
}  

.social-links a:hover {
  color: hsl(8, 85%, 85%);
}

  .main-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-nav ul {
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 5px;
  list-style: none;
  display: inline-block;
}

.main-nav a:visited {
  color: #000;
}

a:hover {
  color: hsl(8, 85%, 62%);
}

a:active {
  color: hsl(8, 85%, 85%);
}

a:before{
  content:"";
  display: inline-block;
  width: 100%;
  height: 5px;
  position: absolute;
  left: 0;
  bottom: -2px;
  z-index: -1;
  background-color: hsl(8, 85%, 72%);
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
}

a.top-logo{
  text-decoration: none;
}

a.top-logo h1{
  text-decoration: none;
}

a.top-logo:before{
  content:unset;
}

a:hover:before {
  height: 10px;
  bottom: -10px;
}

.posts a {
  text-decoration: none;
}

.toc-wrapper {
  position: sticky;
  top: 25px;
}

.toc-sticky {
  position: absolute;
  top: -25px;
  left: 680px;
  width: 400px;
}

.toc li > ol {
  padding-left: 15px;
}

h1{
  font: 700 4vh/1.09 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: hsl(36, 85%, 68%);
}

h2,
h3,
h4,
h5,
h6 {
  color: hsl(8, 85%, 62%);
  font: 900 1.5em 'Yantramanav', sans-serif;
  text-transform: uppercase;
}

h2 {
  text-decoration: overline;
  padding: 25px 0 0 0;
}

h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

h2 + pre,
h3 + pre,
h4 + pre,
h5 + pre,
h6 + pre {
  margin-top: 10px;
}


h3,
h4,
h5,
h6 {
  font-size: 1.2em;
  line-height: 0.9;
  padding: 20px 0 0 0;
}


blockquote,
footer > address {
  float: right;
  margin: 15px;
  width: 175px;
  font: 900 1em 'Chivo', sans-serif;
  text-transform: uppercase;
  line-height: 0.99;
}


ul li {
    margin-left: 40px;
    list-style: disc;
}

strong {
  font-weight: 900;
  letter-spacing: -0.03em;
}

/*posts*/

.post-details {
  font-size: 0.8em;
  color: hsla(8, 94%, 42%, 0.5);
  margin:0 5px;
}

/* art */

.art__gallery {
  display: flex;
  flex-wrap: wrap;
}

.art__item {
  flex: 0;
}

/* notes */

.note img {
  width: 80%;
  height: auto; 
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* directory */

.reference-item {
  border-radius: 3px;
}

.reference-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.reference-title a {
  color: #333;
  text-decoration: none;
}

.reference-title a:hover {
  text-decoration: underline;
}

.reference-metadata {
  font-size: 0.9rem;
  color: #666;
  margin: auto 5px;
}

.reference-metadata span:not(:last-child)::after {
  content: " • ";
  margin: 0 0.5rem;
}

.reference-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

.reference-header {
  display: flex;
}

.reference-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}


.gallery-item {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
}

.gallery-item a:before {
  content: unset;
}

.gallery-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-thumbnail:hover {
  transform: scale(1.05);
}
