/*
	Theme Name: Living Mathematics
	Theme URI: https://mantagen.org
  Description: It's a theme
	Version: 1.4.3
	Author: mantagen
	Author URI: https://mantagen.org
	Tags: Love, Theme

	License: MIT
	License URI: https://opensource.org/licenses/mit-license.php
*/

.hamburger {
  padding: 1rem;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}
.hamburger.is-active:hover,
.hamburger:hover {
  opacity: 0.7;
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::after,
.hamburger.is-active .hamburger-inner::before {
  background-color: #020202;
}
.hamburger-box {
  width: 2rem;
  height: 24px;
  display: inline-block;
  position: relative;
}
.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}
.hamburger-inner,
.hamburger-inner::after,
.hamburger-inner::before {
  width: 2rem;
  height: 2px;
  background-color: #020202;
  border-radius: 1px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}
.hamburger-inner::after,
.hamburger-inner::before {
  content: "";
  display: block;
}
.hamburger-inner::before {
  top: -10px;
}
.hamburger-inner::after {
  bottom: -10px;
}
.hamburger--boring .hamburger-inner,
.hamburger--boring .hamburger-inner::after,
.hamburger--boring .hamburger-inner::before {
  transition-property: none;
}
.hamburger--boring.is-active .hamburger-inner {
  transform: rotate(45deg);
}
.hamburger--boring.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}
.hamburger--boring.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

html {
  font-size: 20px;
}
body {
  font-family: Verdana, Geneva, sans-serif;
  color: #020202;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: inherit;
  text-decoration: underline;
}
.current-menu-item a {
  text-decoration: underline;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
p {
  padding: 0;
  margin: 0;
  line-height: 1.4;
}
h1 {
  margin: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.journal__header {
  margin-bottom: 1rem;
}
.journal__item-date {
  font-size: 13px;
  line-height: 1.4;
}
.lm-page a {
  color: #338aff;
}

.color--primary {
  /*color: #8A2BE2;*/
}

@media (max-width: 639px) {
  body {
    padding: 3rem 2rem;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2;
  }
  .state--menu-open .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    z-index: 1;
  }
  .main {
    margin-bottom: 1rem;
  }
  .journal__item {
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 640px) {
  .menu-toggle {
    display: none;
  }
  .nav {
    position: fixed;
    width: 337px;
    padding-top: 2rem;
    padding-left: 2rem;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: white;
  }
  .main {
    margin-top: 2rem;
    margin-right: 2rem;
    margin-left: 337px;
    padding-left: 2rem;
  }
  .journal {
  }
  .journal__title {
    font-size: 1rem;
    font-weight: bold;
    text-decoration: underline;
  }
  .journal__header {
    /*margin-bottom: 2rem;*/
  }
  .journal__item {
    max-width: 40rem;
    position: relative;
    margin-bottom: 1rem;
    position: relative;
  }
  .journal__item-date {
    width: 9rem;
    position: absolute;
    left: 0;
  }
  .journal__item-text {
    margin-left: 9rem;
    padding-left: 1rem;
  }
  .archive__item {
    background-color: white;
    max-width: 40rem;
    position: relative;
    margin-bottom: 1rem;
    padding-right: 7rem;
  }
  .archive__item-snippet {
    font-style: italic;
    font-size: 14px;
  }
  .archive__item-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 6rem;
    object-fit: cover;
  }
  .archive__item-link::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
  }
  .lm-page__section,
  .single__section {
    max-width: 40rem;
    background-color: white;
    padding: 0;
    position: relative;
    margin-bottom: 2rem;
  }
  .lm-page__section p,
  .single__section p {
    margin-bottom: 1rem;
  }
  .lm-page__section img,
  .single__section img {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
  }

  .single__meta {
    font-style: italic;
  }

  .copyright {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
  }
}
