/* =============================================================
   Playwithspect — Education hub styles
   Reuses the Works design system (tokens, cards, hero, top bar) and
   adds course/blog-specific pieces. @import keeps it DRY; the font
   path inside work.css resolves relative to work.css, so it stays valid.
   ============================================================= */
@import url("../../work/css/work.css");

/* Status badge on a course card (Live / Upcoming) */
.badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 8px;
}
.badge--live { background: #3dff7a; }
.badge--soon { background: #fff; color: var(--muted); }

/* Course cards are real links — keep them feeling like the work cards */
a.card { text-decoration: none; }
a.card[aria-disabled="true"] { cursor: default; opacity: 0.92; }
a.card[aria-disabled="true"]:hover { transform: none; box-shadow: var(--shadow-hard); }

/* Section heading */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px clamp(16px, 5vw, 48px);
}
.section__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 40px 0 6px;
}
.section__sub { color: var(--muted); margin-bottom: 24px; max-width: 640px; }

/* Blog list */
.posts { display: grid; gap: 16px; padding-bottom: 120px; }
.post-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  text-decoration: none;
  padding: 20px 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-link:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.post-link__date { font-weight: 700; font-size: 0.82rem; color: var(--accent); filter: brightness(0.7); }
.post-link__title { font-family: var(--display); font-size: 1.5rem; width: 100%; }
.post-link__excerpt { color: var(--muted); width: 100%; line-height: 1.5; }
.post-link__tag {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 9px; border: 2px solid var(--ink); border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, #fff);
}

/* ---------- Blog article (post pages) ---------- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 32px) 120px;
}
.article__eyebrow { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.article__title { font-family: var(--display); font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; margin: 8px 0 12px; }
.article__meta { color: var(--muted); font-weight: 700; margin-bottom: 30px; }
.article__body { font-size: 1.08rem; line-height: 1.8; }
.article__body h2 { font-family: var(--display); font-size: 1.7rem; margin: 34px 0 10px; }
.article__body h3 { font-size: 1.25rem; margin: 24px 0 8px; }
.article__body p { margin-bottom: 18px; }
.article__body ul, .article__body ol { margin: 0 0 18px 22px; }
.article__body li { margin-bottom: 8px; }
.article__body strong { background: color-mix(in srgb, var(--accent) 35%, #fff); padding: 0 3px; }
.article__body a { text-decoration-color: var(--accent); }
.article__cta {
  display: inline-block;
  margin-top: 30px;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--pws-cyan);   /* pops against the yellow page */
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article__cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
