/*
Theme Name: TechRunbook Blog
Theme URI: https://blogs.techrunbook.in/
Author: TechRunbook
Description: Clean, responsive WordPress theme for the TechRunbook technical blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: techrunbook-blog
*/

:root{
  --tr-bg:#f6f7f9;
  --tr-surface:#fff;
  --tr-text:#17202a;
  --tr-muted:#667085;
  --tr-border:#e5e7eb;
  --tr-accent:#8f2d2d;
  --tr-accent-dark:#6f2020;
  --tr-code:#111827;
  --tr-max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--tr-bg);color:var(--tr-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.7}
a{color:var(--tr-accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.tr-container{width:min(var(--tr-max),calc(100% - 32px));margin-inline:auto}
.tr-header{background:#fff;border-bottom:1px solid var(--tr-border);position:sticky;top:0;z-index:20}
.tr-header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.tr-brand{display:flex;align-items:center;gap:10px;color:var(--tr-text);font-weight:800;font-size:22px;letter-spacing:-.3px}
.tr-brand:hover{text-decoration:none}
.tr-mark{width:38px;height:38px;border-radius:9px;background:var(--tr-accent);display:grid;place-items:center;color:#fff;font-weight:900}
.tr-nav{display:flex;gap:20px;align-items:center;font-size:15px}
.tr-nav a{color:var(--tr-text);font-weight:600}
.tr-nav a:hover{color:var(--tr-accent);text-decoration:none}
.tr-main{padding:42px 0 64px}
.tr-hero{background:var(--tr-surface);border:1px solid var(--tr-border);border-radius:16px;padding:34px;margin-bottom:28px}
.tr-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;color:var(--tr-accent)}
.tr-hero h1{font-size:clamp(34px,5vw,54px);line-height:1.08;margin:10px 0 12px;letter-spacing:-1.5px}
.tr-hero p{max-width:760px;color:var(--tr-muted);font-size:18px;margin:0}
.tr-section-title{font-size:28px;margin:0 0 18px;letter-spacing:-.5px}
.tr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tr-card{background:#fff;border:1px solid var(--tr-border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.tr-card-image{aspect-ratio:16/9;background:#eceff3;overflow:hidden}
.tr-card-image img{width:100%;height:100%;object-fit:cover}
.tr-card-body{padding:20px;display:flex;flex-direction:column;flex:1}
.tr-card h2{font-size:21px;line-height:1.25;margin:0 0 10px}
.tr-card h2 a{color:var(--tr-text)}
.tr-card h2 a:hover{color:var(--tr-accent);text-decoration:none}
.tr-meta{font-size:13px;color:var(--tr-muted);margin-bottom:12px}
.tr-excerpt{color:#475467;font-size:15px;margin:0 0 16px}
.tr-read{margin-top:auto;font-weight:750}
.tr-single-wrap{max-width:850px;margin:0 auto}
.tr-article{background:#fff;border:1px solid var(--tr-border);border-radius:16px;padding:clamp(22px,5vw,54px)}
.tr-article-header h1{font-size:clamp(34px,6vw,58px);line-height:1.1;letter-spacing:-1.6px;margin:8px 0 14px}
.tr-article-meta{color:var(--tr-muted);font-size:14px}
.tr-featured{margin:28px 0;border-radius:12px;overflow:hidden}
.tr-content{font-size:18px}
.tr-content h2{font-size:31px;line-height:1.2;margin:42px 0 14px}
.tr-content h3{font-size:24px;line-height:1.3;margin:32px 0 12px}
.tr-content p{margin:0 0 20px}
.tr-content ul,.tr-content ol{padding-left:28px;margin:0 0 22px}
.tr-content li{margin:7px 0}
.tr-content blockquote{border-left:4px solid var(--tr-accent);padding:4px 20px;margin:25px 0;color:#475467;background:#fafafa}
.tr-content pre{background:var(--tr-code);color:#f8fafc;padding:18px;border-radius:10px;overflow:auto;line-height:1.55;margin:24px 0}
.tr-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.tr-content p code,.tr-content li code{background:#f0f2f5;padding:2px 6px;border-radius:5px;color:#374151}
.tr-footer{background:#111827;color:#d1d5db;padding:34px 0}
.tr-footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.tr-footer a{color:#fff}
.tr-footer p{margin:0;font-size:14px}
.tr-empty{background:#fff;border:1px solid var(--tr-border);border-radius:14px;padding:30px}
.tr-pagination{margin-top:28px}
.tr-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.tr-pagination a,.tr-pagination span{padding:8px 12px;border:1px solid var(--tr-border);border-radius:8px;background:#fff}
.tr-pagination .current{background:var(--tr-accent);color:#fff;border-color:var(--tr-accent)}
@media(max-width:900px){.tr-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){
  .tr-container{width:min(var(--tr-max),calc(100% - 20px))}
  .tr-header-inner{min-height:64px}
  .tr-nav{gap:12px;font-size:13px}
  .tr-brand{font-size:18px}
  .tr-mark{width:34px;height:34px}
  .tr-main{padding:22px 0 45px}
  .tr-hero{padding:24px}
  .tr-grid{grid-template-columns:1fr}
  .tr-article{padding:22px 18px}
  .tr-content{font-size:17px}
}
