/* Shared styles for subpages (projects, tools, blog, about).
   index.html keeps its own inline styles — tokens here match it deliberately. */
:root {
  --bg: #FDFCF8;
  --bg-alt: #F7F4EC;
  --ink: #111111;
  --gray: #4B4B4B;
  --gray-light: #8A8A8A;
  --border: #111111;
  --pink: #EC4899;
  --pink-dark: #D6317C;
  --blue: #4A4FE0;
  --yellow: #F6D74C;
  --card: #FFFFFF;
  --shadow: 4px 4px 0 #111111;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  border-bottom: 3px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.nav-logo { font-weight: 800; font-size: 16px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav a { color: var(--gray); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-cta {
  background: var(--pink); color: #fff; border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border); padding: 7px 14px; border-radius: 999px;
}
.nav .nav-cta:hover { color: #fff; text-decoration: none; }

/* page head */
.page-head { padding: 56px 0 34px; border-bottom: 3px solid var(--border); }
.eyebrow {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border: 2px solid var(--border); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--border); margin-bottom: 20px;
}
h1 { font-size: 38px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 38px 0 12px; }
h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.lede { font-size: 18px; color: var(--gray); margin-top: 16px; max-width: 620px; }
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 18px 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }
a { color: var(--blue); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 34px 0; }
.card {
  background: var(--card); border: 3px solid var(--border); box-shadow: var(--shadow);
  padding: 22px; text-decoration: none; color: var(--ink); display: block;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); }
.card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: var(--yellow); border: 2px solid var(--border);
  padding: 3px 9px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.card p { color: var(--gray); font-size: 15px; margin: 0; }
.card .who { font-size: 13px; color: var(--gray-light); font-weight: 600; margin-top: 12px; }

/* facts strip on a case study */
.facts {
  display: flex; flex-wrap: wrap; gap: 0; border: 3px solid var(--border);
  box-shadow: var(--shadow); background: var(--card); margin: 30px 0 8px;
}
.fact { flex: 1 1 160px; padding: 16px 18px; border-right: 3px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-light); font-weight: 700; }
.fact .v { font-size: 15px; font-weight: 700; margin-top: 3px; }

.quote {
  border-left: 6px solid var(--pink); background: var(--bg-alt);
  padding: 18px 22px; margin: 28px 0; font-size: 17px;
}
.quote .by { display: block; margin-top: 10px; font-size: 14px; color: var(--gray); font-weight: 600; }

.callout {
  border: 3px solid var(--border); background: var(--yellow);
  padding: 18px 22px; margin: 28px 0; box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block; background: var(--pink); color: #fff; font-weight: 700;
  border: 3px solid var(--border); box-shadow: var(--shadow); padding: 14px 26px;
  text-decoration: none; border-radius: 999px; font-size: 16px;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--border); }
.btn-alt { background: var(--card); color: var(--ink); }

.section { padding: 10px 0 50px; }
.backlink { display: inline-block; margin: 28px 0 0; font-weight: 600; font-size: 14px; }

/* footer */
footer.site {
  border-top: 3px solid var(--border); background: var(--bg-alt);
  margin-top: 60px; padding: 40px 0 50px;
}
.foot-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; display: flex; gap: 26px; flex-wrap: wrap; }
.foot-me { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 340px; }
.foot-me img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--border); object-fit: cover; }
.foot-me p { font-size: 14px; color: var(--gray); margin: 6px 0 0; }
.foot-me .name { font-weight: 800; font-size: 16px; color: var(--ink); }
.foot-links { flex: 1 1 200px; }
.foot-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-light); margin-bottom: 10px; }
.foot-links a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .fact { border-right: 0; border-bottom: 3px solid var(--border); flex: 1 1 100%; }
  .fact:last-child { border-bottom: 0; }
}

/* --- MailerLite signup, restyled to the site (Sept 4 2026) ---
   Structure and class names come from MailerLite's embed and are load-bearing:
   webforms.min.js binds to .ml-block-form inside .ml-subscribe-form-<id> and
   toggles .row-form / .row-success. Don't rename them. Everything visual below
   is ours, MailerLite's own stylesheet is deliberately not included. */
.signup {
  border: 3px solid var(--border); box-shadow: var(--shadow); background: var(--card);
  padding: 26px 26px 24px; margin: 36px 0;
}
.signup h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.signup .signup-sub { color: var(--gray); font-size: 15px; margin: 0 0 20px; }
.signup form { margin: 0; }
.signup .signup-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.signup .ml-field-group { flex: 1 1 200px; }
.signup input[type="text"], .signup input[type="email"] {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
  padding: 12px 14px; background: var(--bg); color: var(--ink);
  border: 3px solid var(--border); border-radius: 0; outline: none;
}
.signup input::placeholder { color: var(--gray-light); }
.signup input:focus { box-shadow: 3px 3px 0 var(--border); }
.signup button.primary {
  margin-top: 14px; width: 100%; font: inherit; font-size: 16px; font-weight: 700;
  background: var(--pink); color: #fff; border: 3px solid var(--border);
  box-shadow: var(--shadow); border-radius: 999px; padding: 13px 24px; cursor: pointer;
}
.signup button.primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--border); }
.signup button.loading {
  margin-top: 14px; width: 100%; background: var(--gray-light); color: #fff; cursor: default;
  border: 3px solid var(--border); border-radius: 999px; padding: 13px 24px;
}
.signup .signup-fine { font-size: 13px; color: var(--gray-light); margin: 12px 0 0; }
.signup .ml-error input { border-color: #C0392B !important; }
.signup .row-success h4 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.signup .row-success p { color: var(--gray); margin: 0; }
.ml-form-embedSubmitLoad { display:inline-block; width:18px; height:18px; }
.ml-form-embedSubmitLoad:after {
  content:" "; display:block; width:10px; height:10px; margin:1px; border-radius:50%;
  border:3px solid #fff; border-color:#fff #fff #fff transparent;
  animation: ml-spin 1.2s linear infinite;
}
@keyframes ml-spin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* --- project page figures (Sept 5 2026) ---
   Diagrams are inline SVG in the LOCKED brand tokens from
   Content & Thought Leadership/Visual Style Guide: cream #FBF3E1, black #141414,
   indigo #5B4CF0, yellow #F5C518, 3px borders. Not the site palette, on purpose. */
.projfig { margin: 30px 0 34px; }
.projfig svg, .projfig img {
  width: 100%; height: auto; display: block;
  border: 3px solid var(--border); box-shadow: var(--shadow); background: #FBF3E1;
}
.projfig figcaption { font-size: 13.5px; color: var(--gray-light); margin-top: 12px; font-weight: 600; }
