/* --------------------------------------------------------------
/* =Header
-------------------------------------------------------------- */
header {
  padding: var(--spacer-medium) 0 0 0;
  justify-content: center;
  width: 100%;
  display: flex;
  max-width: 540px;
  margin: 0 auto;
}
nav.header-menu {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 99px;
}
.header-menu__item {
  font-size: var(--font-size-small);
  font-weight: 500;
  padding: 12px;
  text-align: center;
  line-height: 100%;
  transition: background cubic-bezier(.5,0,0,1) 0.2s;
  position: relative;
  opacity: .5;
}
.header-menu__item:hover::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  margin-left: -2px;
  height: 4px;
  width: 4px;
  background: var(--text-primary);
  border-radius: 4px;
}
.header-menu__item.active {
  opacity: 1;
}
.header-menu__item.active::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  margin-left: -2px;
  height: 4px;
  width: 4px;
  background: var(--text-primary);
  border-radius: 4px;
}
.hero {
  padding: 12vh 0;
}

/* --------------------------------------------------------------
/* = Colophon
-------------------------------------------------------------- */
.animation-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.tag {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -30px 0 0 -30px;
  width: 60px;
  height: 60px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 8px;
  padding: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  transition: all cubic-bezier(1,0,.31,.9) 1s;
  z-index: 3;
  align-items: end;
  overflow: hidden;
  display: flex;
  transform: rotateX(0) rotateY(0) scale(1);
  cursor: pointer;
}
.loading-done .tag:hover {
  transform: rotateX(0) rotateY(0) scale(1);
  transition: all cubic-bezier(1,0,.31,.9) .5s;
  margin: -30px 0 0 -30px;
  width: 60px;
  height: 60px;
} 
.loading-done .tag {
  opacity: 1;
  width: 80px;
  margin-left: -40px;
  transform: scale(1.1);
  border-radius: 12px;
  transform: rotateZ(5deg) rotateX(30deg) rotateY(15deg) scale(1.1);
  overflow: hidden;
}
.tag::after {
  content:"";
  height: 6px;
  width: 6px;
  background: var(--bg-primary);
  border-radius: 9px;
  position: absolute;
  top: 8px;
  right: 8px;
}
.tag::before {
  content:"";
  background: var(--border);
  border-radius: 50px;
  position: absolute;
  z-index: -1;
  transition: all ease-in-out .8s;
  opacity: 0;
  height: 15px;
  width: 80%;
  bottom: -12px;
  right: 10%;
  filter: blur(6px);
}
.loading-done .tag::before {
  height: 25px;
  width: 80%;
  opacity: .6;
  bottom: -18px;
  right: -8px;
  filter: blur(12px);
  opacity: 1;
}
.tag:hover::before {
  height: 15px;
  width: 40%;
  bottom: -12px;
  right: 30%;
  filter: blur(3px);
  opacity: 1;
}
.wheel {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 420px;
}
.wing {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  position: absolute;
  margin: -40px 0 0 -40px;
  top: 50%;
  left: 50%;
  background: linear-gradient(30deg, var(--border), transparent);
  transition: all cubic-bezier(.82,.22,0,.86) 2s;
  opacity: .8;
}

.wing.w1 {
  transform: translate3d(0, 0, 0) rotateZ(0) rotateX(80deg) rotateY(360deg) scale(.2);
}
.loading-done .wing.w1 {
  transform: translate3d(0, -150px, 0) rotateZ(0) rotateX(10deg) rotateY(45deg) scale(1);
}

.wing.w2 {
  transform: translate3d(0, 0, 0) rotateZ(60deg) rotateX(80deg) rotateY(360deg) scale(.2);
}
.loading-done .wing.w2 {
  transform: translate3d(125px, -75px, 0) rotateZ(60deg) rotateX(10deg) rotateY(45deg) scale(1);
}

.wing.w3 {
  transform: translate3d(0, 0, 0) rotateZ(120deg) rotateX(80deg) rotateY(360deg) scale(.2);
}
.loading-done .wing.w3 {
  transform: translate3d(125px, 75px, 0) rotateZ(120deg) rotateX(10deg) rotateY(45deg) scale(1);
}

