/*
Theme Name: Minimal Editorial
Theme URI: https://example.com/
Author: Your Team
Description: A lightweight, image-first WordPress theme with Latest and Featured grids, static hero image, and light/dark mode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: minimal-editorial
*/
:root{--bg:#fff;--text:#171717;--muted:#707070;--surface:#f4f4f4;--border:#e8e8e8;--content:1280px}
html[data-theme="dark"]{--bg:#111;--text:#f4f4f4;--muted:#aaa;--surface:#202020;--border:#303030}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
.site-header{width:min(var(--content),calc(100% - 40px));margin:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.custom-logo{max-height:48px;width:auto}
.site-title{font-size:1.2rem;font-weight:700;letter-spacing:-.03em}
.theme-toggle{border:1px solid var(--border);background:var(--surface);color:var(--text);padding:9px 13px;border-radius:999px;cursor:pointer;font:inherit;font-size:.85rem}
.hero{width:100%;max-height:620px;overflow:hidden;background:var(--surface)}
.hero img{width:100%;height:clamp(220px,42vw,560px);object-fit:cover}
.container{width:min(var(--content),calc(100% - 40px));margin:0 auto}
.home-section{padding:48px 0 12px}
.section-heading{font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.2;margin:0 0 22px;font-weight:700;letter-spacing:-.04em}
.post-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.post-card{display:block;overflow:hidden;background:var(--surface);aspect-ratio:1/1}
.post-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.post-card:hover img{transform:scale(1.035)}
.post-card:focus-visible,.theme-toggle:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.pagination{padding:32px 0;display:flex;gap:12px;justify-content:center}
.pagination a,.pagination span{padding:8px 13px;border:1px solid var(--border);border-radius:6px}
.single-content{width:min(850px,calc(100% - 40px));margin:42px auto 80px}
.single-content h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.12;letter-spacing:-.045em;margin:0 0 28px}
.single-featured{width:100%;height:auto;max-height:680px;object-fit:cover;margin-bottom:32px}
.entry-content{font-size:1.08rem;line-height:1.85;overflow-wrap:anywhere}
.entry-content h2,.entry-content h3{line-height:1.25;margin-top:1.8em}
.entry-content img{margin:24px 0}
.entry-content iframe{max-width:100%}
.entry-content .wp-block-embed{margin:28px 0}
.entry-content .wp-block-embed__wrapper{position:relative;aspect-ratio:16/9}
.entry-content .wp-block-embed__wrapper iframe{position:absolute;inset:0;width:100%;height:100%}
.site-footer{border-top:1px solid var(--border);margin-top:60px;padding:24px 20px;text-align:center;color:var(--muted);font-size:.85rem}
.empty-state{color:var(--muted);padding:20px 0}
@media(max-width:900px){.post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.site-header,.container{width:calc(100% - 28px)}.site-header{min-height:64px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-section{padding-top:34px}.single-content{width:calc(100% - 28px);margin-top:30px}.hero img{height:250px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
