/* ---------------------- root & basics ---------------------- */

:root {
  --content-max: 72rem;
  --pad-x: clamp(16px, 4vw, 48px);
  --section-gap: clamp(16px, 1.2rem + 2vmin, 48px);
  --title-gap: clamp(12px, 0.6rem + 2vmin, 40px);
  --grid-gap: clamp(12px, 0.5rem + 1.5vmin, 24px);

  --bg-color: #272727;
  --accent-color: #4373d2;
  --shadow-color: rgba(0, 0, 0, 0.6);
  --text-lightGrey-color: #bebebe;
  --menu-hover-color: #d6d6d6;
  --cls-btn-color: #f4f1ec;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: 'Cuprum', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
}

.page {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto 1fr auto;
}

.hidden {
  display: none;
}

.visible-mobile {
  display: none;
}

@media screen and (max-width: 480px) {
  .visible-mobile {
    display: block;
  }

  .hidden-mobile {
    display: none;
  }
}

/* ---------------------- header ---------------------- */

header {
  background-color: var(--bg-color);
  min-height: 80px;
}

header::after {
  content: '';
  display: block;
  width: 85%;
  height: 80px;

  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  top: 0%;
  bottom: 0;
  left: 10px;
  right: 10px;
  -moz-border-radius: 100px / 10px;
  border-radius: 100px / 10px;

  position: absolute;
  bottom: 0;
  left: 10%;
  z-index: -1;
}

nav {
  padding: 8px;
}

/* ---------------------- logo ---------------------- */

.logo {
  float: left;
  padding: 8px;
  margin-left: 9%;
  margin-top: 8px;
  /* letter-spacing: 2px; */

  animation: logo-entry 1.2s cubic-bezier(.05, .7, .2, 1) .1s both;
}

.logo a {
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 32px;
  text-decoration: none;
}

@keyframes logo-entry {
  from {
    transform: translateX(-40px);
    letter-spacing: 5px;
    opacity: 0;
  }

  to {
    transform: translateX(0);
    letter-spacing: 2px;
    opacity: 100%;
  }
}

@media screen and (max-width: 864px) {
  .logo {
    padding: 2px;
    position: absolute;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    margin-left: 5%;
  }
}

/* ---------------------- menu text ---------------------- */

nav ul {
  float: right;
  margin-right: 5%;
}

nav ul li {
  display: inline-block;
  float: left;
  padding: 10px 0 0 40px;
}

nav ul li a {
  color: var(--accent-color);
  text-decoration: none;
  text-transform: capitalize;
  font-size: 18px;
  letter-spacing: 1px;
  transition: all .3s ease;
  /* animation: menu-entry 1.2s cubic-bezier(.05, .7, .2, 1) forwards; */
}

@keyframes menu-entry {
  from {
    letter-spacing: 0.2em;
    opacity: 0;
    scale: 100%
  }

  to {
    letter-spacing: 1px;
    opacity: 100%;
    scale: 100%;
  }
}

nav ul li a:hover {
  color: var(--menu-hover-color);
}

/* ---------------------- hamburger menu ---------------------- */

