/* Anti-Cacophony Partners -- site styles */

:root{
  --ink: #15171b;
  --ink-soft: #4c5058;
  --muted: #767b85;
  --paper: #fbfaf6;
  --paper-2: #f2efe7;
  --line: #e4e0d5;
  --accent: #e8562f;      /* signal orange */
  --accent-ink: #ffffff;
  --accent-2: #1c6e68;    /* harmony teal */
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.06);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
h1,h2,h3,h4{
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2{ font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
.lede{ font-size: 1.2rem; color: var(--ink-soft); }
.muted{ color: var(--muted); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: .78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before{
  content:""; width:18px; height:2px; background:var(--accent);
  display:inline-block; border-radius:2px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,86,47,.28); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--accent-2); color: var(--accent-2); }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top: 26px; }

/* Header / nav */
header.site{
  position: sticky; top:0; z-index: 50;
  background: rgba(251,250,246,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-weight: 800; font-size: 1.05rem; letter-spacing:-.01em;
}
.logo-mark{ height: 30px; width:auto; display:block; }
.logo .mark{ display:flex; gap:2px; align-items:flex-end; height:18px; }
.logo .mark i{ display:block; width:3px; background: var(--accent); border-radius:2px; }
.logo .mark i:nth-child(1){ height: 16px; background:var(--accent);}
.logo .mark i:nth-child(2){ height: 7px; background:var(--muted);}
.logo .mark i:nth-child(3){ height: 12px; background:var(--accent-2);}
.logo .mark i:nth-child(4){ height: 9px; background:var(--accent-2);}
.logo .mark i:nth-child(5){ height: 9px; background:var(--accent-2);}
.navlinks{ display:flex; align-items:center; gap: 30px; }
.navlinks a{
  font-size: .95rem; font-weight:600; color: var(--ink-soft);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.navlinks a:hover, .navlinks a.active{ color: var(--ink); border-color: var(--accent); }
.navlinks .btn{ padding: 10px 20px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px; }

@media (max-width: 760px){
  .nav-toggle{ display:block; }
  .navlinks{
    position:absolute; top: 100%; left:0; right:0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:2px;
    padding: 10px 24px 20px; display:none;
  }
  .navlinks.open{ display:flex; }
  .navlinks a{ width:100%; padding: 12px 0; border-bottom:1px solid var(--line); }
  .navlinks .btn{ margin-top:10px; }
}

/* Hero */
.hero{ padding: 76px 0 60px; }
.hero-grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center;
}
@media (max-width: 860px){ .hero-grid{ grid-template-columns: 1fr; } }

.wave{ width:100%; height:auto; }

.stats{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 18px;
  margin: 46px 0 6px;
}
.stat{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
}
.stat .num{ font-size: 1.7rem; font-weight:800; color: var(--accent-2); }
.stat .lbl{ font-size: .86rem; color: var(--muted); margin-top:2px; }
@media (max-width:640px){ .stats{ grid-template-columns: 1fr 1fr; } }

/* Sections */
section{ padding: 64px 0; }
section.tight{ padding: 40px 0; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.divider{ height:1px; background: var(--line); border:none; margin:0; }
.band{ background: var(--paper-2); }
.band-ink{ background: var(--ink); color: #fff; }
.band-ink > .wrap > .section-head p{ color: #d8d8da; }
.band-ink h2{ color:#fff; }
.band-ink .card p{ color: var(--ink-soft); }

/* Cards / grid */
.grid{ display:grid; gap: 22px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  display:flex; flex-direction:column; height:100%;
}
.card .icon{
  width:42px; height:42px; border-radius:12px; background: var(--paper-2);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  font-size:1.2rem;
}
.card h3{ margin-bottom:.4em; }
.card ul{ margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.card ul li{ margin-bottom: 6px; }
.card .tag{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--accent); background: #fdece5; padding:4px 10px; border-radius:999px; margin-bottom:14px; width:fit-content;
}

.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.pill{
  font-size:.85rem; font-weight:600; color: var(--ink-soft);
  border:1px solid var(--line); background:#fff; padding:7px 14px; border-radius:999px;
}

/* Blog list */
.post-row{
  display:flex; justify-content:space-between; gap:24px; align-items:baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.post-row:first-child{ border-top: 1px solid var(--line); }
.post-row a{ font-weight:700; font-size:1.08rem; }
.post-row a:hover{ color: var(--accent-2); }
.post-date{ font-size:.85rem; color: var(--muted); white-space:nowrap; }

/* Post page */
.post{ max-width: 720px; margin: 0 auto; }
.post h1{ margin-bottom:.2em; }
.post .meta{ color:var(--muted); font-size:.9rem; margin-bottom: 30px; }
.post h2{ margin-top: 1.4em; }
.post ul, .post ol{ color: var(--ink-soft); padding-left: 22px; }
.post li{ margin-bottom: 8px; }
.post p{ font-size: 1.04rem; }
.post blockquote{
  margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-style: italic;
}

/* Contact */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.contact-row{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .ic{ width:38px; height:38px; border-radius:10px; background:var(--paper-2); display:flex; align-items:center; justify-content:center; }

/* Footer */
footer.site{ border-top:1px solid var(--line); padding: 46px 0 60px; margin-top: 40px; }
.foot-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.foot-brand{ font-weight:800; }
.foot-links{ display:flex; gap: 22px; flex-wrap:wrap; }
.foot-links a{ color: var(--muted); font-size:.9rem; font-weight:600; }
.foot-links a:hover{ color: var(--accent-2); }
.foot-bottom{ margin-top: 30px; font-size:.82rem; color: var(--muted); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* CTA band */
.cta-band{
  border-radius: 22px; background: var(--ink); color:#fff;
  padding: 48px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:.2em; }
.cta-band p{ color:#c9c9cc; margin:0; }

.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
