/*
Theme Name: Harishsh Blog
Theme URI: https://blog.harishsh.com/
Author: Harish Sharma
Description: Editable dark editorial WordPress theme for blog.harishsh.com, designed in the Harishsh.com brand language.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: harishsh-blog
*/

:root{
  --bg:#FFFFFF;
  --bg-card:#FAFAF9;
  --surface:#FAFAF9;
  --surface-2:#F7F7F5;
  --ink:#0D0D0D;
  --body:#3D3D3A;
  --muted:#888884;
  --muted-2:#888884;
  --acc:#F5A623;
  --acc-dk:#D4890A;
  --acc-lt:#FEF3DC;
  --bdr:#E8E8E5;
  --bdr-soft:#E8E8E5;
  --cat-pdf:#EF4444;
  --cat-img:#8B5CF6;
  --cat-aud:#F59E0B;
  --cat-txt:#10B981;
  --max:760px;
  --wide:1100px;
  --r:8px;
}

*,
*::before,
*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--body);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
::selection{background:var(--acc);color:#080808}

/* Header */
.site-header{
  height:57px;
  border-bottom:1px solid var(--bdr);
  background:var(--bg);
}
.header-inner{
  max-width:1100px;
  height:100%;
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#0D0D0D;
  font-size:13px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand-image{max-height:31px;width:auto}
.brand-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:21px;
  height:21px;
  padding:0 6px;
  border-radius:4px;
  background:var(--acc);
  color:#080808;
  font-size:11px;
  font-weight:800;
}
.header-nav{
  display:flex;
  align-items:center;
  gap:24px;
}
.header-nav a{
  color:#0D0D0D;
  font-size:12px;
  font-weight:700;
  transition:color .15s;
}
.header-nav a:hover{color:var(--acc)}

/* Homepage */
.home-main{
  max-width:var(--wide);
  margin:0 auto;
  padding:45px 32px 80px;
}
.home-inner{max-width:760px}
.blog-hero{
  padding:0 0 39px;
}
.blog-hero-title{
  margin:0;
  color:var(--ink);
  font-size:clamp(42px,6vw,58px);
  line-height:1.04;
  letter-spacing:-2.5px;
  font-weight:900;
  max-width:700px;
}
.blog-hero-accent{color:var(--acc)}
.latest-label{
  margin:0 0 14px;
  color:var(--acc);
  font-size:9px;
  line-height:1;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* Post cards */
.post-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.post-card{
  min-width:0;
  background:var(--bg-card);
  border:1px solid var(--bdr);
  border-radius:8px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:border-color .18s,transform .15s;
}
.post-card:hover{
  border-color:#454545;
  transform:translateY(-2px);
}
.post-card-media{
  width:100%;
  aspect-ratio:1.48 / 1;
  background:#F7F7F5;
  border-bottom:1px solid var(--bdr-soft);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.post-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.no-cover{
  color:#888884;
  font:11px/1.2 monospace;
  text-transform:lowercase;
}
.post-card-body{
  padding:17px 15px 18px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.post-category{
  color:var(--acc);
  font-size:8px;
  line-height:1;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:9px;
}
.post-card-title{
  margin:0 0 10px;
  color:#0D0D0D;
  font-size:17px;
  line-height:1.08;
  letter-spacing:-.55px;
  font-weight:800;
}
.post-card-excerpt{
  color:#3D3D3A;
  font-size:11.5px;
  line-height:1.55;
  margin:0 0 15px;
}
.post-date{
  margin-top:auto;
  color:#888884;
  font-size:7px;
  line-height:1.2;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.no-posts{
  border:1px solid var(--bdr);
  border-radius:var(--r);
  padding:30px;
  color:var(--muted);
}

/* Single post */
.single-main{
  max-width:var(--max);
  margin:0 auto;
  padding:48px 32px 90px;
}
.back-link{
  display:inline-block;
  margin-bottom:30px;
  color:#0D0D0D;
  font-size:11px;
  font-weight:600;
}
.back-link:hover{color:var(--acc)}
.single-category{
  color:var(--acc);
  font-size:9px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.single-title{
  margin:0 0 13px;
  color:#0D0D0D;
  font-size:clamp(42px,6vw,57px);
  line-height:.98;
  letter-spacing:-2.2px;
  font-weight:900;
}
.single-excerpt{
  color:#3D3D3A;
  font-size:13px;
  line-height:1.55;
  margin:0 0 27px;
}
.single-content{
  color:#3D3D3A;
  font-size:13px;
  line-height:1.72;
}
.single-content > *{max-width:100%}
.single-content h2{
  margin:35px 0 11px;
  color:#0D0D0D;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.5px;
  font-weight:800;
}
.single-content h3{
  margin:28px 0 9px;
  color:#0D0D0D;
  font-size:16px;
  line-height:1.25;
  font-weight:800;
}
.single-content p{margin:0 0 19px}
.single-content ul,
.single-content ol{
  margin:0 0 20px;
  padding-left:24px;
}
.single-content li{margin:0 0 6px}
.single-content a{
  color:var(--acc);
  text-decoration:underline;
  text-underline-offset:3px;
}
.single-content strong{color:#0D0D0D}
.single-content blockquote{
  margin:26px 0;
  padding:4px 0 4px 18px;
  border-left:2px solid var(--acc);
  color:#3D3D3A;
}
.single-content code{
  padding:2px 5px;
  border-radius:4px;
  background:#F7F7F5;
  color:#0D0D0D;
  font-size:.9em;
}
.single-content pre{
  overflow:auto;
  padding:16px;
  background:#F7F7F5;
  border:1px solid var(--bdr);
  border-radius:6px;
}
.single-content pre code{padding:0;background:none}
.single-content img{
  margin:28px 0;
  border:1px solid var(--bdr);
  border-radius:6px;
}
.single-meta{
  color:#888884;
  font-size:8px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-top:28px;
}

/* Footer — matched to supplied Harishsh.com sample */
.site-footer{
  border-top:1px solid #E8E8E5;
  background:#FFFFFF;
  min-height:200px;
  color:#888884;
}
.footer-inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:40px 40px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
}
.footer-copy{
  color:#0D0D0D;
  font-size:16px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.3px;
}
.footer-accent{
  color:#F5A623;
}
.footer-tagline{
  color:#888884;
  font-size:15px;
  line-height:1.3;
  font-weight:400;
}
.footer-links{
  display:flex;
  align-items:center;
  gap:28px;
  margin:0;
  padding:0;
  list-style:none;
}
.footer-links a{
  color:#888884;
  font-size:15px;
  line-height:1.3;
  font-weight:400;
}
.footer-links a:hover{
  color:#0D0D0D;
}

/* WordPress */
.alignwide{max-width:100%;margin-left:auto;margin-right:auto}
.alignfull{max-width:100vw;margin-left:calc(50% - 50vw);width:100vw}
.screen-reader-text{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:800px){
  .header-inner{padding:0 22px}
  .home-main{padding:42px 22px 60px}
  .single-main{padding:40px 22px 70px}
  .footer-inner{padding:20px 22px}
}

@media(max-width:620px){
  .header-nav{gap:14px}
  .header-nav a{font-size:11px}
  .blog-hero-title{font-size:43px;letter-spacing:-1.8px}
  .post-grid{grid-template-columns:1fr}
  .single-title{font-size:42px;letter-spacing:-1.6px}
}
