/* D-208 — the public blog. Rendered by server/blog.js; tokens from theme.css. */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--font-b, 'Inter', 'Noto Sans JP', system-ui, sans-serif);
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.b-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.b-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.b-bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.b-logo img { height: 34px; width: auto; display: block; }
.b-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.b-nav a { text-decoration: none; color: var(--txt-2); font-size: 14px; font-weight: 600; }
.b-nav a:hover, .b-nav a[aria-current] { color: var(--txt); }
.b-actions { margin-inline-start: auto; display: flex; gap: 12px; align-items: center; }
.b-quiet { text-decoration: none; color: var(--txt-2); font-size: 14px; font-weight: 600; }

.b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--film-2);
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--txt);
}
.b-btn-primary {
  background: var(--brand); border-color: transparent; color: var(--on-brand);
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, 0.8);
}

/* index */
.b-hero { padding: 56px 0 28px; text-align: center; }
.b-hero h1, .b-article h1 {
  font-family: var(--font-d, 'Space Grotesk', 'Noto Sans JP', sans-serif);
  font-size: clamp(32px, 6vw, 52px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em;
}
.b-hero h1 {
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.b-lead { color: var(--txt-2); font-size: 17px; margin: 0 auto; max-width: 680px; }

.b-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0 24px; }
.b-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.b-filter {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--film-1); color: var(--txt-2);
}
.b-filter[aria-pressed="true"] { background: var(--brand-soft); color: var(--txt); border-color: var(--line-3); }
.b-search input {
  font: inherit; font-size: 14px; width: min(300px, 100%);
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--film-2); color: var(--txt);
}
.b-search { flex: 1 1 220px; display: flex; justify-content: flex-end; }

.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.b-card { border: 1px solid var(--line); border-radius: 18px; background: var(--card-bg); transition: border-color .2s, transform .2s; }
.b-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.b-card[hidden] { display: none; }
.b-card a { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; height: 100%; }
.b-card h2 { font-size: 19px; line-height: 1.4; margin: 0; }
.b-card p { color: var(--txt-2); margin: 0; font-size: 15px; flex: 1; }
.b-meta { color: var(--txt-3); font-size: 13px; margin: 0; }
.b-empty { color: var(--txt-2); text-align: center; padding: 24px 0; }

.b-chip { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.b-chip-guide { color: var(--cyan); }
.b-chip-insights { color: var(--violet); }
.b-chip-product { color: var(--magenta); }
html[data-theme="light"] .b-chip { color: var(--txt); }

/* article */
.b-article-wrap { max-width: 780px; padding-top: 32px; }
.b-back { display: inline-block; color: var(--txt-2); font-size: 14px; text-decoration: none; margin-bottom: 20px; }
.b-back::before { content: '← '; }
html[dir="rtl"] .b-back::before { content: '→ '; }
.b-article header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.b-article header .b-chip { margin-bottom: 14px; }
.b-article header .b-lead { margin: 0 0 12px; max-width: none; }
.b-article h2 { font-size: 22px; margin: 32px 0 8px; line-height: 1.4; }
.b-article p, .b-article li { font-size: 16.5px; color: var(--txt); }
.b-article ul { padding-inline-start: 22px; }
.b-more { margin: 48px 0; }
.b-more h2 { font-size: 22px; }

/* call to action */
.b-cta {
  margin: 48px 0; padding: 36px 24px; text-align: center;
  border: 1px solid var(--line-2); border-radius: 22px; background: var(--featured-bg);
}
.b-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 28px); line-height: 1.35; }
.b-cta p { margin: 0 0 20px; color: var(--txt-2); }
.b-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
.b-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; font-size: 13px; color: var(--txt-3); }
/* D-223: the site footer's columns — brand, PRODUCT, RESOURCES, COMPANY */
.b-footer .foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.b-footer .foot-grid h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); margin: 0 0 14px; }
.b-footer .foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.b-footer .foot-grid a { color: var(--txt-2); text-decoration: none; font-size: 13.5px; }
.b-footer .foot-grid a:hover { color: var(--txt); }
.b-footer .foot-about p { margin: 14px 0 0; max-width: 27em; line-height: 1.8; }
@media (max-width: 860px) { .b-footer .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .b-footer .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.b-note { margin: 0 0 18px; }
.b-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.b-langs a { color: var(--txt-2); text-decoration: none; }
.b-langs a[aria-current] { color: var(--txt); font-weight: 700; }
.b-foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (max-width: 640px) {
  .b-nav { order: 3; width: 100%; gap: 14px; }
  .b-quiet { display: none; }
  .b-hero { padding-top: 36px; }
  .b-search { justify-content: stretch; }
  .b-search input { width: 100%; }
}
