@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Rubik', sans-serif;

  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;

  min-height: 100vh;
  min-height: 100svh;

  margin: 0;

  background-color: #f6f6f2;

  overflow-x: hidden;
}


/* HEADER */

.site-header {
  padding: 20px 20px 12px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-header h1 {
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  margin: 0;
}


/* MAIN LAYOUT */

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);

  min-height: 0;

  overflow: hidden;
}


/* SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;

  padding: 12px 20px 20px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar nav a {
  text-decoration: none;

  color: black;

  font-weight: 300;
  font-size: 13px;
  line-height: 1.2em;
}

.sidebar nav a:hover {
  color: #742f05;
}


/* SLIDESHOW */

.slideshow {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 0;

  overflow: hidden;
}


/* SLIDES */

.slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0;
  transform: scale(1.02);

  transition:
    opacity 3s ease,
    transform 7s ease;

  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* ACTIVE IMAGE */

.slide.active {
  opacity: 1;
  transform: scale(1);
}


/* FOOTER */

.site-footer {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .social a,
.site-footer .footer-note p {
  color: black;
  font-weight: 200;
  font-size: 13px;
}

.site-footer .social a {
  text-decoration: none;
}

.site-footer .social a:hover {
  color: #742f05;
}

.site-footer .footer-note p {
  margin: 0;
}


/* PRELOADER */

#preloader {
  position: fixed;
  inset: 0;

  background-color: #f6f6f2;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 24px;
  font-weight: 200;
  color: #000;

  z-index: 9999;
}


/* GLOBAL */

::-webkit-scrollbar {
  display: none;
}


/* TABLET + MOBILE */

@media (max-width: 800px) {

  .layout {
    display: grid;

    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);

    min-height: 0;
  }

  .site-header {
    padding: 16px 16px 8px;
  }

  .site-header h1 {
    font-size: 24px;
  }

  .sidebar {
    padding: 0 16px 14px;
  }

  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;

    gap: 12px;
  }

  .sidebar nav a {
    font-size: 13px;
  }

  .slideshow {
    width: 100%;

    min-height: 45vh;

    margin: 0;
  }

  

  #preloader {
    font-size: 18px;
  }
}


/* SMALL MOBILE */

@media (max-width: 480px) {

  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .slideshow {
    width: 100%;

    margin: 0;

    min-height: 42vh;
  }

  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header h1 {
    font-size: 22px;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .slide {
    transition: opacity 0.8s ease;
    transform: none;
  }

  .slide.active {
    transform: none;
  }
}
