/* ==========================================================================
   Digihack — blog archive template
   Shared by the blog list and category archives: hero, category chips,
   post cards. (WordPress: home.php / category.php.)
   ========================================================================== */


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font: 600 16px/1 "Poppins",sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.crumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.crumb b {
  color: var(--ink);
  font-weight: 500;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width:640px) {
  .sec {
    padding: 3.5rem 0;
  }

  .ctas .btn {
    flex: 1 1 0;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
  }
}

.page-hero {
  background: linear-gradient(180deg,var(--tint) 0%,#fff 100%);
  padding: 2.5rem 0 4.5rem;
}

.ph-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ph-copy h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ph-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

@media (max-width:640px) {
  .page-hero {
    padding: 1.25rem 0 3rem;
  }

  .ph-copy h1 {
    font-size: 32px;
  }
}

.help-band {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
  background: var(--dark);
  border-radius: 24px;
  padding: 48px;
  color: var(--on-dark);
}

.help-band h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.help-band p {
  color: var(--on-dark-muted);
  font-size: 17px;
  margin-top: 10px;
}

.help-band .ctas {
  justify-content: flex-end;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cats a {
  font: 500 14px/1 "Poppins",sans-serif;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.cats a.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.bf {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.bf:hover {
  border-color: var(--accent);
  color: var(--text);
}

.bf-img {
  min-height: 380px;
}

.bf-img img,
.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bf-copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.bf-copy h2 {
  font-size: 32px;
  font-weight: 700;
}

.bf-copy p {
  color: var(--muted);
  font-size: 17px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--muted);
}

.more {
  font: 600 15px/1 "Poppins",sans-serif;
  color: var(--accent);
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-top: 24px;
}

.bc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.bc:hover {
  border-color: var(--accent);
  color: var(--text);
}

.bc:hover h3 {
  color: var(--accent);
}

.bc-img {
  aspect-ratio: 16/10;
  background: #f3eee9;
  position: relative;
  overflow: hidden;
}

.bc-img img {
  position: absolute;
  inset: 0;
}

.bc-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bc h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.bc p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.bc-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 14px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg,#faf7f5 0 12px,#f6f1ed 12px 24px);
}

.idea {
  border-style: dashed;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pager a {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font: 600 15px/1 "Poppins",sans-serif;
  padding: 0 12px;
}

.pager a.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

@media (max-width:1024px) {
  .help-band {
    grid-template-columns: minmax(0,1fr);
  }

  .help-band .ctas {
    justify-content: flex-start;
  }

  .bf {
    grid-template-columns: minmax(0,1fr);
  }

  .bg-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .help-band {
    padding: 26px 22px;
  }

  .help-band h2 {
    font-size: 24px;
  }

  .bf-img {
    min-height: 220px;
  }

  .bf-copy {
    padding: 22px;
  }

  .bf-copy h2 {
    font-size: 24px;
  }

  .bg-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.page-hero {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}

.page-hero>.wrap {
  width: 100%;
}

@media (max-width:640px) {
  .page-hero {
    min-height: 480px;
    padding: 1.5rem 0 3rem;
    justify-content: flex-start;
  }
}

/* Category chips are links */
.cats a {
  text-decoration: none;
}

.cats a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cats a.on:hover {
  color: #fff;
}

/* Phones: section headings fill the width (stack_pass.py) */
@media (max-width: 640px) {
  .sec-head {
    max-width: none;
  }

  h2,
  .h2 {
    text-wrap: pretty;
  }

  .h2,
  .cta h2,
  .cx-info h2,
  .sg-head h2,
  .cb-copy h2 {
    font-size: 23px;
    line-height: 1.25;
  }

  .sec-head .lead {
    font-size: 16px;
  }
}
