/* ==========================================================================
   Calfmate — Field Notes (blog) shared stylesheet.
   Matches landing.html design language. Magazine-style article layout.
   ========================================================================== */

:root{
  --green:#256F3A; --green-dark:#1A5230; --green-light:#EDF7F0;
  --ink:#1C2B22; --muted:#56685D; --bg:#fff; --surface:#F2F6F3; --border:#D4DDD8;
  --amber:#92580A; --amber-bg:#FBE9C8; --red:#A31616; --footer:#0F1412;
  --maxw:1600px; --radius:14px;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit}
.wrap{width:min(92vw,var(--maxw));max-width:none;margin:0 auto;padding:0 clamp(20px,2vw,40px)}
.read{width:min(92vw,var(--maxw));max-width:none;margin:0 auto;padding:0 clamp(20px,2vw,40px)}
.muted{color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.78rem;font-weight:700;color:var(--green);margin-bottom:.6rem}

/* Buttons (match landing) */
.btn{display:inline-flex;align-items:center;gap:.5rem;font:inherit;font-weight:600;
  padding:.85rem 1.5rem;border-radius:999px;border:1.5px solid transparent;cursor:pointer;
  text-decoration:none;transition:.15s;white-space:nowrap}
.btn--primary{background:var(--green);color:#fff}
.btn--primary:hover{background:var(--green-dark)}
.btn--ghost{background:#fff;color:var(--green);border-color:var(--border)}
.btn--ghost:hover{border-color:var(--green)}
.btn--lg{padding:1rem 1.8rem;font-size:1.05rem}
.btn--white{background:#fff;color:var(--green)}
.btn--white:hover{background:var(--green-light)}

/* Header (matches landing) */
header.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
.nav-links{flex:1;justify-content:center;display:flex;align-items:center;gap:1.25rem}
.nav-links a{font-weight:600;text-decoration:none;color:var(--muted);font-size:.95rem}
.nav-links a:hover{color:var(--ink)}
.nav-links a.active{color:var(--green)}
.logo{display:flex;align-items:center;gap:.55rem;font-weight:800;font-size:1.25rem;text-decoration:none}
.nav-cta{display:flex;align-items:center;gap:.75rem}
.nav-toggle{display:none;font:inherit;background:none;border:1px solid var(--border);border-radius:8px;padding:.45rem .65rem;cursor:pointer;color:var(--ink)}
.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip:focus{position:fixed;left:16px;top:16px;width:auto;height:auto;padding:.75rem 1rem;background:var(--green);color:#fff;z-index:100;border-radius:8px;text-decoration:none;font-weight:600}
@media(max-width:860px){
  .nav-links{position:fixed;inset:64px 0 auto 0;background:#fff;border-bottom:1px solid var(--border);
    flex-direction:column;align-items:stretch;padding:12px 20px 16px;gap:0;
    transform:translateY(-110%);opacity:0;pointer-events:none;transition:.2s}
  .nav-links.open{transform:translateY(0);opacity:1;pointer-events:auto}
  .nav-links a{padding:14px 0;border-bottom:1px solid var(--border);color:var(--ink)}
  .nav-links a:last-child{border-bottom:none}
  .nav-toggle{display:block}
  .nav-cta .nav-hide-mobile{display:none}
}

/* Article header */
.art-header{padding:64px 0 32px;border-bottom:1px solid var(--border);background:#fff}
.art-header .breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:1rem}
.art-header .breadcrumb a{color:var(--green);text-decoration:none;font-weight:600}
.art-header .breadcrumb a:hover{text-decoration:underline}
.art-header .category{display:inline-block;font-size:.74rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--green);background:var(--green-light);padding:.4rem .75rem;border-radius:999px;margin-bottom:1.2rem}
.art-header h1{font-family:var(--serif);font-size:clamp(2rem,5vw,3.4rem);font-weight:700;
  letter-spacing:-.025em;line-height:1.1;margin:0 0 1rem;color:var(--ink)}
.art-header .dek{font-family:var(--serif);font-style:italic;font-size:clamp(1.15rem,2vw,1.4rem);
  color:var(--muted);font-weight:400;line-height:1.4;margin:0 0 1.8rem;max-width:36em}
.art-header .meta{display:flex;flex-wrap:wrap;gap:1rem;font-size:.92rem;color:var(--muted);align-items:center}
.art-header .meta b{color:var(--ink)}
.art-header .meta .dot{width:3px;height:3px;border-radius:50%;background:var(--border)}

/* Optional article hero illustration */
.art-hero-art{aspect-ratio:21/9;border-radius:18px;margin-top:32px;
  background:linear-gradient(135deg,#256F3A 0%,#1A5230 100%);
  color:#9FE0B8;display:grid;place-items:center;padding:30px;text-align:center;overflow:hidden}
.art-hero-art.amber{background:linear-gradient(135deg,#C27803 0%,#92580A 100%);color:#FFE7BB}
.art-hero-art.blue{background:linear-gradient(135deg,#2A4D6E 0%,#173049 100%);color:#A8C9E8}
.art-hero-art.rust{background:linear-gradient(135deg,#A04022 0%,#6E2814 100%);color:#F5C2A5}
.art-hero-art.plum{background:linear-gradient(135deg,#6E2A6E 0%,#481648 100%);color:#E5BCE5}
.art-hero-art.teal{background:linear-gradient(135deg,#1F6E6E 0%,#0F4848 100%);color:#9FE0E0}
.art-hero-art .quote{font-family:var(--serif);font-size:clamp(1.4rem,3vw,2.2rem);font-weight:700;
  font-style:italic;line-height:1.15;letter-spacing:-.02em;max-width:24ch}
.art-hero-art .quote::before{content:"\201C";font-size:1.8em;line-height:0;vertical-align:-.35em;margin-right:.1em;opacity:.8}
.art-hero-art .quote::after{content:"\201D";font-size:1.8em;line-height:0;vertical-align:-.35em;margin-left:.05em;opacity:.8}

/* Article body */
.art-body{padding:56px 0 64px}
.art-body p,
.art-body ul,
.art-body ol{font-size:1.13rem;line-height:1.75;color:#23332B;margin:0 0 1.4rem}
.art-body p.lead{font-family:var(--serif);font-size:clamp(1.25rem,2.2vw,1.5rem);line-height:1.5;
  font-weight:400;color:var(--ink);margin-bottom:1.6rem}
.art-body p.lead::first-letter{font-family:var(--serif);font-weight:700;float:left;
  font-size:5rem;line-height:.85;margin:.05em .12em 0 -.02em;color:var(--green)}
.art-body h2{font-family:var(--serif);font-size:clamp(1.5rem,2.8vw,2rem);font-weight:700;
  letter-spacing:-.02em;line-height:1.15;margin:2.6rem 0 .9rem;color:var(--ink)}
.art-body h3{font-family:var(--serif);font-size:1.3rem;font-weight:700;letter-spacing:-.01em;
  line-height:1.2;margin:1.8rem 0 .6rem;color:var(--ink)}
.art-body h2:first-child,.art-body h3:first-child{margin-top:0}
.art-body ul,.art-body ol{padding-left:1.4em}
.art-body li{margin-bottom:.55rem}
.art-body li::marker{color:var(--green);font-weight:700}
.art-body strong,.art-body b{color:var(--ink);font-weight:700}
.art-body em,.art-body i{font-style:italic}
.art-body a{color:var(--green);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.art-body a:hover{color:var(--green-dark)}
.art-body hr{border:0;border-top:1px solid var(--border);margin:2.4rem 0}
.art-body figure{margin:2rem 0;text-align:center}
.art-body img{max-width:100%;border-radius:12px}
.art-body figcaption{font-size:.9rem;color:var(--muted);margin-top:.6rem;font-style:italic}

/* Pull quote */
.pullquote{margin:2.4rem -16px;padding:8px 0 8px 28px;border-left:4px solid var(--green);
  font-family:var(--serif);font-style:italic;font-size:clamp(1.3rem,2.6vw,1.8rem);line-height:1.3;
  letter-spacing:-.01em;color:var(--ink)}
.pullquote cite{display:block;margin-top:.8rem;font-style:normal;font-size:.92rem;
  font-family:var(--font);color:var(--muted);font-weight:600;letter-spacing:0}
@media(max-width:760px){.pullquote{margin:2rem 0}}

/* Sidebar / callout box */
.callout{background:var(--green-light);border:1px solid #b8d9c2;border-radius:14px;padding:24px 26px;margin:2.2rem 0}
.callout.amber{background:#FBE9C8;border-color:#E6C079}
.callout.rust{background:#F7E1D6;border-color:#E2A88E}
.callout.blue{background:#E5EEF7;border-color:#A8C2E0}
.callout .ctitle{font-family:var(--serif);font-size:1.2rem;font-weight:700;color:var(--ink);margin:0 0 .5rem;letter-spacing:-.01em}
.callout.amber .ctitle{color:#5E3A07}
.callout p,.callout ul,.callout ol{margin-bottom:.6rem;font-size:1.02rem;line-height:1.6}
.callout p:last-child,.callout ul:last-child,.callout ol:last-child{margin-bottom:0}

/* Checklist box */
.checklist{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px 24px;margin:2rem 0;
  box-shadow:0 6px 24px rgba(28,43,34,.05)}
.checklist .ctitle{font-family:var(--serif);font-weight:700;font-size:1.15rem;margin:0 0 .8rem;color:var(--ink);letter-spacing:-.01em}
.checklist ul{list-style:none;padding:0;margin:0}
.checklist li{position:relative;padding:.45rem 0 .45rem 2rem;font-size:1rem;line-height:1.5;border-bottom:1px dashed var(--border)}
.checklist li:last-child{border-bottom:none}
.checklist li::before{content:"";position:absolute;left:0;top:.7rem;width:18px;height:18px;
  border:1.5px solid var(--green);border-radius:5px;background:#fff}

/* Numbered "how" steps */
.steps{margin:2rem 0;padding:0;list-style:none;counter-reset:step}
.steps li{counter-increment:step;position:relative;padding:.35rem 0 1.1rem 3rem;border-bottom:1px solid var(--border);
  font-size:1.05rem;line-height:1.55}
.steps li:last-child{border-bottom:none}
.steps li::before{content:counter(step);position:absolute;left:0;top:.05rem;width:2.2rem;height:2.2rem;
  border-radius:50%;background:var(--green);color:#fff;font-weight:700;
  display:grid;place-items:center;font-size:1rem;font-family:var(--font)}

/* Final CTA at end of article */
.endcta{background:var(--green);color:#fff;border-radius:18px;padding:36px 40px;margin:48px 0 0;
  display:grid;grid-template-columns:1.6fr 1fr;gap:24px;align-items:center}
@media(max-width:760px){.endcta{grid-template-columns:1fr;padding:28px 24px}}
.endcta h3{font-family:var(--serif);font-size:clamp(1.4rem,3vw,1.9rem);color:#fff;margin:0 0 .4rem;letter-spacing:-.02em}
.endcta p{color:rgba(255,255,255,.9);margin:0;font-size:1rem}
.endcta .btn--white{justify-self:end;align-self:center}
@media(max-width:760px){.endcta .btn--white{justify-self:start}}

/* Related posts at the bottom */
.related{padding:64px 0;background:var(--surface);border-top:1px solid var(--border)}
.related h2{font-family:var(--serif);font-size:1.7rem;font-weight:700;letter-spacing:-.02em;margin:0 0 1.5rem}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:860px){.related-grid{grid-template-columns:1fr}}
.rel{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px 24px;
  text-decoration:none;color:var(--ink);transition:.15s;display:flex;flex-direction:column;gap:.5rem}
.rel:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(28,43,34,.07);border-color:#bcc9c0}
.rel .rtag{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.rel .rtitle{font-family:var(--serif);font-size:1.15rem;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.rel .rdek{color:var(--muted);font-size:.92rem;line-height:1.5;flex:1}
.rel .rmeta{font-size:.82rem;color:var(--muted);margin-top:.4rem}

/* Footer (matches landing) */
footer{background:var(--footer);color:#cdd6cf;padding:40px 0;font-size:.9rem}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;align-items:flex-start}
footer a{color:#cdd6cf;text-decoration:none}
footer .foot-links{display:flex;flex-wrap:wrap;gap:8px 18px}
