/* ============================================================
   Blog list (home/archive) + single article
   ============================================================ */

/* ---------- list header ---------- */
.bhead { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.bhead h1 { font-size: clamp(40px,6vw,72px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin: 18px 0 0; }
.bhead p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 52ch; margin: 20px 0 0; }
.filters { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); white-space: nowrap; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; cursor: pointer; transition: all .15s; background: transparent; text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--acc-line); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 500; }

/* ---------- featured ---------- */
.feat { padding: 56px 0; border-bottom: 1px solid var(--line); }
.feat-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.feat .ph { aspect-ratio: 16/10; border-radius: 16px; }
.feat .fm { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); display: flex; gap: 12px; align-items: center; }
.feat .fm .tag { background: var(--acc-dim); border: 1px solid var(--acc-line); border-radius: 100px; padding: 4px 11px; }
.feat h2 { font-size: clamp(28px,3.6vw,42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 18px 0; }
.feat h2 a { color: inherit; transition: color .2s; }
.feat h2 a:hover { color: var(--acc); }
.feat p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 24px; }
.feat a.read { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--text); }
.feat a.read:hover { color: var(--acc); }

/* byline (shared) */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.byline .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); flex: none; }
.byline .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.byline .bn { font-size: 14px; font-weight: 600; }
.byline .bd { font-size: 12px; color: var(--faint); font-family: var(--font-mono); }

/* ---------- list grid ---------- */
.list { padding: 56px 0 30px; }
.list .lh { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px 24px; }
.bpost { display: flex; flex-direction: column; gap: 14px; cursor: pointer; text-decoration: none; }
.bpost .ph { aspect-ratio: 16/10; border-radius: 12px; }
.bpost .pm { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; display: flex; gap: 10px; text-transform: uppercase; }
.bpost .pm .c { color: var(--acc); }
.bpost h4 { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.32; letter-spacing: -.01em; transition: color .2s; }
.bpost:hover h4 { color: var(--acc); }
.bpost p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.loadmore { text-align: center; padding: 20px 0 70px; }
.loadmore .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.loadmore .page-numbers { font-family: var(--font-mono); font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding: 10px 15px; transition: all .15s; }
.loadmore .page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.loadmore a.page-numbers:hover { border-color: var(--acc-line); color: var(--text); }

/* ---------- newsletter ---------- */
.news { padding: 64px 0; border-top: 1px solid var(--line); }
.news-in { background: linear-gradient(180deg,var(--bg-1),var(--bg)); border: 1px solid var(--line); border-radius: 20px; padding: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.news-in::before { content: ""; position: absolute; top: -40%; right: -8%; width: 380px; height: 380px; background: radial-gradient(circle,var(--fire-dim),transparent 65%); pointer-events: none; }
.news-in h2 { font-size: clamp(26px,3.4vw,38px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; line-height: 1.08; }
.news-in p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; max-width: 34ch; }
.nform { display: flex; gap: 10px; }
.nform input { flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 15px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--text); }
.nform input:focus { outline: none; border-color: var(--acc-line); }
.nform input::placeholder { color: var(--faint); }
.nform button { font-size: 15px; font-weight: 600; color: var(--fire-ink); background: var(--fire-grad); border: 0; padding: 0 22px; border-radius: 10px; cursor: pointer; min-height: 48px; transition: transform .15s, box-shadow .15s; }
.nform button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,106,61,.32); }
.news small { display: block; margin-top: 12px; font-size: 12px; color: var(--faint); font-family: var(--font-mono); }

