/* ============================================================
   Orion Veyr — Journal (blog index + long-form articles)
   Inherits every token from base.css / site.css. Vault aesthetic.
   ============================================================ */

/* ---------- Journal index ---------- */
.journal-hero{padding-block:clamp(40px,6vw,72px) clamp(24px,3vw,36px)}
.journal-hero .lede{margin-top:14px}

.tagbar{
  display:flex;flex-wrap:wrap;gap:8px;
  margin:22px 0 30px;
}
.jtag{
  font-family:var(--mono);font-size:11px;letter-spacing:.06em;
  padding:7px 13px;border-radius:100px;
  border:1px solid var(--border-hi);color:var(--t3);
  background:rgba(255,255,255,0.015);
  transition:color .15s var(--ease),border-color .15s var(--ease),background .15s var(--ease);
}
.jtag:hover{color:var(--text);border-color:var(--orange-line)}
.jtag.is-on{color:#fff;background:var(--orange);border-color:var(--orange)}

/* Filter menu: chips collapse into a dropdown to declutter */
.filter-menu{position:relative;display:inline-block;margin:22px 0 28px}
.filter-toggle{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
  padding:7px 14px;border-radius:999px;cursor:pointer;
  border:1px solid var(--border-hi);background:var(--bg);color:var(--t3);
  transition:color .15s var(--ease),border-color .15s var(--ease),background .15s var(--ease);
}
.filter-toggle:hover{color:var(--text);border-color:var(--orange-line)}
.filter-toggle[aria-expanded="true"]{color:var(--text);border-color:var(--orange)}
.filter-panel{
  position:absolute;top:calc(100% + 8px);left:0;z-index:60;min-width:280px;
  max-width:calc(100vw - 32px);background:var(--bg2);
  border:1px solid var(--border-hi);border-radius:var(--radius-sm);
  padding:12px 14px;box-shadow:0 14px 44px rgba(0,0,0,.55);
}
.filter-panel[hidden]{display:none}
.filter-panel .tagbar{margin:0}

.post-grid{
  display:grid;gap:18px;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
}
.post-card{
  display:flex;flex-direction:column;
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius);padding:22px 22px 18px;
  transition:border-color .16s var(--ease),transform .16s var(--ease),background .16s var(--ease);
}
.post-card:hover{border-color:var(--orange-line);transform:translateY(-2px);background:var(--bg3)}
.post-card h2{
  font-family:var(--serif);font-weight:900;line-height:1.16;letter-spacing:-.015em;
  font-size:clamp(18px,2vw,22px);margin:12px 0 10px;color:var(--text);
}
.post-card p{color:var(--t3);font-size:14px;line-height:1.62;flex:1}
.post-card .post-meta{margin-top:16px}

.post-cat{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--orange);font-weight:500;
}
.post-cat::before{content:'';width:16px;height:1px;background:var(--orange-line)}
.post-cat--mechanics{color:var(--orange)}
.post-cat--mechanics::before{background:var(--orange-line)}
.post-cat--readings{color:var(--gold)}
.post-cat--readings::before{background:var(--gold-dim)}
.post-cat--decisions{color:var(--blue)}
.post-cat--decisions::before{background:var(--blue-dim)}

.post-meta{
  font-family:var(--mono);font-size:11px;color:var(--t4);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.post-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--t4)}

.journal-empty{color:var(--t3);font-family:var(--mono);font-size:13px;padding:40px 0}

/* ---------- Article ---------- */
.blog-article{padding-block:clamp(30px,4vw,48px) clamp(48px,7vw,88px)}
.breadcrumb{
  font-family:var(--mono);font-size:11px;letter-spacing:.04em;color:var(--t4);
  display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px;
}
.breadcrumb a{color:var(--t3)}
.breadcrumb a:hover{color:var(--orange)}
.breadcrumb .sep{color:var(--t4)}

.article-head{border-bottom:1px solid var(--border);padding-bottom:26px;margin-bottom:34px}
.article-head h1{
  font-family:var(--serif);font-weight:900;line-height:1.06;letter-spacing:-.02em;
  font-size:clamp(28px,4.4vw,46px);margin:14px 0 16px;
}
.article-head h1 em{color:var(--orange);font-style:italic}
.article-meta{
  font-family:var(--mono);font-size:12px;color:var(--t3);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px;
}
.article-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--t4)}

