/* ============================================================
   ANOU BLOG — index (bl-) + post (bp-)
   2026 refresh; tokens in anou-tokens.css (loaded via base.html)
   ============================================================ */

/* ---------- Blog index ---------- */

.bl-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 40px 64px 40px;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.bl-eyebrow {
  margin: 0 0 12px 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--anou-blue);
}

.bl-title {
  margin: 0 0 24px 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink);
}

.bl-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.bl-categories a {
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-body);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
}

.bl-categories a:hover {
  background: var(--anou-blue-panel);
  color: var(--ink-body);
}

.bl-categories a.active,
.bl-categories a.active:hover {
  background: var(--anou-blue);
  border-color: var(--anou-blue);
  color: #fff;
}

/* Latest post */

.bl-latest {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.bl-latest-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.bl-latest-meta {
  margin: 18px 0 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.bl-latest-title {
  margin: 6px 0 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  transition: color .15s;
}

.bl-latest:hover .bl-latest-title {
  color: var(--anou-blue);
}

.bl-latest-excerpt {
  margin: 10px 0 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
}

.bl-readmore {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--anou-blue);
  font-family: var(--font-ui);
  letter-spacing: .5px;
}

/* More stories rows */

.bl-more-label {
  margin: 32px 0 4px 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}

.bl-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.bl-row-image,
.bl-row-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.bl-row-placeholder {
  background: var(--anou-blue-panel);
}

.bl-row-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.bl-row-title {
  margin: 5px 0 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  transition: color .15s;
}

.bl-row:hover .bl-row-title {
  color: var(--anou-blue);
}

.bl-row-excerpt {
  margin: 8px 0 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.bl-row .bl-readmore {
  margin-top: 8px;
}

/* Pagination */

.bl-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.bl-pagination a,
.bl-pagination span {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 13px;
  text-decoration: none;
}

.bl-pagination a {
  border: 1px solid var(--border);
  color: var(--ink-body);
}

.bl-pagination a:hover {
  background: var(--anou-blue-panel);
  color: var(--ink-body);
}

.bl-pagination a.bl-page-wide,
.bl-pagination span.bl-page-wide {
  padding: 0 14px;
}

.bl-pagination span.current {
  background: var(--anou-blue);
  color: #fff;
  font-family: var(--font-ui);
}

/* ---------- Blog post ---------- */

.bp-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 64px 40px;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.bp-back {
  font-size: 13px;
  color: var(--anou-blue);
  text-decoration: none;
  font-family: var(--font-ui);
  letter-spacing: .5px;
}

.bp-back:hover {
  color: var(--anou-blue-dark);
}

.bp-meta {
  margin: 24px 0 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.bp-meta a {
  color: var(--ink-faint);
  text-decoration: none;
}

.bp-meta a:hover {
  color: var(--anou-blue);
}

.bp-title {
  margin: 8px 0 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
}

.bp-featured {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  margin-top: 24px;
}

/* Post body typography (CMS/WordPress markup lands here) */

.bp-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

.bp-body p {
  margin: 20px 0 0 0;
}

.bp-body h2,
.bp-body h3,
.bp-body h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--ink);
  margin: 32px 0 0 0;
}

.bp-body h2 { font-size: 22px; }
.bp-body h3 { font-size: 19px; }
.bp-body h4 { font-size: 17px; }

.bp-body a {
  color: var(--anou-blue);
}

.bp-body img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 24px 0 0 0;
}

.bp-body figure {
  margin: 24px 0 0 0;
}

.bp-body figure img {
  margin: 0;
}

.bp-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.bp-body blockquote {
  border-left: 3px solid var(--anou-blue);
  margin: 24px 0 0 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-muted);
}

.bp-body ul,
.bp-body ol {
  margin: 20px 0 0 0;
  padding-left: 24px;
}

.bp-body li {
  margin-bottom: 6px;
}

/* End-of-post CTA panel */

.bp-cta {
  background: var(--anou-blue-panel);
  padding: 22px 24px;
  margin-top: 36px;
}

.bp-cta-eyebrow {
  margin: 0 0 6px 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}

.bp-cta-text {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-body);
}

.bp-cta-button {
  display: inline-flex;
  background: var(--anou-blue);
  color: #fff;
  height: 44px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 24px;
  text-decoration: none;
}

.bp-cta-button:hover {
  background: var(--anou-blue-dark);
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .bl-container,
  .bp-container {
    padding: 32px 20px 48px 20px;
  }
}

@media (max-width: 640px) {
  .bl-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bl-title {
    font-size: 30px;
  }
  .bp-title {
    font-size: 27px;
  }
}
