/* ==========================================================================
   Privaed — Blog index styles (loaded only on the Posts page via is_home()).
   Ported from "Privaed Blog.html". Tokens, .wrap, .eyebrow, .btn* and .amber
   are global (styles.css); only blog-specific rules live here. .crumb + the
   .ph placeholder base are duplicated from the mock because contact.css (which
   also carries .crumb) is not loaded on this route.
   ========================================================================== */

.blog{padding:14px 0 40px}

/* ===== BREADCRUMB ===== */
.crumb{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);margin-bottom:20px}
.crumb a{transition:color .15s}
.crumb a:hover{color:var(--amber-deep)}
.crumb svg{width:13px;height:13px;opacity:.45}
.crumb .cur{color:var(--ink-2);font-weight:600}

/* ===== IMAGE PLACEHOLDER (fallback for posts without a featured image) ===== */
.ph{position:relative;border-radius:var(--r-md);overflow:hidden;background:repeating-linear-gradient(135deg,#EBDDC4 0 11px,#E3D2B4 11px 22px);display:flex;align-items:flex-end;justify-content:flex-start}
.ph::before{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,255,255,.25),transparent 60%)}
.ph .tag{position:relative;margin:12px;font-family:ui-monospace,"SFMono-Regular",Menlo,monospace;font-size:10.5px;letter-spacing:.02em;color:#7a6c54;background:rgba(255,253,248,.86);padding:4px 9px;border-radius:8px}
.ph.dark{background:repeating-linear-gradient(135deg,#2a241b 0 11px,#241e16 11px 22px)}
.ph.dark .tag{color:#cdbfa3;background:rgba(20,15,9,.6)}
/* a real featured image fills the same frame as the .ph */
.pcover img,.fimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ===== HEAD ===== */
.blog-head{position:relative;margin-bottom:40px}
.blog-head .eyebrow{margin-bottom:16px}
.blog-head h1{font-size:clamp(38px,5vw,64px);font-weight:800;line-height:1.02;max-width:780px}
.blog-head .lead{color:var(--body);font-size:18px;max-width:540px;margin-top:18px}
.blog-head .ribi{position:absolute;top:-6px;right:0;width:230px;height:120px;opacity:.9;display:none}
@media(min-width:900px){.blog-head .ribi{display:block}}
.ribi-motif{display:flex;flex-direction:column;gap:9px;justify-content:center;height:100%}
.ribi-motif i{height:13px;border-radius:7px;background:linear-gradient(90deg,var(--amber),#EBB867);transform-origin:right}
.ribi-motif i:nth-child(1){width:100%}.ribi-motif i:nth-child(2){width:78%;margin-left:auto;opacity:.8}
.ribi-motif i:nth-child(3){width:92%;margin-left:auto}.ribi-motif i:nth-child(4){width:64%;margin-left:auto;opacity:.6}
.ribi-motif i:nth-child(5){width:84%;margin-left:auto;opacity:.85}

/* ===== FEATURED ===== */
.feat{display:grid;grid-template-columns:1.25fr .9fr;gap:0;border-radius:var(--r-card);overflow:hidden;background:var(--dark);color:var(--cream);margin-bottom:48px;box-shadow:0 30px 70px -34px rgba(54,38,10,.5);transition:.22s}
.feat:hover{transform:translateY(-3px)}
.feat .fimg{position:relative;min-height:380px;background:linear-gradient(160deg,#3a3024,#211a12)}
.feat .fimg .ph{position:absolute;inset:0;border-radius:0}
.feat .fimg .ph.dark{background:repeating-linear-gradient(135deg,#2a241b 0 13px,#221d15 13px 26px)}
.feat .fbody{padding:46px 46px 44px;display:flex;flex-direction:column;justify-content:center}
.feat .fmeta{display:flex;align-items:center;gap:12px;font-size:13px;color:#C9A86A;font-weight:600;white-space:nowrap}
.feat .fmeta .star{display:inline-flex;align-items:center;gap:7px;letter-spacing:.06em;text-transform:uppercase;font-size:12px}
.feat .fmeta .star svg{width:15px;height:15px}
.feat .fmeta .dotsep{width:4px;height:4px;border-radius:50%;background:#8a7a5a}
.feat h2{font-family:"Epilogue";font-size:clamp(26px,2.9vw,38px);font-weight:800;line-height:1.1;color:#FBF4E6;margin-top:18px}
.feat p{color:rgba(247,235,214,.72);font-size:16px;line-height:1.65;margin-top:16px;max-width:440px}
.feat .flink{display:inline-flex;align-items:center;gap:9px;margin-top:26px;font-weight:700;font-size:15px;color:var(--amber)}
.feat .flink svg{width:17px;height:17px;transition:transform .2s}
.feat:hover .flink svg{transform:translateX(4px)}

/* ===== GRID ===== */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.post{background:transparent;display:flex;flex-direction:column;cursor:pointer}
.post .pcover{position:relative;border-radius:var(--r-md);overflow:hidden;aspect-ratio:3/2;background:linear-gradient(160deg,#EDE3D2,#E2D4BC);box-shadow:0 14px 34px -22px rgba(64,46,16,.4);transition:.2s}
.post:hover .pcover{transform:translateY(-4px);box-shadow:0 26px 48px -26px rgba(64,46,16,.46)}
.post .pcover .ph{position:absolute;inset:0;border-radius:0}
.post .rt{position:absolute;bottom:12px;left:12px;z-index:2;white-space:nowrap;font-size:11.5px;font-weight:600;background:rgba(20,15,9,.6);color:#fff;padding:5px 12px;border-radius:999px;backdrop-filter:blur(4px)}
.post h3{font-family:"Epilogue";font-size:19px;font-weight:700;line-height:1.26;color:var(--ink);margin-top:18px}
.post p{color:var(--body);font-size:14.5px;line-height:1.6;margin-top:10px}
.post .more{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-weight:700;font-size:14px;color:var(--amber-deep)}
.post .more svg{width:15px;height:15px;transition:transform .2s}
.post:hover .more svg{transform:translateX(4px)}

/* ===== PAGINATION ===== */
.pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:42px}
.pagination a,.pagination span{min-width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:700;font-size:14.5px;color:var(--ink-2);box-shadow:0 4px 14px -6px rgba(64,46,16,.22);transition:.15s}
.pagination a:hover{background:var(--cream-2)}
.pagination a.on,.pagination span.on{background:var(--amber);color:#231a06}
.pagination a.nav svg{width:17px;height:17px}

/* ===== RESPONSIVE ===== */
@media(max-width:1080px){.feat{grid-template-columns:1fr}.feat .fimg{min-height:280px}.posts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.posts{grid-template-columns:1fr}}