/* Long-form prose */
.prose{max-width:70ch}
.prose > *{margin-bottom:20px}
.prose p{color:var(--t2);font-size:clamp(15px,1.35vw,17px);line-height:1.78}
.prose h2{
  font-family:var(--serif);font-weight:900;font-size:clamp(20px,2.5vw,28px);
  line-height:1.15;letter-spacing:-.015em;color:var(--text);
  margin-top:44px;margin-bottom:16px;
}
.prose h3{
  font-family:var(--serif);font-weight:700;font-size:clamp(17px,1.7vw,20px);
  color:var(--text);margin-top:32px;margin-bottom:12px;
}
.prose h2 em,.prose h3 em{color:var(--orange);font-style:italic}
.prose a{color:var(--orange);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--orange-line)}
.prose a:hover{text-decoration-color:var(--orange)}
.prose strong{color:var(--text);font-weight:700}
.prose em{font-style:italic}
.prose ul,.prose ol{padding-left:22px;color:var(--t2)}
.prose li{margin-bottom:9px;line-height:1.7;font-size:clamp(15px,1.35vw,16.5px)}
.prose li::marker{color:var(--orange)}
.prose blockquote{
  border-left:2px solid var(--orange);background:var(--bg2);
  padding:16px 20px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  color:var(--t2);font-style:italic;
}
.prose blockquote p{margin:0;color:var(--t2)}
.prose hr{border:none;border-top:1px solid var(--border);margin:36px 0}
.prose code{
  font-family:var(--mono);font-size:.88em;background:var(--bg3);
  border:1px solid var(--border);border-radius:var(--radius-xs);padding:2px 6px;color:var(--gold);
}
.prose pre{
  background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:16px 18px;overflow-x:auto;
}
.prose pre code{background:none;border:none;padding:0;color:var(--t2);font-size:13px;line-height:1.6}
.prose figure{margin:8px 0}
.prose figcaption{font-family:var(--mono);font-size:11px;color:var(--t4);margin-top:8px;text-align:center}

/* Callout box for key takeaways / method notes */
.callout{
  background:var(--bg2);border:1px solid var(--border-hi);border-left:2px solid var(--orange);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:18px 20px;
}
.callout .callout-label{
  font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--orange);display:block;margin-bottom:8px;
}
.callout p:last-child{margin-bottom:0}

/* Data table inside prose */
.prose .data-table{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:13px}
.prose .data-table th,.prose .data-table td{
  text-align:left;padding:9px 12px;border-bottom:1px solid var(--border);
}
.prose .data-table th{color:var(--t3);font-weight:500;text-transform:uppercase;font-size:10px;letter-spacing:.1em}
.prose .data-table td{color:var(--t2)}
.prose .data-table td.pos{color:var(--gold)}
.prose .data-table td.neg{color:var(--red)}

/* Tags + related, at the end of an article */
.article-foot{border-top:1px solid var(--border);margin-top:44px;padding-top:26px}
.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.article-tags .jtag{pointer-events:none}
.related-title{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3);margin-bottom:14px}
.related-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.related-list a{
  display:block;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:14px 16px;transition:border-color .15s var(--ease)
}
.related-list a:hover{border-color:var(--orange-line)}
.related-list .rl-cat{font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--orange)}
.related-list .rl-title{color:var(--text);font-family:var(--serif);font-weight:700;font-size:16px;margin-top:6px;line-height:1.3}

/* Author / disclosure line */
.article-note{
  margin-top:26px;font-size:13px;line-height:1.66;color:var(--t3);
  background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px 16px;
}

@media(max-width:600px){
  .prose{max-width:100%}
  .prose h2{margin-top:34px}
}


/* ════════════════════════════════════════════════════════════
   NEWSPAPER LAYER  (blog front page + newsprint articles)
   ════════════════════════════════════════════════════════════ */

/* ---- Blog front page (index) ---- */
.blog-masthead{padding-block:clamp(22px,3.4vw,36px) 0}
.blog-masthead .bm-title{
  font-family:var(--serif);font-weight:900;text-align:center;line-height:.98;
  font-size:clamp(40px,8vw,86px);letter-spacing:.005em;margin:clamp(10px,1.6vw,18px) 0;
}
.blog-masthead .bm-title em{font-style:italic;color:var(--orange)}
.blog-masthead .bm-sub{
  font-family:var(--serif);font-style:italic;color:var(--t2);text-align:center;
  font-size:clamp(14px,1.6vw,18px);max-width:60ch;margin:0 auto;
}

