/* ===================== BLOG LISTING PAGE =====================
   Styles for the blog index (blog.html): featured post card,
   upcoming-posts grid, bottom CTA. Depends on style.css for base
   tokens, the .clay recipe, shared keyframes (spin, worksBlobDrift)
   and the .deco sparkle helper — load style.css first. */

.blogpage {
  position: relative;
  overflow: hidden;
  padding: clamp(9rem, 15vw, 11.5rem) clamp(1.4rem, 6vw, 5rem) clamp(6rem, 9vw, 8rem);
  background: #fbf2e3;
}

.blogpage__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.blogpage__blob {
  position: absolute;
  display: block;
  border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%;
  opacity: 0.55;
  animation: worksBlobDrift 17s ease-in-out infinite;
}

.blogpage__blob--1 { top: -8%; left: -9%; width: 26vw; height: 24vw; background: #c9ecd9; }
.blogpage__blob--2 { bottom: -10%; right: -8%; width: 24vw; height: 22vw; background: #f9b9d3; animation-duration: 21s; animation-delay: -5s; }
.blogpage__blob--3 { top: 42%; right: 3%; width: 14vw; height: 13vw; background: #ffe2a8; animation-duration: 15s; animation-delay: -9s; }

.blogpage__ring {
  position: absolute;
  top: -10vw;
  left: -8vw;
  width: 22vw;
  height: 22vw;
  border: 3px dashed rgba(238, 77, 31, 0.24);
  border-radius: 50%;
  animation: spin 40s linear infinite;
  pointer-events: none;
}

.blogpage__deco { position: absolute; inset: 0; pointer-events: none; }
.blogpage__spark--1 { top: 10%; right: 8%; color: #ee4d1f; }
.blogpage__spark--2 { top: 16%; left: 22%; color: #9b5bb5; animation-delay: 0.8s; }
.blogpage__spark--3 { bottom: 14%; right: 12%; color: #e8940e; animation-delay: 1.6s; }
.blogpage__spark--4 { bottom: 22%; left: 8%; color: #e85a9b; font-size: clamp(1.1rem, 2vw, 1.8rem); animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  .blogpage__blob,
  .blogpage__ring,
  .blogpage__spark--1,
  .blogpage__spark--2,
  .blogpage__spark--3,
  .blogpage__spark--4 { animation: none; }
}

.blogpage__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(3rem, 6vw, 4rem);
}

.blogpage__kicker {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  color: #b8541f;
  rotate: -3deg;
  margin-bottom: 0.2rem;
}

.blogpage__title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.02;
  color: #5a2d16;
}

.blogpage__lead {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6b5344;
}

/* ---------- featured post ---------- */

.blogpage__featured {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto clamp(2.4rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  align-items: stretch;
  background: #fffdf7;
  border-radius: 28px;
  border: 2px solid rgba(28, 28, 28, 0.06);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blogpage__featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(90, 45, 22, 0.14);
}

.blogpage__featured-cover {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 1.6rem;
  background: linear-gradient(150deg, #ee4d1f 0%, #9b5bb5 100%);
  overflow: hidden;
}

.blogpage__featured-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 12vw at 90% 10%, rgba(255, 255, 255, 0.16) 0 99%, transparent 100%),
    radial-gradient(circle 9vw at 6% 92%, rgba(255, 255, 255, 0.12) 0 99%, transparent 100%);
}

.blogpage__featured-word {
  position: relative;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.98;
  color: rgba(255, 253, 247, 0.94);
  letter-spacing: 0.01em;
}

.blogpage__featured-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  color: #b8541f;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blogpage__featured-body {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem) clamp(1.8rem, 3vw, 2.4rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.blogpage__card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4em 1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  color: #fff8ef;
  box-shadow: 0 10px 20px var(--clay-glow);
}

.blogpage__featured-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  color: #5a2d16;
}

.blogpage__featured-excerpt {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #6b5344;
}

.blogpage__card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #a06848;
}

.blogpage__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: #ee4d1f;
}

.blogpage__card-link svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.blogpage__featured:hover .blogpage__card-link svg { transform: translateX(4px); }

/* ---------- grid: upcoming posts ---------- */

.blogpage__grid-head {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto 1.2rem;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  color: #9b5bb5;
  rotate: -2deg;
}

.blogpage__grid {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.blogpage__card {
  position: relative;
  background: #fffdf7;
  border: 2px dashed rgba(28, 28, 28, 0.12);
  border-radius: 24px;
  padding: clamp(1.4rem, 2.4vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0.78;
}

.blogpage__card-soon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.06);
  color: #6b5344;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blogpage__card-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #5a2d16;
  padding-right: 5.5rem;
}

.blogpage__card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b5344;
}

/* ---------- bottom CTA ---------- */

.blogpage__cta {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.8rem, 4vw, 2.8rem);
  background: #1c1c1c;
  border-radius: 26px;
}

.blogpage__cta-text {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.2;
  color: #fffdf7;
}

.blogpage__cta-text span { color: #ee4d1f; }

.blogpage__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: #ee4d1f;
  color: #fff8ef;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s ease, background 0.3s ease;
}

.blogpage__cta-link:hover { background: #d8420f; transform: translateY(-2px); }
.blogpage__cta-link svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .blogpage__featured { grid-template-columns: 1fr; }
  .blogpage__featured-cover { min-height: 160px; }
  .blogpage__featured-body { padding: 0 clamp(1.4rem, 4vw, 1.8rem) clamp(1.6rem, 4vw, 2rem); }
}
