/*
Theme Name: PressForge
Theme URI: https://example.invalid/pressforge
Author: Al-Mamun
Description: Universal theme for knowledge-first affiliate publishing. Classic PHP chrome, minimal theme.json tokens, one small stylesheet, no JavaScript; the theme owns its presentation (core global styles and block CSS are dequeued) and carries its own E-E-A-T and SEO layer. Built to stay fast at 10,000-20,000 posts and to accept posts pushed by external tools and agents through the theme's own ingest contract.
Version: 0.4.2
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pressforge
Tags: custom-menu, featured-images, threaded-comments
*/

/* ============ Tokens (mirror theme.json) ============ */
:root{
  --ink:#1a1d21;
  --paper:#ffffff;
  --accent:#0b5cad;
  --accent-ink:#ffffff;
  --muted:#5c6670;
  --line:#e3e7ea;
  --wash:#f4f6f7;
  --content:45rem;
  --wide:67.5rem;
  --radius:.5rem;
}

/* ============ Base ============ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:1.0625rem;line-height:1.65;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration-thickness:.06em;text-underline-offset:.15em}
a:hover{text-decoration:none}
h1,h2,h3{line-height:1.2;margin:1.4em 0 .5em}
h1{font-size:2rem;margin-top:0}
h2{font-size:1.45rem}
h3{font-size:1.15rem}
p{margin:0 0 1em}
table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.95em}
th,td{border:1px solid var(--line);padding:.5em .7em;text-align:left;vertical-align:top}
th{background:var(--wash)}
.screen-reader-text{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.screen-reader-text:focus{left:1rem;top:1rem;width:auto;height:auto;background:var(--ink);color:#fff;padding:.5rem 1rem;z-index:10}

/* ============ Chrome ============ */
.wrap{max-width:var(--wide);margin:0 auto;padding:0 1rem}
.site-header{border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:1.5rem;padding-top:.9rem;padding-bottom:.9rem;flex-wrap:wrap}
.site-title{font-size:1.25rem;font-weight:700;margin:0}
.site-title a{color:var(--ink);text-decoration:none}
.main-nav{margin-left:auto}
.main-nav ul{display:flex;gap:1.25rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-nav a{color:var(--ink);text-decoration:none;font-size:.98rem}
.main-nav a:hover{text-decoration:underline}
.site-main{padding:2rem 0 3rem}
.site-footer{border-top:1px solid var(--line);color:var(--muted);font-size:.92rem}
.site-footer .wrap{padding-top:1.2rem;padding-bottom:1.6rem;display:flex;gap:1.5rem;flex-wrap:wrap;align-items:center}
.footer-nav ul{display:flex;gap:1.1rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.footer-nav a{color:var(--muted);text-decoration:none}
.footer-nav a:hover{text-decoration:underline}

/* ============ Article ============ */
.article{max-width:var(--content);margin:0 auto}
.entry-meta{color:var(--muted);font-size:.9rem;margin:.4rem 0 1.2rem}
.entry-content>:first-child{margin-top:0}
.entry-content ul,.entry-content ol{margin:0 0 1em;padding-left:1.4em}
.entry-content li{margin:.25em 0}
.entry-content blockquote{margin:1em 0;padding:.2em 1em;border-left:3px solid var(--line);color:var(--muted)}
.featured{margin:0 0 1.4rem}
.featured img{border-radius:var(--radius)}
.post-nav{display:flex;justify-content:space-between;gap:1rem;max-width:var(--content);margin:2rem auto 0;font-size:.95rem}

/* ============ Cards / archives ============ */
.page-head{max-width:var(--content);margin:0 auto 1.6rem}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:1.25rem}
.card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper)}
.card img{aspect-ratio:16/10;object-fit:cover;width:100%}
.card-body{padding:.9rem 1rem 1.1rem}
.card-title{font-size:1.08rem;margin:0 0 .35rem;line-height:1.3}
.card-title a{color:var(--ink);text-decoration:none}
.card-title a:hover{text-decoration:underline}
.card-excerpt{color:var(--muted);font-size:.94rem;margin:0}
.card-meta{color:var(--muted);font-size:.82rem;margin:0 0 .4rem}
.pagination{margin:2rem 0 0;text-align:center}
.pagination .page-numbers{display:inline-block;padding:.35rem .7rem;margin:0 .12rem;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:var(--ink)}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.empty-note{max-width:var(--content);margin:0 auto;color:var(--muted)}

