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

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

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

.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%;
  height: 100%;
  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;
}

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




p.desc {
  text-align: center;
  font-family: Inter;
/*  width: 70%;*/
  margin: 1rem auto;
}


    /*MAIN PIC AS IMG ELEMENT*/

    img#mainpic {
      max-width: 100%;
      height: auto;
      max-height: 400px;
      /*max-height: max(300px, 40vh);*/
      display: block;
      margin: 1rem auto;
    }

    /*MAIN PIC AS "BG IMG":*/

    /*div#mainpic {
      width: 100%;
      max-height: 500px;
      height: 500px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    */


h2 {
  font-size: 1.5em;
/*  font-family: Instrument Serif;*/
  font-weight: 400;
/*  font-style: italic;*/
  color: var(--main);
  width: fit-content;
  margin: .5rem auto 1.5rem;
  font-family: "Playfair";
/*  margin: 1rem 0;*/
}


div#content {
/*  height: 100%;*/
  width: 100%;
/*  padding: 0 5vw 0 0;*/
  display: flex;
  flex-direction: column;
}


/* Make the outer link look like your old div */
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) {



  .desktop {
    display: none;
  }

  div#wrapper {
    padding: 0 5vw;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2vh 0 0 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;
  }

  img#mainpic {
    margin: 0;
  }


  p.body {
    margin: 0;
  }

  h2 {
    margin: 1rem auto;
  }





  div.title-date {
    display: block;
    text-align: left;
    width: 100%;
  }

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

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

  p.preview {
    margin: .5em 0;
  }

  div.post.text {
  -webkit-line-clamp: 5;
}

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

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

}



















