:root{
--paper:#f7f5f2;--ink:#1f2a44;--muted:#6b7280;--line:rgba(31,42,68,.12);
--gold:#c7a14a;--container:1200px;
--font-ar:'Noto Naskh Arabic','Amiri',serif;
--font-ui:'Cairo',system-ui;
}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-ui);line-height:1.9;}
.container{width:min(var(--container),calc(100% - 32px));margin:auto;}
.site-header{border-bottom:1px solid var(--line);background:#fff;}
.header-inner{display:flex;justify-content:space-between;align-items:center;padding:14px 0;}
.site-nav ul{list-style:none;display:flex;gap:18px;margin:0;padding:0;}
.site-nav a{padding:6px 10px;border-radius:8px;}
.site-nav a:hover{background:rgba(199,161,74,.12);}
.site-main{padding:28px 0;}

/* Hero */
.hero{
min-height:60vh;
border-radius:20px;
overflow:hidden;
position:relative;
margin-top:24px;
background-color:var(--ink);
}
.hero-no-bg{
background-image:linear-gradient(135deg,rgba(31,42,68,.98),rgba(31,42,68,.82));
}
.hero-bg-media{
position:absolute;
inset:0;
z-index:0;
overflow:hidden;
}
.hero-bg-media img{
display:block;
width:100%;
height:100%;
object-fit:cover;
transform:scale(1);
transform-origin:center;
transition:transform .45s ease,filter .45s ease;
}
.hero-link{
position:relative;
display:block;
min-height:60vh;
color:inherit;
text-decoration:none;
}
.hero-overlay{
position:absolute;
inset:0;
display:flex;
align-items:center;
background:linear-gradient(180deg,rgba(12,17,30,.16) 0%,rgba(12,17,30,.68) 62%,rgba(12,17,30,.78) 100%);
z-index:1;
}
.hero-content{
max-width:760px;
padding:40px;
margin-inline-start:clamp(1rem,3.5vw,2.25rem);
}
.hero-kicker{
display:inline-block;
margin:0 0 14px;
padding:4px 12px;
border-radius:999px;
background:rgba(199,161,74,.18);
border:1px solid rgba(199,161,74,.5);
color:var(--gold);
font-size:.78rem;
line-height:1.2;
letter-spacing:.04em;
}
.hero-title{
margin:0 0 14px;
font-family:var(--font-ar);
font-size:clamp(1.9rem,4.6vw,3.7rem);
line-height:1.25;
color:#fff;
text-wrap:balance;
}
.hero-excerpt{
margin:0 0 16px;
max-width:60ch;
font-size:clamp(1rem,1.8vw,1.15rem);
line-height:1.9;
color:rgba(255,255,255,.86);
}
.hero-cta{
display:inline-flex;
align-items:center;
gap:.35rem;
font-weight:700;
color:#fff;
border-bottom:1px solid rgba(255,255,255,.48);
padding-bottom:2px;
transition:border-color .25s ease,color .25s ease,transform .25s ease;
}
.hero-cta::after{
content:"\2192";
font-size:.92em;
transform:translateX(0);
transition:transform .25s ease;
}
.hero-link:hover .hero-bg-media img,
.hero-link:focus-visible .hero-bg-media img,
.hero:hover .hero-bg-media img,
.hero:focus-within .hero-bg-media img{
transform:scale(1.025);
filter:brightness(1.06);
}
.hero-link:hover .hero-cta,
.hero-link:focus-visible .hero-cta,
.hero:hover .hero-cta,
.hero:focus-within .hero-cta{
border-color:#fff;
color:var(--gold);
transform:translateY(-1px);
}
.hero-link:hover .hero-cta::after,
.hero-link:focus-visible .hero-cta::after,
.hero:hover .hero-cta::after,
.hero:focus-within .hero-cta::after{
transform:translateX(2px);
}
@media (max-width: 768px){
.hero,
.hero-link{min-height:52vh;}
.hero-content{padding:26px 20px;margin-inline-start:0;}
.hero-title{font-size:clamp(1.55rem,8vw,2.25rem);}
.hero-excerpt{font-size:1rem;line-height:1.8;}
}

.post-item{
padding:14px 0;
border-bottom:1px solid var(--line);
}

/* Home Sections & Cards */
.home-section{
margin-top:clamp(1.5rem,3vw,2.5rem);
}
.section-header,
.section-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:1rem;
margin:0 0 1rem;
}
.section-title{
margin:0;
font-family:var(--font-ar);
font-size:clamp(1.35rem,2.8vw,2rem);
line-height:1.35;
color:var(--ink);
}
.section-more{
color:var(--muted);
text-decoration:none;
border-bottom:1px solid rgba(31,42,68,.2);
padding-bottom:2px;
white-space:nowrap;
transition:color .2s ease,border-color .2s ease;
}
.section-more:hover,
.section-more:focus-visible{
color:var(--ink);
border-color:var(--gold);
}
.cards-grid{
display:grid;
grid-template-columns:1fr;
gap:1rem;
}
.card{
background:#fff;
border:1px solid var(--line);
border-radius:14px;
overflow:hidden;
transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.card-link{
display:block;
color:inherit;
text-decoration:none;
}
.card:hover,
.card:focus-within{
transform:translateY(-2px);
box-shadow:0 10px 18px rgba(31,42,68,.08);
border-color:rgba(31,42,68,.2);
}
.card-media img{
display:block;
width:100%;
height:210px;
object-fit:cover;
}
.card-body{
padding:14px;
}
.card-kicker{
display:inline-block;
margin:0 0 10px;
padding:3px 10px;
border-radius:999px;
font-size:.74rem;
line-height:1.2;
background:rgba(199,161,74,.16);
border:1px solid rgba(199,161,74,.4);
color:#8b6c21;
}
.card-title{
margin:0 0 8px;
font-size:1.05rem;
line-height:1.55;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.card-excerpt{
margin:0;
color:var(--muted);
line-height:1.8;
}
.section-empty{
margin:0;
color:var(--muted);
}
@media (min-width: 640px){
.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width: 1024px){
.cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* Single Post */
.container.narrow{
max-width:820px;
}
.single-header{
margin:0 0 1.5rem;
}
.single-title{
margin:0 0 .75rem;
font-family:var(--font-ar);
font-size:clamp(1.8rem,4vw,3rem);
line-height:1.3;
text-wrap:balance;
}
.single-meta{
margin:0;
font-size:.9rem;
line-height:1.7;
color:var(--muted);
}
.single-meta a{
color:inherit;
text-decoration:none;
border-bottom:1px solid rgba(31,42,68,.22);
}
.single-meta a:hover,
.single-meta a:focus-visible{
border-color:var(--gold);
}
.single-meta-categories{
margin-inline-start:.6rem;
}
.poem-content{
font-size:clamp(1.08rem,2.4vw,1.3rem);
line-height:2.2;
letter-spacing:.01em;
word-break:break-word;
overflow-wrap:anywhere;
}
.poem-content p{
margin:0 0 1.15rem;
}
.poem-content br{
line-height:2.1;
}
.article-content{
line-height:2;
word-break:break-word;
overflow-wrap:anywhere;
}
.related-poems{
margin-top:2rem;
padding-top:1.25rem;
border-top:1px solid var(--line);
}
.single-footer{
margin-top:1.5rem;
padding-top:1rem;
border-top:1px solid var(--line);
}
.single-tags{
margin:0;
color:var(--muted);
font-size:.95rem;
}
.single-tags a{
color:inherit;
text-decoration:none;
border-bottom:1px solid rgba(31,42,68,.22);
}
.single-tags a:hover,
.single-tags a:focus-visible{
border-color:var(--gold);
}
@media (max-width: 768px){
.single-header{margin-bottom:1.1rem;}
.poem-content{font-size:1.08rem;line-height:2.05;}
}

/* Archives */
.archive-head,
.archive-header{
margin:0 0 1.5rem;
padding-bottom:1rem;
border-bottom:1px solid var(--line);
}
.archive-title{
margin:0 0 .45rem;
font-family:var(--font-ar);
font-size:clamp(1.55rem,3.2vw,2.4rem);
line-height:1.35;
color:var(--ink);
}
.archive-desc,
.archive-description{
margin:0;
color:var(--muted);
line-height:1.9;
max-width:70ch;
}
.cards-grid + .navigation,
.cards-grid + .pagination,
.archive .navigation,
.archive .pagination{
margin-top:1.25rem;
}
.navigation.pagination,
.pagination{
display:flex;
justify-content:center;
gap:.35rem;
flex-wrap:wrap;
}
.page-numbers{
display:inline-flex;
align-items:center;
justify-content:center;
min-width:2.1rem;
padding:.45rem .7rem;
border:1px solid var(--line);
border-radius:8px;
background:#fff;
color:var(--ink);
text-decoration:none;
line-height:1;
transition:border-color .2s ease,color .2s ease,background-color .2s ease;
}
.page-numbers:hover,
.page-numbers:focus-visible{
border-color:var(--gold);
color:#7b5e1b;
}
.page-numbers.current{
border-color:rgba(199,161,74,.45);
background:rgba(199,161,74,.12);
color:#7b5e1b;
}

/* Card Grid Fit */
.cards-grid .card{height:100%;}
.cards-grid .card-link{display:flex;flex-direction:column;height:100%;}
.cards-grid .card-body{display:flex;flex-direction:column;gap:.5rem;flex:1;}
.cards-grid .card-kicker,
.cards-grid .card-title,
.cards-grid .card-excerpt{margin:0;}
.cards-grid .card-media,
.cards-grid .card-media-placeholder{height:210px;background:linear-gradient(135deg,rgba(31,42,68,.08),rgba(31,42,68,.16));}
.cards-grid .card-media img{height:100%;}
.cards-grid .card-excerpt{
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
}

/* Mobile Nav */
.nav-toggle{
display:none;
align-items:center;
justify-content:center;
min-width:42px;
height:42px;
padding:0;
border:1px solid var(--line);
border-radius:10px;
background:#fff;
color:var(--ink);
cursor:pointer;
}
.nav-toggle::before{
content:"\2630";
font-size:1.1rem;
line-height:1;
}
.site-nav .current-menu-item > a{
color:var(--ink);
background:rgba(199,161,74,.16);
}
@media (max-width: 900px){
.nav-toggle{display:inline-flex;}
.site-nav-wrap{
position:absolute;
inset-inline:0;
top:100%;
display:none;
padding:.75rem 16px 1rem;
background:rgba(247,245,242,.98);
border-top:1px solid var(--line);
border-bottom:1px solid var(--line);
backdrop-filter:saturate(140%) blur(2px);
z-index:20;
}
body.nav-open .site-nav-wrap{display:block;}
.site-header{position:relative;}
.site-nav ul,
.site-nav .menu{
flex-direction:column;
align-items:stretch;
gap:.5rem;
}
.site-nav a{
display:block;
padding:.6rem .75rem;
border-radius:10px;
text-align:start;
}
.site-nav .current-menu-item > a{
border:1px solid rgba(199,161,74,.35);
}
}

.hero-subtitle{
margin:0 0 .55rem;
font-family:var(--font-ar);
font-size:clamp(.98rem,1.8vw,1.12rem);
line-height:1.9;
color:rgba(255,255,255,.78);
}

/* Accessibility */
.skip-link{
position:absolute;
inset-inline-start:12px;
top:10px;
transform:translateY(-180%);
padding:.45rem .75rem;
border-radius:8px;
background:var(--ink);
color:#fff;
text-decoration:none;
z-index:999;
transition:transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible{
transform:translateY(0);
}
.nav-toggle:focus-visible{
outline:2px solid var(--gold);
outline-offset:2px;
}

/* Performance Tweaks */
.menu{
list-style:none;
margin:0;
padding:0;
min-height:2.5rem;
}
.card-media,
.card-media-placeholder{
aspect-ratio:16 / 10;
}
.card-media img{
height:100%;
}
@media (prefers-reduced-motion: reduce){
.hero-bg-media img,
.hero-cta,
.hero-cta::after,
.card,
.page-numbers,
.skip-link{
transition:none !important;
}
.hero-link:hover .hero-bg-media img,
.hero-link:focus-visible .hero-bg-media img,
.hero:hover .hero-bg-media img,
.hero:focus-within .hero-bg-media img,
.card:hover,
.card:focus-within,
.hero-link:hover .hero-cta,
.hero-link:focus-visible .hero-cta,
.hero:hover .hero-cta,
.hero:focus-within .hero-cta,
.hero-link:hover .hero-cta::after,
.hero-link:focus-visible .hero-cta::after,
.hero:hover .hero-cta::after,
.hero:focus-within .hero-cta::after{
transform:none !important;
filter:none !important;
}
}
