
/*
Theme Name: Prayer Magazine
Theme URI: https://wordpress.org/
Author: Custom
Description: A clean magazine-style WordPress theme for prayersforyou.net, with automatic category sections and responsive mobile layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
License: GPLv2 or later
Text Domain: prayer-magazine
*/

:root{
  --ink:#111;
  --muted:#777;
  --line:#dedede;
  --paper:#fff;
  --soft:#f7f7f7;
  --accent:#16806f;
  --pink:#e83fa8;
  --max:1180px;
  --radius:0;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial, Helvetica, sans-serif;
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}

/* Header */
.site-header{
  position:sticky;top:0;z-index:1000;
  background:#fff;border-bottom:1px solid #eee;
}
.header-inner{
  min-height:78px;display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;gap:20px;
}
.header-left{justify-self:start}
.header-right{justify-self:end}
.site-brand{font-weight:800;font-size:24px;letter-spacing:-.6px}
.site-brand small{display:block;font-size:11px;font-weight:500;letter-spacing:1.4px;text-transform:uppercase;color:#777;line-height:1}
.icon-btn{
  width:42px;height:42px;border:0;background:transparent;
  display:grid;place-items:center;cursor:pointer;font-size:25px;
}
.hamburger span{display:block;width:25px;height:3px;background:#111;margin:4px 0}
.search-icon{position:relative;width:22px;height:22px;border:3px solid #111;border-radius:50%}
.search-icon:after{content:"";position:absolute;width:10px;height:3px;background:#111;right:-8px;bottom:-4px;transform:rotate(45deg)}
.mobile-menu{
  display:none;background:#111;color:#fff;border-top:1px solid #333;
}
.mobile-menu.open{display:block}
.mobile-menu ul{list-style:none;margin:0;padding:15px 20px}
.mobile-menu li{border-bottom:1px solid #333}
.mobile-menu a{display:block;padding:13px 0;font-weight:700}
.search-panel{display:none;background:#f5f5f5;border-top:1px solid #eee;padding:15px}
.search-panel.open{display:block}
.search-panel form{display:flex;gap:8px;max-width:700px;margin:auto}
.search-panel input{flex:1;padding:12px;border:1px solid #bbb;font-size:16px}
.search-panel button{padding:12px 18px;border:0;background:#111;color:#fff}

/* Main */
.site-main{padding:28px 0 60px}
.home-section{margin:0 0 56px}
.section-heading{
  display:flex;align-items:center;gap:16px;margin:0 0 22px;
  font-size:20px;line-height:1;font-weight:800;text-transform:uppercase;
}
.section-heading:after{content:"";height:3px;background:#111;flex:1}
.section-heading.accent{color:var(--accent)}
.section-heading.pink{color:var(--pink)}

.feature-card{border-bottom:1px solid var(--line);padding-bottom:28px}
.feature-card .thumb{aspect-ratio:16/8;overflow:hidden;background:#eee}
.feature-card .thumb img{width:100%;height:100%;object-fit:cover}
.category-label{
  margin-top:17px;color:var(--accent);font-size:13px;font-weight:800;
  text-transform:uppercase;letter-spacing:.6px;
}
.post-title{margin:6px 0 10px;font-size:32px;line-height:1.15;letter-spacing:-.6px}
.post-meta{color:var(--muted);font-size:14px}
.excerpt{font-family:Georgia,serif;font-size:17px;color:#333;margin:13px 0 0}

.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.post-card{border-bottom:1px solid var(--line);padding-bottom:22px}
.post-card .thumb{aspect-ratio:1.45/1;background:#eee;overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .post-title{font-size:22px;margin-top:10px}
.post-card .category-label{margin-top:13px}

.must-read .post-grid{grid-template-columns:1fr 1fr}
.must-read .post-card{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}
.must-read .post-card .thumb{height:170px;aspect-ratio:auto}
.must-read .post-card .post-title{margin-top:3px;font-size:23px}

.subscribe{
  background:#ffb255;padding:52px 30px;text-align:center;margin-top:15px
}
.subscribe h2{margin:0 0 12px;font-size:38px;text-transform:uppercase}
.subscribe p{margin:0;font-weight:700;font-size:17px}

.pagination{margin-top:30px;display:flex;gap:8px;flex-wrap:wrap}
.pagination a,.pagination span{padding:9px 13px;border:1px solid #ccc}
.pagination .current{background:#111;color:#fff}

/* Single */
.single-wrap{width:min(850px,calc(100% - 40px));margin:auto}
.single-category{color:var(--accent);font-size:14px;font-weight:800;text-transform:uppercase}
.single-title{font-size:48px;line-height:1.08;margin:8px 0 12px}
.single-featured{margin:25px 0}
.single-content{font-family:Georgia,serif;font-size:19px;line-height:1.8}
.single-content h2,.single-content h3{font-family:Arial,Helvetica,sans-serif;line-height:1.2}
.single-content a{color:var(--accent);text-decoration:underline}
.single-content ul,.single-content ol{padding-left:1.4em}

/* Footer */
.site-footer{background:#111;color:#fff;padding:48px 0 25px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.footer-title{font-size:24px;font-weight:800;margin:0 0 12px}
.site-footer h3{font-size:15px;text-transform:uppercase;letter-spacing:1px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:7px 0;color:#ddd}
.site-footer .copyright{border-top:1px solid #333;margin-top:35px;padding-top:18px;color:#aaa;font-size:13px}

/* Responsive */
@media(max-width:800px){
  .container{width:calc(100% - 28px)}
  .header-inner{min-height:64px;grid-template-columns:50px 1fr 50px;gap:5px}
  .site-brand{font-size:21px;text-align:center}
  .site-main{padding-top:20px}
  .post-title{font-size:27px}
  .post-grid,.must-read .post-grid{grid-template-columns:1fr}
  .must-read .post-card{grid-template-columns:1fr 1.2fr}
  .must-read .post-card .thumb{height:auto}
  .single-title{font-size:34px}
  .single-content{font-size:18px}
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .feature-card .thumb{aspect-ratio:1.45/1}
  .post-card .post-title{font-size:21px}
  .must-read .post-card{grid-template-columns:110px 1fr;gap:14px}
  .must-read .post-card .thumb{height:100px}
  .must-read .post-card .post-title{font-size:18px}
  .post-meta{font-size:13px}
  .subscribe{padding:38px 20px}
  .subscribe h2{font-size:30px}
}
