/**
 * Theme Name: koebeen 25
 * Template: twentytwentyfive
 * Author: Studio koebeen
 */
:root {
  --font-size: 20px;
  --margin: 40px;
  --half-margin: 20px;
  --quarter-margin: 10px;
  --eighth-margin: 5px;
  --dark: #333;
  --dusk: #777;
  --dawn: #a8a8a8;
  --lighter: #c4c4c4;
  --light: #fff;
  --contrast: #aaa;
  --max-width: 1280px;
}

@keyframes fade-in {
  0% {
    opacity: 0.8;
    /* filter: blur(1px); */
  }
  100% {
    opacity: 1;
    /* filter: none; */
  }
}

@keyframes slide-in {
  0% {
    opacity: 0.8;
    transform: translateX(-1px);
    filter: blur(3px);
    clip-path: inset(0 100% 0 0);
  }
  20% {
    opacity: 0.9;
    transform: translateX(1px);
  }
  40% {
    transform: translateX(-1px);
    filter: blur(2px);
  }
  50% {
    transform: translateX(0px);
  }
  60% {
    opacity: 1;
    transform: translateX(-1px);
  }
  70% {
    transform: translateX(1px);
    filter: blur(1px);
  }
  80% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes swipe {
  0% {
    left: calc(100% - var(--margin) - var(--quarter-margin));
    width: 6px;
    background-color: var(--dark);
  }
  50% {
    background-color: var(--light);
  }
  100% {
    left: calc(var(--margin) + var(--quarter-margin));
    width: 2px;
    background-color: var(--dark);
  }
}

@keyframes blink {
  0% {
    color: var(--dark);
  }
  100% {
    color: var(--dawn);
  }
}

body {
  padding: 0 var(--margin);
  font-family: "Assistant", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size);
  color: var(--dusk);
  background-color: var(--light);
}

.wp-block-column > p {
  margin: 0 0 var(--quarter-margin) !important;
  line-height: 1.5em;
  &:first-child::first-letter {
    font-family: "Quattrocento Sans", sans-serif;
    font-weight: 700;
    color: var(--dark);
    padding: 0 0.3rem;
    margin: 0.1em 0.3rem 0 0;
    font-size: 4rem;
    float: left;
    line-height: 0.8em;
  }
}

blockquote.wp-block-quote {
  position: relative;
  border: none;

  p em {
    text-indent: 0;
    margin-left: 0.1em;
    color: var(--dark);
    font-size: var(--font-size);
    display: inline-block;
  }
}

blockquote::before {
  font-family: "Quattrocento Sans", sans-serif;
  font-weight: 700;
  content: "\201C";
  color: #ebebeb;
  font-size: 3.6em;
  position: absolute;
  left: 0;
  top: -0.06em;
  z-index: -1;
}

a {
  /* color: var(--dark); */
  &:hover {
    animation: blink 1000ms ease-in-out alternate infinite;
  }
}

h1,
h2 {
  font-family: "Quattrocento Sans", sans-serif;
  text-transform: uppercase;
  font-weight: 100;
  font-style: normal;
  word-spacing: 0.2em;
}

h1.wp-block-site-title {
  color: var(--lighter);
  font-size: 1.7rem;
  display: block;
  position: absolute;
  margin: 0 auto;
  background-color: var(--light);
  padding: 0 var(--half-margin);
  letter-spacing: 0.1em;
  a {
    text-decoration: none;
  }
}

h2 {
  font-size: 1.2rem;
  margin: var(--margin) 0 0 !important;
  letter-spacing: 0.1em;
  color: var(--dark);
}

figure {
  margin: 0;
  padding: 0;
  position: relative;

  img {
    animation: fade-in 300ms 1ms ease-in-out both;
    height: 78vh;
  }

  figcaption {
    position: absolute;
    right: 20px;
    top: 10px;
    transform: rotate(-90deg);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transform-origin: right;
  }
}

header.kb-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  margin-top: calc(var(--half-margin) * -1);
  position: relative;
  &::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dawn);
  }
  &::after {
    content: "";
    display: block;
    width: 4px;
    height: 2px;
    position: absolute;
    z-index: 2;
    animation: swipe 10000ms ease-in infinite;
  }
}

main.kb-main {
  display: flex;
  margin-top: 40px;
  margin-bottom: 40px;
}

article.kb-article {
  padding-left: var(--margin);
}

.kb-page {
  margin: 0 auto var(--margin);
  width: 100%;
  max-width: var(--max-width);
}

/* menu test */
.kb-nav-container {
  width: 100%;
  max-width: 100%;
  position: absolute;
  margin-top: 120px;
  padding: 0;
}

nav.kb-nav {
  display: flex;
  width: 100%;
  max-width: calc(100% - 60px);
  padding: 0;
}

nav ul.kb-nav-list {
  display: flex;
  list-style: none;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  margin: 0;
}

.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content,
.wp-block-navigation .wp-block-page-list,
.wp-block-navigation.items-justified-center {
  justify-content: space-between !important;
}

nav.kb-nav a {
  text-decoration: none !important;
  color: var(--dusk);
  padding: 10px 0;
  display: block;
  position: relative;
  &::before {
    content: "";
    display: block;
    width: 0.8em;
    height: 0.8em;
    background-color: var(--contrast);
    position: absolute;
    bottom: 0.8em;
    left: -28px;
    transform: translateX(-50px);
    border-radius: 100%;
    opacity: 0;
    transition: transform 1s cubic-bezier(0.075, 0.82, 0.165, 1),
      opacity 1s linear;
  }
}
nav.kb-nav a:hover,
nav.kb-nav .current-menu-item a {
  /* &::first-letter {
    color: var(--contrast);
  } */
  &::before {
    transform: translateX(0);
    opacity: 1;
  }
}

nav.kb-nav a span {
  letter-spacing: 0.02em;
}

.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline: none !important;
}

nav.kb-nav .current-menu-item a span {
  color: var(--dark);
}

.sub-menu {
  display: none;
}

#et_mobile_nav_menu {
  display: none;
}

figure.fill {
  width: 100% !important;
  a,
  img {
    width: 100% !important;
  }
}
