/* Founding Class Partners: navy, brass, ivory. Self-hosted fonts (no third-party requests). */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --dark: #15171C;
  --gold: #B8893B;
  --gold-soft: #D9B97A;
  --ivory: #F7F3EA;
  --paper: #FFFDF8;
  --ink: #15171C;
  --muted: #5A6377;
  --rule: rgba(20, 33, 61, .14);
  --serif: "Cormorant Garamond", "Libre Caslon Text", Georgia, serif;
  /* vertical rhythm: one scale for the whole page */
  --section: 72px;      /* above and below each section */
  --head-gap: 28px;     /* section title to its content */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: var(--head-gap); }
h3 { font-size: 26px; margin-bottom: 8px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}

/* hero */
.hero {
  background: var(--dark);
  color: var(--ivory);
  padding: 32px 0 48px;
  border-bottom: 3px solid var(--gold);
}
.hero .wrap { max-width: 1200px; }
.logo { width: min(420px, 100%); margin-bottom: 24px; }
/* Image left, text right. The network figure (borrowed from The Founding Class for now)
   has a black background, blended away with lighten so only the light lines show. */
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.hero-art {
  width: 100%; max-height: 520px; object-fit: contain; object-position: center bottom;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
          mask-image: linear-gradient(to bottom, #000 75%, transparent);
}
.hero h1 {
  font-size: clamp(34px, 3.9vw, 54px);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1:last-child { margin-bottom: 0; }
.hero h1 span + span { color: var(--gold-soft); margin-top: .12em; }
.lede { max-width: 34em; margin: 0; font-size: 19px; color: rgba(247, 243, 234, .8); }

/* sections */
main section.wrap { padding-top: var(--section); padding-bottom: var(--section); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cols article { border-top: 1px solid var(--gold); padding-top: 18px; }
.cols p { margin: 0; color: var(--muted); }

.approach, .expertise, .contact { border-top: 1px solid var(--rule); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: p; }
.principles li { counter-increment: p; border-top: 1px solid var(--gold); padding-top: 18px; }
.principles li::before { content: "0" counter(p); display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--gold); }
.principles h3 { font-size: 30px; margin-bottom: 8px; }
.principles p { margin: 0; color: var(--muted); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; }
.areas h3 { font-size: 22px; margin-bottom: 8px; }
.areas p { margin: 0; font-size: 15px; color: var(--muted); }
.contact p:not(.eyebrow) { margin: 0; color: var(--muted); }
.contact .email { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact .email:hover { color: var(--gold); }

/* footer */
footer { background: var(--dark); color: rgba(247, 243, 234, .7); padding: 32px 0; font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer p { margin: 0; }
footer .fine { margin-left: auto; font-size: 12px; color: rgba(247, 243, 234, .5); }

@media (max-width: 960px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { max-height: 360px; }
  .hero h1 span { white-space: normal; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --section: 52px; --head-gap: 22px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 24px 0 40px; }
  .logo { margin-bottom: 16px; }
  .hero-art { max-height: 280px; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .areas { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  footer .fine { margin-left: 0; flex-basis: 100%; }
}
