/* Browns Lane Capital website. Palette and type from brand/BRAND_KIT.md. */

/* Fonts are served from assets/fonts/ (latin subset as Google Fonts serves it; OFL, licences
   beside the files). Plex Sans is one variable file for every weight. The Fallback faces are
   local Arial and Georgia scaled to the web fonts' widths and given the web fonts' ascent and
   descent, so few lines rewrap when the web fonts swap in (an average match on the current text:
   a line sitting at a wrap point can still flip, and a device without these local fonts gets the
   plain stack). Each weight is three faces by character class, because the typefaces differ by
   class: Plex capitals are 7% narrower than Arial's and its digits 8% wider. Lower case, spaces
   and punctuation share one face with an average adjustment, which keeps the face count down at
   the price of a little more residual reflow. Each size-adjust is the measured width ratio on
   the site's own text of that class (2026-10-18); override = web font metric / size-adjust
   (Plex 1025/275/0, Spectral 1059/463/0 per 1000). Every face has a unicode-range, and the rest
   face, which covers most text, is declared last so the browser (it tries faces last-declared
   first) reaches it first. In local mobile Lighthouse runs with devtools throttling (2026-10-19)
   this arrangement painted about 0.35 s sooner than four faces per weight (lower case apart),
   which reflowed slightly less. */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/spectral-400-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/spectral-500-latin.woff2) format('woff2');
}
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Helvetica'); unicode-range: U+0041-005A;
  size-adjust: 93.21%; ascent-override: 109.96%; descent-override: 29.5%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Helvetica'); unicode-range: U+0030-0039;
  size-adjust: 108.14%; ascent-override: 94.79%; descent-override: 25.43%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Helvetica'); unicode-range: U+0000-002F, U+003A-0040, U+005B-10FFFF;
  size-adjust: 101.34%; ascent-override: 101.15%; descent-override: 27.14%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Helvetica'); unicode-range: U+0041-005A;
  size-adjust: 94.9%; ascent-override: 108.01%; descent-override: 28.98%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Helvetica'); unicode-range: U+0030-0039;
  size-adjust: 108.14%; ascent-override: 94.79%; descent-override: 25.43%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Helvetica'); unicode-range: U+0000-002F, U+003A-0040, U+005B-10FFFF;
  size-adjust: 103.56%; ascent-override: 98.97%; descent-override: 26.55%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'); unicode-range: U+0041-005A;
  size-adjust: 94.74%; ascent-override: 108.19%; descent-override: 29.03%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'); unicode-range: U+0030-0039;
  size-adjust: 108.07%; ascent-override: 94.84%; descent-override: 25.45%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback'; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'); unicode-range: U+0000-002F, U+003A-0040, U+005B-10FFFF;
  size-adjust: 97.31%; ascent-override: 105.33%; descent-override: 28.26%; line-gap-override: 0%; }
@font-face { font-family: 'Spectral Fallback'; font-weight: 400; src: local('Georgia'); unicode-range: U+0041-005A;
  size-adjust: 102.8%; ascent-override: 103.01%; descent-override: 45.04%; line-gap-override: 0%; }
@font-face { font-family: 'Spectral Fallback'; font-weight: 400; src: local('Georgia'); unicode-range: U+0030-0039;
  size-adjust: 91.38%; ascent-override: 115.89%; descent-override: 50.67%; line-gap-override: 0%; }
@font-face { font-family: 'Spectral Fallback'; font-weight: 400; src: local('Georgia'); unicode-range: U+0000-002F, U+003A-0040, U+005B-10FFFF;
  size-adjust: 99.8%; ascent-override: 106.12%; descent-override: 46.39%; line-gap-override: 0%; }
@font-face { font-family: 'Spectral Fallback'; font-weight: 500; src: local('Georgia'); unicode-range: U+0041-005A;
  size-adjust: 103.73%; ascent-override: 102.09%; descent-override: 44.64%; line-gap-override: 0%; }
