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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #FFE135 0%, #FFC837 100%);
  background-attachment: fixed;
  color: #2d1b00;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(139, 69, 19, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 69, 19, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  animation: gridMove 60s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

header {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d1b00;
}

.logo:hover {
  text-decoration: none;
  color: #2d1b00;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background-image: url('https://avatars.githubusercontent.com/u/186647350?v=4');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

a {
  color: #8B4513;
  text-decoration: none;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover {
  color: #5d2e0a;
  text-decoration: underline;
  text-decoration-color: rgba(139, 69, 19, 0.6);
}

main {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-intro {
  color: rgba(45, 27, 0, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Blog index cards */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.post-card {
  display: block;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  color: inherit;
}

.post-card:hover {
  border-color: rgba(139, 69, 19, 0.6);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
  text-decoration: none;
  color: inherit;
}

.post-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.post-card .post-meta {
  margin-bottom: 0.75rem;
}

.post-card p {
  color: rgba(45, 27, 0, 0.7);
  line-height: 1.6;
}

.post-meta {
  color: rgba(45, 27, 0, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Article pages */

article {
  padding: 2.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

article .post-meta {
  display: block;
  margin-bottom: 1rem;
}

article h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
}

article p {
  line-height: 1.7;
  margin-bottom: 1.1rem;
  color: rgba(45, 27, 0, 0.85);
}

article ul {
  margin: 0 0 1.1rem 1.4rem;
}

article li {
  line-height: 1.7;
  margin-bottom: 0.4rem;
  color: rgba(45, 27, 0, 0.85);
}

article a {
  font-weight: 600;
}

.post-cta {
  background: #8B4513;
  color: #FFE135;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  line-height: 1;
}

.post-cta:hover {
  background: #5d2e0a;
  color: #FFE135;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}

footer {
  position: relative;
  z-index: 10;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(139, 69, 19, 0.15);
  color: rgba(45, 27, 0, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  article {
    padding: 1.75rem 1.25rem;
  }
}
