/*
Theme Name: Lyoum — ليوم
Theme URI: https://lyoum.com
Author: Ali
Description: قالب عربي RTL لموقع ليوم — تأملات في الحكمة والجمال والحياة الداخلية. تصميم صحفي نظيف بلمسة صوفية.
Version: 1.15
License: GNU General Public License v2 or later
Text Domain: lyoum
*/

:root{
  --bg:#ffffff; --bg-soft:#F6F5F2; --ink:#1A1A1A; --muted:#6E6E6E;
  --accent:#B98A2F; --accent-dark:#8F6A20; --teal:#14555A; --line:#E6E3DC;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:'Tajawal',sans-serif;line-height:1.9;font-size:16px}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%;height:auto}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}

/* Header */
.topbar{background:var(--ink);color:#fff}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:38px;font-size:13px}
.topbar .date{color:#BDBDBD}
.topbar .tag{color:var(--accent)}
.masthead{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:50}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;height:74px}
.reading-progress{position:absolute;inset-inline:0;bottom:-1px;height:3px;background:transparent}
.reading-progress-bar{height:100%;width:0;background:var(--accent);transition:width .12s linear}
.brand{display:flex;align-items:center;gap:12px}
.brand svg{flex:none}
.brand .name{font-size:34px;font-weight:800;letter-spacing:.3px;color:var(--ink)}
.brand .name span{color:var(--accent)}
.mainnav ul{display:flex;gap:6px;list-style:none}
.mainnav a{display:block;padding:8px 16px;font-size:15.5px;font-weight:500;border-radius:6px}
.mainnav a:hover,.mainnav .current-menu-item a,.mainnav .current_page_item a{background:var(--bg-soft);color:var(--accent-dark)}
.subscribe-btn{background:var(--accent);color:#fff;padding:9px 22px;border-radius:6px;font-size:14.5px;font-weight:700}
.subscribe-btn:hover{background:var(--accent-dark)}

/* Section headings */
.sec-head{display:flex;align-items:center;gap:14px;margin:44px 0 22px}
.sec-head h2{font-size:24px;font-weight:800}
.sec-head::after{content:'';flex:1;height:1px;background:var(--line)}
.sec-head .bar{width:5px;height:26px;background:var(--accent);border-radius:3px}

/* Featured */
.featured{padding-top:28px}
.feat-main{max-width:820px;margin:0 auto}
.feat-main .art{border-radius:10px;overflow:hidden;background:var(--bg-soft)}
.feat-main .art img{width:100%;aspect-ratio:17/10;object-fit:cover}
.feat-main h3{font-size:33px;line-height:1.5;font-weight:800;margin:16px 0 8px}
.feat-main h3 a:hover{color:var(--accent-dark)}
.feat-main p{color:var(--muted);font-size:17px}
.kicker{display:inline-block;background:var(--teal);color:#fff;font-size:12.5px;font-weight:700;padding:3px 12px;border-radius:4px;margin-bottom:12px}
.kicker.gold{background:var(--accent)}
.kicker a{color:#fff}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:box-shadow .25s,transform .25s}
.card:hover{box-shadow:0 10px 28px rgba(0,0,0,.08);transform:translateY(-3px)}
.card .art{background:var(--bg-soft)}
.card .art img{width:100%;aspect-ratio:400/230;object-fit:cover}
.card .body{padding:18px 20px 22px}
.card .cat{color:var(--accent-dark);font-size:13px;font-weight:700}
.card h4{font-size:20px;line-height:1.6;font-weight:700;margin:6px 0 8px}
.card p{color:var(--muted);font-size:14.5px}
.card .meta{margin-top:14px;font-size:13px;color:var(--muted)}

/* Quote band + newsletter */
.quoteband{background:var(--bg-soft);border-block:1px solid var(--line);margin-top:56px;padding:56px 20px;text-align:center}
.quoteband blockquote{font-family:'Amiri',serif;font-size:30px;line-height:1.9;max-width:720px;margin:0 auto}
.quoteband cite{display:block;margin-top:14px;color:var(--muted);font-style:normal;font-size:15px}
.newsletter{margin:60px auto;text-align:center;max-width:620px;padding:0 20px}
.newsletter h3{font-size:26px;font-weight:800;margin-bottom:8px}
.newsletter p{color:var(--muted);margin-bottom:22px}

/* Artwork figures */
figure.artwork,.article-hero .wp-post-image-wrap{margin:0}
figure.artwork img,.article-hero img{width:100%;max-height:560px;object-fit:cover;border-radius:12px}
figure.artwork.tall img{object-fit:contain;background:var(--bg-soft);max-height:640px}
figure.artwork figcaption,.article-hero .wp-caption-text,.article-hero figcaption{text-align:center;color:var(--muted);font-size:13px;margin-top:10px}
figure.artwork figcaption a{color:var(--accent-dark)}

/* Article */
.article-head{max-width:760px;margin:48px auto 0;padding:0 20px;text-align:center}
.article-head h1{font-size:40px;line-height:1.5;font-weight:800;margin:14px 0 12px}
.article-head .lede{color:var(--muted);font-size:19px}
.article-head .meta{margin-top:18px;font-size:14px;color:var(--muted)}
.article-hero{max-width:860px;margin:34px auto 0;padding:0 20px}
.article-body{max-width:700px;margin:40px auto 70px;padding:0 20px;font-size:19px;line-height:2.0;font-family:'Noto Naskh Arabic','Amiri',serif}
.article-body p{margin-bottom:26px}
.article-body h2{font-size:26px;font-weight:800;margin:40px 0 14px;font-family:'Tajawal',sans-serif}
.article-body .drop::first-letter,.article-body>p:first-child::first-letter{font-size:1.6em;color:var(--accent-dark);font-weight:800}
.article-body blockquote{border-right:4px solid var(--accent);padding:6px 22px 6px 0;margin:32px 0;font-family:'Amiri',serif;font-size:22px;line-height:1.85;color:var(--teal)}
.article-body blockquote cite{display:block;margin-top:12px;font-family:'Tajawal',sans-serif;font-size:15px;font-weight:700;font-style:normal;color:var(--accent-dark)}
.article-body blockquote cite::before{content:"— "}
.share-bar{max-width:700px;margin:0 auto 40px;padding:0 20px;display:flex;align-items:center;gap:12px}
.share-label{font-size:14px;color:var(--muted);font-weight:700}
.share-icons{display:flex;align-items:center;gap:8px}
.share-btn{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--bg-soft);color:var(--ink);border:none;cursor:pointer;transition:background .2s,color .2s}
.share-btn svg{width:17px;height:17px;fill:currentColor}
.share-btn:hover{background:var(--accent);color:#fff}
.share-copied-msg{position:absolute;bottom:calc(100% + 8px);right:50%;transform:translateX(50%) translateY(4px);background:var(--ink);color:#fff;font-size:12px;font-weight:700;padding:5px 10px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.share-copy.copied .share-copied-msg{opacity:1;transform:translateX(50%) translateY(0)}
@media(max-width:640px){.share-bar{flex-wrap:wrap}}

.tags{max-width:700px;margin:0 auto 40px;padding:0 20px;display:flex;gap:10px;flex-wrap:wrap}
.tags a{background:var(--bg-soft);border:1px solid var(--line);border-radius:100px;padding:5px 16px;font-size:13.5px;color:var(--muted)}
.tags a:hover{color:var(--accent-dark);border-color:var(--accent)}

.post-adjacent{max-width:700px;margin:0 auto 20px;padding:0 20px}
.adjacent-wrap{display:flex;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0}
.adjacent-link{flex:1;display:flex;flex-direction:column;gap:5px;padding:6px 10px;border-radius:8px;transition:background .2s}
.adjacent-link:hover{background:var(--bg-soft)}
.adjacent-link.next{text-align:left}
.adjacent-link .dir{font-size:12px;font-weight:700;color:var(--accent-dark)}
.adjacent-link .title{font-size:15px;font-weight:700;color:var(--ink);line-height:1.6}

.article-newsletter{background:var(--bg-soft);border-top:1px solid var(--line)}
.article-newsletter .newsletter{margin:44px auto}
.article-newsletter .subscribe-btn{display:inline-block;padding:12px 30px;font-size:15.5px}

.readnext{background:var(--bg-soft);border-top:1px solid var(--line);padding:50px 0 60px}
.readnext .cards{grid-template-columns:repeat(2,1fr);max-width:920px;margin:0 auto;padding:0 20px}
.article-body .article-hero{margin:38px auto}

/* Sections page */
.sections-intro{max-width:720px;margin:48px auto 10px;padding:0 20px;text-align:center}
.sections-intro h1{font-size:38px;font-weight:800;margin:12px 0 10px}
.sections-intro p{color:var(--muted);font-size:17.5px}
.group-label{display:flex;align-items:center;gap:14px;margin:46px 0 20px}
.group-label h2{font-size:22px;font-weight:800}
.group-label small{color:var(--muted);font-size:14px}
.group-label::after{content:'';flex:1;height:1px;background:var(--line)}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tile{border:1px solid var(--line);border-radius:12px;padding:26px 24px;background:#fff;transition:.25s;position:relative;display:block}
.tile:hover{box-shadow:0 10px 26px rgba(0,0,0,.07);transform:translateY(-3px);border-color:var(--accent)}
.tile .icon{margin-bottom:16px}
.tile h3{font-size:22px;font-weight:800}
.tile .en{color:var(--muted);font-size:12.5px;letter-spacing:1px;margin-bottom:8px}
.tile p{color:var(--muted);font-size:14.5px;margin-top:6px}
.vice .icon circle,.vice .icon path{stroke:#8A4B3A}
.virtue .icon circle,.virtue .icon path{stroke:#14555A}

/* Footer */
.site-footer{background:var(--ink);color:#CFCCC5}
.site-footer .wrap{padding:46px 20px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.site-footer .fbrand{font-size:28px;font-weight:800;color:#fff}
.site-footer .fbrand span{color:var(--accent)}
.site-footer p{font-size:14px;margin-top:10px;color:#9C998F}
.site-footer h5{color:#fff;font-size:15px;margin-bottom:12px}
.site-footer ul{list-style:none;font-size:14px}
.site-footer li{margin-bottom:8px}
.site-footer a:hover{color:var(--accent)}
.copyright{border-top:1px solid #333;text-align:center;padding:16px;font-size:13px;color:#8A877E}
.footer-legal{display:inline-block;margin-inline-start:10px}
.footer-legal a{color:#8A877E}
.footer-legal a:hover{color:var(--accent)}
@media (max-width:640px){.copyright{display:flex;flex-direction:column;gap:6px}.footer-legal{margin-inline-start:0}}

/* Pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin:40px 0;font-weight:700}
.pagination .page-numbers{border:1px solid var(--line);border-radius:6px;padding:6px 14px}
.pagination .current{background:var(--accent);color:#fff;border-color:var(--accent)}

@media(max-width:900px){
  .cards,.tiles{grid-template-columns:1fr}
  .readnext .cards{grid-template-columns:1fr}
  .masthead .wrap{height:auto;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;row-gap:8px}
  .mainnav{order:3;width:100%}
  .mainnav ul{gap:4px;justify-content:center;flex-wrap:wrap}
  .mainnav a{padding:7px 12px;font-size:14px;white-space:nowrap}
  .subscribe-btn{margin-inline-start:auto}
  .newsletter form{flex-direction:column}
  .article-head h1{font-size:30px}
  .site-footer .wrap{grid-template-columns:1fr}
  .adjacent-wrap{flex-direction:column;gap:14px}
  .adjacent-link.next{text-align:right}
}
