/* ===========================================
   CONNECTIONING — shared stylesheet
   Black / white / grey only. The logo carries
   every bit of colour on the entire site.
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #111111;
  --ink-soft: #46474a;
  --grey: #7a7a7a;
  --line: #dcdcdc;
  --paper: #ffffff;
  --paper-soft: #f6f6f5;
  --max: 720px;
  --max-wide: 880px;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 22px 6vw;
  border-bottom: 1px solid var(--line);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-link img { transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
  .logo-link:hover img,
  .logo-link:focus-visible img { transform: rotate(170deg); }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 1px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

/* ---------- Layout ---------- */
main { padding: 0 6vw; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 0;
}

.section.wide { max-width: var(--max-wide); }
.section.tight { max-width: var(--max); padding: 44px 0; }

.section + .section { border-top: 1px solid var(--line); }
.section.no-rule { border-top: none; padding-top: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 16px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.1vw, 27px);
  line-height: 1.2;
  margin: 0 0 18px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  margin: 0 0 16px;
}

h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

p.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
}

strong { font-weight: 600; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

/* ---------- Quotes ---------- */
.quote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--ink);
}

.quote p {
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 8px;
}

.quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 4px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  white-space: nowrap;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper-soft); }

/* ---------- Numbered sequence (used where order is real) ---------- */
.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 4px 20px;
  margin-bottom: 6px;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  color: var(--line);
  line-height: 1.1;
}

.step-body h2 { margin-bottom: 14px; }

/* ---------- Loop grid (non-linear, no ranking) ---------- */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 24px;
  margin: 10px 0 4px;
}

.loop-item p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Way-in / who-for cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px 24px;
  margin: 10px 0 4px;
}

.card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

.who-block + .who-block { margin-top: 26px; }
.who-block h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

/* ---------- Close / bookend lines ---------- */
.close-lines p {
  font-size: 18px;
  margin: 0 0 4px;
}
.close-lines p:last-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  margin-top: 8px;
}

/* ---------- Hero arc (signature flourish) ---------- */
.hero-arc {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 28px;
}

/* ---------- Substack embed ---------- */
.embed-wrap {
  margin: 6px 0 4px;
}
.embed-wrap iframe {
  width: 100% !important;
  max-width: 480px;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 38px 6vw 50px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
}

.footer-top .logo-link img { height: 30px; width: 30px; }
.footer-top .wordmark { font-size: 14px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links a {
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--ink); }

.copyright {
  font-size: 12px;
  color: var(--grey);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header { padding: 18px 5.5vw; }
  main { padding: 0 5.5vw; }
  .site-footer { padding: 34px 5.5vw 44px; }
  .section { padding: 44px 0; }
  .step { grid-template-columns: 38px 1fr; }
  .step-num { font-size: 24px; }
}
