* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main: #000000;
  --accent: #c81010;

  --secondary: #4a4a4a;
  --tertiary: #E0E0E0;
}

.playfair-display-<uniquifier> {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.instrument-serif-regular {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.instrument-serif-regular-italic {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
}

.inter-<uniquifier> {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

html {
  font-size: 16px;
  line-height: 1.5;
  font-family: "", system-ui, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}




/*BODY*/

div#wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 0 20vw;
}

/*#left-section, #right-section {
  width: 10vw;
  height: 100%;
  background-color: teal;
}
*/


header {
  display: flex;
  flex-direction: column;
}

div.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
  max-height: 200px;

  font-family: "Playfair Display";
}


a.home {
  color: var(--main);
  text-decoration: none;
  font-family: Instrument Serif;
}

h1 {
/*  background-color: lightcoral;*/
  font-size: 2.5rem;
}



nav {
  font-size: 1.5rem;
}

.menu a {
  font-size: 1.5rem;
  color: var(--main);
  margin: 0 0 0 2vw;
  text-decoration: none;
}

a#thispage {
  text-decoration: underline;
  color: var(--accent);
}

svg#search {
  transform: translateY(20%);
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}




    /*MAIN PIC AS IMG ELEMENT*/




    





div#content {
  min-height: 75vh;
  width: 100%;
  margin: 5vh 0 0;
}





h2 {
  font-size: 2.5em;
  font-weight: 400;
  width: fit-content;
  margin: 0 0 2rem 0;
  color: var(--main);
  
}


label {

}

div#results {
  margin: 1em 0 0;
}

div#results p.info {
  margin: 0 0 2em;
  font-size: 1.2em;
} 







a.post {
  display: block;
  color: black;            /* force link text color */
  text-decoration: none;   /* remove underline */
  border-left: 3px solid black;
  padding: 0 1.5em;
  margin: 0 0 2.5em 0;
}


a.post:hover h3.title {
  color: var(--accent);
  text-decoration: underline;
}

a.post:hover p.preview {
  text-decoration: underline;
  cursor: pointer;
}


div.title-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

h3.title {
  width: 70%;
  font-size: 1.7em;
}

p.date {
  font-family: "Instrument Serif";
  font-size: 1.5em;
}


p.date {
  font-family: "Instrument Serif";
  font-size: 1.5em;
}

p.preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: justify;
  font-family: Inter;
  margin: 1em 0 0;
  color: var(--secondary);
}


a:hover {
  color: #c81010;
}



footer {
  display: flex;
  justify-content: space-between;
  font-family: "Instrument Serif";
  padding: 2em 0;
}























/*MOBILE*/


@media (max-width: 1020px) {

  div#wrapper {
    padding: 0 5vw;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2vh 0;
  }

  div.navbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1em;
  }

  a.home {
    font-family: Instrument Serif;
  }

  nav.menu {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

  .menu a {
    margin: 0;
  }

  p.desc {
    margin: 0;
  }


  p.body {
    margin: 0;
  }







    a#back-button {
    width: max-content;
    display: flex;
    padding: .5em 1em;
    margin: 2em auto;
    color: var(--main);
    border-radius: 1em;
    font-size: .8em;
  }

  svg#back-icon {
    width: .8em;
    height: .8em;
    margin: .5em 0 0 0;
    flex-shrink: 0;
    fill: currentColor;
  }

  a#back-button:hover, #back-button-2:hover {
    color: var(--accent);
    text-decoration: underline;
  }

  a#back-button-2 {
    width: max-content;
    background-color: var(--tertiary);
    display: flex;
    margin: 0 auto 1.5em;
    font-size: .8em;
  }



div#results p.info {
  text-align: center;
} 


  div.title-date {
    display: flex;
    flex-direction: column;
/*    justify-content: space-between;*/
  }

h3.title {
    width: 100%;
    font-size: 1.4em;
    text-align: left;
  }

  p.date {
    font-size: 1.1em;
/*    text-align: right;*/
/*    width: 50%;*/
    margin-top: .5em;
  }

  div.post.text {
  -webkit-line-clamp: 5;
  margin: 0 0 2em 0;
}

  footer {
    font-size: .7em;
    text-align: center;
    padding: 0 0 2em 0;
  }

  footer p {
    margin-top: .5em;
  }

}









































