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

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

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

  --quote: #858585;
}

.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 {
  width: 100%;
  height: 100%;
  padding: 0 20vw;
}


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;
}


      /* TOGGLE THINGY */


        .read-toggle {
          color: var(--accent);
          cursor: pointer;
          text-decoration: none;
          white-space: nowrap;
          white-space: normal;
        }

        .read-toggle:hover {
          text-decoration: underline;
        }

        .extra-text {
          display: none;
          color: currentColor;
          white-space: normal;
        }

        .read-toggle.expanded .dots {
          display: none;
        }

        .read-toggle.expanded .extra-text {
          display: inline;
        }










div#content {
/*  height: 100%;*/
  width: 100%;
  padding: 1em 0;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  border-top: 3px solid black;
}






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

h2 {
  font-family: Inter;
  font-size: 2.5em;
  display: flex;
  align-items: baseline;
}

p.desc {
  font-family: Playfair;
  font-size: 1.4em;
  font-style: italic;
}

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

p.body {
  margin: 2em 0 1em;
  color: var(--secondary);
/*  width: clamp(100%, 55vw, 1000px);*/
  text-align: justify;
  padding: 0 0 2em;
}

p.quote {
  margin: 0 2em;
  padding: 0 0 0 1em;
  color: var(--quote);
  border-left: 3px solid var(--quote);
  text-align: justify;
}

p.credit {
  text-align: right;
  margin: 1em 2em 0;
  color: var(--secondary);
  font-size: 1em;
  font-family: Playfair Display;
}

p.last {
  border-bottom: 3px solid var(--main);
}

p.start {
  margin-top: 2em;
}

img {
  display: block;
  margin: 2em auto 0;
}

img.illustration {
  display: block;
  margin: 2em auto 0;
  max-height: 600px;
  max-width: 100%;
}

a:hover {
  color: #c81010;
}


div.bottom {
  display: flex;
  justify-content: space-around;
  padding: 1em 0;
}


a.action-button {
  width: max-content;
  display: flex;
  align-items: center;
/*  padding: .5em 1em;*/
  color: var(--main);
}

a.action-button svg.icon {
  width: 1em;
  height: 1em;
  margin: 0 .35em 0 0;
  flex-shrink: 0;
  fill: currentColor;
}

a.action-button:hover {
  color: var(--accent);
}





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





/*@media (max-width: 850px) {
  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;
  }


  p.body {
    margin: 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 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-between;
  }

  .menu a {
    margin: 0;
  }



  p.body {
    margin: 0;
    padding: 0 0 2em;
  }

  p.start {
  margin-top: 0;
  }

  p.quote {
    margin-bottom: 2em;
  }


  div#content {
    margin-top: 1em;
    padding-top: 1em;
  }




  div#flex {
  display: flex;
  flex-direction: column-reverse;
  margin: 0 0 2em;
}


a.back-button {
  width: 2em;
  height: 2em;
}
a.back-button svg {
  width: 100%;
  height: 100%;
/*  display: block;*/
  fill: var(--main);
}





  div#title-date {
/*    display: flex;*/
/*    flex-direction: column-reverse;*/
    margin: 0 0 2rem;
  }


  h2 {
    font-size: 1.8em;
  }

  p.desc {
    font-size: 1.1em;
    margin: .5em 0 1em;
  }


  p.date {
    font-size: 1.1em;
/*    text-align: center;*/
/*    width: 50%;*/
    margin-top: .5em;
  }
  div.post.text {
  -webkit-line-clamp: 5;
}

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

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

}



































