/* Articles (/blog) and feature pages (/features) on top of doc.css. ORIVA brandbook: warm white, green for actions,
   lime only as decoration, graphite type, mint; Manrope. Editorial grid: text column 68–72ch, line-height 1.7. */

.blog { --bg: #f7f7f2; --text: #171b1a; --muted: #5f6662; --line: #e6e8e1; --line-strong: #d3d7cf; --surface: #ffffff; --surface-2: #f0f2ec;
  --accent: #087f5b; --on-accent: #ffffff; --accent-text: #087f5b; --accent-soft: #ddf2e6; --ink: #171b1a; --on-ink: #f7f7f2; --ink-muted: #b4bbb7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blog {
  --bg: #111413; --text: #f1f3ef; --muted: #a9b0ac; --line: #242a28; --line-strong: #343b38; --surface: #181c1b; --surface-2: #202524;
  --accent: #c4f26a; --on-accent: #171b1a; --accent-text: #c4f26a; --accent-soft: #1f2a18; --ink: #1b201f; --on-ink: #f1f3ef; --ink-muted: #a9b0ac; } }
:root[data-theme="dark"] .blog {
  --bg: #111413; --text: #f1f3ef; --muted: #a9b0ac; --line: #242a28; --line-strong: #343b38; --surface: #181c1b; --surface-2: #202524;
  --accent: #c4f26a; --on-accent: #171b1a; --accent-text: #c4f26a; --accent-soft: #1f2a18; --ink: #1b201f; --on-ink: #f1f3ef; --ink-muted: #a9b0ac; }

.bl-nav { display: flex; gap: 4px; margin-left: 12px; }
.bl-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; }
.bl-nav a:hover { color: var(--text); background: var(--surface-2); }

/* list pages */
.bl-wrap { max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 80px; outline: none; }
.bl-h1 { font: 800 clamp(34px, 5vw, 54px)/1.05 var(--font); letter-spacing: -.025em; margin: 0 0 14px; }
.bl-lead { max-width: 62ch; color: var(--muted); }
.bl-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.bl-card { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: transform 200ms var(--ease), border-color 200ms; }
.bl-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.bl-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bl-card-ph { display: block; aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.bl-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card-blank { display: block; height: 100%; background: radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--brand-lime) 55%, transparent) 0 18%, transparent 19%),
  linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.bl-card-t { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; }
.bl-card-t b { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.bl-card-t span { color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card-t small { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.bl-empty { margin: 32px 0; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }

/* article */
.bl-art-wrap { grid-template-columns: minmax(0, 72ch) 220px; }
.blog .doc-main h1 { font: 800 clamp(32px, 4.4vw, 48px)/1.1 var(--font); letter-spacing: -.02em; }
.blog .doc-body h2 { font: 800 clamp(24px, 2.6vw, 30px)/1.2 var(--font); letter-spacing: -.015em; }
.blog .doc-body h3 { font-weight: 800; }
.bl-cover { margin: 0 0 32px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.bl-cover-img { display: block; width: 100%; height: auto; }
.blog .doc-body figure { margin: 28px 0; }
.blog .doc-body figure img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface-2); }
.blog .doc-body figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.blog .doc-body blockquote { margin: 22px 0; padding: 16px 20px; border-radius: 14px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.blog .doc-body blockquote p:last-child { margin-bottom: 0; }
.blog .doc-body hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.blog .doc-body strong { font-weight: 800; }
.bl-tags { margin: 28px 0 0; }
.bl-preview { position: sticky; top: 0; z-index: 70; margin: 0; padding: 10px 16px; text-align: center; font-weight: 700; background: var(--brand-lime); color: #171b1a; }

/* call to action: graphite band, lime mark */
.bl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin: 48px 0 0; padding: 28px clamp(20px, 3vw, 36px);
  border-radius: 20px; background: var(--ink); color: var(--on-ink); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bl-cta::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--brand-lime); opacity: .18; pointer-events: none; }
.bl-cta h2 { font: 800 24px/1.2 var(--font); margin: 0 0 6px; letter-spacing: -.01em; }
.bl-cta p { margin: 0; color: var(--ink-muted); max-width: 52ch; line-height: 1.55; }
.bl-cta > div { position: relative; z-index: 1; }
.bl-cta-act { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-cta .btn.primary { background: var(--brand-lime); border-color: var(--brand-lime); color: #171b1a; }
.bl-cta .btn.ghost { color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); }
.bl-more { margin-top: 56px; }
.bl-more h2 { font: 800 26px var(--font); margin: 0; }

@media (max-width: 1240px) { .bl-art-wrap { grid-template-columns: minmax(0, 72ch); } }
@media (max-width: 860px) {
  .bl-nav { display: none; }
  .bl-art-wrap { grid-template-columns: minmax(0, 1fr); }
  .bl-cta { padding: 22px 18px; }
  .bl-cta-act, .bl-cta-act .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bl-card, .bl-card:hover { transition: none; transform: none; } }
