/* Weevil — fiberfoundry.ai
   Warm, friendly, one grid. Bricolage headings, Figtree body. */

:root{
  --bg:#fdfbf6;
  --bg2:#f6f2e8;
  --ink:#252a23;
  --body:#454a40;
  --muted:#7d7768;
  --green:#26463c;
  --green-dark:#1c352d;
  --brass:#96601f;
  --line:#e8e2d4;
  --wrap:64rem;
  --disp:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --sans:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--body);
  font-family:var(--sans);font-size:1.07rem;line-height:1.68;
  -webkit-font-smoothing:antialiased;overflow-x:clip;
}
img,svg{max-width:100%;display:block}
a{color:var(--green);text-decoration:underline;text-decoration-color:#cfd8cd;text-underline-offset:3px}
a:hover{text-decoration-color:var(--green)}
::selection{background:var(--green);color:#fdfbf6}
:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 clamp(1.2rem,4vw,2rem)}
.skip{position:absolute;left:-9999px;top:0;background:var(--green);color:#fff;padding:.6rem 1rem;z-index:99;font-size:.85rem}
.skip:focus{left:0}

/* header */
.site-head{position:sticky;top:0;z-index:50;background:rgba(253,251,246,.9);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid transparent;transition:border-color .25s ease}
.site-head.scrolled{border-bottom-color:var(--line)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:4.2rem}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink)}
.brand .mark{width:auto;height:34px;flex:none}
.site-foot .brand .mark{height:28px}
.brand .word{font-family:var(--disp);font-weight:700;font-size:1.16rem;letter-spacing:.01em}
.navlinks{display:flex;align-items:center;gap:1.5rem;list-style:none;margin:0;padding:0}
.navlinks a{font-size:.98rem;color:var(--body);text-decoration:none}
.navlinks a:hover{color:var(--green)}
.btn{
  display:inline-block;font-family:var(--sans);font-size:.98rem;font-weight:600;
  background:var(--green);color:#fdfbf6;text-decoration:none;
  padding:.7rem 1.25rem;border-radius:10px;border:1px solid var(--green);
  transition:background .15s ease;
}
.btn:hover{background:var(--green-dark);color:#fdfbf6}
.btn.ghost{background:transparent;color:var(--green)}
.btn.ghost:hover{background:var(--bg2);color:var(--green)}
.navlinks a.btn{color:#fdfbf6;padding:.55rem 1.05rem}
.navlinks a.btn:hover{color:#fdfbf6}
.menu-btn{display:none}

/* hero */
.hero{padding:clamp(4rem,11vh,7rem) 0 clamp(2.6rem,6vh,4rem)}
.hero .eyebrow{font-size:.95rem;color:var(--muted);margin:0 0 1.1rem}
.hero h1{
  font-family:var(--disp);
  font-size:clamp(2.35rem,5.6vw,3.8rem);line-height:1.07;letter-spacing:-.022em;
  font-weight:700;color:var(--ink);margin:0 0 1.25rem;max-width:20ch;
}
.hero .lede{font-size:1.17rem;line-height:1.62;margin:0 0 1.9rem;max-width:36em}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:1.7rem}
.earlynote{font-size:.94rem;color:var(--muted);margin:0;display:flex;align-items:center;gap:.55rem}
.earlynote::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:var(--green);flex:none}

/* sections */
.sec{padding:clamp(3rem,7vw,4.6rem) 0}
.sec + .sec{border-top:1px solid var(--line)}
.sec h2{font-family:var(--disp);font-size:1.6rem;font-weight:700;color:var(--ink);letter-spacing:-.012em;margin:0 0 1rem;max-width:42rem}
.sec h3{font-family:var(--disp);font-size:1.14rem;font-weight:700;color:var(--ink);margin:0 0 .5rem}
.sec p{margin:0 0 1.1rem;max-width:42rem}
.sec p:last-child{margin-bottom:0}
.sec strong{color:var(--ink);font-weight:600}
.fn{font-size:.86rem;color:var(--muted);line-height:1.65;max-width:42rem}
.fn a{color:var(--muted)}

.statrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(2rem,6vw,4.5rem);align-items:start;max-width:56rem}
.stat{border-left:3px solid var(--green);padding:.3rem 0 .3rem 1.4rem;max-width:15rem}
.stat b{display:block;font-family:var(--disp);font-weight:700;font-size:clamp(2.8rem,5vw,3.8rem);line-height:1;color:var(--green);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat span{display:block;margin-top:.7rem;font-size:.92rem;line-height:1.55;color:var(--muted)}
@media (max-width:720px){.statrow{grid-template-columns:1fr}.stat{max-width:22rem}}
.planks{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;margin-top:1.9rem;max-width:56rem}
.planks > div{background:var(--bg2);border:1px solid var(--line);border-radius:16px;padding:1.6rem 1.7rem}
.planks p{margin:0;max-width:none}
@media (max-width:680px){.planks{grid-template-columns:1fr;gap:1.1rem}}

.talk{margin-top:1.6rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
.talk .aside{font-size:.94rem;color:var(--muted);margin:0}

/* footer */
.site-foot{border-top:1px solid var(--line);background:var(--bg2)}
.site-foot .wrap{padding-top:2.4rem;padding-bottom:2.6rem}
.site-foot .row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;align-items:center}
.site-foot p{margin:.3rem 0;font-size:.9rem;color:var(--muted)}
.site-foot a{color:var(--muted)}
.site-foot a:hover{color:var(--green)}
.site-foot .brand .word{font-size:1.05rem}

/* about */
.page-hero{padding:clamp(4rem,10vh,6rem) 0 clamp(1.6rem,4vh,2.6rem)}
.page-hero h1{font-family:var(--disp);font-size:clamp(2.1rem,5vw,3rem);line-height:1.08;letter-spacing:-.015em;font-weight:600;color:var(--ink);margin:0;max-width:18ch}
.prose p{margin:0 0 1.25rem;line-height:1.75;max-width:42rem}
.prose p strong{color:var(--ink);font-weight:600}
.prose .lead{font-size:1.14rem;color:var(--ink)}
.prose em{color:var(--brass);font-style:italic}
.principles{list-style:none;margin:1.5rem 0 0;padding:0;max-width:42rem}
.principles li{padding:.9rem 0 .9rem 1.8rem;border-bottom:1px solid var(--line);position:relative;line-height:1.68}
.principles li:last-child{border-bottom:none}
.principles li::before{content:"";position:absolute;left:.15rem;top:1.38rem;width:.55rem;height:.55rem;border-radius:50%;background:var(--green)}
.principles b{color:var(--ink);font-weight:600}

/* 404 */
.lost{min-height:60vh;display:grid;place-content:center;text-align:center;padding:4rem 1.4rem}
.lost b{font-family:var(--disp);font-size:clamp(3.5rem,12vw,6rem);line-height:1;color:var(--green);display:block;font-weight:600;letter-spacing:-.02em}
.lost p{color:var(--muted);max-width:40ch;margin:1rem auto 1.6rem}

@media (max-width:560px){
  .navlinks{gap:1rem}
  .navlinks a:not(.btn){display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
