/*
Theme Name: We Vibe Better
Theme URI: https://wevibebetter.com
Author: We Vibe Better
Description: A premium editorial lifestyle publication theme — warm-neutral palette, Montserrat + Bebas Neue typography, article/buying-guide layouts, author authority blocks and commercial disclosures.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: we-vibe-better
Tags: blog, news, magazine, editorial, two-columns, custom-menu, featured-images, translation-ready
*/

:root{
  --background:#fdfcfa; --foreground:#33302c; --ink:#1c1a18; --cream:#f6f2ec;
  --sand:#e8e0d5; --rule:#ded7cd; --editorial:#8a5a3b; --muted:#7a736a; --card:#ffffff;
  --font-display:"Montserrat",ui-sans-serif,system-ui,sans-serif;
  --font-brand:"Bebas Neue","Montserrat",sans-serif;
  --maxw:1400px;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--font-display);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--ink);letter-spacing:-.02em;line-height:1.12;margin:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1rem}
@media(min-width:640px){.wrap{padding:0 1.5rem}}
@media(min-width:1024px){.wrap{padding:0 2.5rem}}
.eyebrow{font-size:.6875rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;line-height:1.2}
.muted{color:var(--muted)}
.rule-top{border-top:1px solid var(--rule)}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;z-index:99;background:var(--ink);color:#fff;padding:.5rem 1rem}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(253,252,250,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--rule)}
.header-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:5rem}
.site-logo img{height:4rem;width:auto}
@media(min-width:640px){.site-logo img{height:4.5rem}}
.icon-btn{background:none;border:0;cursor:pointer;color:inherit;display:inline-flex;align-items:center;justify-content:center;height:2.25rem;width:2.25rem}
.primary-nav{border-top:1px solid var(--rule);display:none}
@media(min-width:1024px){.primary-nav{display:block}.menu-toggle{display:none}}
.primary-nav ul{list-style:none;display:flex;justify-content:center;gap:.25rem;margin:0;padding:0}
.primary-nav li{position:relative}
.primary-nav a{display:flex;align-items:center;height:2.5rem;padding:0 .75rem;font-size:.6875rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.primary-nav a:hover{color:var(--editorial)}
.primary-nav .sub-menu{position:absolute;left:0;top:100%;display:none;flex-direction:column;min-width:14rem;background:var(--card);border:1px solid var(--rule);padding:.75rem;box-shadow:0 18px 40px -24px rgba(0,0,0,.35)}
.primary-nav li:hover>.sub-menu,.primary-nav li:focus-within>.sub-menu{display:flex}
.primary-nav .sub-menu a{height:auto;padding:.4rem .5rem;text-transform:none;letter-spacing:0;font-size:.875rem;font-weight:400;color:var(--muted)}
.mobile-nav{display:none;border-top:1px solid var(--rule);padding:1rem 0}
.mobile-nav.is-open{display:block}
@media(min-width:1024px){.mobile-nav,.mobile-nav.is-open{display:none}}
.mobile-nav ul{list-style:none;margin:0;padding:0}
.mobile-nav a{display:block;padding:.6rem 0;border-bottom:1px solid var(--rule);font-size:.8125rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600}
.mobile-nav .sub-menu a{text-transform:none;letter-spacing:0;font-weight:400;color:var(--muted);padding-left:1rem}

/* Cards / grids */
.section{padding:3.5rem 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--rule);padding-bottom:.75rem;margin-bottom:2rem}
.section-head h2{font-size:1.5rem}
.grid{display:grid;gap:2rem}
.grid-3{grid-template-columns:1fr}
@media(min-width:640px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.card-img{aspect-ratio:4/3;overflow:hidden;background:var(--cream)}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card-img img{transform:scale(1.03)}
.card h3{margin-top:.85rem;font-size:1.125rem;line-height:1.3}
.card:hover h3{color:var(--editorial)}
.card p{margin:.5rem 0 0;font-size:.9375rem;color:var(--muted)}
.card .eyebrow{color:var(--editorial)}
.meta{font-size:.75rem;color:var(--muted);margin-top:.6rem;display:flex;gap:.5rem;flex-wrap:wrap}

/* Hero */
.hero{display:grid;gap:2rem;padding:3rem 0}
@media(min-width:1024px){.hero{grid-template-columns:1.35fr 1fr;align-items:center}}
.hero-img{aspect-ratio:16/10;overflow:hidden;background:var(--cream)}
.hero-img img{width:100%;height:100%;object-fit:cover}
.hero h1{font-size:2.25rem}
@media(min-width:1024px){.hero h1{font-size:3rem}}
.dek{font-size:1.0625rem;color:var(--muted);margin-top:1rem;line-height:1.65}

/* Article */
.article-head{max-width:52rem;margin:0 auto;padding:2.5rem 0 1.5rem;text-align:left}
.article-head h1{font-size:2.25rem}
@media(min-width:768px){.article-head h1{font-size:3rem}}
.byline{display:flex;align-items:center;gap:.75rem;margin-top:1.5rem;font-size:.875rem;color:var(--muted);flex-wrap:wrap}
.byline img{height:2.5rem;width:2.5rem;border-radius:999px;object-fit:cover}
.entry-content{max-width:44rem;margin:0 auto;font-size:1.125rem;line-height:1.78}
.entry-content p{margin:0 0 1.35em}
.entry-content h2{font-size:1.75rem;margin:2.5rem 0 1rem}
.entry-content h3{font-size:1.3rem;margin:2rem 0 .75rem}
.entry-content a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--sand)}
.entry-content a:hover{color:var(--editorial);text-decoration-color:var(--editorial)}
.entry-content blockquote{margin:2rem 0;padding-left:1.25rem;border-left:2px solid var(--editorial);font-size:1.3rem;line-height:1.45;color:var(--ink)}
.entry-content ul,.entry-content ol{padding-left:1.25rem}
.entry-content li{margin-bottom:.5rem}
.entry-content table{width:100%;border-collapse:collapse;font-size:.9375rem;margin:2rem 0}
.entry-content th,.entry-content td{border-bottom:1px solid var(--rule);padding:.65rem .5rem;text-align:left;vertical-align:top}
.entry-content th{font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
figure{margin:2rem 0}
figcaption{font-size:.8125rem;color:var(--muted);margin-top:.5rem}

.disclosure{max-width:44rem;margin:1.5rem auto;background:var(--cream);border-left:2px solid var(--editorial);padding:1rem 1.25rem;font-size:.8125rem;color:var(--muted)}
.author-box{max-width:44rem;margin:3rem auto 0;border-top:1px solid var(--rule);padding-top:1.5rem;display:flex;gap:1.25rem}
.author-box img{height:5rem;width:5rem;border-radius:999px;object-fit:cover;flex:none}
.author-box h3{font-size:1.0625rem}
.author-box p{font-size:.9375rem;color:var(--muted);margin:.5rem 0 0}

/* Newsletter */
.newsletter{background:var(--ink);color:#f6f2ec;padding:3.5rem 0;margin-top:4rem}
.newsletter h2{color:#fff;font-size:1.75rem}
.newsletter p{color:#cfc7bc;max-width:34rem}
.newsletter form{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1.5rem}
.newsletter input[type=email]{flex:1 1 18rem;height:2.75rem;padding:0 .9rem;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;font:inherit}
.newsletter button{height:2.75rem;padding:0 1.5rem;border:0;background:#f6f2ec;color:var(--ink);font-size:.6875rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;cursor:pointer}

/* Footer */
.site-footer{border-top:1px solid var(--rule);background:var(--cream);padding:3rem 0 2rem;margin-top:4rem}
.footer-cols{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:768px){.footer-cols{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.site-footer img.footer-logo{height:5rem;width:auto}
.site-footer ul{list-style:none;margin:.75rem 0 0;padding:0}
.site-footer li{margin-bottom:.4rem}
.site-footer a{font-size:.9375rem;color:var(--muted)}
.site-footer a:hover{color:var(--editorial)}
.colophon{border-top:1px solid var(--rule);margin-top:2.5rem;padding-top:1.25rem;font-size:.8125rem;color:var(--muted);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}

/* Pagination / search */
.pagination{display:flex;gap:.5rem;justify-content:center;margin-top:3rem}
.pagination .page-numbers{padding:.5rem .85rem;border:1px solid var(--rule);font-size:.875rem}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.search-form{display:flex;gap:.5rem;max-width:32rem}
.search-form input[type=search]{flex:1;height:2.75rem;padding:0 .9rem;border:1px solid var(--rule);background:var(--card);font:inherit}
.search-form button{height:2.75rem;padding:0 1.25rem;border:0;background:var(--ink);color:#fff;font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;cursor:pointer}
.page-hero{border-bottom:1px solid var(--rule);padding:3rem 0 2rem}
.page-hero h1{font-size:2.5rem}
.notfound{text-align:center;padding:6rem 0}