/* uniform article grid: every post is an identical ruled brief, no special lead */
.post-grid{
  display:grid;gap:0 clamp(24px,2.6vw,42px);
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
}
.post-card{
  background:none;border:0;border-radius:0;
  padding:22px 0 26px;
  border-top:1px solid var(--rule,rgba(233,215,190,.30));
  transition:none;
}
.post-card:hover{transform:none;background:none}
.post-card:hover h2{color:var(--orange)}
.post-card h2{
  font-size:clamp(19px,1.7vw,22px);margin:10px 0 9px;
  transition:color .16s var(--ease);
}

@media(max-width:820px){
  .post-grid{grid-template-columns:1fr}
}

/* ---- Newsprint article (light "printed insert") ---- */
.blog-article.newsprint{
  --ink:#171310; --ink2:#463d34; --paper-rule:rgba(23,19,16,0.22);
  background:#F3EEE3;
  background-image:radial-gradient(rgba(23,19,16,0.035) 1px,transparent 1px);
  background-size:4px 4px;
  color:var(--ink);
  border-radius:2px;
  padding-inline:clamp(18px,4vw,54px);
  margin-block:clamp(20px,3vw,30px);
  border:1px solid rgba(23,19,16,0.14);
}
.newsprint .breadcrumb{color:#8a7f70}
.newsprint .breadcrumb a{color:#6a6152}
.newsprint .breadcrumb a:hover{color:#9a3d12}
.newsprint .breadcrumb .sep{color:#b3a794}
.newsprint .post-cat,.newsprint .post-cat--mechanics{color:#9a3d12}
.newsprint .post-cat::before{background:rgba(154,61,18,.4)}
.newsprint .article-head{border-bottom:1px solid var(--paper-rule)}
.newsprint .article-head h1{color:var(--ink)}
.newsprint .article-head h1 em{color:#9a3d12}
.newsprint .article-meta{color:#726858}
.newsprint .article-meta .dot{background:#b3a794}
.newsprint .prose p{color:#2a231d}
.newsprint .prose h2{color:var(--ink)}
.newsprint .prose h3{color:var(--ink)}
.newsprint .prose h2 em,.newsprint .prose h3 em{color:#9a3d12}
.newsprint .prose strong{color:var(--ink)}
.newsprint .prose a{color:#9a3d12;text-decoration-color:rgba(154,61,18,.4)}
.newsprint .prose a:hover{text-decoration-color:#9a3d12}
.newsprint .prose ul,.newsprint .prose ol{color:#2a231d}
.newsprint .prose li::marker{color:#9a3d12}
.newsprint .prose blockquote{background:rgba(23,19,16,0.04);border-left-color:#9a3d12;color:#2a231d}
.newsprint .prose blockquote p{color:#2a231d}
.newsprint .prose hr{border-top-color:var(--paper-rule)}
.newsprint .prose code{background:rgba(23,19,16,0.06);border-color:var(--paper-rule);color:#7a3a10}
.newsprint .callout{background:rgba(23,19,16,0.04);border-color:var(--paper-rule);border-left-color:#9a3d12}
.newsprint .callout .callout-label{color:#9a3d12}
.newsprint .prose .data-table th{color:#726858}
.newsprint .prose .data-table td{color:#2a231d}
.newsprint .prose .data-table th,.newsprint .prose .data-table td{border-bottom-color:var(--paper-rule)}
.newsprint .article-foot{border-top-color:var(--paper-rule)}
.newsprint .article-tags .jtag{border-color:var(--paper-rule);color:#6a6152;background:rgba(23,19,16,0.02)}
.newsprint .related-title{color:#726858}
.newsprint .related-list a{background:rgba(23,19,16,0.03);border-color:var(--paper-rule)}
.newsprint .related-list a:hover{border-color:#9a3d12}
.newsprint .related-list .rl-cat{color:#9a3d12}
.newsprint .related-list .rl-title{color:var(--ink)}
.newsprint .article-note{background:rgba(23,19,16,0.03);border-color:var(--paper-rule);color:#463d34}
/* drop cap on the first paragraph, like a printed feature */
.newsprint .prose > p:first-of-type::first-letter{
  font-family:var(--serif);font-weight:900;float:left;font-size:62px;line-height:.8;
  padding:6px 10px 0 0;color:var(--ink);
}
