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

html {
  min-height: 100vh;
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2rem);
  margin: 2rem 2rem 0 2rem;
  padding: 2rem;
  border-radius: 8px 8px 0 0;
  color: var(--text-secondary);
  font-family: var(--font-main);
  line-height: 1.6;
  background-color: var(--bg-secondary);
}

header {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
}

.github-icon a {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.github-icon a:hover {
  transform: scale(1.1);
}

.github-icon a:focus {
  border-radius: 50%;
  outline: 2px solid var(--color-details);
  outline-offset: 4px;
}

.author {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
}

.author h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 400;
  animation: fadeInUp 0.8s ease forwards;
}

.author p {
  color: var(--text-primary);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  color: var(--text-primary);
  background: none;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--color-details);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -10px);
  }

  60% {
    transform: translate(-50%, -5px);
  }
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.filter-label {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.filter-btn {
  padding: 4px 12px;
  border: 1px solid var(--text-primary);
  border-radius: 4px;
  color: var(--text-tertiary);
  font-family: var(--font-main);
  font-size: 0.75rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--color-details);
  border-color: var(--color-details);
}

.content-section {
  flex-grow: 1;
  max-width: 900px;
  margin: 0 auto 64px auto;
  padding: 2rem;
}

.post-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  transition: transform 0.3s ease, opacity 0.4s ease;
}

.post-item.hidden {
  display: none;
}

.post-item:hover {
  transform: translateX(4px);
}

.post-date {
  padding-top: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.post-content h2 {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 500;
}

.post-content a {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
}

.post-content a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-details);
  content: '';
  transition: width 0.3s ease;
}

.post-content a:hover::after {
  width: 100%;
}

.tag-blue {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 1rem;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  background: var(--color-tag-blue);
}

.post-description {
  max-width: 600px;
  color: var(--text-tertiary);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  line-height: 1.8;
}

footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 768px) {

  body {
    margin: 0.75rem;
    padding: 1rem;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .author {
    height: 80vh;
  }
}