/* ============ Block basics (theme-owned; core block CSS is dequeued) ============ */
.wp-block-table{overflow-x:auto;margin:1em 0}
.wp-block-table table{margin:0}
.wp-block-quote{margin:1em 0;padding:.2em 1em;border-left:3px solid var(--line);color:var(--muted)}
.wp-block-separator{border:none;border-top:1px solid var(--line);margin:2em auto}
.wp-block-image{margin:1em 0}
.wp-block-image img{border-radius:var(--radius)}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:.6rem;margin:1em 0}
.wp-block-button__link{display:inline-block;background:var(--accent);color:var(--accent-ink);padding:.6em 1.2em;border-radius:var(--radius);text-decoration:none;font-weight:600}
.wp-block-button__link:hover{opacity:.9}

/* ============ Breadcrumbs ============ */
.breadcrumbs{max-width:var(--content);margin:0 auto 1rem;font-size:.88rem;color:var(--muted)}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;margin:0;padding:0}
.breadcrumbs li+li::before{content:"\203A";margin-right:.4rem;color:var(--line)}
.breadcrumbs a{color:var(--muted);text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}

/* ============ Author box / E-E-A-T ============ */
.author-box{display:flex;gap:1rem;border-top:1px solid var(--line);margin-top:2.2rem;padding-top:1.4rem}
.author-avatar{border-radius:50%;flex:none}
.author-label{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;margin:0 0 .15rem}
.author-name{font-weight:700;font-size:1.05rem;margin:0 0 .3rem}
.author-name a{color:var(--ink);text-decoration:none}
.author-bio{color:var(--muted);font-size:.94rem;margin:0 0 .4rem}
.author-more{font-size:.92rem;margin:0}
.author-head .author-avatar{margin-bottom:.6rem}

/* ============ Home page ============ */
.hero{max-width:var(--content);margin:0 auto 2.4rem;text-align:left}
.hero h1{font-size:2.3rem;line-height:1.15}
.hero-intro{font-size:1.15rem;color:var(--muted);margin:0}
.home-section{margin:0 0 2.6rem}
.section-head{font-size:1.3rem;margin:0 0 1rem}
.hub-card .card-title{font-size:1.15rem}
.method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:1.25rem}
.method-point{background:var(--wash);border-radius:var(--radius);padding:1rem 1.1rem}
.method-point h3{margin:0 0 .35rem;font-size:1.02rem}
.method-point p{color:var(--muted);font-size:.94rem;margin:0}
.method-more{margin-top:1rem}

/* ============ Knowledge layer: model hubs + paths ============ */
.hub-intro{font-size:1.12rem;color:var(--muted)}
.spec-table th{width:38%;white-space:normal}
.relation-section{margin-top:2.2rem}
.compare-list{list-style:none;margin:0;padding:0}
.compare-list li{padding:.45rem 0;border-top:1px solid var(--line)}
.knowledge-path{background:var(--wash);border-radius:var(--radius);padding:1.1rem 1.2rem;margin-top:2.2rem}
.path-head{font-size:1.05rem;margin:0 0 .4rem}
.path-hub{margin:0 0 .6rem}
.path-links{list-style:none;margin:0;padding:0}
.path-links li{padding:.3rem 0;border-top:1px solid var(--line)}
.path-rel{display:inline-block;min-width:8.5rem;color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.04em}
.compare-table td.diff{font-weight:600;background:var(--wash)}

/* ============ Small screens ============ */
@media (max-width:40rem){
  h1{font-size:1.6rem}
  .site-header .wrap{gap:.8rem}
  .main-nav{margin-left:0}
}
