/* Add your custom css here! */

/* alegreya-regular - latin */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/alegreya-v29-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/alegreya-v29-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap
}
/* alegreya-italic - latin */
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  src: local(''),
       url('../fonts/alegreya-v29-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/alegreya-v29-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap
}

/* alegreya-sc-regular - latin */
@font-face {
  font-family: 'Alegreya SC';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/alegreya-sc-v22-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/alegreya-sc-v22-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap
}


body {
  font-family: 'Alegreya', serif;
}

::selection {
  background-color: hsla(355, 100%, 91%, 0.3);
}

@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 100%;
  }
 }


header h1 {
  font-family: 'Alegreya Sans', serif;
  font-variant-ligatures: normal;
  color:black;
  background: url('../img/background.jpeg');
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
  margin-bottom: 0;
  animation: animatedBackground 60s linear infinite alternate;
  text-align: center;
}

header h2 {
  font-size: 1.3rem;
  font-family: 'Alegreya Sans', serif;
  font-style: italic;
}

nav {
  display: block;
  align-self: start;
  font-size: 0.85rem;
  padding-top: 10px;
  text-align:center;
  padding: 1em 0;
}

nav > span {
  display: block;
  margin-bottom: 1rem;
}

nav a {
  text-decoration: none;
  transition: color 0.5s ease-in;
  padding:0 0.5rem;
  display: inline;
}

nav a:hover,
nav a:active {
  text-decoration: underline;
}

nav .block {
  margin:0;
  display: inline-block;
}

nav a.network {
  padding:0 0.2em;
  display: inline-block;
}

nav a.network:hover {
  text-decoration: none;
}

main section.list {
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  overflow-y: scroll;
}

article p:first-of-type:first-letter {
  font-size: 2rem;
  float: left;
  padding-right: 0.1rem;
  margin: 0rem 0 -0.5rem 0;
}

article h1 {
  font-size: 0.90rem!important;
  font-variant: small-caps;
  font-family: 'Alegreya SC', serif;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

article h2, article h3 {
  font-family: 'Alegreya', serif;
  text-align: left;
}

.content {
  position:relative;
  height:20vh;
  text-align:center;
  background-color: white;
}

#reading {
  display: none;
}

.hero-single {
  width: 100px;
  height: 150px;
  border: 1px solid rgba(255,255,255,0.1);
  margin: 0 auto 1em auto;
}

/* Animation */

@media (min-width: 711px) {
  main.home {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-column-gap: 3rem;
  }

  .hero-single {
      float: left;
      margin: 0.5em 1em 0.5em 0;
  }

  nav {
    display: block;
  }

  nav {
        position: sticky;
        top: 5rem;
        text-align:left;
    }

    nav a {
      padding:0;
      display: block;
    }

    nav .block {
        display: block;
        padding-top:1rem;
      }

    header h2 {
        margin: 0 0 3rem 0;
      }

    #reading {
      display:block;
    }
}


@media (prefers-color-scheme: dark)
{

    article h1 {
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}