/* Blenda Core blog — shares the tokens and look of the top page (index.html) */
:root{
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --card: #ffffff;
  --border: #e3e4e9;
  --text: #16171b;
  --text-dim: #5d5f69;
  --accent: #f0791c;
  --accent-ink: #cf5f0a;
  --accent-soft: rgba(240,121,28,0.10);
  --accent2: #1e9bd7;
  --shadow: 0 1px 2px rgba(20,22,30,0.04), 0 10px 28px rgba(20,22,30,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.brand-blenda { color: var(--accent); }
.brand-core { color: #004eff; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(240,121,28,0.06), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(79,195,247,0.05), transparent 40%);
}
main, footer { position: relative; z-index: 1; }

/* Header (same as top page) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1120px; margin: 0 auto; }
.logo img { height: 30px; width: auto; }
footer .logo img { height: 26px; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav ul li a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
nav ul li a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #0b0b0d; font-weight: 700; font-size: 13px; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #0b0b0d; box-shadow: 0 8px 24px rgba(240,121,28,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240,121,28,0.35); }

.section-tag { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 700; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em; line-height: 1.35; }
.section-desc { color: var(--text-dim); max-width: 600px; font-size: 15.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(240,121,28,0.35);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: "●"; font-size: 8px; }

/* Blog index */
.blog-hero { padding: 140px 0 40px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  font: inherit; font-size: 13px; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.blog-list { padding: 20px 0 110px; }
.empty { color: var(--text-dim); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; transition: transform .25s, border-color .25s;
}
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(240,121,28,0.4); }
/* Thumbnails (eye-catch image) */
.card-thumb {
  margin: -26px -24px 6px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px 16px 0 0; background: var(--bg-soft);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: rgba(22,23,27,0.55);
  background: radial-gradient(circle at 25% 30%, rgba(240,121,28,0.40), transparent 55%),
              radial-gradient(circle at 80% 75%, rgba(0,78,255,0.30), transparent 55%), #f4f5f7;
}
.post-hero {
  margin: 28px 0 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-soft); aspect-ratio: 16 / 9;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.card-cat { font-size: 11px; color: var(--accent); letter-spacing: 0.06em; font-weight: 700; }
.post-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.post-card p { font-size: 13.5px; color: var(--text-dim); flex: 1; }
.post-card time { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* Post */
.post { padding: 120px 24px 110px; }
.breadcrumb { font-size: 12.5px; color: var(--text-dim); display: flex; gap: 8px; margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--accent); }
.post-header { padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.post-header h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.4; margin-bottom: 18px; letter-spacing: -0.01em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-dim); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list li { font-size: 12px; color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; }

.post-body { font-size: 16px; line-height: 1.95; }
.post-body > * + * { margin-top: 1.3em; }
.post-body h2 {
  font-size: 22px; font-weight: 800; line-height: 1.5; margin-top: 2.4em;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
.post-body h3 { font-size: 18px; font-weight: 700; margin-top: 2em; }
.post-body p, .post-body li { color: #2b2c33; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .4em; }
.post-body blockquote {
  border-left: 3px solid var(--border); padding: 4px 0 4px 18px; color: var(--text-dim);
}
.post-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .88em;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px;
}
.post-body pre {
  background: #16171b; color: #e8e9ec; border: 1px solid #16171b; border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; line-height: 1.6;
}
.post-body pre code { background: none; border: none; padding: 0; font-size: 13.5px; color: inherit; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th { background: var(--bg-soft); }
.post-body img { display: block; margin: 2em auto; border-radius: 12px; border: 1px solid var(--border); }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }

.post-cta {
  margin-top: 64px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(240,121,28,0.12), rgba(79,195,247,0.06));
  border: 1px solid var(--border); border-radius: 20px; padding: 32px 30px;
}
.post-cta strong { display: block; font-size: 18px; margin-bottom: 8px; }
.post-cta p { font-size: 14px; color: var(--text-dim); }

.related { margin-top: 72px; }
.related h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.related .post-grid { grid-template-columns: repeat(3, 1fr); }

footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 13px; }
footer .footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; text-align: left; }
footer nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav ul li a { font-size: 13px; }

@media (max-width: 860px) {
  .site-header nav ul { display: none; }
  .post-grid, .related .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .post-grid, .related .post-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 7px 14px; font-size: 12px; }
  .blog-hero { padding-top: 110px; }
  .post { padding-top: 96px; }
  .post-body { font-size: 15.5px; }
  .post-cta { padding: 26px 22px; }
  .post-cta .btn { width: 100%; justify-content: center; }
}

/* ---- Light theme refinements ---- */
.section-tag, .eyebrow, .card-cat, .breadcrumb a:hover, .post-body a { color: var(--accent-ink); }
.post-card { box-shadow: var(--shadow); }
.post-card:hover { box-shadow: 0 2px 4px rgba(20,22,30,0.05), 0 16px 36px rgba(20,22,30,0.09); }
