/* Blog-specific layout. Color, background, toolbar and theme come from the main site's style.css. */
.blog-page { max-width: 900px; padding-top: 42px; padding-bottom: 90px; }
.blog-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; padding-right: 300px; }
.blog-home-link { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elevated); color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-inner); transition: color .2s ease, border-color .2s ease; }
.blog-home-link:hover { color: var(--accent); border-color: var(--accent-border); }
.blog-wordmark { font-size: 23px; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: var(--text); white-space: nowrap; }
.blog-wordmark-dot { color: var(--accent); }

.blog-hero { position: relative; padding: 48px 52px 44px; border-radius: 32px; min-height: 305px; }
.blog-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -65px; top: -85px; border: 1px solid var(--accent-border); border-radius: 50%; box-shadow: inset 0 0 0 10px rgba(255,255,255,.13), inset 0 0 0 12px var(--accent-border), 0 0 0 16px rgba(255,255,255,.08); pointer-events: none; opacity: .58; }
.blog-hero-mark { float: right; position: relative; z-index: 1; width: 112px; height: 112px; margin: 16px 42px 14px 22px; border-radius: 50%; padding: 7px; border: 2px solid var(--accent-border); background: var(--bg-subtle); box-shadow: 0 16px 34px -16px rgba(5,150,105,.35), inset 0 1px 3px rgba(255,255,255,.8); }
.blog-hero-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.blog-kicker, .blog-section-kicker { display: block; color: var(--accent); font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .24em; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.blog-hero h1 { position: relative; z-index: 1; margin-top: 16px; font-size: clamp(38px, 6vw, 58px); line-height: 1.18; letter-spacing: -.04em; }
.blog-intro { position: relative; z-index: 1; max-width: 520px; margin: 14px 0 0; color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.blog-source { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 36px 0 0; color: var(--text-faint); font-size: 12px; }
.blog-source a { color: var(--accent); text-decoration: none; font-weight: 700; }
.blog-source a:hover { text-decoration: underline; }
.blog-live-dot, .post-cell { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent); }

.blog-feed { margin-top: 58px; }
.blog-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.blog-section-heading h2 { margin: 8px 0 0; color: var(--text); font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.blog-section-heading h2::before { width: 8px; height: 8px; margin-right: 10px; }
.blog-section-heading p { margin: 0; color: var(--text-faint); font-size: 12px; text-align: right; }
.blog-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; list-style: none; }
.post-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 26px; background: var(--bg-elevated); box-shadow: var(--shadow-card), var(--shadow-inner); overflow: hidden; transition: transform .3s var(--spring), border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.post-card-main { display: flex; flex: 1; flex-direction: column; min-height: 100%; padding: 22px 23px 20px; color: inherit; text-decoration: none; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font: 700 11px/1.4 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .06em; }
.post-meta-rule { width: 20px; height: 1px; background: var(--accent-border); }
.post-copy { margin-top: 20px; color: var(--text); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.post-copy p { margin: 0 0 10px; color: inherit; font: inherit; }
.post-copy p:last-child { margin-bottom: 0; }
.post-card .post-copy { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.post-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--bg-subtle); }
.post-media-grid.one { grid-template-columns: 1fr; }
.post-media-grid img { display: block; width: 100%; height: 140px; object-fit: cover; background: var(--bg-subtle); }
.post-media-grid.one img { height: 240px; }
.post-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 22px; color: var(--accent); font-size: 13px; font-weight: 700; }
.post-card-bottom .post-arrow { font-size: 19px; transition: transform .2s ease; }
.post-card:hover .post-arrow { transform: translateX(4px); }

