/* =====================================================================
   Wisdom Ehirim — Blogs page styles
   Depends on shared.css being loaded first.
   ===================================================================== */

.wrap {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 0 40px;
}

/* ===================== PAGE HEADER ===================== */
header.page-head { padding: 100px 0 50px; }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--ink); }

h1.title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92; letter-spacing: -0.035em;
  margin: 0 0 22px;
}
h1.title em { font-style: italic; font-weight: 500; color: var(--a2); }

.lede {
  font-family: var(--display); font-size: 20px; line-height: 1.5;
  max-width: 620px; color: #2a2a27; margin: 0 0 36px;
}

/* ===================== FILTER CHIPS ===================== */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 18px 0;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  margin-bottom: 40px;
  align-items: center;
}
.filters .label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-right: 8px; flex-shrink: 0;
}
.filters .chip {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border: 2px solid var(--ink); border-radius: 999px;
  cursor: pointer; background: var(--paper);
  transition: all 0.15s ease; white-space: nowrap;
}
.filters .chip:hover { background: var(--a3); }
.filters .chip.on    { background: var(--ink); color: var(--paper); }
.filters .count {
  margin-left: auto;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
}

/* ===================== FEATURED POST ===================== */
.featured {
  margin-bottom: 56px; padding: 36px 20px;
  border-bottom: 2.5px solid var(--ink);
  display: grid; grid-template-columns: 160px 1fr auto;
  gap: 40px; align-items: start;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-left: -20px; margin-right: -20px;
  border-radius: 8px;
  text-decoration: none; color: inherit;
}
.featured:hover { background: color-mix(in oklch, var(--a3), white 78%); }

.featured .mark {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  background: var(--a1); color: var(--paper);
  padding: 6px 10px; border-radius: 4px;
  display: inline-block;
}
.featured .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; margin-top: 10px;
}
.featured h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 14px;
}
.featured p {
  font-family: var(--display); font-size: 17px;
  line-height: 1.5; color: #2a2a27; margin: 0; max-width: 640px;
}
.featured .arrow {
  font-family: var(--mono); font-size: 22px;
  width: 54px; height: 54px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); transition: all 0.15s ease;
}
.featured:hover .arrow {
  background: var(--a1); color: var(--paper);
  transform: translate(2px,-2px); box-shadow: var(--shadow-sm);
}

/* ===================== POST LIST ===================== */
.posts { display: grid; gap: 0; }
.post {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 32px; padding: 32px 20px;
  border-bottom: 1.5px solid rgba(10,10,10,0.15);
  align-items: start; cursor: pointer;
  margin-left: -20px; margin-right: -20px;
  transition: background 0.2s ease, padding-left 0.2s ease;
  text-decoration: none; color: inherit;
}
.post:hover { background: color-mix(in oklch, var(--a3), white 82%); padding-left: 28px; }

.post .date {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.08em; padding-top: 4px;
}
.post .main h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 10px;
}
.post .main p {
  font-family: var(--display); font-size: 15px;
  line-height: 1.5; color: #2a2a27; margin: 0 0 12px; max-width: 620px;
}
.post .main .tagline { display: flex; gap: 6px; flex-wrap: wrap; }
.post .main .t {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 4px;
}
.post .rt {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  padding-top: 4px; text-align: right; min-width: 80px;
}

