/* ==========================================================================
   BrookeElaine.com — shared stylesheet
   Palette and type deliberately match the "Rooted & Growing" care guide so
   the site and the printed ebook read as one brand.
   ========================================================================== */

:root{
  /* --- surfaces --- */
  --paper:       #FAF6EC;
  --paper-warm:  #F3EBD8;
  --paper-deep:  #EDE3CE;
  --white:       #FFFDF7;

  /* --- ink --- */
  --ink:         #24302A;
  --ink-soft:    #4A5A50;
  --muted:       #6E7C73;

  /* --- brand --- */
  --forest:      #1E4A38;
  --forest-deep: #143224;
  --leaf:        #6E9B62;
  --leaf-soft:   #A8C29B;
  --leaf-tint:   #E7EFE1;
  --gold:        #B7912F;
  --gold-soft:   #E3CE96;
  --gold-tint:   #F7EFDA;
  --rust:        #9E4F33;
  --line:        rgba(36,48,42,.14);

  --font-display: "Fraunces", Georgia, "Palatino Linotype", "Times New Roman", serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.75rem);
  --radius: 10px;
  --shadow: 0 12px 34px rgba(20,50,36,.09);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:1.02rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img,svg{ max-width:100%; display:block; }
img{ height:auto; }

h1,h2,h3,h4{ font-family:var(--font-display); color:var(--forest); margin:0 0 .5rem; line-height:1.15; font-weight:600; }
h1{ font-size:clamp(2.1rem,5.2vw,3.5rem); letter-spacing:-.015em; }
h2{ font-size:clamp(1.65rem,3.4vw,2.4rem); letter-spacing:-.01em; }
h3{ font-size:clamp(1.15rem,2vw,1.4rem); }
p{ margin:0 0 1rem; }

a{ color:var(--forest); text-decoration-color:var(--gold-soft); text-underline-offset:3px; }
a:hover{ color:var(--leaf); }

:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:3px; }

.container{ width:100%; max-width:var(--max); margin:0 auto; padding-inline:var(--pad); }
.narrow{ max-width:44rem; }

.eyebrow{
  font-size:.76rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold); margin:0 0 .55rem;
}
.lede{ font-size:clamp(1.05rem,1.9vw,1.24rem); line-height:1.6; color:var(--ink-soft); }
.muted{ color:var(--muted); }
.center{ text-align:center; }

/* ---------- skip link ---------- */
.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--forest); color:var(--white);
  padding:.75rem 1.15rem; border-radius:0 0 var(--radius) 0; font-weight:600;
}
.skip:focus{ left:0; color:var(--white); }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,246,236,.94);
  backdrop-filter:saturate(150%) blur(9px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; min-height:70px;
}
.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; flex:0 0 auto; }
.brand-mark{ width:34px; height:38px; flex:0 0 auto; color:var(--leaf); }
.brand-name{
  font-family:var(--font-display); font-weight:600; font-size:1.22rem;
  color:var(--forest); line-height:1.05; letter-spacing:-.01em;
}
.brand-name span{ display:block; font-family:var(--font-body); font-size:.63rem; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin-top:2px; }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:8px;
  padding:.5rem .7rem; cursor:pointer; color:var(--forest); font:inherit; font-size:.9rem;
  min-height:44px; align-items:center; gap:.4rem;
}
.nav{ display:flex; align-items:center; gap:.35rem; }
.nav a{
  padding:.55rem .7rem; border-radius:7px; text-decoration:none; font-size:.94rem;
  font-weight:500; color:var(--ink); white-space:nowrap;
}
.nav a:hover{ background:var(--leaf-tint); color:var(--forest); }
.nav a.active{ color:var(--forest); font-weight:600; box-shadow:inset 0 -2px 0 var(--gold); }
.nav .btn{ margin-left:.35rem; }

@media (max-width:900px){
  .nav-toggle{ display:inline-flex; }
  .nav{
    display:none; position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--paper); border-bottom:1px solid var(--line);
    padding:.5rem var(--pad) 1rem; box-shadow:var(--shadow);
  }
  .nav.open{ display:flex; }
  .nav a{ padding:.8rem .4rem; border-bottom:1px solid var(--line); border-radius:0; }
  .nav .btn{ margin:.75rem 0 0; text-align:center; border-bottom:none; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.8rem 1.35rem; min-height:44px;
  border-radius:999px; border:1.5px solid transparent;
  font-family:var(--font-body); font-size:.95rem; font-weight:600;
  text-decoration:none; cursor:pointer; transition:transform .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--forest); color:var(--white); }
