/* The Build Together Foundation — site stylesheet
   Sibling of buildcapitalpartners.com (~/build-website): build-capital-design tokens,
   gold #FED31D scarce, ink #15181C, cream paper, Archivo expanded display,
   IBM Plex Mono labels. Light only. */

:root {
  color-scheme: light;
  --gold: #FED31D;
  --ink: #15181C;
  --ink-2: #2A2F36;
  --stone: #6B655A;
  --paper: #FFFCF2;
  --white: #FFFFFF;
  --rule: #E7DFCB;
  --rule-strong: #CFC4AA;

  --font-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--font-sans);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: .98;
  margin: 0;
}
h1 { font-size: clamp(36px, 10.4vw, 152px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 64px); }
.lede { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; margin: 0; }
.body-copy p { max-width: 60ch; margin: 0 0 1.1em; color: var(--ink-2); }
.mono, .eyebrow, .facts dt, .board thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--stone); margin: 0 0 24px; }
.eyebrow .idx { color: var(--ink); }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--rule-strong); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 7.5vw, 120px) 0; }
.section.white { background: var(--white); }
.rule-top { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 252, 242, .94);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.brand {
  text-decoration: none; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-weight: 700; font-size: 14px; letter-spacing: .04em; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 550; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .3s cubic-bezier(.2, .7, .1, 1); }
.nav a:hover::after { right: 0; }
@media (max-width: 640px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(72px, 12vw, 176px)) 0 clamp(64px, 8vw, 112px);
}
.hero::after {
  /* One texture on the page, corner-anchored and clear of the type. */
  content: ""; position: absolute; right: 0; bottom: 0;
  width: min(56vw, 760px); aspect-ratio: 1;
  background: url("/img/textures/corner-linear-fade-dark.svg") right bottom / contain no-repeat;
  opacity: .16; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-meta { text-transform: none; letter-spacing: .04em; font-size: 13.5px; color: var(--stone); margin: 0 0 28px; display: flex; align-items: center; gap: 12px; }
.hero-meta::before { content: ""; width: 10px; height: 10px; background: var(--gold); flex: none; }
.hero h1 { margin-bottom: clamp(28px, 3.4vw, 48px); }
.hero.short h1 { font-size: clamp(36px, 7vw, 104px); }
.hero.short { min-height: 70vh; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); margin: 32px 0 0; }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--stone); font-size: 11px; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 16px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Board ---------- */
.board { width: 100%; border-collapse: collapse; margin-top: 28px; border-top: 1px solid var(--ink); }
.board th, .board td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.board thead th { color: var(--stone); font-size: 11px; padding-top: 12px; padding-bottom: 12px; }
.board tbody th { font-weight: 650; font-size: 18px; }
.board td { color: var(--ink-2); font-size: 15.5px; }
.board tbody th, .board td:nth-child(2) { white-space: nowrap; }
.board tr.chair td:nth-child(2) { font-weight: 650; color: var(--ink); }
.board tr.chair th::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); margin-right: 10px; vertical-align: middle; transform: translateY(-1px); }
@media (max-width: 640px) {
  .board thead { display: none; }
  .board tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .board th, .board td { border: 0; padding: 0; }
  .board td:nth-child(2) { text-align: right; }
  .board td:nth-child(3) { grid-column: 1 / -1; font-size: 14px; color: var(--stone); margin-top: 2px; }
}

/* ---------- Contact ---------- */
.contact-mail {
  display: inline-block; margin-top: 8px; text-decoration: none;
  font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px); border-bottom: 2px solid var(--gold); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact-mail.pending {
  font-family: var(--font-mono); font-stretch: normal; font-variation-settings: normal; font-weight: 500;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #8C3A2C; border: 1px dashed #8C3A2C; padding: 10px 14px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(56px, 7vw, 96px) 0 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-about { margin: 0; max-width: 46ch; font-size: 17px; color: var(--white); }
.foot-build img { width: 96px; height: auto; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.foot-bottom p { margin: 0; }
@media (max-width: 640px) { .foot-top { flex-direction: column; align-items: flex-start; } }
.nw { white-space: nowrap; }

/* ---------- Relief (the one dark band) ---------- */
.section.dark { background: #0E1A2C; color: #FFFCF2; border-color: transparent; }
.section.dark .eyebrow { color: rgba(255,252,242,.6); }
.section.dark .eyebrow .idx { color: #FFFCF2; }
.section.dark .eyebrow::after { background: rgba(255,252,242,.28); }
.section.dark .body-copy p { color: rgba(255,252,242,.86); }
.section.dark .facts { border-top-color: #FED31D; }
.section.dark .facts div { border-bottom-color: rgba(255,252,242,.16); }
.section.dark .facts dt { color: rgba(255,252,242,.6); }
.sec-meta { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: rgba(255,252,242,.6); margin: 20px 0 0; }
.photo { margin: 0 0 clamp(48px, 6vw, 88px); }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.photo figcaption { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: rgba(255,252,242,.55); margin-top: 12px; }
