*{box-sizing:border-box;margin:0;padding:0}
:root{
	--bg:#FAF3E0;
	--bg2:#f4ebe3;
	--card:#ffffff;
	--text:#333333;
	--muted:#B0B0B0;
	--brand:#8B3A3A;
	--gold:#F4D03F;
	--heading:#2E4053;
	--brand-2:#FFF2C2;
	--border:#e5d4b8;
	--spacing-xs:4px;
	--spacing-sm:8px;
	--spacing-md:16px;
	--spacing-lg:24px;
	--spacing-xl:32px;
	--spacing-2xl:48px;
}
body{
	margin:0;
	background:radial-gradient(1200px 800px at 80% -100px, var(--bg2), transparent), url('../images/site-bg.svg'), var(--bg);
	background-size:auto, cover, auto;
	background-repeat:no-repeat, no-repeat, no-repeat;
	background-attachment:scroll, fixed, scroll;
	background-position:center top, center top, center top;
	color:var(--text);
	font-family:'Noto Serif Devanagari',serif;
	font-size:18px;
	line-height:1.6;
}
.container{max-width:1280px;margin:0 auto;padding:0 var(--spacing-md)}
.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.site-header.glass{background:rgba(255,255,255,.95);backdrop-filter:saturate(140%) blur(8px)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:var(--spacing-lg)}
.brand{font-family:'Mukta Vaani', sans-serif;font-weight:700;font-size:24px;color:var(--brand);text-decoration:none;letter-spacing:.2px;display:flex;align-items:center;gap:var(--spacing-sm)}
.logo{background:var(--gold);border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:20px}
.nav{display:flex;align-items:center;gap:var(--spacing-sm)}
.nav a{padding:var(--spacing-sm) var(--spacing-md);color:#444;text-decoration:none;border-radius:8px;transition:background .2s;font-family:'Mukta', sans-serif;font-weight:500;text-transform:uppercase;font-size:14px}
.nav a:hover{background:var(--bg2)}
.search{display:flex;gap:var(--spacing-sm);align-items:center}
.search input{padding:10px 14px;border:1px solid var(--border);border-radius:8px;min-width:240px;font-family:'Noto Sans Devanagari',sans-serif}
.search .btn.sm{padding:10px 14px}
.hero{padding:var(--spacing-2xl) 0 var(--spacing-lg);text-align:center;background:linear-gradient(180deg, transparent, var(--bg2) 80%)}
.hero-title{font-size:56px;margin:0 0 var(--spacing-md);font-family:'Mukta Vaani',sans-serif;font-weight:700;color:var(--heading);display:inline-block;position:relative}
.hero-title:after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-12px;width:120px;height:4px;background:var(--gold);border-radius:999px}
.tagline{color:#6b6b6b;font-family:'Noto Serif Devanagari',serif;font-size:18px;margin-bottom:var(--spacing-lg);line-height:1.5}
.writer-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:var(--spacing-lg);display:flex;flex-direction:column;align-items:center;text-align:center;margin:var(--spacing-md) 0;box-shadow:0 4px 16px rgba(0,0,0,.08)}
.writer-card.fancy{background:linear-gradient(180deg, #fff 0%, #fef8f0 100%)}
.writer-avatar{width:120px;height:120px;border-radius:50%;background:linear-gradient(135deg, #F4D03F, #d4883a);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:48px;margin-bottom:var(--spacing-md);overflow:hidden}
.writer-avatar img{width:100%;height:100%;object-fit:cover}
.writer-info h3{font-family:'Mukta Vaani',sans-serif;font-size:24px;font-weight:700;color:var(--heading);margin:0 0 var(--spacing-xs)}
.writer-info p{font-family:'Noto Serif Devanagari',serif;font-size:14px;color:var(--muted);margin:var(--spacing-sm) 0;line-height:1.6}
.writer-actions{display:flex;gap:var(--spacing-sm);margin-top:var(--spacing-md)}
.writer-actions .btn{margin:0}
.layout{display:grid;grid-template-columns:340px 1fr;gap:var(--spacing-lg);align-items:start}
.writer-card.sticky{position:sticky;top:calc(64px + var(--spacing-md))}
.poem-list{display:grid;grid-template-columns:1fr;gap:var(--spacing-lg);margin:var(--spacing-md) 0 var(--spacing-xl)}
.poem-list.cols-3{grid-template-columns:repeat(3,1fr)}
.poem-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:var(--spacing-md);box-shadow:0 4px 16px rgba(0,0,0,.06);transition:transform .2s ease, box-shadow .2s ease;display:flex;flex-direction:column}
.poem-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.1)}
.poem-icon{font-size:32px;margin-bottom:var(--spacing-md)}
.poem-card .poem-title{margin:0 0 var(--spacing-sm);font-family:'Mukta Vaani',sans-serif;font-size:24px;font-weight:700;color:var(--brand)}
.poem-card .poem-title a{color:inherit;text-decoration:none}
.poem-card .poem-title a:hover{color:var(--gold)}
.poem-card .meta{color:var(--muted);font-size:14px;margin-bottom:var(--spacing-md);font-family:'Roboto',sans-serif}
.excerpt{white-space:pre-wrap;font-family:'Noto Serif Devanagari',serif;line-height:1.8;font-size:18px;color:var(--text);flex:1;margin-bottom:var(--spacing-md)}
.poem-text{white-space:pre-wrap;font-family:'Noto Serif Devanagari',serif;line-height:1.9;font-size:20px}

.poem-detail{position:relative;margin:18px 0}
.poem-detail .bg{height:220px;border-radius:16px;background-size:cover;background-position:center;filter:saturate(92%);}
.poem-detail .poem-box{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px;margin-top:-80px;position:relative;box-shadow:0 14px 40px rgba(0,0,0,.08)}
.poem-box.raised .poem-title{margin-top:4px;margin-bottom:8px}
.back-link{color:#7a5b3c;text-decoration:none}
.meta{color:var(--muted);font-size:14px;margin-bottom:8px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.chip{background:var(--brand-2);color:#6a4a2e;border-radius:999px;padding:4px 10px;font-size:12px;border:1px solid #ecd6c1}
.btn{font-family:'Mukta',sans-serif;font-weight:500;font-size:14px;text-transform:uppercase;letter-spacing:.5px;background:var(--gold);color:#fff;border:none;border-radius:8px;padding:10px 16px;cursor:pointer;text-decoration:none;display:inline-block;transition:all .2s ease;box-shadow:0 2px 8px rgba(244,208,63,.3)}
.btn.primary{background:var(--gold);color:#fff}
.btn.secondary{background:#fff;color:var(--gold);border:2px solid var(--gold);box-shadow:none}
.btn.lg{padding:14px 24px;font-size:16px;border-radius:10px}
.btn.sm{padding:8px 14px;font-size:13px}
.btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(244,208,63,.4)}
.btn.secondary:hover{background:var(--gold);color:#fff}
.btn:active{transform:translateY(0)}
.btn.light{background:#f2e6da;color:#6a4a2e;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.btn.shadow{box-shadow:0 4px 16px rgba(244,208,63,.35)}
.form{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}
.form label{display:block;margin:8px 0}
.form input,.form textarea{width:100%;padding:8px;border:1px solid var(--border);border-radius:8px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.reactions{display:flex;gap:8px;margin:12px 0}
.comments{margin-top:12px}
.comment-list{list-style:none;padding:0}
.comment-list li{border-top:1px solid var(--border);padding:10px 0}
.comment-meta{color:var(--muted);font-size:12px}
.site-footer{margin:var(--spacing-xl) 0;padding:var(--spacing-lg) 0;border-top:1px solid var(--border);color:var(--muted);font-size:14px}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:var(--spacing-md);flex-wrap:wrap}
.footer-links{display:flex;gap:var(--spacing-md)}
.footer-links a{color:#6a6a6a;text-decoration:none;transition:color .2s}
.footer-links a:hover{color:var(--brand)}
.flash{margin:12px 0}
.flash-item{padding:10px 12px;border-radius:8px;margin-bottom:6px;border:1px solid var(--border);box-shadow:0 4px 12px rgba(0,0,0,.04)}
.flash-item.success{background:#e9f7ef;color:#1e7e34}
.flash-item.error{background:#fdecea;color:#b23b3b}

/* Breakpoints: mobile <= 600, tablet 600-1200, desktop >= 1200 */
@media (max-width: 600px){
	.layout{grid-template-columns:1fr}
	.writer-card.sticky{position:relative;top:auto;margin-bottom:var(--spacing-lg)}
	.poem-list.cols-3{grid-template-columns:1fr}
	.hero-title{font-size:32px}
	.header-inner{flex-wrap:wrap;height:auto;padding:var(--spacing-md) 0}
	.search{width:100%;order:3}
	.search input{width:100%;min-width:auto}
	.nav{order:2}
	.footer-inner{flex-direction:column;text-align:center}
}

@media (min-width: 601px) and (max-width: 1199px){
	.poem-list.cols-3{grid-template-columns:repeat(2,1fr)}
	.layout{grid-template-columns:1fr}
	.writer-card.sticky{position:relative;top:auto;margin-bottom:var(--spacing-lg)}
	.hero-title{font-size:40px}
}

@media (min-width: 1200px){
	.poem-list.cols-3{grid-template-columns:repeat(3,1fr)}
}

/* Pagination */
.pagination{display:flex;gap:var(--spacing-sm);justify-content:center;margin:var(--spacing-xl) 0;align-items:center}
.page-link,.page-number{padding:10px 16px;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:var(--heading);background:#fff;font-family:'Mukta Vaani',sans-serif;font-weight:500;transition:all .2s;min-width:44px;text-align:center}
.page-link:hover:not(.disabled),.page-number:hover:not(.active){background:var(--bg2);border-color:var(--gold)}
.page-number.active{background:var(--gold);color:#fff;border-color:var(--gold);box-shadow:0 2px 8px rgba(244,208,63,.3)}
.page-link.disabled{pointer-events:none;opacity:.4}

/* Animated poem lines */
.animate-lines .line{display:inline-block;white-space:pre-wrap}
