/* McCloskeyIP — site styles
   Typeface: Inter (SIL Open Font License 1.1), self-hosted from /assets/fonts. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* McCloskeyIP — site styles
   Two-tone system: grey carries everything secondary, blue is reserved for
   the "key" moments (wordmark, hero, list rules, primary button). */

:root {
  --ink: #0A0A0A;
  --grey: #595959;
  --blue: #0F3088;
  --blue-hover: #0B2566;
  --rule: #E5E5E5;
  --rule-strong: #D4D4D4;
  --soft: #F5F5F5;
  --white: #FFFFFF;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, dl { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white);
  padding: 8px 12px; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 8px; color: var(--white); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mc { color: var(--grey); }
.wordmark .key { color: var(--blue); }
.wordmark:hover .mc { color: var(--grey); }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--rule); }
.nav .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.nav .wordmark { font-size: 22px; }
.nav-links {
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 15px; font-weight: 500;
}
.nav-links a {
  color: var(--grey); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); border-bottom-color: var(--blue); }
.nav-links a.contact { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border-radius: 4px; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 104px; padding-bottom: 80px;
}
.hero h1 {
  max-width: 980px;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 .key { color: var(--blue); white-space: nowrap; }
.hero .lede {
  max-width: 680px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--grey);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

/* ---------- Section basics ---------- */
.section .wrap { padding-top: 96px; padding-bottom: 88px; }
.section-soft { background: var(--soft); }
.section h2 {
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Who I work with ---------- */
.audiences .wrap { display: flex; flex-direction: column; gap: 48px; }
.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card {
  flex: 1 1 320px; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 24px; border-top: 2px solid var(--blue);
}
.card h3 { font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.card .promise { font-size: 17px; color: var(--grey); }

.rows {
  list-style: none; padding: 0; margin: 12px 0 0;
  font-size: 15px; font-weight: 500; line-height: 1.4;
}
.rows li { padding: 11px 0; border-top: 1px solid var(--rule-strong); }
.rows li:last-child { border-bottom: 1px solid var(--rule-strong); }

/* ---------- Private equity ---------- */
.pe .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.pe-lead { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pe-lead p.body { font-size: 17px; line-height: 1.6; }
.pe-phases { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; }
.phase {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 0; border-top: 1px solid var(--rule-strong);
}
.phase:last-child { border-bottom: 1px solid var(--rule-strong); }
.phase h3 { font-size: 18px; font-weight: 600; }
.phase p { font-size: 15px; color: var(--grey); }

/* ---------- How I work ---------- */
.how .wrap { display: flex; flex-direction: column; gap: 48px; }
.principles { display: flex; flex-wrap: wrap; gap: 40px; }
.principle { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.principle h3 { font-size: 20px; font-weight: 600; }
.principle p { font-size: 16px; color: var(--grey); }

/* ---------- About ---------- */
.about .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about img {
  flex: 0 0 256px; width: 256px; max-width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px;
}
.about-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about h2 { font-size: clamp(30px, 3.6vw, 40px); }
.about .lead { font-size: 17px; line-height: 1.6; }
.about .rows { margin: 4px 0 8px; font-size: 16px; line-height: 1.45; }
.about .closer { font-size: 17px; line-height: 1.6; color: var(--grey); }
.creds {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px; font-size: 14px; margin-top: 8px;
}
.creds dt { color: var(--grey); margin-bottom: 2px; }
.creds dd { margin: 0; }

/* ---------- Contact ---------- */
.contact .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
  padding-top: 104px; padding-bottom: 80px;
}
.contact-lead { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact h2 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05; letter-spacing: -0.035em;
}
.contact .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.contact .vcard {
  font-size: 15px; font-weight: 500; color: var(--grey);
  text-decoration: underline; text-underline-offset: 3px;
}
.contact .vcard:hover { color: var(--blue); }
.contact address {
  flex: 0 1 320px; min-width: 0;
  font-style: normal; font-size: 15px; line-height: 1.7; color: var(--grey);
  display: flex; flex-direction: column; gap: 12px;
}
.contact address a { color: var(--ink); text-decoration: none; }
.contact address a:hover { color: var(--blue); }

/* ---------- Legal pages ---------- */
.legal .wrap {
  max-width: 800px;
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 72px; padding-bottom: 96px;
}
.legal-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.legal h1 {
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.03em;
}
.legal .meta { font-size: 15px; color: var(--grey); }
.legal h2 {
  font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25;
  margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--rule-strong);
}
.legal p { font-size: 16px; line-height: 1.65; }
.legal p strong { font-weight: 600; }
.legal a { color: var(--blue); }

/* ---------- Email gate dialog ---------- */
.gate {
  width: min(560px, calc(100vw - 32px));
  margin: auto; padding: 0; border: 0; border-radius: 6px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.gate::backdrop { background: rgba(10, 10, 10, 0.55); }
.gate-body { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.gate h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.gate p { font-size: 15px; line-height: 1.6; color: var(--grey); }
.gate .gate-fine { font-size: 13px; }
.gate .gate-fine a { color: var(--blue); }
.gate .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.gate .btn { font-family: inherit; cursor: pointer; }
.gate .btn-outline { background: transparent; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); }
.footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; padding-bottom: 24px;
  font-size: 13px; color: var(--grey);
}
.footer .wordmark { font-weight: 400; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--grey); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .gate-body { padding: 24px 20px; }
  .gate .actions { flex-direction: column; }
  .gate .btn { width: 100%; white-space: normal; }
  .legal .wrap { padding-top: 48px; padding-bottom: 64px; }
  .legal h2 { font-size: 20px; }
  .hero h1 br { display: none; }
  :root { --gutter: 20px; }
  .nav .wrap { padding-top: 16px; padding-bottom: 16px; flex-wrap: nowrap; }
  .nav .wordmark { font-size: 20px; }
  /* On a phone the page is one scroll; keep the wordmark and Contact, drop the section links. */
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a:not(.contact) { display: none; }
  .contact h2 { font-size: 32px; }
  .contact .actions { flex-direction: column; align-items: stretch; }
  .contact .actions .btn { width: 100%; }
  .contact .actions .vcard { text-align: center; padding: 6px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 56px; gap: 24px; }
  .section .wrap { padding-top: 64px; padding-bottom: 56px; }
  .contact .wrap { padding-top: 64px; padding-bottom: 56px; }
  .about img { width: 160px; flex-basis: 160px; }
  .creds { grid-template-columns: 1fr; }
}
