html, body { height: auto; overflow: visible; background: var(--bg-page); }
body { padding: 0; font-family: var(--font-sans); }

.blog-nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.blog-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; }
.blog-mark span { font-size: 13px; font-weight: 700; letter-spacing: 4px; }
.blog-nav-link { color: var(--text-secondary); font-size: 12px; font-weight: 600; text-decoration: none; }
.blog-nav-link:hover, .blog-mark:hover { color: var(--text-primary); }

.blog-shell { width: min(100% - 40px, 720px); margin: 0 auto; padding: clamp(48px, 8vw, 88px) 0 96px; }
.blog-shell--index { width: min(100% - 40px, 920px); }
.blog-title { max-width: 22ch; margin: 0; color: var(--text-primary); font-size: clamp(32px, 4.6vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -1.2px; }
.blog-title--index { font-size: clamp(30px, 4vw, 42px); }
.blog-dek { max-width: 60ch; margin: 20px 0 0; color: var(--text-secondary); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.65; }
.blog-meta { display: flex; gap: 10px; margin: 24px 0 0; color: var(--text-dim); font-size: 13px; }
.blog-meta span + span::before { content: "·"; margin-right: 10px; }
.blog-hero { width: 100%; aspect-ratio: 16 / 8.5; margin-top: 40px; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-surface); }
.blog-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.article-body { margin-top: clamp(44px, 7vw, 64px); }
.article-body h2 { margin: 72px 0 32px; color: var(--text-primary); font-size: clamp(24px, 3.2vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -.5px; }
.article-body h3 { margin: 38px 0 12px; color: var(--text-primary); font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -0.5px; }
.article-body p, .article-body li { color: var(--text-secondary); font-size: 16px; line-height: 1.78; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.article-body .doc-list { margin: 0 0 18px; padding-left: 28px; }
.article-body .doc-list-1 { padding-left: 56px; list-style-type: lower-alpha; }
.article-body .doc-list-2 { padding-left: 84px; list-style-type: lower-roman; }
.article-body .doc-list-3 { padding-left: 112px; }
.article-body .doc-list-0 > li { margin-bottom: 32px; }
.article-body .doc-list-1 > li,
.article-body .doc-list-2 > li,
.article-body .doc-list-3 > li { margin-bottom: 14px; }
.article-body .doc-list li:last-child { margin-bottom: 0; }
.article-body p:has(> br:first-child) { margin-left: 32px; }
.article-body p > br:first-child { display: none; }
.article-body strong { color: inherit; font-weight: 400; }
.article-body a { color: var(--accent); text-underline-offset: 3px; }
.article-body sup a { text-decoration: none; }
.article-body [id^="source-"] { scroll-margin-top: 84px; }
.article-number { color: inherit; font-variant-numeric: tabular-nums; }
.article-body .article-conclusion { margin-top: 72px; }
.article-note { margin-top: 56px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); }
.article-note p:last-child { margin-bottom: 0; }
.article-sources { margin-top: 64px; }
.article-sources h2 { margin-top: 0; padding-top: 0; border: 0; }
.article-sources ol { margin-left: 20px; }
.article-sources li { margin-bottom: 10px; overflow-wrap: anywhere; }

.post-list { margin-top: 64px; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; color: inherit; text-decoration: none; }
.post-card:hover h2 { color: var(--accent); }
.post-card h2 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 30px); line-height: 1.25; letter-spacing: -0.5px; transition: color 150ms ease; }
.post-card p, .post-card time { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.post-card time { white-space: nowrap; }

.llh-footer { border-top: 1px solid var(--border); background: var(--bg-page); }
.llh-footer-inner { max-width: 1240px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--text-secondary); }
.llh-footer-brand { display: flex; align-items: center; gap: 9px; color: var(--text-secondary); }
.llh-footer-brand svg { display: block; }
.llh-footer-links { display: flex; gap: 26px; }
.llh-footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 160ms ease; }
.llh-footer-links a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .blog-title { letter-spacing: -.8px; }
  .blog-meta { display: block; }
  .blog-meta span { display: block; margin-bottom: 4px; }
  .blog-meta span + span::before { content: none; }
  .post-card { grid-template-columns: 1fr; gap: 10px; }
  .llh-footer-inner { align-items: flex-start; }
  .llh-footer-links { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
}