.wing.w4 {
  transform: translate3d(0, 0, 0) rotateZ(180deg) rotateX(80deg) rotateY(360deg) scale(.2);
}
.loading-done .wing.w4 {
  transform: translate3d(0, 150px, 0) rotateZ(180deg) rotateX(10deg) rotateY(45deg) scale(1);
}

.wing.w5 {
  transform: translate3d(0, 0, 0) rotateZ(240deg) rotateX(80deg) rotateY(360deg) scale(.2);
}
.loading-done .wing.w5 {
  transform: translate3d(-125px, 75px, 0) rotateZ(240deg) rotateX(10deg) rotateY(45deg) scale(1);
}

.wing.w6 {
  transform: translate3d(0, 0, 0) rotateZ(300deg) rotateX(80deg) rotateY(360deg) scale(.2);
}
.loading-done .wing.w6 {
  transform: translate3d(-125px, -75px, 0) rotateZ(300deg) rotateX(10deg) rotateY(45deg) scale(1);
}

.spin {
  animation: spin 20s linear infinite;
  animation-delay: 500ms;
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes oneflipY {
  100% {
    -webkit-transform: rotateY(1turn);
    -moz-transform: rotateY(1turn);
    -o-transform: rotateY(1turn);
    transform: rotateY(1turn);
  }
}


/* --------------------------------------------------------------
/* =Stuff
-------------------------------------------------------------- */
.file-containter {
  display: flex;
  flex-wrap: wrap;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.all-stuff-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
} 
.all-stuff-container .item {
  width: 10%;
  padding: 8px;
}
.item {
  width: 33.33%;
  padding: 16px;
}
.item figcaption {
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.item:hover {
  opacity: 0.8;
}
.item__image-file img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-small);
  aspect-ratio: 1 / 1;
  border: 0.5px solid var(--border);
}
.other-file {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0;
  align-items: center;
  display: flex;
  justify-content: center;
  border-radius: var(--radius-small);
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
}

/* --------------------------------------------------------------
/* =Blog
-------------------------------------------------------------- */
.the-content p {
  margin-bottom: 40px;
  color: var(--text-secondary);
}
.the-content h1 {
  margin-bottom: 12vh;
}
.the-content h2, 
.the-content h3, 
.the-content h4,
.the-content h5, 
.the-content h6 {
  margin-top: 80px;
}
.the-content img {
  display: block;
  margin: 6vh 0;
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  overflow: hidden;
}

/* Blog Feed */

.blog-feed .year-label {
  margin-top: 12vh;
  display: inline-block;
}
.blog-feed .year-label:first-of-type {
  margin-top: 0;
}
.blog-list-item {
  padding: 0.5vh 0;
  display: flex;
  justify-content: space-between;
  align-items: first baseline;
}
.blog-list-item__title {
  width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wordcount {
  display: none;
}
.blog-list-item:hover .wordcount {
  display: inline-block;
}
.blog-list-item:hover .blog-list-item__title {
  text-decoration: underline;
}
.post-chapter {
  padding: 3vh 0;
  border-bottom: 1px solid var(--border);
}
/* --------------------------------------------------------------
/* = Image lightbox
-------------------------------------------------------------- */
.zoomlightbox-trigger {
  cursor: zoom-in;
}
.zoomlightbox-container {
  background: var(--bg-secondary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 10;
  cursor: zoom-out;
}
.zoomlightbox-image {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  max-width: 520px;
  max-height: 520px;
  height: auto;
  width: auto;
}
.zoomlightbox-image-name {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 320px;
  font-size: var(--font-size-small);
  text-align: center;
  margin-left: -160px;
}
.close-zoomlightbox {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 320px;
  font-size: var(--font-size-small);
  text-align: center;
  margin-left: -160px;
  opacity: 0.5;
}

/* --------------------------------------------------------------
/* =SMARTPHONE
-------------------------------------------------------------- */
@media screen and (max-width: 821px) {
  .zoomlightbox-image {
    max-width: 90%;
    max-height: 60%;
  }
  .item, .all-stuff-container .item {
    width: 50%;
  }
}