@font-face { font-family: 'Spectral Fallback'; font-weight: 500; src: local('Georgia'); unicode-range: U+0030-0039;
  size-adjust: 93.94%; ascent-override: 112.73%; descent-override: 49.29%; line-gap-override: 0%; }
@font-face { font-family: 'Spectral Fallback'; font-weight: 500; src: local('Georgia'); unicode-range: U+0000-002F, U+003A-0040, U+005B-10FFFF;
  size-adjust: 100.78%; ascent-override: 105.08%; descent-override: 45.94%; line-gap-override: 0%; }

:root {
  --ink: #17293D;
  --bronze: #8C6F45;
  --tan: #C7A87C;
  --limestone: #E6DAC5;
  --paper: #FAF8F4;
  --serif: 'Spectral', 'Spectral Fallback', Georgia, serif;
  --sans: 'IBM Plex Sans', 'IBM Plex Sans Fallback', Arial, sans-serif;
}
* { box-sizing: border-box; }
/* Navy behind the page so a tall window never shows paper under the footer */
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 40px;
}
header img { display: block; height: 46px; width: auto; }
nav { display: flex; gap: 36px; }
.nav-link {
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--ink); }

.eyebrow {
  margin: 0 0 28px;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze);
}

.hero { padding: 112px 0 96px; }
.hero h1 {
  margin: 0 0 36px; max-width: 900px;
  font: 400 clamp(38px, 5.4vw, 62px)/1.1 var(--serif); letter-spacing: -.005em;
  text-wrap: balance;
}
.lead { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.65; }
.hero .more { margin-top: 36px; }
/* Focus facts inside the hero: a rule above, tighter than a section of their own */
.hero .hero-facts { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--limestone); }
.hero-facts .focus-grid { gap: 48px; }
.hero-facts dd { font-size: 22px; }

/* Inner pages: a shorter opening */
.page-head { padding: 72px 0 56px; }
.page-head h1 {
  margin: 0 0 28px; max-width: 900px;
  font: 400 clamp(34px, 4.4vw, 52px)/1.12 var(--serif); letter-spacing: -.005em; text-wrap: balance;
}

.section { border-top: 1px solid var(--limestone); padding: 96px 0 112px; }
.section.tight { padding: 72px 0 88px; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  margin: 0; padding: 0; list-style: none;
}
.pillars li { border-top: 1px solid var(--ink); padding-top: 28px; }
/* Two lines tall on desktop so the three paragraphs start level */
.pillars h2 { margin: 0 0 14px; min-height: 2.5em; font: 400 24px/1.25 var(--serif); }
.pillars p { margin: 0; }
.pillars p + p { margin-top: 14px; }

.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin: 0; }
.focus-grid div { border-top: 1px solid var(--ink); padding-top: 24px; }
.focus-grid dt {
  margin: 0 0 10px;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.focus-grid dd { margin: 0; font: 400 24px/1.3 var(--serif); }

/* Two-column prose block: label left, text right */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split h2 { margin: 0; font: 400 clamp(28px, 3.2vw, 38px)/1.15 var(--serif); text-wrap: balance; }
.split p { margin: 0 0 22px; font-size: 17px; }
.split p:last-child { margin-bottom: 0; }

/* Text links inside prose */
.textlink { text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 2px; }
.textlink:hover { color: var(--bronze); border-bottom-color: var(--bronze); }
.more { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }

/* Principal page */
.principal { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.portrait {
  display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--limestone);
}
.portrait-placeholder {
  width: 100%; max-width: 360px; aspect-ratio: 4 / 5; background: var(--limestone);
  display: flex; align-items: flex-end; padding: 20px;
  font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze);
}
.principal h1 { margin: 0 0 6px; font: 400 clamp(32px, 3.6vw, 44px)/1.15 var(--serif); }
.role { margin: 0 0 32px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.principal p { margin: 0 0 20px; font-size: 17px; }
.principal h2 { margin: 40px 0 16px; font: 400 24px/1.25 var(--serif); }
.bio-quote { margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--tan); }
.bio-quote p { font-size: 17px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 12px 0; border-top: 1px solid var(--limestone); font-size: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--limestone); }
.facts strong { font-weight: 500; display: inline-block; min-width: 150px; }