/* ============================================================
   Single article
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); z-index: 60; transition: width .08s linear; }

.post-head { padding: 46px 0 36px; border-bottom: 1px solid var(--line); }
.crumb { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .06em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--acc); }
.cat { display: inline-block; white-space: nowrap; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); background: var(--acc-dim); border: 1px solid var(--acc-line); border-radius: 100px; padding: 6px 14px; }
h1.title { font-size: clamp(32px,5vw,56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 22px 0 0; }
.standfirst { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 22px 0 0; }
.post-head .byline { gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.post-head .byline .av { width: 46px; height: 46px; border-radius: 50%; }
.post-head .byline .bn { font-size: 15px; }
.post-head .byline .bmeta { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 2px; display: flex; gap: 10px; }
.byline .share { margin-left: auto; display: flex; gap: 8px; }
.byline .share a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; transition: all .15s; }
.byline .share a:hover { color: var(--acc); border-color: var(--acc-line); }
.hero-fig { margin: 36px 0 0; }
.hero-fig .ph, .hero-fig img { aspect-ratio: 16/7; border-radius: 16px; width: 100%; object-fit: cover; }

.layout { display: grid; grid-template-columns: 230px minmax(0,720px); gap: 60px; justify-content: center; padding: 48px 0 30px; }
.toc { position: sticky; top: 90px; align-self: start; }
.toc .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; font-size: 13.5px; color: var(--muted); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: color .15s, border-color .15s; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--acc); border-left-color: var(--acc); }

article.body { font-size: 18px; line-height: 1.78; color: #d7dbe0; counter-reset: h2c; }
article.body > p { margin: 0 0 26px; }
article.body h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 52px 0 18px; line-height: 1.2; scroll-margin-top: 84px; display: flex; gap: 14px; align-items: baseline; }
article.body h2::before { counter-increment: h2c; content: counter(h2c,decimal-leading-zero); font-family: var(--font-mono); font-size: 15px; color: var(--acc); flex: none; }
article.body h3 { font-size: 21px; font-weight: 600; color: var(--text); margin: 34px 0 12px; letter-spacing: -.01em; }
article.body a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--acc-line); }
article.body strong { color: var(--text); font-weight: 600; }
article.body ul, article.body ol { margin: 0 0 26px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
article.body ul li, article.body ol li { position: relative; padding-left: 30px; }
article.body ul li::before { content: "\25B8"; position: absolute; left: 4px; color: var(--acc); font-size: 14px; top: 2px; }
article.body ol { counter-reset: li; }
article.body ol li::before { counter-increment: li; content: counter(li,decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: 13px; color: var(--acc); top: 3px; }
article.body blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--acc); font-size: 22px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
article.body blockquote cite { display: block; font-size: 14px; font-weight: 400; font-style: normal; color: var(--faint); font-family: var(--font-mono); margin-top: 14px; }
article.body code { font-family: var(--font-mono); font-size: .86em; color: var(--acc); background: var(--acc-dim); border: 1px solid var(--acc-line); border-radius: 6px; padding: 2px 7px; }
article.body img { border-radius: 12px; margin: 36px 0; }
article.body figure { margin: 36px 0; }
article.body figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 12px; text-align: center; }

.post-foot { max-width: 720px; margin: 10px auto 0; }
.tags { display: flex; gap: 9px; flex-wrap: wrap; padding: 30px 0; border-top: 1px solid var(--line); }
.tags a { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; transition: all .15s; text-decoration: none; }
.tags a:hover { color: var(--acc); border-color: var(--acc-line); }
.authorbox { display: flex; gap: 20px; padding: 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; align-items: flex-start; }
.authorbox .av { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; background: var(--bg-2); border: 1px solid var(--line); }
.authorbox .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.authorbox .ainfo .nm { font-size: 18px; font-weight: 700; }
.authorbox .ainfo .role { font-family: var(--font-mono); font-size: 12px; color: var(--acc); margin-top: 3px; }
.authorbox .ainfo p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 12px 0 0; }
.authorbox .ainfo .follow { display: inline-flex; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--fire-ink); background: var(--fire-grad); padding: 8px 16px; border-radius: 7px; font-weight: 600; }

.cta-news { max-width: 720px; margin: 60px auto 0; background: linear-gradient(180deg,var(--bg-1),var(--bg)); border: 1px solid var(--line); border-radius: 18px; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.cta-news::before { content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 360px; height: 300px; background: radial-gradient(circle,var(--fire-dim),transparent 65%); }
.cta-news h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; position: relative; }
.cta-news p { color: var(--muted); font-size: 15px; margin: 0 auto 22px; max-width: 42ch; position: relative; }
.cta-news .nform { max-width: 440px; margin: 0 auto; position: relative; }

.related { padding: 80px 0; border-top: 1px solid var(--line); margin-top: 60px; }
.related .rh { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 28px; }
.rgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.rcard { display: flex; flex-direction: column; gap: 13px; text-decoration: none; }
.rcard .ph { aspect-ratio: 16/10; border-radius: 11px; }
.rcard .rm { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; display: flex; gap: 10px; text-transform: uppercase; }
.rcard .rm .c { color: var(--acc); }
.rcard h3 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.35; letter-spacing: -.01em; transition: color .2s; }
.rcard:hover h3 { color: var(--acc); }

@media (max-width: 920px) {
  .feat-in, .news-in { grid-template-columns: 1fr; gap: 28px; }
  .grid, .rgrid { grid-template-columns: 1fr; }
  .nform { flex-direction: column; }
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .toc { display: none; }
  article.body { font-size: 17px; }
}