.btn-primary:hover{ background:var(--forest-deep); color:var(--white); }
.btn-gold{ background:var(--gold); color:#231C08; }
.btn-gold:hover{ background:#A8842B; color:#231C08; }
.btn-ghost{ background:transparent; color:var(--forest); border-color:var(--leaf-soft); }
.btn-ghost:hover{ background:var(--leaf-tint); color:var(--forest); }
.btn-row{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.35rem; }

/* ---------- sections ---------- */
.section{ padding:clamp(3rem,7vw,5.5rem) 0; }
.section-warm{ background:var(--paper-warm); border-block:1px solid var(--line); }
.section-forest{ background:var(--forest); color:#E9EFE8; }
.section-forest h2,.section-forest h3{ color:var(--white); }
.section-forest .lede{ color:#C6D3C7; }
.section-forest a{ color:var(--gold-soft); }
.section-head{ max-width:44rem; margin-bottom:2.2rem; }
.section-head.center{ margin-inline:auto; }

/* ---------- hero (about-led) ---------- */
.hero{ padding:clamp(2.5rem,6vw,4.75rem) 0 clamp(2.5rem,6vw,4rem); }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(1.75rem,5vw,3.75rem); align-items:center; }
.hero h1{ margin-bottom:.85rem; }
.hero h1 em{ font-style:italic; color:var(--leaf); }
.hero-portrait{
  position:relative; background:var(--paper-warm);
  border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.hero-portrait svg{ width:100%; height:auto; }
@media (max-width:840px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-portrait{ order:-1; max-width:26rem; margin-inline:auto; }
}

/* ---------- trust band ---------- */
.band{ background:var(--forest); color:#E9EFE8; padding:1.5rem 0; }
.band-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1.25rem; text-align:center; }
.band-item strong{ display:block; font-family:var(--font-display); font-size:1.06rem; color:var(--gold-soft); margin-bottom:.1rem; }
.band-item span{ font-size:.87rem; color:#C6D3C7; }

/* ---------- cards / product grid ---------- */
.grid{ display:grid; gap:clamp(1.1rem,2.5vw,1.75rem); }
.grid-3{ grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); }
.grid-2{ grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); }

.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.card-art{ background:var(--paper-warm); border-bottom:1px solid var(--line); }
.card-art svg,.card-art img{ width:100%; height:auto; display:block; }
.card-body{ padding:1.35rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.card-body h3{ margin-bottom:.35rem; }
.card-body p{ font-size:.96rem; color:var(--ink-soft); }
.card-body .btn{ margin-top:auto; align-self:flex-start; }
.card-tag{
  display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.15em;
  text-transform:uppercase; color:var(--gold); margin-bottom:.4rem;
}

/* ---------- panels ---------- */
.panel{
  background:var(--paper-warm); border-left:4px solid var(--leaf-soft);
  border-radius:var(--radius); padding:1.3rem 1.5rem;
}
.panel.gold{ background:var(--gold-tint); border-left-color:var(--gold); }
.panel.leaf{ background:var(--leaf-tint); border-left-color:var(--leaf); }
.panel h3{ font-size:1.05rem; margin-bottom:.35rem; }
.panel p:last-child{ margin-bottom:0; }

/* ---------- lists ---------- */
.ticks{ list-style:none; padding:0; margin:0 0 1rem; }
.ticks li{ position:relative; padding-left:1.6rem; margin-bottom:.55rem; }
.ticks li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:8px; height:8px; border-radius:50%; background:var(--leaf-soft);
}

/* ---------- gallery ---------- */
.gallery{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:1.15rem; }
.tile{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; text-align:center;
}
.tile figcaption{ padding:.8rem .9rem 1rem; font-size:.9rem; color:var(--ink-soft); }
.tile figcaption strong{ display:block; color:var(--forest); font-family:var(--font-display); font-size:1.02rem; }

/* ---------- signup / forms ---------- */
.signup{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(1.4rem,3vw,2.25rem); box-shadow:var(--shadow);
}
.form-note{ font-size:.85rem; color:var(--muted); margin-top:.9rem; }
.placeholder-box{
  border:2px dashed var(--gold-soft); background:var(--gold-tint);
  border-radius:var(--radius); padding:1.25rem 1.4rem;
}
.placeholder-box .tag{
  display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--rust); margin-bottom:.4rem;
}
.placeholder-box code{
  background:var(--white); border:1px solid var(--line); border-radius:5px;
  padding:.12rem .4rem; font-size:.88em;
}

/* ---------- post lists ---------- */
.posts{ list-style:none; padding:0; margin:0; display:grid; gap:1.1rem; }
.post-item{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.25rem 1.4rem; transition:transform .18s ease, box-shadow .18s ease;
}
.post-item:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.post-item h3{ margin-bottom:.3rem; font-size:1.2rem; }
.post-item h3 a{ text-decoration:none; }
.post-item p{ margin-bottom:.4rem; color:var(--ink-soft); font-size:.97rem; }
.post-meta{ font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }

/* ---------- article ---------- */
.article{ padding:clamp(2rem,5vw,3.5rem) 0 clamp(3rem,6vw,4.5rem); }
.article-body{ max-width:42rem; }
.article-body h2{ margin-top:2.2rem; }
.article-body h3{ margin-top:1.6rem; color:var(--leaf); font-family:var(--font-body);
  font-size:.92rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.article-body ul,.article-body ol{ margin:0 0 1rem; padding-left:1.3rem; }
.article-body li{ margin-bottom:.45rem; }
.article-body img{ border-radius:var(--radius); border:1px solid var(--line); }
.crumbs{ font-size:.83rem; color:var(--muted); margin-bottom:1.1rem; }
.crumbs a{ color:var(--muted); }
.crumbs a:hover{ color:var(--forest); }

/* ---------- faq ---------- */
.faq{ display:grid; gap:.85rem; }
.faq details{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:1rem 1.25rem;
}
.faq summary{
  cursor:pointer; font-family:var(--font-display); font-size:1.06rem;
  color:var(--forest); font-weight:600; list-style:none;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; float:right; color:var(--gold); font-size:1.3rem; line-height:1; }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ margin:.7rem 0 0; color:var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer{ background:var(--forest-deep); color:#C6D3C7; padding:clamp(2.5rem,5vw,3.5rem) 0 1.75rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2rem; margin-bottom:2rem; }
.site-footer h4{
  color:var(--gold-soft); font-family:var(--font-body); font-size:.76rem;
  letter-spacing:.18em; text-transform:uppercase; margin:0 0 .7rem;
}
.site-footer a{ color:#DCE5DA; text-decoration:none; }
.site-footer a:hover{ color:var(--gold-soft); text-decoration:underline; }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom:.45rem; font-size:.94rem; }
.footer-brand .brand-name{ color:var(--white); }
.footer-brand p{ font-size:.92rem; margin-top:.6rem; max-width:24rem; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.16); padding-top:1.25rem;
  display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; justify-content:space-between;
  font-size:.84rem; color:#A9BBA9;
}
@media (max-width:780px){ .footer-grid{ grid-template-columns:1fr; gap:1.6rem; } }

/* ---------- signup form (SendFox) ----------
   SendFox's own embed ships unstyled. This keeps their markup and behavior
   (async submit, honeypot, recaptcha hook) but dresses it to match the site. */
.sendfox-form{ margin:0; }
.sendfox-form p{ margin:0 0 .8rem; }
.sendfox-form input[type="text"],
.sendfox-form input[type="email"]{
  width:100%; padding:.8rem .95rem; min-height:46px;
  border:1px solid var(--line); border-radius:8px;
  background:var(--white); color:var(--ink);
  font-family:var(--font-body); font-size:1rem;
}
.sendfox-form input::placeholder{ color:var(--muted); }
.sendfox-form input:focus{ outline:3px solid var(--gold); outline-offset:2px; border-color:var(--leaf); }
.sendfox-form button{
  width:100%; padding:.85rem 1.35rem; min-height:48px;
  border:none; border-radius:999px; cursor:pointer;
  background:var(--forest); color:var(--white);
  font-family:var(--font-body); font-size:1rem; font-weight:600;
  transition:background .15s ease, transform .15s ease;
}
.sendfox-form button:hover{ background:var(--forest-deep); transform:translateY(-1px); }
.sendfox-consent{
  display:flex; gap:.6rem; align-items:flex-start;
  font-size:.86rem; color:var(--muted); line-height:1.45;
}
.sendfox-consent input{ margin-top:.25rem; width:18px; height:18px; flex:0 0 auto; accent-color:var(--forest); }

/* visible to screen readers only — the inputs use placeholders visually,
   but a placeholder is not a label, so the real labels live here */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- unfinished-content flags ----------
   Anything still needing Brooke's real content/links carries .todo so it is
   impossible to publish by accident. Delete the class once it's filled in. */
.todo{
  background:var(--gold-tint);
  box-shadow:inset 0 -2px 0 var(--rust);
  color:var(--rust);
  padding:.06em .3em;
  border-radius:3px;
}
a.todo::after{ content:" ↗"; }

/* ---------- utilities ---------- */
.stack-lg > * + *{ margin-top:1.5rem; }
.mt-0{ margin-top:0; }
.hide{ display:none; }
