/* ==========================================================================
   Adero — shared foundation stylesheet
   Used by every page template (standard, product, guide).
   Change a token or a shared rule here and ALL pages update on next deploy.
   Page-specific layout lives in each page's own <style> block, not here.
   ========================================================================== */

:root{
  /* color */
  --paper:#FCFBF8;
  --ink:#22201C;
  --muted:#6E6A62;
  --line:#E4E1DA;
  --accent:#1E5748;
  --accent-hover:#17453A;
  --accent-wash:#EDF2EF;
  /* layout */
  --measure:41rem;   /* standard reading column */
  --wide:62rem;      /* wide column for product screenshots */
  /* type */
  --serif:'Spectral', Georgia, serif;
  --mono:'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--serif);
  font-weight:400;
  font-size:1.125rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* ---------- containers ---------- */
.wrap{max-width:var(--measure);margin:0 auto;padding:0 1.5rem}
.wrap-wide{max-width:var(--wide);margin:0 auto;padding:0 1.5rem}

/* ---------- header / brand ---------- */
header{padding:2.25rem 0 0}
.head-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.head-link,.home-link{font-family:var(--mono);font-size:.78rem;color:var(--muted)}
.head-nav{display:flex;align-items:center;gap:1.3rem}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand svg{display:block}
.brand .word{font-family:var(--serif);font-weight:500;font-size:1.35rem;letter-spacing:.01em}
.brand .prod{font-family:var(--mono);font-size:.78rem;color:var(--muted);border-left:1px solid var(--line);padding-left:.7rem;margin-left:.1rem;letter-spacing:.06em}

/* ---------- hero ---------- */
.hero{padding:5.5rem 0 3.5rem;position:relative}
.eyebrow{font-family:var(--mono);font-size:.72rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:1.6rem}
.eyebrow em{font-style:normal;color:var(--accent)}
h1{font-weight:300;font-size:clamp(2.1rem,5.4vw,3.15rem);line-height:1.18;letter-spacing:-0.012em;max-width:17ch}
h1 strong{font-weight:500}
.lede{margin-top:1.75rem;font-size:1.22rem;color:var(--ink);max-width:56ch}
.hero-cta{margin-top:2.4rem;display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap}
.aside-cta{font-family:var(--mono);font-size:.8rem;color:var(--muted)}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;font-family:var(--mono);font-size:.85rem;font-weight:500;
  letter-spacing:.03em;color:var(--paper);background:var(--accent);
  padding:.8rem 1.35rem;border-radius:3px;text-decoration:none;
}
.btn:hover{background:var(--accent-hover);text-decoration:none}

/* ---------- section rhythm: divider -> kicker -> heading ----------
   The divider owns the space ABOVE each section (4.25rem) and a tight gap
   below it (1.6rem) to the kicker. Sections only pad their bottom. This
   keeps every "strip, label, heading" sequence on the same rhythm. */
.divider{
  max-width:var(--measure);margin:4.25rem auto 1.6rem;padding:0 1.5rem;
  display:flex;align-items:center;gap:.35rem;
}
.divider i{width:.6rem;height:.6rem;border:1px solid var(--line);border-radius:2px;display:block}
.divider i.on{background:var(--accent);border-color:var(--accent)}
.divider::after{content:"";flex:1;height:1px;background:var(--line);margin-left:.6rem}

section{padding:0 0 4.25rem}
h2{font-weight:500;font-size:1.55rem;letter-spacing:-0.008em;margin-bottom:2.2rem}
.kicker{font-family:var(--mono);font-size:.72rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:.8rem}

/* ---------- footer ---------- */
footer{padding:3.5rem 0 4rem;border-top:1px solid var(--line);margin-top:2rem}
.foot{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  font-family:var(--mono);font-size:.75rem;color:var(--muted);
}
.foot a{color:var(--muted)}

/* ---------- guide / article template (used by /resources pages) ----------
   41rem reading column on the shared foundation. Title, byline (author +
   date), long-form prose, a quiet in-brand share row, soft CTA. */
.article{padding:3.5rem 0 0}
.article .byline{font-family:var(--mono);font-size:.75rem;letter-spacing:.04em;color:var(--muted);margin-top:1.1rem;display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.article .byline .dot{width:.3rem;height:.3rem;border-radius:50%;background:var(--line)}
.article h1{margin-bottom:.2rem}
.prose{margin-top:2.6rem}
.prose h2{font-weight:500;font-size:1.3rem;letter-spacing:-0.006em;margin:2.8rem 0 .9rem}
.prose h2:first-child{margin-top:0}
.prose h3{font-weight:500;font-size:1.1rem;margin:1.8rem 0 .5rem}
.prose p{margin-bottom:1.1rem;max-width:100%}
.prose ul,.prose ol{margin:0 0 1.1rem 1.3rem}
.prose li{margin-bottom:.5rem}
.prose strong{font-weight:500}
.prose a:not(.btn){color:var(--accent)}
/* pull-emphasis for the memorable spine line in a guide */
.prose .spine{font-weight:500;color:var(--ink)}
/* small source/footnote note at the end of a guide */
.prose .note{margin-top:2.4rem;padding-top:1.4rem;border-top:1px solid var(--line);font-size:.95rem;color:var(--muted)}
.prose .note a{color:var(--muted)}

/* soft CTA that closes a guide */
.guide-cta{margin-top:2.8rem;padding-top:1.8rem;border-top:1px solid var(--line)}
.guide-cta p{color:var(--muted);margin-bottom:1.1rem}

/* quiet, in-brand share row (copy link + email) — no third-party widgets */
.share{margin-top:3rem;padding-top:1.4rem;border-top:1px solid var(--line);display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}
.share .label{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.share button,.share a.sharelink{font-family:var(--mono);font-size:.78rem;color:var(--accent);background:none;border:none;padding:0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.share button:hover,.share a.sharelink:hover{text-decoration-thickness:2px}
.share .copied{color:var(--muted);font-family:var(--mono);font-size:.72rem}

/* /resources index list */
.guides{margin-top:2.6rem}
.guides a.guide-item{display:block;text-decoration:none;color:var(--ink);border-top:1px solid var(--line);padding:1.6rem 0}
.guides a.guide-item:last-child{border-bottom:1px solid var(--line)}
.guides a.guide-item:hover{text-decoration:none}
.guides .g-title{font-weight:500;font-size:1.2rem;color:var(--ink);margin-bottom:.35rem}
.guides a.guide-item:hover .g-title{color:var(--accent)}
.guides .g-desc{color:var(--muted);font-size:1.02rem}
.guides .g-meta{font-family:var(--mono);font-size:.72rem;letter-spacing:.04em;color:var(--muted);margin-top:.5rem}

/* ---------- mobile edge padding ----------
   NOTE: the winning mobile padding override lives at the END of each page's
   own <style> block, because a page's inline styles load after this shared
   sheet and would otherwise override a rule placed here. Keep that override
   in sync across pages (currently: 1.4rem left/right at <=560px). */

