/* =============================================================================
   Blog listing. Loaded only on /blog — shared tokens live in site.css.
   ========================================================================== */

.blog { color: var(--ink); background: var(--bg); overflow-x: hidden; }
.blog section { padding-left: 32px; padding-right: 32px; }
.blog .inner { max-width: 1180px; margin: 0 auto; }

/* ------------------------------------------------------------------ hero -- */
.blog-hero { padding: 88px 32px 44px; text-align: center; }
.blog-hero__body { max-width: 780px; margin: 0 auto; }
.blog-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.blog-hero__rule { width: 26px; height: 2px; background: #05a558; }
.blog-hero__kicker {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #05a558; font-weight: 600;
}
.blog-hero h1 {
  margin: 0; font-size: 58px; line-height: 1.04; letter-spacing: -.04em;
  font-weight: 700; color: var(--ink);
}
.blog-hero__lede {
  max-width: 560px; margin: 22px auto 0; font-size: 19px; line-height: 1.55;
  color: #565a4f;
}

.blog-cats {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 9px; margin-top: 30px;
}
.blog-cat {
  font-size: 13.5px; font-weight: 500; color: #3d4136; background: #fff;
  border: 1px solid rgba(20, 22, 15, .1); border-radius: 100px; padding: 8px 16px;
  text-decoration: none; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.blog-cat:hover { color: #05130c; border-color: rgba(20, 22, 15, .28); }
.blog-cat--active {
  font-weight: 600; color: #05130c; background: var(--accent); border-color: transparent;
}

/* -------------------------------------------------------------- featured -- */
.blog-featured { padding: 12px 32px 40px; }
.feature-card {
  text-decoration: none; color: inherit; display: flex; gap: 0;
  background: #fff; border: 1px solid rgba(20, 22, 15, .09); border-radius: 20px;
  overflow: hidden; box-shadow: 0 28px 56px -34px rgba(18, 40, 28, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: 0 34px 60px -30px rgba(18, 40, 28, .34);
}
.feature-card__thumb {
  width: 52%; flex: none; position: relative; min-height: 340px; overflow: hidden;
}
.feature-card__glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 214, 119, .28), transparent 62%);
  top: -80px; right: -60px;
}
.feature-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card__mascot { position: absolute; left: 34px; bottom: 30px; }
.feature-card__mascot img { width: 120px; display: block; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .5)); }
.feature-card__badge {
  position: absolute; top: 22px; left: 22px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--accent); color: #05130c; padding: 6px 13px; border-radius: 100px;
}
.feature-card__body {
  flex: 1; padding: 44px; display: flex; flex-direction: column; justify-content: center;
}
.feature-card__meta { font-size: 12.5px; color: #8b8f82; }
.feature-card__body h2 {
  margin: 12px 0 0; font-size: 32px; line-height: 1.18; letter-spacing: -.02em;
  font-weight: 700; color: var(--ink);
}
.feature-card__excerpt { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #565a4f; }
.feature-card__more { font-size: 15px; font-weight: 600; color: #05a558; margin-top: 22px; }

/* ------------------------------------------------------------------ grid -- */
.blog-grid { padding: 20px 32px 84px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  text-decoration: none; color: inherit; display: block; overflow: hidden;
  background: #fff; border: 1px solid rgba(20, 22, 15, .09); border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover {
  transform: translateY(-3px); box-shadow: 0 24px 46px -26px rgba(18, 40, 28, .32);
}
.post-cover { aspect-ratio: 16 / 10; position: relative; }
.post-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700;
  background: rgba(0, 214, 119, .16); color: var(--accent); padding: 5px 11px; border-radius: 100px;
}
.post-card__body { padding: 22px; }
.post-card__meta { font-size: 12px; color: #8b8f82; }
.post-card__title { font-size: 19px; font-weight: 700; margin-top: 8px; line-height: 1.25; }
.post-card__excerpt { font-size: 14px; color: #6b6f63; margin-top: 8px; line-height: 1.5; }

/* cover gradients (mirror the prototype's category map) */
.post-cover--default,   .feature-card__thumb--default   { background: linear-gradient(135deg, #2f2440, #141a2b); }
.post-cover--release,   .feature-card__thumb--release   { background: linear-gradient(135deg, #0f1210, #14201a); }
.post-cover--technique, .feature-card__thumb--technique { background: linear-gradient(135deg, #22321f, #12211a); }
.post-cover--tutorial,  .feature-card__thumb--tutorial  { background: linear-gradient(135deg, #1c3550, #3f5a3e); }
.post-cover--news,      .feature-card__thumb--news      { background: linear-gradient(135deg, #14201a, #0f1210); }
.post-cover--studio,    .feature-card__thumb--studio    { background: linear-gradient(135deg, #243a2b, #12211a); }

/* --------------------------------------------------------------- empty -- */
.blog-empty { text-align: center; padding: 60px 0 40px; }
.blog-empty h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.blog-empty p { margin: 12px 0 0; font-size: 16px; color: #6b6f63; }

/* -------------------------------------------------------------- pager -- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 48px; flex-wrap: wrap;
}
.pager__link {
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 20px;
}
.pager__link--prev, .pager__link--next { transition: border-color .16s ease, color .16s ease; }
.pager__link--prev:hover, .pager__link--next:hover { border-color: var(--accent); color: #05a558; }
.pager__link--off { color: var(--muted); background: #f6f8fb; cursor: default; }
.pager__status { font-size: 13.5px; font-weight: 600; color: #8b8f82; }

/* ---------------------------------------------------------- newsletter -- */
.newsletter { padding: 20px 32px 100px; }
.newsletter__box {
  max-width: 1180px; margin: 0 auto;
  background: linear-gradient(120deg, #0f1210, #14201a);
  border-radius: 22px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.newsletter__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 214, 119, .2), transparent 62%);
  top: -200px; right: -120px;
}
.newsletter__text { position: relative; z-index: 2; max-width: 520px; }
.newsletter__text h2 {
  margin: 0 0 12px; font-size: 34px; line-height: 1.1; letter-spacing: -.03em;
  font-weight: 700; color: #f4f6f2;
}
.newsletter__text p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--foot-ink); }
.newsletter__form { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__input {
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  color: #f4f6f2; font-family: inherit; font-size: 15px; padding: 14px 18px;
  border-radius: 12px; min-width: 240px; outline: none;
}
.newsletter__input::placeholder { color: rgba(244, 246, 242, .5); }
.newsletter__input:focus { border-color: var(--accent); }
.newsletter__btn {
  border: none; cursor: pointer; background: var(--accent); color: #05130c;
  font-family: inherit; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: 12px;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .feature-card { flex-direction: column; }
  .feature-card__thumb { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog section { padding-left: 20px; padding-right: 20px; }
  .blog-hero { padding-top: 56px; }
  .blog-hero h1 { font-size: 42px; }
  .post-grid { grid-template-columns: 1fr; }
  .feature-card__body { padding: 30px 24px; }
  .newsletter__box { padding: 32px 24px; }
}
