/* === IMPORTS === */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); */

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('/assets/fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
  --bg: #161616;
  --fg: #eceff4;
  --gray: #363636;
  --light-gray: #4c566a;
  --olive: #a3be8c;
  --visited-link: #b48ead;
  --highlight: #81a1c1;
  --alt-bg: #262626;
  --alt-bg-darker: #202020;

  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  max-height: 100vh;

  font-family: 'Montserrat';
}

html {
  background: rgb(8, 8, 8) url('/assets/images/tile.png') repeat !important;
}



/* === STRUCTURE === */

body {
  width: min(100%, 1500px);
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  box-sizing: border-box;
  overflow: hidden;

  grid-template-columns: 1fr 336px;
  grid-template-rows: 1fr 130px;

  grid-template-areas:
    "main header"
    "main footer";
}

/* STRUCTURE > HEADER-NAV */

body>header {
  grid-area: header;
  border-left: 2px solid black;
  background: var(--alt-bg);
  padding-right: 7px;
  padding-left: 5px;
  border-bottom: none;
  border-top: none;
}

body>header>nav>ul {
  margin: 0;
  padding: 0;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: flex-start;
  list-style-type: none;
  gap: 10px;
}

body>header>nav>ul>li {
  width: 100%;
  margin: initial;
}

body>header>nav>ul>li>a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 4px;
  background: var(--olive);
  border: 2px black solid;
  color: black;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0px black;
  transition: all 0.15s ease-in-out;
}

body>header>nav>ul>li>a:hover {
  text-decoration: none;
  background: #94ac7f;
  box-shadow: 1px 1px 0px black;
}

body>header>nav>ul>li>a:hover::before {
  content: "> ";
}

body>header>nav>ul>li>a:visited {
  color: black
}

/* STRUCTURE > MAIN BODY SECTION */

body>main {
  grid-area: main;

  margin: 1em;
  overflow-y: scroll;
  overflow-wrap: break-word;

  padding: 1em;

  display: block;
  flex-direction: column;
  gap: 1ch;
}

/* STRUCTURE > FEET */

body>footer {
  grid-area: footer;
  background-color: var(--alt-bg);

  border-left: 2px solid black;
  border-top: 2px solid var(--olive);
  border-top-left-radius: 3px;


  padding: 5px;
  margin-bottom: 0;
  display: grid;

  grid-template-columns: 1fr 88px 88px;
  grid-template-rows: auto auto auto;

  grid-template-areas:
    "sub1 button button1"
    "sub2 button button2"
    "sub3 button button3";
}


/* === TEXT === */

* {
  font-size: medium;
}

a {
  color: var(--olive);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--visited-link)
}

h1 {
  font-size: larger;
  font-family: "Roboto Mono";
  margin: 0;
  color: var(--olive);
}

h1::before {
  content: "◆ ";
}

h2 {
  font-size: large;
  font-family: "Roboto Mono";
  margin: 0;
  color: var(--olive);
}

h2::before {
  content: "◇ ";
}

h2>a {
  font-size: medium;
}

h3 {
  margin: 0;
  color: var(--olive);
}

h3::before {
  content: "◊ ";
}

li + li {
  margin-top: 10px;
}


/* USED ON THE POSTS PAGE FOR THE LINKS */
body>main>h2>a {
  text-decoration: none;
  color: var(--olive)
}

body>main>h2>a:visited {
  color: var(--visited-link);
}

body>main>h2:hover>a::before {
  color: var(--fg);
  content: "> ";
}

body>footer>sub {
  font-size: 12px;
}

/* === MOBILE === */
/* STRUCTURE > MOBILE */

@media (max-width: 700px) {
  :root {
    max-height: unset;
  }

  body {
    display: flex;
    flex-direction: column;
    height: unset;
    max-height: unset;
    overflow: unset;
  }

  body>header {
    padding-bottom: 6px;
    border-bottom: 3px solid var(--olive);
    border-left: none;
  }

  body>header>nav>ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  }

  body>header>nav>ul>li {
    text-align: center;
  }

  body>header>nav>ul>li>a {

    padding: 6px;

  }

  body>footer {
    grid-template-areas:
      "sub1 sub2 sub3"
      "button1 button2 button3";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    text-align: center;
    border-left: none;
    border-top-right-radius: 0px;
  }

  body>footer>img {
    justify-self: center;
  }

}