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

html {
  font-family: "Montserrat", sans-serif;
  color: #090909;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  padding: 1.2rem;
}

@media (min-width: 1200px) {
  header {
    padding: 1.2rem 0;
  }
}

.logo {
  width: auto;
  height: 2rem;
}

.site-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

header a {
  font-size: 0.85rem;
  color: #090909;
  text-decoration: none;
  letter-spacing: 0;
  font-weight: 600;
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  gap: 1rem;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #090909;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.overlay.active {
  display: block;
}

@media (max-width: 549px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -70vw;
    width: 70vw;
    max-width: 280px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  nav ul li a {
    font-size: 1.1rem;
  }
}

/* MAIN */
.hero {
  background-image: url(images/article-image.png);
  padding: 1.5rem 1.2rem 1.5rem 1.2rem;
  min-height: 293px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.85) 0px -100px 100px -28px inset;
}

.hero .highlight {
  background: linear-gradient(90deg, #cbce9a 0%, #605ab0 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile {
  margin-bottom: 1.5rem;
}

.profile span {
  background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-post,
.about {
  padding: 1.2rem;
}

.about img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  border: 10px solid #0e7490;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

.hero h1,
.hero .date,
.hero p {
  color: white;
}

.hero-post h1,
.hero-post .date,
.hero-post p {
  color: #151515;
}

.date {
  font-size: 0.7rem;
}

.hero-post .article-image {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  margin: 1.5rem auto;
  border-radius: 0.2rem;
}

.hero-post h2,
.about h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem 0;
}

.p-margin {
  margin: 1rem 0;
}

.hero h1,
.hero-post h1,
.about h1 {
  font-size: 1.8rem;
  font-weight: 700;
  padding: 0.6rem 0;
}

.about h1 {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.5rem;
}

.hero p,
.hero-post p,
.blog p,
.about p,
.blogs a {
  font-size: 0.85rem;
  line-height: 1.5;
}

.blogs {
  padding: 1.5rem 1.2rem 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blogs,
.hero-post,
.hero-content,
header {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-content {
  padding: 0.6rem 1.5rem 1.5rem;
}

.blog {
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.blog.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog:hover {
  border-radius: 0.4rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.about,
.hero-post {
  max-width: 800px;
  margin: 0 auto;
}

.about a {
  text-decoration: underline;
}

.p-margin a {
  color: #090909;
  font-weight: 600;
}

.blogs a {
  text-decoration: none;
  color: #090909;
}

.blog-imgs {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.4rem 0.4rem 0 0;
  margin-bottom: 0.6rem;
}

.blog .date {
  font-size: 0.8rem;
}

.blog h2 {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.6rem 0;
}

.view-more,
.recent-post {
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.view-more {
  text-decoration: underline;
  margin-bottom: 2.8rem;
}

footer {
  background-color: #202020;
  padding: 2.8rem 0;
  text-align: center;
}

footer p,
.github {
  color: #ececec;
  font-size: 0.75rem;
}

.foot {
  font-weight: 600;
}

.copy {
  margin: 0.2rem 0;
}

.github {
  font-weight: normal;
  text-decoration: underline;
}

i {
  font-size: 0.9rem;
}

@media (min-width: 550px) {
  .blogs {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 767px) {
  .hero {
    min-height: 353px;
    padding: 0 2.2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  header a,
  .site-title {
    font-size: 1rem;
  }

  main {
    margin: 0 auto;
  }

  .profile {
    display: flex;
    align-items: center;
    gap: 4rem;
  }

  .about h1 {
    margin-top: 0;
    text-align: start;
  }

  .blogs {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1500px) {
  .hero {
    background-position: 0 71%;
  }

  .blogs {
    padding: 1.5rem 0 2.2rem;
  }
}
