/* --> BASE */
body {
  font-family: 'Abhaya Libre', serif;
  line-height: 1.25em;
  font-weight: 100;
  color: #121212;
  margin: 0;
  padding: 0;
  background: #FEFEFE;
}

hr {
  border-bottom: 2px dashed #b9b9b9;
  border-top: none;
  border-left: none;
  border-right: none;
}

h1,h2,h3,h4,h5,h6,p {
  margin-top: 0;
}

a {
  color: #121212;
  text-decoration: none;
  border-bottom: 1px dotted #121212;
  transition: all ease 0.2s;
}

a:hover {
  color: #0033ff;
  border-bottom: 1px solid #0033ff;
}

img {
  max-width: 100%;
}

strong {
  font-weight: bold;
}

/* --> SITE-LAYOUT */
canvas {
  position: fixed;
  z-index: -100;
  top: 0;
  left: 0;
}

main {
  scrollbar-color: #121212 #FEFEFE;
  scrollbar-width: thin;
}

main h1 {
  font-family: 'Yatra One', sans-serif;
  line-height: 0.9em;
}

nav {
  z-index: 500;
}

nav>ul.primary {
  list-style: none;
}

nav>ul.primary>li {
  text-transform: capitalize;
  padding: 0.25em 0;
  padding: 0.5em 0em;
}

nav>ul.primary>li.active>a {
  font-weight: bold;
}

article {
  scrollbar-color: #121212 #FEFEFE;
  scrollbar-width: thin;
  animation: fade-in 1s ease;
}

article h2 {
  line-height: 1em;
  max-width: 70%;
  font-weight: 100;
}

/* Socials */
.society {
  margin-left: 32px;
  padding: 16px 0 40px;
}

.society a {
  border: none;
  padding: 0 10px;
  cursor: pointer;
}

.society a:hover {
  border-bottom: none;
}

/* --> POST STYLE */

div.post {
  scrollbar-color: #121212 #FEFEFE;
  scrollbar-width: thin;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: width ease 0.2s, color ease-in-out 0.7s, border ease-in-out 0.7s;
}

div.post.inactive {
  flex-shrink: 0;
  overflow-y: hidden;
  color: #333;
}

div.post.active {
  width: 100%;
}


/* --> DIV POST SPANS */
div.post>span {
  position: sticky;
  top: 0em;
  text-align: center;
  line-height: 1em;
  max-height: 90vh;
}

div.post.inactive>span:hover {
  cursor: pointer;
}

div.post.active>span:hover {
  cursor: pointer;
}

/* --> PAGE STYLE */

div.page {
  margin-top: 1.5em;
  padding-left: 0.5em;
}

div.page>div.meta {
  color: darkgrey;
}

div.page>div.author {
  margin-bottom: 0.5em;
}

div.page>div.content {
  margin-top: 1.5em;
}

/* --> SINGLE PAGE STYLE */
div#wrapper.single {
  line-height: 1.3em;
  display: block;
  padding: 1em;
}

div#wrapper.single h1 {
  line-height: 1.5em;
}

div#wrapper.single h2 {
  line-height: 1.3em;
}

div#wrapper.single h3 {
  line-height: 1.2em;
}

div#exit>a {
  position: absolute;
  border: none;
  transition: all ease 0.2s;
}

div#exit>a:hover {
  text-decoration: none;
}

/* --> SITE-HEADER */
header h1 {
  margin-top: 0px;
}

/* --> SITE-NAVIGATION  */
ul.nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}

ul.nav>li {
  display: inline-block;
  padding: 0 0.25em;
}

nav>ul>li a {
  color: #333;
  text-decoration: none;
}

nav>ul>li a:hover {
  color: #0033ff;
  text-decoration: none;
}

/* --> POST */
a.post {
  display: block;
  text-decoration: none;
  color: #333;
  border: thin solid #333;
  padding: 1em;
  margin: 0.25em 0 0.5em;
}

a.post:hover {
  border: thin solid #0033ff;
  color: #0033ff;
  cursor: pointer;
}

/* --> 404 */
div#four_oh_four {
  padding: 3em;
  font-size: 1.8em;
}

div#four_oh_four>h2 {
  margin-bottom: 0.6em;
}

div#four_oh_four>p {
  line-height: initial;
}

/* ==> ANIMATIONS */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ==> DESKTOP SCREEN STYLES  <==*/

@media screen and (min-width: 901px) {
  body {
    font-size: 20px;
    line-height: 1.25em;
    overflow-y: hidden;
  }

  /* --> SITE-LAYOUT */
  div#wrapper {
    height: 100vh;
    display: grid;
    gap: 0.5em;
    grid-template-columns: minmax(auto, 30vw) minmax(auto, 1fr);
  }

  main {
    padding: 1.5em;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 1.5em;
    overflow-x: auto;
  }

  nav#mobile-navigation {
    display: none;
    visibility: hidden;
    width: 0px;
    height: 0px;
  }

  nav#desktop-navigation>ul.primary>li {
    font-size: 1.25em;
  }

  article {
    display: flex;
    gap: 0.5em;
    overflow-x: auto;
  }

  article h2 {
    font-size: 1.75em;
  }

  /* --> POST STYLE */
  div.post {
    display: grid;
    grid-template-columns: 3.5em minmax(auto, 1fr);
    gap: 0.25em;
    border-top: #333 thin solid;
    border-right: #333 thin solid;
    margin-top: 1.5em;
    padding: 0;
    width: 3.85em;
    min-height: 85vh;
  }

  div.post.inactive {
    border-top: thin solid #333;
    border-right: thin solid #333;
  }

  div.post.active {
    flex-shrink: 1;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: thin solid #121212;
    border-right: thin solid #121212;
  }

  div.post>span {
    font-size: 3em;
  }

  div.post>span>i {
    display: block;
    font-size: 0.5em;
    font-style: normal;
    opacity: 0;
    transform-origin: center;
    transform: translateX(1em);
    transition: transform ease 0.5s, opacity ease 0.2s;
  }

  div.post.active>span>i {
    transform: translateX(0em);
    opacity: 1;
  }

  div.post>div {
    padding: 3em 1.5em 0 0.25em;
  }

  /* --> SINGLE PAGE STYLE */
  div#wrapper.single {
    font-size: 1.3em;
    max-width: 1280px;
    margin: 3em auto;
  }

  div#wrapper.single h1 {
    font-size: 2em;
  }

  div#wrapper.single h2 {
    font-size: 1.6em;
  }

  div#wrapper.single h3 {
    font-size: 1.4em;
  }

  div#exit {
    height: 1.25em;
  }

  div#exit>a {
    font-size: 1.7em;
  }

  div#exit>a:hover {
    font-size: 2em;
  }

  /* --> SITE-HEADER */
  header>a>h1 {
    font-size: 2.9em;
  }

  /* --> 404 */
  div#four_oh_four {
    font-size: 1.8em;
  }
}