/* ===================== SKELETON LOADERS ===================== */
.featured-skeleton {
  margin-bottom: 56px; padding: 36px 0;
  border-bottom: 2.5px solid var(--ink);
  display: flex; gap: 40px;
}
.skel-block {
  background: linear-gradient(90deg, #ece9e3 25%, #e2dfd9 50%, #ece9e3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
.post-skeleton {
  display: grid; grid-template-columns: 120px 1fr 80px;
  gap: 32px; padding: 32px 0;
  border-bottom: 1.5px solid rgba(10,10,10,0.15);
  align-items: start;
}

/* ===================== SUBSCRIBE ===================== */
.subscribe {
  margin: 80px 0 60px; padding: 40px 36px;
  background: var(--a2); color: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.subscribe h3 {
  font-family: var(--display); font-weight: 800;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px;
}
.subscribe p { font-family: var(--mono); font-size: 13px; opacity: 0.9; margin: 0; max-width: 440px; }
.subscribe form { display: flex; gap: 0; }
.subscribe input {
  font-family: var(--mono); font-size: 13px;
  padding: 14px 16px;
  border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 10px 0 0 10px; min-width: 200px; outline: none;
}
.subscribe button {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 14px 18px;
  background: var(--a1); color: var(--paper);
  border: 2.5px solid var(--ink); border-left: none;
  border-radius: 0 10px 10px 0; cursor: pointer;
}
.subscribe button:hover { background: var(--ink); }

/* ===================== FOOTER ===================== */
footer {
  padding: 40px 0 50px;
  border-top: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}

/* ===================== EMPTY / ERROR STATE ===================== */
.state-msg {
  padding: 60px 0;
  font-family: var(--mono); font-size: 14px;
  color: var(--muted); line-height: 1.7;
}
.state-msg a { color: var(--a2); }

/* =====================================================================
   RESPONSIVE
   Strategy: the featured and list items keep their columns at every
   size — just scale fonts/spacing rather than collapsing to 1 col.
   ===================================================================== */

/* ---- Tablet (≤ 800px) ---- */
@media (max-width: 800px) {
  .wrap { padding: 0 20px; }

  header.page-head { padding: 72px 0 36px; }
  h1.title { font-size: clamp(42px, 9vw, 80px); }
  .lede { font-size: 17px; margin-bottom: 28px; }

  /* featured: drop the left meta column, keep content + arrow */
  .featured { grid-template-columns: 1fr auto; gap: 24px; padding: 28px 16px; }
  .featured > div:first-child { display: flex; gap: 12px; align-items: center; }
  .featured h2 { font-size: clamp(26px, 4.5vw, 40px); }
  .featured p  { font-size: 15px; }

  /* posts: tighter 3-col */
  .post { grid-template-columns: 90px 1fr 64px; gap: 20px; padding: 24px 14px; }
  .post .main h3 { font-size: 20px; }
  .post .main p  { font-size: 14px; }
  .post .rt { min-width: 64px; }
  .post-skeleton { grid-template-columns: 90px 1fr 64px; gap: 20px; }

  /* subscribe */
  .subscribe { padding: 28px 24px; gap: 28px; }
  .subscribe h3 { font-size: 24px; }
  .subscribe input { min-width: 160px; }

  footer { flex-wrap: wrap; gap: 12px; }
}

/* ---- Mobile (≤ 560px) ---- */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }

  header.page-head { padding: 56px 0 28px; }
  h1.title { font-size: clamp(34px, 9.5vw, 56px); }
  .lede { font-size: 14px; margin-bottom: 20px; }

  /* filter chips: horizontal scroll so they don't wrap into chaos */
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    padding: 14px 0; margin-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters .label  { display: none; }
  .filters .count  { display: none; }
  .filters .chip   { flex-shrink: 0; font-size: 11px; padding: 5px 10px; }

  /* featured: 2 rows (meta | content), no arrow */
  .featured { grid-template-columns: 1fr; gap: 12px; padding: 20px 12px; margin-left: -12px; margin-right: -12px; }
  .featured > div:first-child { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .featured .arrow { display: none; }
  .featured h2 { font-size: clamp(22px, 5.5vw, 32px); }
  .featured p  { font-size: 14px; }

  /* posts: date + content side by side (drop the read-time column) */
  .post { grid-template-columns: 72px 1fr; gap: 12px; padding: 18px 10px; margin-left: -10px; margin-right: -10px; }
  .post .rt { display: none; }
  .post .main h3 { font-size: 17px; margin-bottom: 6px; }
  .post .main p  { font-size: 13px; margin-bottom: 8px; }
  .post .main .t { font-size: 9px; padding: 2px 6px; }
  .post-skeleton { grid-template-columns: 72px 1fr; gap: 12px; }
  .post-skeleton > div:last-child { display: none; }

  /* featured skeleton */
  .featured-skeleton { gap: 16px; padding: 20px 0; flex-wrap: wrap; }

  /* subscribe: stack */
  .subscribe { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .subscribe h3 { font-size: 22px; }
  .subscribe p  { font-size: 12px; }
  .subscribe input  { min-width: 0; border-radius: 10px 10px 0 0; }
  .subscribe button { border-radius: 0 0 10px 10px; border: 2.5px solid var(--ink); border-top: none; }
  .subscribe form { flex-direction: column; }

  footer { flex-direction: column; gap: 10px; text-align: center; padding: 28px 0 36px; }
}