.blog-empty { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 25px; min-height: 205px; padding: 28px 36px; border: 1px solid var(--border); border-radius: 28px; background: var(--bg-elevated); box-shadow: var(--shadow-card), var(--shadow-inner); }
.blog-empty-visual { position: relative; width: 116px; height: 116px; border: 2px solid var(--accent-border); border-radius: 50%; box-shadow: inset 0 0 0 6px rgba(255,255,255,.18), inset 0 0 0 8px var(--accent-border), 0 12px 24px -14px rgba(5,150,105,.3); }
.blog-empty-visual::after { content: ""; position: absolute; width: 28px; height: 28px; inset: 0; margin: auto; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.8), transparent 55%), var(--accent-soft); border: 1px solid var(--accent-border); }
.blog-empty h3 { font-size: 19px; line-height: 1.4; color: var(--text); }
.blog-empty p { margin: 8px 0 12px; color: var(--text-muted); font-size: 14px; }
.blog-empty a, .blog-archive-link { color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.blog-empty a:hover, .blog-archive-link:hover { text-decoration: underline; }
.blog-archive-link { display: inline-block; margin-top: 22px; }

.blog-post-page { max-width: 780px; }
.blog-article { padding: 40px 46px 44px; border-radius: 30px; }
.blog-article h1 { margin-top: 24px; font-size: clamp(26px, 4.5vw, 39px); line-height: 1.35; overflow-wrap: anywhere; }
.blog-article .post-body { margin-top: 27px; color: var(--text); font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.blog-article .post-body p { margin: 0 0 20px; color: inherit; font: inherit; white-space: pre-wrap; }
.blog-article .post-media { margin: 32px 0 0; }
.blog-article .post-media img { display: block; max-width: 100%; max-height: 760px; width: auto; height: auto; margin: 0 auto; border-radius: 16px; background: var(--bg-subtle); }
.blog-article .post-media figcaption { margin-top: 8px; color: var(--text-faint); font-size: 12px; text-align: center; }
.post-end { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--accent-border); }
.blog-original-link { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 700; }
.blog-original-link:hover { text-decoration: underline; }
.blog-bottom-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.blog-bottom-nav a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.blog-bottom-nav a:hover { color: var(--accent); }

.blog-archive-hero { margin: 20px 0 32px; }
.blog-archive-hero h1 { margin-top: 12px; font-size: 42px; }
.blog-archive-list { list-style: none; }
.blog-archive-list li { border-top: 1px solid var(--accent-border); }
.blog-archive-list li:last-child { border-bottom: 1px solid var(--accent-border); }
.blog-archive-list a { display: grid; grid-template-columns: 115px 1fr 24px; gap: 12px; align-items: center; padding: 16px 8px; color: var(--text); text-decoration: none; }
.blog-archive-list a:hover { color: var(--accent); }
.blog-archive-list time { color: var(--text-faint); font-size: 12px; }
.blog-archive-list .archive-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.blog-archive-list .archive-arrow { text-align: right; color: var(--accent); }
.blog-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--accent-border); }
.blog-footer p, .blog-footer a { margin: 0; color: var(--text-faint); font-size: 12px; text-decoration: none; }
.blog-footer a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .blog-post-grid { grid-template-columns: 1fr; }
  .blog-topbar { padding-right: 0; }
  .blog-wordmark { display: none; }
  .blog-hero { padding: 34px 30px; min-height: 0; }
  .blog-hero-mark { width: 82px; height: 82px; margin: 16px 12px 12px 14px; }
  .blog-hero::after { width: 210px; height: 210px; right: -92px; top: -60px; }
  .blog-section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .blog-section-heading p { text-align: left; }
}
@media (max-width: 480px) {
  .blog-page { padding: 112px 18px 68px; }
  .blog-topbar { margin-bottom: 22px; }
  .blog-hero { padding: 30px 23px 28px; border-radius: 25px; }
  .blog-hero-mark { width: 66px; height: 66px; margin: 7px 0 12px 10px; }
  .blog-hero h1 { font-size: 38px; }
  .blog-intro { font-size: 14px; }
  .blog-source { margin-top: 25px; }
  .blog-feed { margin-top: 42px; }
  .post-card-main { padding: 20px; }
  .post-media-grid.one img { height: 210px; }
  .blog-empty { grid-template-columns: 1fr; gap: 15px; padding: 27px 25px; }
  .blog-empty-visual { width: 76px; height: 76px; }
  .blog-article { padding: 28px 22px 32px; border-radius: 24px; }
  .blog-article .post-body { font-size: 15px; }
  .blog-archive-list a { grid-template-columns: 1fr 22px; }
  .blog-archive-list time { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card-bottom .post-arrow { transition: none; }
}
