/* mathventurepartners.com
   Palette and type taken from the original site's Elementor globals, so this
   reads as the same firm rather than a lookalike:
     primary #072B31   ink
     accent  #EAEDF1   page ground
     text    #A65523   terracotta, used for links
     secondary #C4CEC2 sage
     #43695B forest (link hover)  #689881 sage-green  #919388 warm grey
   Body copy on the original is Avenir 20/31 at weight 400, headings 500-800.
   No animations, per the brief. */

:root {
  --ink:        #072B31;
  --ground:     #EAEDF1;
  --white:      #FFFFFF;
  --terracotta: #A65523;
  --sage:       #C4CEC2;
  --forest:     #43695B;
  --sage-green: #689881;
  --warm-grey:  #919388;

  --sans: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 62ch;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--forest); text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------------------------------------------------------------- header */

.masthead { padding: 34px 0 0; }
.mark { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.mark img { display: block; width: 54px; height: 54px; }
/* The firm's name as real text, not just alt text on a logo. It is the h1 on
   the home page -- where the firm is the subject -- and a span elsewhere, so
   Portfolio and the legal pages keep their own h1. */
.wordmark {
  margin: 0; font-size: 15px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; line-height: 1.2;
}
.mark:hover { text-decoration: none; }

/* The splash claim. Was the h1; now an h2 carrying the same weight, because
   the brand took the h1. */
.hero-claim {
  margin: 0 0 26px;
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.12; font-weight: 500;
  letter-spacing: -.01em; max-width: 20ch; text-wrap: balance;
}

/* ------------------------------------------------------------------ hero */

.hero { padding: 74px 0 84px; }
.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero p { margin: 0 0 20px; max-width: var(--measure); }
.hero p:last-of-type { margin-bottom: 0; }
.lede { font-size: 22px; line-height: 1.5; }

.rule {
  border: 0;
  border-top: 1px solid rgba(7, 43, 49, .16);
  margin: 52px 0;
}

/* ----------------------------------------------------------------- links */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
/* The investor row is a separate audience, not a fourth partner. */
.actions-alt { margin-top: 18px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--ground); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* ---------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid rgba(7, 43, 49, .16);
  margin-top: 70px;
  padding: 28px 0 54px;
  font-size: 15px;
  color: var(--warm-grey);
}
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; }
.foot a { color: var(--warm-grey); }
.foot a:hover { color: var(--terracotta); }
.foot-links { display: flex; gap: 18px; margin-left: auto; }

/* ------------------------------------------------------------- portfolio */
/* The firm's logo files are white knockouts, so this section keeps the dark
   ground they were drawn for. */

.pf-head { padding: 60px 0 10px; }
.pf-head h1 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 44px);
              font-weight: 500; letter-spacing: -.01em; }
.pf-head p { margin: 0; max-width: var(--measure); color: var(--ink); }

.pf-sec {
  margin: 46px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  padding-bottom: 10px; border-bottom: 1px solid rgba(7, 43, 49, .18);
  display: flex; align-items: baseline; gap: 10px;
}
.pf-count { font-size: 12px; font-weight: 500; color: var(--warm-grey);
            font-variant-numeric: tabular-nums; }
/* A company with no logo file still needs to read as a card, not a gap. */
.pf-nologo { font-size: 17px; font-weight: 600; color: var(--ground);
             letter-spacing: -.01em; }
.pf-fund { font-family: inherit; font-size: 11px; font-weight: 600;
           letter-spacing: .09em; text-transform: uppercase;
           color: var(--warm-grey); }

.pf-grid {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.pf-card { background: var(--ink); padding: 26px 26px 24px; display: flex;
           flex-direction: column; gap: 14px; }
.pf-logo { height: 40px; display: flex; align-items: center; }
.pf-logo img { max-height: 40px; max-width: 190px; width: auto; height: auto; }
.pf-founder {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sage);
}
.pf-desc { font-size: 16px; line-height: 1.5; color: var(--ground); margin: 0; flex: 1; }
.pf-link { font-size: 15px; font-weight: 600; color: var(--sage-green); }
.pf-link:hover { color: var(--white); text-decoration: underline; }

/* ----------------------------------------------------------------- prose */

.post { padding: 56px 0 0; }
.post h1 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 44px);
           font-weight: 500; letter-spacing: -.01em; max-width: 22ch;
           text-wrap: balance; }
.post .date { margin: 0 0 34px; font-size: 15px; color: var(--warm-grey); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 26px; font-weight: 600; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose em { font-style: italic; }
.prose strong { font-weight: 700; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 0 56px; }
  .lede { font-size: 19px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .foot-links { margin-left: 0; width: 100%; }
  .pf-sec {
  margin: 46px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  padding-bottom: 10px; border-bottom: 1px solid rgba(7, 43, 49, .18);
  display: flex; align-items: baseline; gap: 10px;
}
.pf-count { font-size: 12px; font-weight: 500; color: var(--warm-grey);
            font-variant-numeric: tabular-nums; }
/* A company with no logo file still needs to read as a card, not a gap. */
.pf-nologo { font-size: 17px; font-weight: 600; color: var(--ground);
             letter-spacing: -.01em; }
.pf-fund { font-family: inherit; font-size: 11px; font-weight: 600;
           letter-spacing: .09em; text-transform: uppercase;
           color: var(--warm-grey); }

.pf-grid { grid-template-columns: 1fr; }
}
