@font-face {
  font-family: 'Itim';
  font-style: normal;
  font-weight: normal;
  src: local('Itim Regular'), url('Itim-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Eagle Lake';
  font-style: normal;
  font-weight: normal;
  src: local('Eagle Lake'), url('EagleLake-Regular.ttf') format('truetype');
}
[data-theme=light],
:root:not([data-theme=dark]) {
  --pico-background-color: transparent;
  --pico-text-selection-color: rgba(244, 93, 44, 0.25);
  --pico-primary: #362519;
  --pico-primary-background: #EDE3D5;
  --pico-primary-underline: rgba(189, 60, 19, 0.5);
  --pico-primary-hover: #A1A05A;
  --pico-primary-hover-background: #363830;
  --pico-primary-focus: #5C5443;
  --pico-primary-inverse: #EDE3D5;
  --pico-font-family: 'Itim', sans-serif;
  --pico-color: var(--pico-primary);
  --pico-h1-color: var(--pico-primary);
  --pico-h2-color: var(--pico-primary);
  --pico-h3-color: var(--pico-primary);
}
body {
  background: url('/img/paper-background.jpg');
}
h1, h2, h3, h4, h5, h6 {
  --pico-font-family: 'Eagle Lake', serif;
}

body > header,
body > footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
}
nav#main-menu {
    position:sticky;
    top: 0;
}
body > header a,
body > footer a {
    text-decoration: none;
}

article>footer,
article>header {
   background-color: transparent;
}
.intro {
  text-align: center;
}

article.post-wrap {
  max-width: 40em;
  margin: 0 auto;
  box-shadow: none;
}

article.archive-item {
  display: flex;
  justify-content: space-between;
}

section.post-copyright,
section.post-tags {
  --pico-font-size: 0.9em;
  border-top: 1px solid;
  padding-top: var(--pico-block-spacing-vertical);
}

/**
 Toggle menu when small screens
 */
nav .menu-toggle,
nav .menu-toggle + input {
    display: none;
}
@media (width < 48em) {
    nav .menu-toggle {
        display: block;
        font-size: 2em;
        width: 1em;
        height: 1em;
    }
    nav .menu-toggle + input {
        display: none;
    }
    nav .menu-toggle ~ ul {
        display: none;
    }
    nav .menu-toggle + input:checked ~ ul {
        display: flex;
        margin: 0;
    }
    nav ul {
        position: absolute;
        left: 0;
        top: 60px;
        flex-direction: column;
        background-color: #f1dab9;
    }
    nav ul li {
        width: 100vw;
        padding: 0.5em;
    }
}

/* postList widget styling */
ul.slider {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow: auto;
}
ul.slider > li {
  width: 200px;
  min-width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius:10px;
  overflow: hidden;
  margin: 0 1em;
}
ul.slider > li a {
  font-weight: 600;
}
ul.slider > li img,
ul.slider > li .placeholder
{
  width: 200px;
  height: 133px;
  object-fit: cover;
  display: inline-block;
  background-color: #234c73;
}

/**
 * File section
 */
.filters {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.filters li {
  list-style: none;
  padding: 0.5em 1em;
  border: 1px solid;
  border-radius: 50px;
  cursor: pointer;
}
.filters li.active {
  color: #fff;;
  background-color: var(--pico-color);
}
.file-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.file-list .file-item {
  list-style: none;
  margin: 0.5em;
  max-width: 10em;
}
.file-list .file-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.file-list .file-item h2 {
  --pico-font-size: 1.25rem;
}
.file-list .file-item img {
  max-width: 100%;
  object-fit: contain;
}

article.file-wrap {
  display: flex;
}
article.file-wrap .file-content {
  width: 50%;
  padding: 1em;
}
@media (width < 768px) {
  article.file-wrap {
    flex-direction: column;
  }
  article.file-wrap .file-content {
    width: 100%;
  }
}
