/*
Theme Name: Pretend News
Theme URI: https://pretendnews.com
Author: Pretend News
Description: A responsive editorial theme for fictional, AI-illustrated satire. Includes desktop ad rails, mobile ad placement, a floating-video widget area, and scene-friendly article layouts.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: pretend-news
*/

:root{--paper:#f6f0e4;--ink:#14253f;--red:#e94732;--gold:#e5ad43;--blue:#2d6780;--line:rgba(20,37,63,.18);--white:#fffdf8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font-family:"DM Sans",sans-serif}
body.admin-bar .sticky-ad{top:52px}
button,input,textarea,select{font:inherit}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.skip-link{position:fixed;top:-60px;left:1rem;z-index:1000;background:var(--ink);color:#fff;padding:.75rem 1rem}
.skip-link:focus{top:1rem}
.satire-ribbon{padding:.5rem 1rem;text-align:center;background:var(--red);color:#fff;font-size:.7rem;font-weight:800;letter-spacing:.15em}
.site-header{max-width:1540px;margin:auto;min-height:104px;padding:1rem 2rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--line)}
.menu-button{display:none;border:0;background:transparent;color:var(--ink);font-size:1.4rem;cursor:pointer}
.wordmark{grid-column:2;font-family:"Fraunces",serif;font-size:2.65rem;font-weight:900;letter-spacing:-.06em;line-height:1}
.custom-logo{display:block;max-height:72px;width:auto}
.header-actions{justify-self:end;display:flex;align-items:center;gap:1.1rem}
.issue-date{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.publish-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:.75rem 1.1rem;background:var(--ink);color:#fff;font-weight:700;cursor:pointer}
.section-nav{padding:.78rem 1rem;border-bottom:1px solid var(--line);background:rgba(255,253,248,.72);font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.section-nav ul{display:flex;align-items:center;justify-content:center;gap:2rem;margin:0;padding:0;list-style:none}
.section-nav a:hover{color:var(--red)}
.page-shell{width:min(1800px,100%);margin:auto;display:grid;grid-template-columns:210px minmax(0,1120px) 210px;justify-content:center;gap:22px;padding:1.5rem}
.news-main{min-width:0}
.ad-rail{min-height:100%}
.sticky-ad{position:sticky;top:20px;min-height:600px;border:1px solid var(--line);background:repeating-linear-gradient(135deg,#eef2ee,#eef2ee 12px,#e5ebe8 12px,#e5ebe8 24px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.sticky-ad.warm{background:repeating-linear-gradient(45deg,#f6e4c0,#f6e4c0 12px,#efd7aa 12px,#efd7aa 24px)}
.sticky-ad .widget{width:100%}
.sticky-ad span,.mobile-ad>span{font-size:.58rem;letter-spacing:.16em;opacity:.55}
.sticky-ad strong{margin:.65rem 0 .25rem;font:700 1.25rem "Fraunces",serif}
.sticky-ad small{opacity:.65}
.breaking-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;margin-bottom:1rem;padding:.72rem 1rem;background:var(--ink);color:#fff;font-size:.82rem}
.breaking-bar strong{color:#ffd558;font-size:.7rem;letter-spacing:.12em}
.breaking-bar small{opacity:.65}
.lead-grid{display:grid;grid-template-columns:1.65fr .9fr;gap:1rem}
.story-card h1,.story-card h2{transition:text-decoration-color .2s}
.story-card:focus-within h1,.story-card:focus-within h2,.story-card:hover h1,.story-card:hover h2{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:3px;text-underline-offset:4px}
.lead-story{position:relative;min-height:610px;overflow:hidden;background:var(--ink);color:#fff}
.lead-story>a{position:absolute;inset:0;display:block}
.lead-story img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lead-story>a:after{content:"";position:absolute;inset:25% 0 0;background:linear-gradient(transparent,rgba(9,18,32,.97))}
.lead-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#315f70,#14253f);font:900 clamp(3rem,7vw,7rem)/.85 "Fraunces",serif;text-align:center;color:rgba(255,255,255,.16)}
.lead-copy{position:absolute;z-index:1;bottom:0;padding:2rem;max-width:780px}
.kicker{display:block;margin-bottom:.7rem;color:var(--red);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em}
.lead-copy .kicker{color:#ffd558}
h1,h2,h3,h4{font-family:"Fraunces",serif;letter-spacing:-.035em;margin-top:0;line-height:1.03}
.lead-copy h1{font-size:clamp(2.2rem,4vw,4.5rem);margin-bottom:.8rem}
.lead-copy p{max-width:650px;font-size:1.02rem;line-height:1.5;opacity:.88}
.byline{font-size:.72rem;font-weight:700;opacity:.76}
.side-stories{display:grid;gap:1rem}
.mini-story{padding:1rem;border:1px solid var(--line);background:var(--white)}
.mini-art{height:170px;margin-bottom:1rem;display:grid;place-items:center;overflow:hidden;background:#cadde8;font:900 4rem "Fraunces",serif}
.mini-art img{width:100%;height:100%;object-fit:cover}
.mini-story h2{font-size:1.55rem;margin-bottom:.65rem}
.mini-story p{margin:.65rem 0 0;font-size:.85rem;line-height:1.5;opacity:.68}
.section-heading{margin:2.8rem 0 1rem;padding-bottom:.75rem;border-bottom:4px solid var(--ink);display:flex;align-items:flex-end;justify-content:space-between}
.section-heading h2{font-size:2.1rem;margin:0}
.section-heading span{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em}
.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.grid-story{border-top:1px solid var(--line);padding-top:1rem}
.grid-art{aspect-ratio:4/3;display:grid;place-items:center;margin-bottom:1rem;background:#dbe3dc;font-size:3.2rem;overflow:hidden}
.grid-art img{width:100%;height:100%;object-fit:cover}
.grid-story h2{font-size:1.42rem;margin-bottom:.55rem}
.grid-story p{font-size:.86rem;line-height:1.55;opacity:.7}
.mobile-ad{display:none}
.empty-newsroom{min-height:540px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(2rem,7vw,7rem);background:linear-gradient(145deg,#fffdf8,#eadfc9)}
.empty-newsroom h1{max-width:780px;font-size:clamp(3rem,7vw,7rem);margin-bottom:1rem}
.empty-newsroom p{max-width:600px;font-size:1.12rem;line-height:1.7}
.newsletter{margin:4rem 0 2rem;padding:2rem;display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:2rem;background:var(--gold)}
.newsletter .kicker{color:var(--ink)}
.newsletter h2{font-size:2.3rem;margin-bottom:.5rem}
.newsletter p{margin-bottom:0}
.newsletter form{display:flex}
.newsletter input{min-width:0;flex:1;padding:1rem;border:0;background:#fff}
.newsletter button{border:0;padding:0 1.2rem;background:var(--red);color:#fff;font-weight:800;cursor:pointer}
.site-footer{padding:2.5rem 0 6rem;border-top:1px solid var(--line);text-align:center}
.footer-brand{font:900 2rem "Fraunces",serif}
.site-footer p{max-width:680px;margin:1rem auto;line-height:1.6;opacity:.7}
.footer-nav ul{display:flex;justify-content:center;gap:1.5rem;margin:1.2rem;padding:0;list-style:none;font-size:.78rem;font-weight:700}
.floating-video{position:fixed;z-index:100;right:24px;bottom:22px;width:330px;max-height:310px;overflow:hidden;background:var(--ink);color:#fff;box-shadow:0 20px 50px rgba(12,23,39,.32);transition:.25s ease}
.floating-video.is-hidden{transform:translateY(130%);opacity:0;pointer-events:none}
.video-close{position:absolute;z-index:3;right:8px;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(0,0,0,.72);color:#fff;font-size:1.2rem;cursor:pointer}
.floating-video iframe,.floating-video video,.floating-video img{display:block;width:100%;height:auto}
.widget-title{font-size:1rem}
.single-story{max-width:860px;margin:0 auto;padding:2rem 0 4rem}
.article-header{text-align:left;margin:1rem 0 2rem}
.fiction-label{display:inline-block;margin-bottom:1.25rem;padding:.45rem .6rem;background:var(--red);color:#fff;font-size:.62rem;font-weight:800;letter-spacing:.1em}
.article-header h1{font-size:clamp(3rem,7vw,6.7rem);margin-bottom:1rem}
.article-deck{font:700 clamp(1.15rem,2vw,1.5rem)/1.45 "Fraunces",serif;opacity:.76}
.article-deck p{margin:.5rem 0}
.article-meta{margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--line);font-size:.78rem;font-weight:700}
.hero-image{width:min(1120px,calc(100vw - 2rem));margin:0 50% 2.5rem;transform:translateX(-50%)}
.hero-image img{display:block;width:100%;max-height:720px;object-fit:cover}
figcaption,.wp-element-caption{margin-top:.45rem;font-size:.72rem;line-height:1.5;opacity:.65}
.article-content{font-size:1.12rem;line-height:1.85}
.article-content>p:first-child{font-size:1.25rem}
.article-content h2{margin:2.6rem 0 1rem;font-size:2.4rem}
.article-content h3{margin:2rem 0 .8rem;font-size:1.7rem}
.article-content figure{margin-top:2.4rem;margin-bottom:2.4rem}
.article-content .wp-block-image img{width:100%;max-height:720px;object-fit:cover}
.article-content blockquote{margin:2rem 0;padding:1rem 1.5rem;border-left:5px solid var(--red);background:var(--white);font:700 1.35rem/1.5 "Fraunces",serif}
.article-content a{text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:3px}
.article-disclaimer{margin-top:3rem;padding:1.2rem;border:1px solid var(--line);background:var(--white);font-size:.82rem;line-height:1.6}
.post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:0 0 3rem;padding-top:1.5rem;border-top:4px solid var(--ink);font:700 1.05rem/1.3 "Fraunces",serif}
.post-navigation>div:last-child{text-align:right}
.standard-page,.archive-header{max-width:860px;margin:0 auto;padding:3rem 0}
.standard-page h1,.archive-header h1{font-size:clamp(3rem,7vw,6rem)}
.archive-grid{margin-bottom:3rem}
.navigation.pagination{margin:2rem 0}
.nav-links{display:flex;gap:.5rem;justify-content:center}
.page-numbers{padding:.55rem .8rem;border:1px solid var(--line);background:var(--white)}
.page-numbers.current{background:var(--ink);color:#fff}
.toast{position:fixed;z-index:1000;left:50%;bottom:24px;transform:translate(-50%,140%);background:var(--ink);color:#fff;padding:.8rem 1rem;opacity:0;transition:.25s ease}
.toast.show{transform:translate(-50%,0);opacity:1}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

@media(max-width:1380px){.page-shell{grid-template-columns:150px minmax(0,1050px) 150px}.sticky-ad{min-height:500px}}
@media(max-width:1120px){.page-shell{grid-template-columns:minmax(0,1fr);max-width:980px}.ad-rail{display:none}.mobile-ad{min-height:120px;margin:1rem 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:repeating-linear-gradient(135deg,#e8ded0,#e8ded0 10px,#f2e9dc 10px,#f2e9dc 20px)}}
@media(max-width:760px){
	.satire-ribbon{font-size:.55rem;letter-spacing:.08em}
	.site-header{min-height:74px;grid-template-columns:auto 1fr auto;padding:.8rem 1rem}
	.menu-button{display:block}
	.wordmark{grid-column:2;justify-self:center;font-size:1.38rem}
	.custom-logo{max-height:46px;max-width:180px}
	.issue-date{display:none}
	.publish-button{width:38px;height:38px;padding:0;border-radius:50%;font-size:0}
	.publish-button:after{content:"+";font-size:1.4rem}
	.section-nav{display:none;overflow:auto}
	.section-nav.open{display:block}
	.section-nav ul{justify-content:flex-start;min-width:max-content}
	.page-shell{padding:.75rem}
	.breaking-bar{grid-template-columns:auto 1fr}.breaking-bar small{display:none}
	.lead-grid{grid-template-columns:1fr}
	.lead-story{min-height:500px}
	.lead-copy{padding:1.2rem}
	.lead-copy h1{font-size:2.45rem}
	.side-stories{grid-template-columns:1fr 1fr}
	.mini-art{height:120px}
	.mini-story h2{font-size:1.2rem}
	.mini-story p{display:none}
	.story-grid{grid-template-columns:1fr 1fr}
	.newsletter{grid-template-columns:1fr;padding:1.4rem}
	.newsletter form{flex-direction:column;gap:.5rem}
	.newsletter button{padding:1rem}
	.floating-video{display:none}
	.single-story{padding:1rem .35rem 3rem}
	.article-header h1{font-size:2.8rem}
	.hero-image{width:calc(100vw - 1.5rem)}
	.article-content{font-size:1.03rem;line-height:1.75}
	.standard-page,.archive-header{padding:2rem .35rem}
}
@media(max-width:480px){.side-stories,.story-grid{grid-template-columns:1fr}.mini-story>a{display:grid;grid-template-columns:110px 1fr;column-gap:1rem}.mini-art{grid-row:1/5;height:120px;margin:0}.section-heading h2{font-size:1.7rem}.footer-nav ul{flex-wrap:wrap}.post-navigation{grid-template-columns:1fr}.post-navigation>div:last-child{text-align:left}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

