/*
Theme Name: Monograph Pro
Theme URI: https://example.com/
Author: Monograph Studio
Description: Premium text-first editorial WordPress theme designed to look elegant even without featured images. Ideal for authority blogs, magazines, guides, reviews, and long-form publishing.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: monograph-pro
*/
:root{
 --bg:#f4f0e8;
 --paper:#fffdf8;
 --ink:#171512;
 --muted:#726d65;
 --line:#d9d2c7;
 --accent:#b6452c;
 --accent-soft:#ead5cd;
 --dark:#1c1a17;
 --max:1240px;
 --content:820px;
 --shadow:0 18px 48px rgba(30,22,14,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
 margin:0;background:var(--bg);color:var(--ink);
 font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 line-height:1.7
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}

/* Header */
.topbar{
 background:var(--dark);color:#ddd5ca;
 font-size:.67rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800
}
.topbar .container{display:flex;justify-content:space-between;gap:18px;padding:8px 0}
.site-header{
 position:sticky;top:0;z-index:90;background:rgba(244,240,232,.96);
 border-bottom:1px solid var(--line);backdrop-filter:blur(12px)
}
.header-main{
 min-height:88px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px
}
.menu ul{display:flex;gap:22px;list-style:none;padding:0;margin:0}
.menu a{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;font-weight:850}
.menu a:hover{color:var(--accent)}
.brand{
 text-align:center;font-family:Georgia,"Times New Roman",serif;
 font-size:2.1rem;font-weight:700;letter-spacing:-.055em
}
.brand span{color:var(--accent)}
.brand-sub{
 display:block;margin-top:4px;font-family:Inter,system-ui,sans-serif;
 font-size:.58rem;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-weight:800
}
.header-tools{justify-self:end;display:flex;gap:8px}
.tool{
 min-height:40px;border:1px solid var(--ink);border-radius:999px;padding:0 13px;
 display:inline-flex;align-items:center;font-size:.72rem;font-weight:850;text-transform:uppercase
}
.tool.icon{width:40px;padding:0;justify-content:center}

/* Hero */
.hero{padding:70px 0 48px}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:end}
.eyebrow,.kicker{
 display:inline-block;font-size:.68rem;text-transform:uppercase;
 letter-spacing:.14em;font-weight:950;color:var(--accent)
}
.hero h1{
 font-family:Georgia,"Times New Roman",serif;
 font-size:clamp(2.8rem,6vw,5.4rem);line-height:.94;letter-spacing:-.055em;
 margin:12px 0 0;max-width:900px
}
.hero h1 em{display:block;font-weight:400}
.hero-copy{border-top:2px solid var(--ink);padding-top:18px}
.hero-copy p{font-size:1.06rem;color:var(--muted);margin:0 0 20px}
.hero-search{display:flex;border-bottom:1px solid var(--ink)}
.hero-search input{flex:1;border:0;background:transparent;padding:12px 0;outline:0;font:inherit}
.hero-search button{border:0;background:transparent;font-weight:900}

/* Headline rail */
.headline-rail{border-block:1px solid var(--line);background:var(--paper)}
.rail{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center;padding:13px 0}
.rail-label{
 background:var(--ink);color:#fff;padding:5px 8px;font-size:.65rem;
 text-transform:uppercase;letter-spacing:.08em;font-weight:900
}
.rail-links{display:flex;gap:22px;overflow:auto}
.rail-links a{white-space:nowrap;font-family:Georgia,serif;font-size:.95rem}

/* Sections */
.section{padding:68px 0}
.section-head{
 display:grid;grid-template-columns:1fr .7fr;gap:26px;align-items:end;
 margin-bottom:28px;border-bottom:1px solid var(--line);padding-bottom:18px
}
.section-head h2{
 font-family:Georgia,"Times New Roman",serif;
 font-size:clamp(2.15rem,4vw,3.6rem);line-height:1;letter-spacing:-.045em;margin:5px 0 0
}
.section-head p{color:var(--muted);margin:0}

