/* Weed & Root homepage.
   Layout, palette and section rhythm from the 2026-09-20 ritual design.
   Typefaces stay Playfair Display / DM Sans so the homepage and the blog
   chrome remain one brand - the blog is four live articles deep and is not
   being restyled in this pass. */

:root{
  --ink:#503021;
  --muted:#735343;
  --rose:#a55c5c;
  --rose-dk:#874848;
  --sand:#eee0ce;
  --cream:#fff9ef;
  --line:rgba(80,48,33,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{
  margin:0;color:var(--ink);
  font-family:'DM Sans',system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  font-weight:300;-webkit-font-smoothing:antialiased;
  background:var(--sand);
}
a{color:inherit}
img{max-width:100%;display:block}
h1,h2,h3,.closing p:not(.size){font-family:'Playfair Display',Georgia,'Times New Roman',serif;font-weight:400}

.wrap{max-width:1360px;margin:auto}
.eyebrow{font-size:12px;letter-spacing:.2em;font-weight:400;color:var(--muted);margin:0 0 22px;text-transform:uppercase}

/* -- header -- */
header{
  position:sticky;top:0;z-index:20;
  background:rgba(238,224,206,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-in{
  max-width:1360px;margin:auto;height:84px;padding:0 6%;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.brand{display:block;flex:none;line-height:0}
.brand img{height:44px;width:auto}
.nav{display:flex;align-items:center;gap:30px}
.nav a:not(.btn):not(.btn-nav){font-size:14px;text-decoration:none;padding:10px 0;color:var(--muted)}
.nav a:not(.btn):not(.btn-nav):hover{color:var(--ink);text-decoration:underline;text-underline-offset:6px}
.btn{
  display:inline-flex;align-items:center;gap:14px;padding:15px 24px;
  background:var(--rose);color:var(--cream);text-decoration:none;font-size:14px;
  border:1px solid var(--rose);transition:background .2s;font-family:inherit;cursor:pointer;
}
.btn:hover{background:var(--rose-dk);border-color:var(--rose-dk)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{background:rgba(165,92,92,.08);border-color:var(--rose);color:var(--ink)}
.btn-sm{padding:11px 18px;gap:8px}
a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:5px}
.hamburger{display:none;background:none;border:0;padding:10px;cursor:pointer}
.hamburger span{display:block;width:22px;height:1.5px;background:var(--ink);margin:5px 0}
.mobile-menu{display:none}

/* -- hero -- */
.hero{
  position:relative;overflow:hidden;
  background:var(--sand) url('assets/texture.jpg') center/cover no-repeat;
}
/* the raw texture is busy enough that body copy loses contrast against it -
   this scrim keeps the left column readable without flattening the photo */
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(247,238,225,.95) 0%,rgba(247,238,225,.85) 38%,rgba(247,238,225,.25) 62%,rgba(247,238,225,0) 82%);
}
.hero-in{
  position:relative;max-width:1360px;margin:auto;padding:76px 6% 84px;
  display:flex;align-items:center;gap:5%;min-height:560px;
}
.intro{width:52%;max-width:600px}
h1{font-size:clamp(50px,6.2vw,88px);line-height:1.04;letter-spacing:-.04em;margin:0 0 24px}
h1 em{font-style:italic;color:#78503e}
.product-name{font-size:18px;margin:0 0 14px;letter-spacing:.01em}
.description{font-size:16.5px;line-height:1.8;color:var(--muted);margin:0 0 30px;max-width:44ch}
.size{font-size:12px;letter-spacing:.08em;color:var(--muted);margin:18px 0 0}
.hero-photo{display:none}

/* -- generic section -- */
.section{padding:84px 6%}
.section.cream{background:var(--cream)}
.section-head{max-width:640px;margin:0 0 46px}
h2{font-size:clamp(29px,3vw,42px);line-height:1.2;letter-spacing:-.03em;margin:0}
.lede{font-size:17px;line-height:1.85;color:var(--muted);margin:18px 0 0;max-width:56ch}

/* -- ingredients -- */
.ing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.ing{background:var(--cream);padding:30px 28px}
.section.cream .ing{background:var(--sand)}
.ing h3{font-size:19px;margin:0 0 6px;letter-spacing:-.01em}
.ing .role{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--rose);margin:0 0 12px}
.ing p{font-size:14.5px;line-height:1.75;color:var(--muted);margin:0}
.small{font-size:13.5px;line-height:1.7;color:var(--muted);margin:26px 0 0}

/* -- ritual -- */
.ritual{max-width:720px}
.steps{list-style:none;margin:34px 0 0;padding:0;counter-reset:s}
.steps li{counter-increment:s;position:relative;padding:0 0 26px 58px;margin:0}
.steps li::before{
  content:counter(s);position:absolute;left:0;top:-2px;
  width:36px;height:36px;border:1px solid var(--rose);border-radius:50%;
  display:grid;place-items:center;font-size:14px;color:var(--rose);
  font-family:'Playfair Display',Georgia,serif;
}
.steps h3{font-size:17px;margin:0 0 5px}
.steps p{font-size:14.5px;line-height:1.7;color:var(--muted);margin:0}

/* -- journal (structure fixed by scripts/build_articles_v2.py) -- */
.blog-cards{display:grid;gap:22px}
.bc{
  display:block;text-decoration:none;background:var(--cream);
  border:1px solid var(--line);padding:28px 26px;transition:border-color .2s,transform .2s;
}
.section.cream .bc{background:var(--sand)}
.bc:hover{border-color:var(--rose);transform:translateY(-2px)}
.bc-tag{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--rose);margin:0 0 12px}
.bc-title{font-size:20px;line-height:1.28;margin:0 0 10px;letter-spacing:-.01em}
.bc-intro{font-size:14.5px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.bc-more{font-size:13.5px;color:var(--ink);margin:0}

/* -- closing -- */
.closing{
  text-align:center;padding:96px 6%;
  background:var(--sand) url('assets/texture.jpg') center/cover no-repeat;position:relative;
}
.closing::before{content:"";position:absolute;inset:0;background:rgba(247,238,225,.8)}
.closing > *{position:relative}
.closing p:not(.size){font-size:clamp(28px,3.4vw,42px);line-height:1.25;letter-spacing:-.03em;margin:0 0 30px}
.closing .size{font-size:12px;letter-spacing:.08em;color:var(--muted);margin-top:20px}

/* -- footer -- */
footer{background:var(--cream);border-top:1px solid var(--line);padding:44px 6% 38px;font-size:13px;color:var(--muted)}
.footer-in{max-width:1360px;margin:auto;display:flex;justify-content:space-between;gap:28px;flex-wrap:wrap}
.footer-in a{text-decoration:none}
.footer-in a:hover{text-decoration:underline;text-underline-offset:5px}
.footer-links{display:flex;gap:22px;flex-wrap:wrap}
.footer-note{margin:26px auto 0;max-width:1360px;font-size:11.5px;line-height:1.7;color:var(--muted);opacity:.85}

/* -- mobile -- */
@media(max-width:960px){
  .header-in{height:72px;padding:0 7%}
  .nav{display:none}
  .hamburger{display:block}
  .mobile-menu{
    display:block;max-height:0;overflow:hidden;transition:max-height .28s ease;
    background:var(--cream);border-bottom:1px solid var(--line);
  }
  .mobile-menu.open{max-height:340px}
  .mobile-menu a{display:block;padding:15px 7%;text-decoration:none;font-size:15px;border-top:1px solid var(--line)}
  .hero-in{display:block;padding:52px 7% 0;min-height:0}
  .intro{width:100%;max-width:540px}
  h1{font-size:clamp(46px,11vw,72px)}
  .hero-photo{display:block;height:380px;margin:32px -7% 0;overflow:hidden}
  .hero-photo img{width:100%;height:100%;object-fit:cover;object-position:right center}
  .section{padding:60px 7%}
  .ing-grid{grid-template-columns:1fr 1fr}
  .blog-cards{grid-template-columns:1fr!important;max-width:none!important}
  .closing{padding:68px 7%}
  .footer-in{flex-direction:column;gap:16px}
}
@media(max-width:560px){
  .ing-grid{grid-template-columns:1fr}
  .section-head{margin-bottom:34px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* ----
   Blog index + article pages.
   Shares the header, buttons and palette above. The class names below
   are load-bearing: scripts/build_articles_v2.py writes .filter-bar,
   .blog-card, the .card- classes, .rmb, .post-eyebrow, .post-title,
   .post-meta and
   .post-body by regex, and .btn-nav / .mm-cta must keep those exact
   single-class attributes for the CTA-label substitution to match.
   ---- */

.btn-nav{
  display:inline-flex;align-items:center;padding:11px 18px;
  background:var(--rose);color:var(--cream);text-decoration:none;font-size:14px;
  border:1px solid var(--rose);transition:background .2s;
}
.btn-nav:hover{background:var(--rose-dk)}
.social-icon{display:inline-flex;color:var(--muted);text-decoration:none}
.social-icon:hover{color:var(--rose)}
.mm-cta{display:block;padding:15px 7%;background:var(--rose);color:var(--cream);text-decoration:none;font-size:15px}

/* blog hero */
.blog-hero{
  position:relative;text-align:center;padding:78px 6% 66px;
  background:var(--sand) url('assets/texture.jpg') center/cover no-repeat;
}
.blog-hero::before{content:"";position:absolute;inset:0;background:rgba(247,238,225,.86)}
.blog-hero > *{position:relative}
.blog-eyebrow{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:20px}
.blog-hero h1{font-size:clamp(38px,5vw,64px);line-height:1.08;letter-spacing:-.035em;margin:0 auto 22px;max-width:16ch}
.blog-hero h1 em{font-style:italic;color:#78503e}
.blog-hero p{font-size:16.5px;line-height:1.8;color:var(--muted);margin:0 auto;max-width:62ch}
.blog-note{font-size:12.5px;letter-spacing:.08em;margin-top:22px!important;color:var(--rose)!important}

/* filter bar */
.filter-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:32px 6% 0;background:var(--cream)}
.fb{
  font-family:inherit;font-size:13px;padding:9px 18px;cursor:pointer;
  background:transparent;color:var(--muted);border:1px solid var(--line);transition:all .2s;
}
.fb:hover{border-color:var(--rose);color:var(--ink)}
.fb.active{background:var(--rose);border-color:var(--rose);color:var(--cream)}

/* card grid */
.blog-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));
  gap:22px;padding:42px 6% 84px;background:var(--cream);align-items:start;
}
.featured-aside{
  background:var(--rose);color:var(--cream);padding:34px 30px;
  display:flex;flex-direction:column;justify-content:space-between;gap:26px;min-height:100%;
}
.featured-aside h3{font-size:24px;margin:0 0 12px;color:var(--cream)}
.featured-aside p{font-size:14.5px;line-height:1.75;margin:0;color:rgba(255,249,239,.88)}
.featured-aside .btn{background:var(--cream);color:var(--ink);border-color:var(--cream);margin-top:20px}
.featured-aside .btn:hover{background:#fff;border-color:#fff}
.aside-tag{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 10px!important;color:rgba(255,249,239,.7)!important}
.blog-card{background:var(--sand);border:1px solid var(--line);padding:30px 28px;transition:border-color .2s,transform .2s}
.blog-card:hover{border-color:var(--rose);transform:translateY(-2px)}
.card-tag{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--rose);margin:0 0 14px}
.card-title{font-size:23px;line-height:1.24;letter-spacing:-.02em;margin:0 0 10px}
.card-date{font-size:12.5px;color:var(--muted);margin:0 0 14px}
.card-intro{font-size:14.5px;line-height:1.75;color:var(--muted);margin:0 0 20px}
.rmb{font-size:13.5px;color:var(--ink);border-bottom:1px solid var(--rose);padding-bottom:2px}
.rmb:hover{color:var(--rose)}

/* article */
.post-wrap{max-width:720px;margin:auto;padding:70px 6% 30px}
.post-eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--rose);display:block;margin-bottom:22px}
.post-title{font-size:clamp(34px,4.4vw,54px);line-height:1.12;letter-spacing:-.035em;margin:0 0 18px}
.post-meta{font-size:13px;color:var(--muted);margin:0 0 42px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.post-body{font-size:17px;line-height:1.85;color:#5b3b2a}
.post-body h2{font-size:clamp(24px,2.6vw,31px);line-height:1.25;margin:44px 0 16px;letter-spacing:-.025em;color:var(--ink)}
.post-body h3{font-size:18px;font-weight:500;margin:30px 0 8px;color:var(--ink)}
.post-body p{margin:0 0 18px}
.post-body a{color:var(--rose);text-underline-offset:3px}
.post-body strong{font-weight:500;color:var(--ink)}
.post-close{
  margin-top:34px;padding:22px 26px;border-left:2px solid var(--rose);
  background:var(--cream);font-style:italic;color:var(--ink);
}
.post-cta{text-align:center;margin:56px 0 30px;padding:40px 30px;background:var(--cream);border:1px solid var(--line)}
.post-cta p{font-family:'Playfair Display',Georgia,serif;font-size:19px;font-style:italic;color:var(--ink);margin:0 0 20px}
.post-back{display:inline-block;font-size:13.5px;color:var(--muted);text-decoration:none;margin-bottom:40px}
.post-back:hover{color:var(--rose)}
.disclaimer{
  max-width:720px;margin:0 auto 60px;padding:24px 26px;
  background:var(--cream);border:1px solid var(--line);
  font-size:12.5px;line-height:1.75;color:var(--muted);
}
.disclaimer strong{color:var(--ink);font-weight:500}

.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.reveal.visible{opacity:1;transform:none}

@media(max-width:960px){
  .blog-hero{padding:56px 7% 48px}
  .filter-bar{padding:26px 7% 0}
  .blog-grid{grid-template-columns:1fr;padding:32px 7% 60px}
  .post-wrap{padding:52px 7% 20px}
  .post-body{font-size:16.5px}
}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}}