/* ==> MOBILE STYLES <== */
@media screen and (max-width: 900px) {
  body {
    font-size: 20px;
  }

  main {
    padding: 0.5em 0.5em 0 0.5em;
  }

  header h1 {
    font-size: 2.5em;
    margin: 0.5em 0em 0.5em;
  }

  /* ABOUT TEXT (in main) */
  section#about.inactive {
    height: 0em;
    overflow-y: hidden;
  }

  /* NAVIGATION */
  nav#desktop-navigation {
    display: none;
    visibility: hidden;
    height: 0px;
    width: 0px;
  }

  nav#mobile-navigation {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 0em;
    padding: 0.5em 0.5em 0.25em;
    background: #FEFEFE00;
    border-bottom: thin solid #CECECE00;
    transition: background 0.5s ease-in-out, border-bottom 0.5s ease-in-out, font-size 0.5s ease-in-out;
  }

  nav#mobile-navigation.scrolled {
    font-size: 0.6em;
    border-bottom: thin solid #CECECEFF;
    background: #FEFEFEEC;
  }

  nav#mobile-navigation::-webkit-scrollbar {
    display: none;
  }

  nav#mobile-navigation>ul.primary {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding: 0 0 0.75em 0;
    list-style: none;
    margin: 0.5em 0;
  }

  nav#mobile-navigation>ul.primary>li {
    white-space: nowrap;
    scroll-snap-align: center;
    display: inline-block;
    font-size: 1.5em;
    display: inline-block;
    text-transform: capitalize;
    padding: 0.25em 0.15em;
  }

  nav#mobile-navigation>ul.primary>li:nth-child(1)::before {
    content: none;
  }

  nav#mobile-navigation>ul.primary>li::before {
    position: relative;
    top: 0.25em;
    color: #33333350;
    content: ' * ';
    padding: 0 0.125em;
  }

  nav#mobile-navigation>ul.primary>li.active>a {
    font-weight: bold;
  }

  nav#mobile-navigation > .society {
    text-align:center;
    margin-left: 0px;
    margin-top: 24px;
    padding: 0px;
  }

  nav#mobile-navigation > .society a {
    padding: 24px
  }

  /* POSTS */
  article {
    padding: 0 0.5em 0.5em;
  }

  div.post {
    margin-top: 0.5em;
    border-top: 1px solid #09090999;
    transition: max-height ease 0.7s, color ease-in-out 0.7s, border ease-in-out 0.2s;
  }

  div.post.inactive {
    border-top: 1px solid #09090999;
    max-height: 2em;
  }

  div.post.active {
    border-top: 5px solid #CECECE90;
    max-height: 90000px;
  }

  div.post>span {
    background: #CECECE00;
    display: block;
    position: relative;
    font-size: 2em;
    text-align: left;
    transition: padding ease 0.2s, background ease 0.2s;
  }

  div.post.active>span {
    padding: 0em 0.25em 0.25em;
    background: #CECECE90;
  }

  div.post span::before {
    opacity: 0;
    content: "> ";
    display: none;
    transition: opactiy ease 2s;
  }

  div.post.active>span::before {
    display: initial;
    opacity: 1;
    width: auto;
  }

  div.post>span>i {
    display: none;
  }

  div.post>span::after {
    position: absolute;
    padding: 0 0.5em;
    font-size: 0.5em;
    font-style: oblique;
    right: 0px;
    content: "close";
    opacity: 0;
    transform-origin: right;
    /* transform: translateX(1em); */
    transition: transform ease 0.5s, opacity ease 0.2s;
  }

  div.post.active>span::after {
    /* transform: translateX(0em); */
    opacity: 1;
  }

  div.post>div {
    padding: 0.5em 0em;
  }

  /* --> SINGLE PAGE STYLE */
  div#wrapper.single {
    font-size: 1.3em;
    margin: 1.5em 1em;
    padding: 1em;
  }

  div#wrapper.single h1 {
    font-size: 2.25em;
    margin-top: 0.25em;
    margin-bottom: 0.5em;
  }

  div#wrapper.single h2 {
    font-size: 1.6em;
    margin-bottom: 0.125em;
  }

  div#wrapper.single h3 {
    font-size: 1.4em;
    margin-bottom: 0.125em;
  }

  div#exit {
    height: 1.25em;
  }

  div#exit>a {
    font-size: 1.7em;
  }

  div#exit>a:hover {
    font-size: 2em;
  }
}
