/* Task M052: Blog styling (minimal, class-based, no !important / no strong selectors) */
:root {
  --lp-brand: #5856D6;
  --lp-ink: #1a1a2e;
  --lp-muted: #8a8a99;
  --lp-line: #ececec;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--lp-ink);
  line-height: 1.7;
  background: #ffffff;
}

/* Brand accent bar (Task M028 brand color) */
.brandbar {
  height: 4px;
  background: linear-gradient(90deg, #5856D6 0%, #7B79E6 100%);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--lp-line);
}
.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  color: var(--lp-brand);
  text-decoration: none;
  font-size: 18px;
}
.site-nav-link {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 15px;
}
.site-nav-link:hover {
  color: var(--lp-brand);
}

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.article-title {
  font-size: 2rem;
  line-height: 1.22;
  margin: 0 0 10px;
}
.article-meta {
  color: var(--lp-muted);
  font-size: 0.9rem;
  margin: 0 0 30px;
}
.article-body {
  font-size: 1.05rem;
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
}
.article-body p {
  margin: 0 0 18px;
}
.article-body ul {
  margin: 0 0 18px;
  padding-left: 1.4em;
}
.article-body li {
  margin: 0 0 8px;
}
.article-body a {
  color: var(--lp-brand);
  text-decoration: none;
}
.article-body a:hover {
  text-decoration: underline;
}
.article-body blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--lp-brand);
  color: #44445a;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--lp-line);
  margin: 32px 0;
}
/* Keep the first table column (short row labels like "A colleague") on one
   line so the auto-layout gives it enough width and it doesn't wrap to
   "A" / "colleague". Only the label column is pinned; other columns wrap. */
.article-body td:first-child,
.article-body th:first-child {
  white-space: nowrap;
}
.cta {
  margin-top: 48px;
}
.cta-button {
  display: inline-block;
  background: var(--lp-brand);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.cta-button:hover {
  background: #4a48c4;
}

/* List */
.blog-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.blog-list-title {
  font-size: 1.8rem;
  margin: 0 0 24px;
}
.post-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  border-color: var(--lp-brand);
  box-shadow: 0 2px 14px rgba(88, 86, 214, 0.10);
}
.post-card-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--lp-ink);
}
.post-card-desc {
  margin: 0 0 8px;
  color: #555566;
}
.post-card-date {
  color: #9a9aa5;
  font-size: 0.85rem;
}
.blog-empty {
  color: var(--lp-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--lp-line);
  margin-top: 24px;
}
.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--lp-muted);
  font-size: 0.85rem;
}
.footer-nav a {
  color: var(--lp-muted);
  text-decoration: none;
  margin-left: 16px;
}
.footer-nav a:hover {
  color: var(--lp-brand);
}