/* Lead stories, text-first */
.lead-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:24px}
.lead-story{
 background:var(--paper);border:1px solid var(--line);padding:clamp(28px,5vw,54px);
 min-height:500px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow)
}
.lead-story .number{
 font-family:Georgia,serif;font-size:4.2rem;line-height:.9;color:var(--accent-soft);font-weight:700
}
.lead-story h2{
 font-family:Georgia,serif;font-size:clamp(2rem,3.8vw,3.25rem);
 line-height:1.04;letter-spacing:-.045em;margin:20px 0 16px
}
.lead-story p{font-size:1.02rem;color:var(--muted);max-width:730px}
.meta{
 font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800
}
.read-link{font-weight:900;color:var(--accent)}
.lead-stack{display:grid;gap:16px}
.stack-card{
 background:var(--paper);border:1px solid var(--line);padding:22px;
 display:grid;grid-template-columns:70px 1fr;gap:18px;align-items:start
}
.stack-card .num{
 font-family:Georgia,serif;font-size:2.15rem;line-height:1;color:var(--accent-soft);font-weight:700
}
.stack-card h3{font-family:Georgia,serif;font-size:1.35rem;line-height:1.12;margin:4px 0 8px}

/* Latest */
.latest-list{border-top:2px solid var(--ink)}
.latest-item{
 display:grid;grid-template-columns:90px 1.1fr .7fr auto;gap:22px;align-items:start;
 padding:24px 0;border-bottom:1px solid var(--line)
}
.latest-item .index{
 font-family:Georgia,serif;font-size:2.7rem;line-height:1;color:#c8beb1
}
.latest-item h3{
 font-family:Georgia,serif;font-size:1.55rem;line-height:1.08;margin:0
}
.latest-item p{color:var(--muted);margin:0;font-size:.92rem}
.latest-item .arrow{font-size:1.4rem;color:var(--accent)}

/* Categories */
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.category-card{
 background:var(--paper);border:1px solid var(--line);padding:24px;min-height:190px;
 display:flex;flex-direction:column;justify-content:space-between
}
.category-card .count{
 font-family:Georgia,serif;font-size:2.4rem;color:var(--accent-soft)
}
.category-card h3{font-family:Georgia,serif;font-size:1.45rem;margin:16px 0 6px}
.category-card p{font-size:.86rem;color:var(--muted);margin:0}

