@import url(melodrama.css);

:root {
  --primary-color: #1c1510;
  --secondary-color: #2e2218;
  --accent-color: #c4922a;
  --highlight-color: #e8d4a8;
  --text-color: #fdf8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*---------------------------Header H1---------------------------*/
header {
  z-index: 1002;
  background-color: var(--primary-color);
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  box-shadow: 0 5px 10px var(--secondary-color);
  transition: height 0.4s ease;
}
.header-intro {
  height: 160px;
}
.header-onscroll {
  height: 120px;
}
@keyframes shrink {
  from {
    height: 100vh;
  }
  to {
    height: 160px;
  }
}

.logo {
  font-size: clamp(2.5rem, 6vw, 4rem);
  transform: scale(1.5);
  transform-origin: left;
  color: var(--accent-color);
  letter-spacing: 1px;
  transition: transform 1s ease;
}
.logo.resize {
  transform: scale(1);
}

.logo a {
  text-decoration: none;
  color: var(--accent-color);
  display: flex;
}

.title-rest {
  width: 0;
  max-width: fit-content;
  overflow: hidden;
  transition: width 2.5s ease-out;
  animation: expand 2s cubic-bezier(0.25, -0.49, 0.32, 0.62) forwards;
}
@keyframes expand {
  from {
    width: 0;
  }
  to {
    width: 50%;
  }
}

/*--------------------------Navigation---------------------------*/
header nav ul {
  scroll-target-group: auto;
  list-style: none;
  display: flex;
  opacity: 0;
  pointer-events: none;
  gap: 2rem;
  font-size: 1.3rem;
  margin: 0;
  padding: 0;
  transition: opacity 0.5s ease 1s;
}
.ul-appear {
  opacity: 1;
  pointer-events: auto;
}

header nav ul li {
  display: flex;
  flex-direction: column;
}

/*-----------------------Navigation Links------------------------*/
header nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-family: "Nunito-Variable", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

header nav ul li a:hover,
a:target-current {
  color: var(--highlight-color);
}

/*-----------------------Underline Effect------------------------*/
.underline {
  width: 0;
  height: 2px;
  background-color: var(--highlight-color);
  transition: width 0.3s ease;
}

header nav ul li:hover .underline,
a:target-current + .underline {
  width: 100%;
}