@media screen and (max-width: 864px) {
  .nav-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    transform: translateX(100%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform .60s cubic-bezier(0.78, 0.18, 0.12, 1.02), opacity .30s ease .30s, visibility 0s linear .60s;
    display: flex;
    align-items: center;
    justify-content: right;
  }

  .nav-wrapper ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 30px;
  }

  .nav-wrapper ul li {
    overflow: hidden;
    line-height: 1.2;
    margin: 0.35rem 0;
    text-align: right;
    display: block;
    float: none !important;
    width: auto;
  }

  .nav-wrapper ul li:not(:first-child) {
    margin-left: 0;
  }

  .nav-wrapper ul li a {
    display: inline-block;
    transform: translateY(110%) translateX(16%) scaleY(.85) scaleX(.90);
    transform-origin: bottom right;
    opacity: 0;
    transition:
      transform .7s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      opacity .3s ease;
    will-change: transform, opacity;
  }

  .nav-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;

    /* animation: hamburger-entry 1s cubic-bezier(.05, .7, .2, 1) .2s both; */
  }

  .nav-btn i {
    display: block;
    position: absolute;
    opacity: 1;
    height: 2px;
    width: 24px;
    background: var(--accent-color);
    border-radius: 2px;
    left: 10px;

    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

  .nav-btn i:nth-child(1) {
    top: 16px;
    width: 24px;
  }

  .nav-btn i:nth-child(2) {
    top: 24px;
    width: 20px;
  }

  .nav-btn i:nth-child(3) {
    top: 32px;
    width: 24px;
  }

  #nav:checked+.nav-btn i:nth-child(1) {
    top: 24px;
    background: var(--cls-btn-color);
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  #nav:checked+.nav-btn i:nth-child(2) {
    opacity: 0;
    left: -60px;
    background: var(--keywords-hover-color);
  }

  #nav:checked+.nav-btn i:nth-child(3) {
    top: 24px;
    background: var(--cls-btn-color);
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }

  #nav:checked~.nav-wrapper {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition:
      transform .60s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      visibility 0s;
  }

  #nav:checked~.nav-wrapper {
    touch-action: none;
  }

  #nav:checked~.nav-wrapper {
    overscroll-behavior: contain;
  }

  #nav:checked~.nav-wrapper ul li a {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(1) a {
    transition-delay: .16s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(2) a {
    transition-delay: .20s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(3) a {
    transition-delay: .24s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(4) a {
    transition-delay: .28s;
  }

  #nav:not(:checked)~.nav-wrapper ul li a {
    transition:
      transform .50s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      opacity .25s ease;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(1) a {
    transition-delay: .14s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(2) a {
    transition-delay: .10s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(3) a {
    transition-delay: .06s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(4) a {
    transition-delay: .02s;
  }
}

@keyframes hamburger-entry {
  from {
    transform: translateX(20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---------------------- article title ---------------------- */

.article-title {
  margin-block: clamp(2rem, 0.8rem + 2vmin, 3rem);
}
@media (min-width: 865px) {
  .article-title {
    margin-block: clamp(3rem, 1rem + 3vmin, 6rem) 2rem ;
  }
}

h1 {
  color: #fff;
  font-size: 28px;
  font-weight: normal;
  text-align: center;
}

h2 {
  color: var(--text-lightGrey-color);
  font-size: 20px;
  font-weight: lighter;
  text-align: center;
}

p {
  color: var(--text-lightGrey-color);
  font-size: 18px;
  font-weight: 100;
  text-align: left;
  margin: 0 0 12px;
  font-size: 14px;
}

/* ---------------------- image gallery ---------------------- */

#gallery {
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
  position: relative;
}

#gallery img {
  width: 100%;
  margin-bottom: 30px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

@media screen and (max-width: 480px) {
  #gallery {
    width: 90%;
  }

  #gallery img {
    margin-bottom: 15px;
  }
}

.protect,
.protect img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  /* iOS long-press save */
}


/* ---------------------- footer area ---------------------- */

footer {
  background-color: var(--bg-color);
  margin-top: clamp(24px, 4vw, 56px);
  padding-top: 24px;
  padding-bottom: 12px;
  text-align: center;
}

footer .container-contact {
  width: min(1100px, 90%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

footer .copyright {
  margin: 0;
  color: var(--text-lightGrey-color, #bebebe);
  font-size: 14px;
  font-weight: 400;
  position: static;
  transform: none;
  height: auto;
}

footer .footer_icons {
  width: 100%;
}

footer .icon-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* Icon images */
footer .icon-list img.ig {
  width: 32px;
  height: 32px;
  display: block;
  float: none;
}

@media (hover: hover) and (pointer: fine) {
  footer .icon-list a img.ig {
    transition: filter 0.2s ease, transform 0.2s ease;
  }

  footer .icon-list a:hover img.ig {
    filter: brightness(1.4);
    /* 1.2–1.6 looks good */
    /* transform: translateY(-2px); */
    transform: scale(1.05);
  }
}

@media screen and (max-width: 432px) {
  .ig {
    width: 30px;
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 5px;
  }
}