/* Editorial band */
.editorial-band{
 background:var(--dark);color:#f0e9df;padding:54px;
 display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center
}
.editorial-band h2{
 font-family:Georgia,serif;font-size:clamp(2.15rem,4vw,3.6rem);
 line-height:1;letter-spacing:-.045em;margin:6px 0 12px
}
.editorial-band p{color:#bdb4a8;max-width:700px}
.light-btn{background:#f5efe5;color:var(--dark);padding:12px 17px;border-radius:999px;font-weight:900}

/* Single */
.article-shell{padding:42px 0 78px}
.breadcrumbs{font-size:.74rem;color:var(--muted);margin-bottom:22px}
.article-layout{
 display:grid;grid-template-columns:minmax(0,var(--content)) 320px;gap:42px;justify-content:space-between
}
.article-kicker{display:flex;gap:9px;flex-wrap:wrap}
.badge{
 display:inline-flex;padding:6px 9px;background:var(--ink);color:#fff;
 font-size:.64rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900
}
.badge.light{background:#ece4d8;color:var(--accent)}
.article-title{
 font-family:Georgia,"Times New Roman",serif;
 font-size:clamp(2.55rem,5vw,4.5rem);line-height:1;letter-spacing:-.055em;
 margin:14px 0 20px
}
.article-title:after{
 content:"";display:block;width:74px;height:3px;background:var(--accent);margin-top:28px
}
.article-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:.76rem;color:var(--muted);font-weight:750}
.article-deck{
 font-family:Georgia,serif;font-style:italic;font-size:1.22rem;line-height:1.55;color:#686057;
 margin:26px 0 30px
}
.optional-feature{
 margin:0 0 28px;border:1px solid var(--line);background:var(--paper);padding:10px
}
.optional-feature img{width:100%}
.article-content{
 background:var(--paper);border:1px solid var(--line);padding:clamp(26px,5vw,50px);
 font-family:Georgia,"Times New Roman",serif;font-size:1.09rem;line-height:1.84
}
.article-content>p:first-of-type:first-letter{
 float:left;font-size:4.5rem;line-height:.78;padding:9px 10px 0 0;color:var(--accent)
}
.article-content h2{
 font-size:2.1rem;line-height:1.14;letter-spacing:-.03em;margin-top:2.15em;scroll-margin-top:110px
}
.article-content h3{font-size:1.5rem;margin-top:1.8em;scroll-margin-top:110px}
.article-content a{color:var(--accent);text-decoration:underline}
.article-content blockquote{
 border-left:4px solid var(--accent);padding:10px 22px;margin:30px 0;background:#fbf4ef;font-style:italic
}
.article-content pre{background:#171512;color:#eee;padding:18px;overflow:auto}
.article-content table{display:block;width:100%;overflow:auto;border-collapse:collapse}
.article-content th,.article-content td{border:1px solid var(--line);padding:10px 12px;text-align:left}

/* Citation Engine compatibility */
.article-content .ceai-front,
.ceai-front{
 margin-top:48px!important;background:#f7f2ea!important;border-color:#ded5c8!important;
 border-radius:0!important
}
.ceai-front .ceai-kicker{color:var(--accent)!important}
.ceai-front .ceai-source-title a{color:var(--accent)!important}

/* Sidebar */
.side-card,.widget{
 background:var(--paper);border:1px solid var(--line);padding:22px;margin-bottom:20px
}
.sticky{position:sticky;top:112px}
.side-card h3,.widget h3{
 font-family:Georgia,serif;font-size:1.2rem;margin:0 0 14px
}
.toc{list-style:none;padding:0;margin:0}
.toc li{padding:8px 0;border-bottom:1px solid var(--line);font-size:.84rem}
.toc a:hover{color:var(--accent)}
.related-item{border-top:1px solid var(--line);padding:12px 0}
.related-item:first-of-type{border-top:0}
.related-item h4{font-family:Georgia,serif;font-size:.95rem;line-height:1.25;margin:0 0 5px}

/* Archive */
.archive-head{padding:50px 0 24px}
.archive-head h1{
 font-family:Georgia,serif;font-size:clamp(2.5rem,5vw,4.4rem);line-height:1;letter-spacing:-.05em;margin:7px 0
}
.archive-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:34px;padding-bottom:70px}
.archive-list{border-top:2px solid var(--ink)}
.archive-item{padding:24px 0;border-bottom:1px solid var(--line)}
.archive-item h2{font-family:Georgia,serif;font-size:1.8rem;line-height:1.08;margin:7px 0}
.archive-item p{color:var(--muted);max-width:780px}
.widget ul{list-style:none;padding:0;margin:0}.widget li{padding:7px 0;border-bottom:1px solid var(--line)}

/* Footer */
.site-footer{background:var(--dark);color:#bcb3a8;padding:54px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:42px}
.site-footer .brand,.site-footer h3{color:#fff;text-align:left}
.site-footer ul{list-style:none;padding:0}.site-footer li{margin:7px 0}
.copyright{border-top:1px solid #39342e;margin-top:34px;padding-top:17px;font-size:.78rem}

/* Responsive */
@media(max-width:1000px){
 .article-layout,.archive-layout,.hero-grid,.lead-grid{grid-template-columns:1fr}
 .category-grid{grid-template-columns:repeat(2,1fr)}
 .menu{display:none}
 .header-main{grid-template-columns:1fr auto}
 .brand{justify-self:start;text-align:left}
 .sticky{position:static}
}
@media(max-width:760px){
 .section-head{grid-template-columns:1fr}
 .latest-item{grid-template-columns:60px 1fr auto}
 .latest-item p{grid-column:2/4}
 .editorial-band{grid-template-columns:1fr}
 .topbar{display:none}
}
@media(max-width:620px){
 .hero{padding-top:42px}
 .hero h1{font-size:3rem}
 .lead-story{min-height:420px}
 .category-grid,.footer-grid{grid-template-columns:1fr}
 .stack-card{grid-template-columns:52px 1fr}
 .article-title{font-size:2.55rem}
}

/* Widget areas */
.widget-zone{padding:20px 0 48px}
.widget-zone>.container{display:grid;gap:18px}
.widget-zone .widget{margin:0}
.widget-title{font-family:Georgia,"Times New Roman",serif;font-size:1.25rem;margin:0 0 14px}
.widget select,.widget input[type="text"],.widget input[type="search"],.widget input[type="email"]{
 width:100%;max-width:100%;padding:10px 12px;border:1px solid var(--line);background:var(--paper)
}
.widget button,.widget input[type="submit"]{
 border:0;background:var(--ink);color:#fff;padding:10px 14px;font-weight:800;cursor:pointer
}
.widget img{height:auto;max-width:100%}
.widget .wp-block-latest-posts,.widget .wp-block-categories{padding-left:0;list-style:none}
.site-footer .widget{background:transparent;border:0;padding:0;color:#bcb3a8}
.site-footer .widget-title{color:#fff}

/* v1.3 Single article sidebar */
.single-sidebar-stack{position:sticky;top:112px;align-self:start}
.single-sidebar-stack .toc-card{position:static}
.article-widget-area{margin:0 0 20px}
.article-widget-area .widget{margin-bottom:20px}
.article-widget-area .widget:last-child{margin-bottom:0}
@media(max-width:1000px){
 .single-sidebar-stack{position:static}
}

/* v1.4 Refined editorial typography — intentionally more restrained */
.hero h1{
 font-size:clamp(2.35rem,4.4vw,4.25rem);
 line-height:1;
 letter-spacing:-.045em;
 max-width:820px
}
.section-head h2{
 font-size:clamp(1.9rem,3.1vw,2.9rem);
 line-height:1.08;
 letter-spacing:-.035em
}
.lead-story h2{
 font-size:clamp(1.85rem,3vw,2.8rem);
 line-height:1.08;
 letter-spacing:-.035em
}
.editorial-band h2{
 font-size:clamp(2rem,3.2vw,3.15rem);
 line-height:1.05;
 letter-spacing:-.035em
}
.article-title{
 font-size:clamp(2.25rem,4vw,3.65rem);
 line-height:1.05;
 letter-spacing:-.045em;
 max-width:900px
}
.archive-head h1{
 font-size:clamp(2.2rem,4vw,3.65rem);
 line-height:1.05;
 letter-spacing:-.04em
}
.lead-story .number{font-size:3.45rem}
.stack-card .num{font-size:1.85rem}
.latest-item .index{font-size:2.1rem}
.article-content h2{font-size:1.85rem}
.article-content h3{font-size:1.38rem}

@media(max-width:620px){
 .hero h1{font-size:2.55rem}
 .article-title{font-size:2.35rem}
 .section-head h2{font-size:2rem}
}

/* v1.5 Wider article sidebar + full-width widget media */
.article-layout{
 grid-template-columns:minmax(0,780px) 380px;
 gap:36px;
}
.single-sidebar-stack{
 width:100%;
 min-width:0;
}
.single-sidebar-stack .side-card,
.article-widget-area .widget{
 width:100%;
}
.article-widget-area .widget{
 padding:16px;
 overflow:hidden;
}
.article-widget-area img,
.article-widget-area a img,
.article-widget-area .wp-block-image img{
 display:block;
 width:100%;
 max-width:100%;
 height:auto;
 object-fit:contain;
}
.article-widget-area iframe,
.article-widget-area embed,
.article-widget-area object{
 display:block;
 max-width:100%;
 width:100%;
}
.article-widget-area .wp-block-image{
 margin-left:0;
 margin-right:0;
}
.article-widget-area .wp-block-image figure{
 width:100%;
 margin:0;
}
.article-widget-area .wp-block-html{
 max-width:100%;
 overflow:hidden;
}

/* Common fixed 300px ad banners now have enough room and remain centered */
.article-widget-area [style*="width: 300px"],
.article-widget-area [style*="width:300px"]{
 max-width:100%!important;
 margin-left:auto!important;
 margin-right:auto!important;
}

@media(max-width:1100px){
 .article-layout{
  grid-template-columns:minmax(0,1fr) 350px;
  gap:28px;
 }
}
@media(max-width:960px){
 .article-layout{grid-template-columns:1fr}
}
