/*
 * Blog index (home.php) + single post (single.php) design system — copied
 * from blog.html's <style> block. Shared #r1fh / .r1-nav-menu / .r1-pillnav /
 * footer rules live in assets/css/base.css and are not duplicated here.
 */
:root{--emerald:#183c28;--emerald2:#133020;--emerald50:#ecfdf5;--slate950:#020617;--slate900:#0f172a;--slate700:#334155;--slate600:#475569;--slate500:#64748b;--slate300:#cbd5e1;--slate200:#e2e8f0;--slate50:#f8fafc;--white:#fff}
.container{width:min(1180px,calc(100% - 48px));margin:auto}
.section{padding:80px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;padding:15px 24px;text-decoration:none;font-weight:700;border:1px solid transparent;transition:.2s;cursor:pointer;font-family:inherit;font-size:15px}
.btn-primary{background:var(--emerald);color:#fff}
.btn-primary:hover{background:var(--emerald2);transform:translateY(-1px)}
.btn-outline{border-color:#cbd5e1;background:#fff;color:var(--slate950)}
.btn-outline-dark{border-color:rgba(255,255,255,.4);color:#fff;background:transparent}
.card{background:#fff;border:1px solid var(--slate200);border-radius:24px;box-shadow:0 10px 35px rgba(15,23,42,.08)}
.muted{color:var(--slate950);line-height:1.75}
.kicker{text-transform:uppercase;letter-spacing:.28em;font-size:13px;font-weight:800;color:var(--emerald)}
.emerald{background:var(--emerald50)}
.fade{opacity:0;transform:translateY(22px);animation:fade .7s ease forwards}
.delay{animation-delay:.12s}
@keyframes fade{to{opacity:1;transform:none}}

/* Top bar */
header.site{position:relative;overflow:hidden;background:linear-gradient(135deg,#f8fafc 0%,#fff 55%,#ecfdf5 100%)}
.blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.7}
.blob.a{width:320px;height:320px;background:#a7f3d0;left:-100px;top:0}
.blob.b{width:380px;height:380px;background:#bae6fd;right:-110px;top:-40px}
/* .brand / .brand-logo are shared in base.css now. Blog now uses the same
   shared site-footer as every other page (see footer.php), so the
   text-badge logo variant (.logo / .brand strong / .brand span) that
   blog.html's own distinct footer used is no longer rendered here. */

/* Page header (single column, centered) */
.page-header{position:relative;padding:50px 0 60px;text-align:center}
.page-header .eyebrow{display:inline-flex;padding:10px 16px;border:1px solid #a7f3d0;border-radius:999px;background:#fff;color:var(--emerald);font-size:1.4rem;font-weight:700;box-shadow:0 6px 20px rgba(15,23,42,.06)}
.page-header h1{font-size:clamp(40px,6vw,60px);line-height:1.05;letter-spacing:-.04em;margin:20px auto 0;max-width:760px}
.page-header .lead{font-size:19px;line-height:1.7;color:var(--slate950);max-width:640px;margin:16px auto 0}

/* Search + filters */
.search-row{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:36px}
.search-box{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--slate200);border-radius:14px;padding:14px 18px;box-shadow:0 6px 20px rgba(15,23,42,.06);min-width:280px}
.search-box input{border:0;outline:0;font-family:inherit;font-size:15px;width:100%;background:transparent}
.filters{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:44px}
.filter-pill{padding:9px 18px;border-radius:999px;border:1px solid var(--slate200);background:#fff;font-size:13px;font-weight:700;color:var(--slate700);cursor:pointer;transition:.15s;text-decoration:none;display:inline-block}
.filter-pill.active,.filter-pill:hover{background:var(--emerald);border-color:var(--emerald);color:#fff}

/* Post grid / carousel (desktop) */
.post-grid{position:relative;margin-top:44px;padding:0 8px}
.post-viewport{overflow-x:hidden;overflow-y:visible}
.post-track{display:flex;gap:23px;padding:20px 0;transition:transform .6s ease}
.post-track .post-card{flex:0 0 calc((100% - 46px)/3)}
.post-arrow{display:none;position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:48px;height:48px;border-radius:50%;border:1px solid var(--slate200);background:#fff;color:var(--slate950);align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 30px rgba(15,23,42,.14);transition:.2s}
.post-arrow:hover{background:var(--emerald);border-color:var(--emerald);color:#fff}
.post-arrow-prev{left:-24px}
.post-arrow-next{right:-24px}
.post-grid.has-arrows .post-arrow{display:flex}
.post-card{overflow:hidden;display:flex;flex-direction:column;transition:.2s;box-shadow:none}
.post-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(15,23,42,.14)}
.post-cover{height:170px;display:grid;place-items:center;font-size:42px;position:relative}
.post-cover.c1{background:linear-gradient(135deg,#183c28,#0ea5e9)}
.post-cover.c2{background:linear-gradient(135deg,#0284c7,#133020)}
.post-cover.c3{background:linear-gradient(135deg,#0f172a,#183c28)}
.post-cover.c4{background:linear-gradient(135deg,#133020,#0369a1)}
.post-cat{position:absolute;top:16px;left:16px;background:rgba(255,255,255,.92);color:var(--emerald2);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:6px 12px;border-radius:999px}
.post-body{padding:26px 26px 28px;display:flex;flex-direction:column;flex:1}
.post-date{display:flex;align-items:center;gap:8px;color:var(--slate950);font-size:1rem;font-weight:600;margin-bottom:10px}
.post-body h3{margin:0;font-size:21px;line-height:1.3;letter-spacing:-.02em}
.post-body p{margin-top:12px;flex:1;font-size:15px}
.read-more{display:inline-flex;align-items:center;gap:8px;margin-top:22px;color:var(--emerald2);font-weight:800;text-decoration:none;font-size:15px}
.read-more:hover{gap:12px}
.read-more svg{transition:.2s}

/* Newsletter */
.newsletter{max-width:760px;margin:0 auto;text-align:center;padding:48px 40px}
.newsletter h2{font-size:clamp(28px,4vw,36px);letter-spacing:-.03em;margin:0 0 10px}
.newsletter-form{display:flex;gap:12px;margin-top:26px;justify-content:center;flex-wrap:wrap}
.newsletter-form input{font-family:inherit;font-size:1rem;padding:14px 18px;border-radius:12px;border:1px solid var(--slate200);background:var(--slate50);min-width:260px}
.newsletter-form input:focus{outline:none;border-color:var(--emerald);background:#fff}

/* blog.html's own distinct dark .foot-grid footer CSS lived here — removed:
   Blog now renders the shared .site-footer (base.css) like every other
   internal page, per explicit request for consistent structure/format. */

@media(max-width:900px){.post-track{display:block!important;transform:none!important}.post-track .post-card{flex:none;width:100%;margin-bottom:28px}.post-track .post-card:last-child{margin-bottom:0}.post-arrow{display:none!important}}
@media(max-width:640px){.container{width:min(100% - 28px,1180px)}.section{padding:56px 0}.newsletter-form{flex-direction:column}.newsletter-form input{width:100%}}

/* Single post article view (single.php) — new design, the static site never
   had one; kept on-brand and consistent with the blog index. */
.single-post-hero{padding:60px 0 20px;text-align:center}
.single-post-hero .post-cat{position:static;display:inline-block;margin-bottom:16px}
.single-post-hero h1{font-size:clamp(32px,5vw,52px);line-height:1.1;letter-spacing:-.03em;max-width:820px;margin:0 auto}
.single-post-meta{display:flex;gap:18px;justify-content:center;margin-top:18px;color:var(--slate600);font-size:14px;font-weight:600}
.single-post-cover{max-width:900px;margin:32px auto 0;border-radius:24px;overflow:hidden;box-shadow:0 20px 50px rgba(15,23,42,.12)}
.single-post-cover img{display:block;width:100%;height:auto}
.single-post-body{max-width:720px;margin:0 auto;font-size:17px;line-height:1.85;color:var(--slate900)}
.single-post-body h2{margin-top:2em}
.single-post-body p{margin:0 0 1.4em}
.single-post-nav{max-width:720px;margin:56px auto 0;display:flex;justify-content:space-between;gap:16px;padding-top:24px;border-top:1px solid var(--slate200)}
