@font-face {
  font-family: 'Yoga';
  font-display: swap;
  src: url('/_fonts/yoga.woff2') format('woff2');
}

@font-face {
  font-family: 'Yoga';
  font-display: swap;
  src: url('/_fonts/yoga-bold.woff2') format('woff2');
  font-weight: bold;
}

@font-face {
  font-family: 'Yoga';
  font-display: swap;
  src: url('/_fonts/yoga-italic.woff2') format('woff2');
  font-style: italic;
}

@font-face {
src: url('/_fonts/MapRomanVariable-VF.woff2') format("woff2"),
     url('/_fonts/MapRomanVariable-VF.woff') format("woff");
font-family: 'MapRomanVariableWeb';
font-style: normal;
font-weight: normal;
font-stretch: 50% 100%;
}


html {
  scroll-behavior: smooth;
}
body {
  background-color: lavenderblush;
  font-size: 100%;
  font-family: 'Yoga', sans-serif;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: midnightblue;
    color: khaki;
  }
}

a {
  color: currentColor;
}
a:hover {
  color: #555;
}
:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  box-shadow: 0 0 0 blue;
}
.visually-hidden {
  position: absolute;
  left: -9999em;
  top: -9999em;
}
h1 {
  font: 2.85em/.85 'Bungee Outline';
  white-space: nowrap;
  display: inline-block;
  vertical-align: top;
  margin: 0;
}
h1 span {
  transform: rotate(-5deg);
  display: inline-block;
  color: rgba(0, 0, 0, 0.75);
}
@media (prefers-color-scheme: dark) {
  h1 span {
     color: rgba(240,230,140, 0.75);
  }
}
@media (min-width: 50em) {
  h1 {
    font-size: 4em;
  }
  h2 {
    position: sticky;
    top: 2em;
    z-index: 2;
    text-align: center;
  }
}
h2 span {
  display: inline-block;
  background-color: black;
  color: white;
  padding: .25em .5em;
  width: max-content;
  z-index: 1;
  position: relative;
  border-radius: .5em;
}
.hiddedevriesnl {
  border: 0;
  border-radius: 100%;
  width: 2em;
  display: inline-block;
  vertical-align: top;
  padding: .25em;
}
  .hiddedevriesnl img {
    border-radius: 100%;
  }
@media (min-width: 50em) {
  .hiddedevriesnl {
    width: 3em;
  }
}
.year > ul {
  padding: 0;
  display: grid;
  gap: 1em;
  align-items: start;
  overflow: auto;
  justify-content: start;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  margin-bottom: 2em;
  scroll-snap-type: x mandatory;
}
@media (min-width: 50em) {
  .year > ul {
    justify-content: center;
    align-content: center;
    overflow: visible;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, 200px);
    margin-bottom: 2em;  
  }
}


.year > ul li {
  list-style: none;
  background-color: var(--bgColor);
  color: white;
  border-radius: .25em;
  overflow: hidden;
  box-shadow: 0 0 1em -.5em #000;
  scroll-snap-align: center;
  position: relative;
}
.year > ul li > details {
  display: block;
  background-color: rgba(0,0,0,0.4);
}
.year > ul li:focus-within {
  outline: 4px dotted var(--bgColor);
  outline-offset: 2px;
}
li:active:focus-within {

}
.year > ul li:nth-child(odd) {
  margin-top: 1em;
}
li.fave {
  position: relative;
}
li.fave summary > div::before {
  content: "5✯";
  display: inline-block;
  text-transform: uppercase;
  margin-bottom: .5em;
  font-weight: bold;
  font-size: 100%;
  position: absolute;
  padding: .75em 1em;
  background-color: crimson;
  top: -.75em;
  right: -.5em;
  transform: rotate(1deg);
  border-radius: 60% 90%;
  margin-left: -1em;
  height: 1.4em;
}
li a {
  color: white;
  transition: all 0.2s ease-in-out;
}
li a:hover {
  color: #eee;
}
li img {
  width: 100%;
  height: auto;
  display: block;
  background: #555;
}
li div,
li p {
  display: block;
  padding: 1em;
  text-align: center;
  font-size: 90%;
}
li strong {
  display: block;
  font-size: 110%;
}
li p {
  margin-bottom: 0;
}
img {
  max-width: 100%;
}
header {
  margin-top: 2em;
  text-align: center;
}

nav {
  display: block;
  margin: 1em 0 3em;
  text-align: center;
}

summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker,
summary::marker
{
  list-style: none;
  display: none;
}
summary:hover img {
  transition: transform 0.2s;
  transform: scale(1.05);
}
summary:hover:focus img {
  transform: none;
}
summary:focus {
  outline-offset: -3px;
}
li:focus-within summary:focus {
  outline: none;
}

section {
  min-height: 100vh;
  padding-top: 4em;
}
@media (min-width:50em) {
  section {
    min-height: 0;
  }
}

.book-case {
  display: flex;
  align-items: end;
  margin: 0 0 -3em;
  justify-content: center;
}
.book-case > span {
  aspect-ratio: 1 / 8;
  overflow: hidden;
  max-width: 2em;
  transform: rotate(-2deg);
}
.book-case > span:nth-child(odd) {
  transform: rotate(2deg);
}

@media (min-width: 50em) {
  .book-case {
    margin: 0 0 -6em;
  }
  .book-case > span {
    aspect-ratio: 1 / 4;
    max-width: 4em;
  }
}

.unreads {
  text-align: center;
}