/* Portal page: one bordered block per tool, each with its own Sign in button */
.tool {
  display: grid; gap: 16px; max-width: 640px; margin-top: 48px; padding: 32px;
  border: 1px solid var(--limestone); border-radius: 8px;
}
.tool h2 { margin: 0; font: 500 28px/1.2 var(--serif); }
.tool p { margin: 0; font-size: 17px; }
.tool ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; }
.button {
  justify-self: start; display: inline-block; margin-top: 8px; padding: 14px 28px; border-radius: 6px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.button:hover { background: var(--bronze); }
.request { margin: 28px 0 0; font-size: 15px; }

.contact { background: var(--ink); color: var(--paper); padding-top: 104px; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact .eyebrow { color: var(--tan); }
.contact h2 { margin: 0; font: 400 clamp(32px, 3.6vw, 42px)/1.15 var(--serif); }
.contact-grid p:not(.eyebrow) { margin: 0 0 22px; color: var(--limestone); font-size: 17px; }
.email {
  font: 400 clamp(22px, 2.4vw, 28px)/1.3 var(--serif); color: var(--paper);
  text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.email:hover { color: var(--tan); }
.contact-grid p.alt { margin: 30px 0 0; }
.contact .alt a { color: var(--limestone); text-decoration: none; border-bottom: 1px solid rgba(199,168,124,.6); padding-bottom: 2px; }
.contact .alt a:hover { color: var(--tan); }

footer {
  margin-top: 104px; padding: 36px 0 44px;
  border-top: 1px solid rgba(250, 248, 244, .14);
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer img { display: block; width: 378px; max-width: 100%; height: auto; }
.copyright { margin: 0; font-size: 13px; color: var(--limestone); }
.disclaimer {
  margin: 24px 0 0; max-width: 780px;
  font-size: 12px; line-height: 1.6; color: rgba(230, 218, 197, .62);
}
.disclaimer a { color: inherit; }

/* Six menu items: tighter spacing before the header would overflow, and below 960 px the menu takes
   its own row under the logo, as on a phone */
@media (max-width: 1080px) {
  nav { gap: 24px; }
  .nav-link { letter-spacing: .14em; }
}
@media (max-width: 960px) {
  header .wrap { flex-wrap: wrap; }
  nav { width: 100%; flex-wrap: wrap; row-gap: 6px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  header .wrap { padding-top: 28px; padding-bottom: 28px; }
  header img { height: 38px; }
  nav { gap: 22px; }
  .hero { padding: 64px 0 64px; }
  .hero .hero-facts { margin-top: 48px; padding-top: 36px; }
  .hero-facts .focus-grid { gap: 28px; }
  .lead { font-size: 17px; }
  .page-head { padding: 48px 0 40px; }
  .section { padding: 64px 0 88px; }
  .section.tight { padding: 56px 0 72px; }
  .pillars { grid-template-columns: 1fr; gap: 40px; }
  .pillars h2 { min-height: 0; }
  .focus-grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .principal { grid-template-columns: 1fr; gap: 36px; }
  .portrait, .portrait-placeholder { max-width: 280px; }
  .tool { margin-top: 36px; padding: 24px 20px; }
  .contact { padding-top: 72px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { margin-top: 72px; }
}
@media (max-width: 600px) {
  /* Logo on its own row, nav beneath it, so three links never clip */
  header .wrap { flex-wrap: wrap; padding-bottom: 20px; }
  header img { height: 34px; }
  nav { width: 100%; gap: 24px; margin-top: 18px; flex-wrap: wrap; row-gap: 6px; }
  .nav-link { font-size: 11px; letter-spacing: .14em; padding: 6px 0; }
}
