/* Capital Control • October 28, 2026
   Presentation only. IBM Plex Sans are self-hosted under the OFL. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --serif: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --paper: #0b0b0b;
  --white: #151515;
  --ink: #f5f3ee;
  --green: #d4ad62;
  --green-dark: #e6c588;
  --brass: #d4ad62;
  --muted: #bcbab4;
  --line: #353430;
  --tint: #141413;
}
body { font-family: var(--sans); font-size: 17px; line-height: 1.7; background: var(--paper); font-kerning: normal; }
button, input, textarea, select { font-family: var(--sans); }
h1, h2, .hero h1, .library-hero h1, .detail-hero h1, .ai-layout h2,
.detail-copy h2, .disclosure-copy h2, .wb-guide h2, .wb-preview h3 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.06;
}
h3 { letter-spacing: -.008em; }
h1 { font-size: clamp(3.1rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.hero h1 { font-size: clamp(3.6rem, 7vw, 6.4rem); line-height: 1; font-weight: 500; }
.hero h1 em { font-family: var(--serif); font-weight: 500; }
.hero .lead, .lead { font-size: 18px; line-height: 1.85; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .17em; }
.brand { gap: 13px; }
.brand-text strong { font: 600 29px/1.05 var(--serif); letter-spacing: .015em; }
.brand-text > span, .brand-text small { font-size: 9px; letter-spacing: .14em; margin-top: 6px; }
.brand-logo { width: 39px; height: 39px; border-radius: 0; }
.site-header, .topbar { background: #0b0b0b; border-bottom-color: #34312a; }
.site-header .nav { min-height: 94px; }
.nav-links a { font-size: 15px; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 7px; }
.btn, .button, .ghost, .menu-toggle {
  border-radius: 6px; font-weight: 600; letter-spacing: .005em;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn { min-height: 50px; padding: 12px 23px; font-size: 15px; }
.hero .btn, .header-actions .btn, .cta-layout .btn { border-radius: 999px; padding-inline: 25px; }
.nav .btn { font-size: 14px; min-height: 44px; }
.btn-primary { background: #d4ad62; border-color: #d4ad62; color: #16130e; box-shadow: inset 0 1px 0 #ffffff26; }
.btn-primary:hover { background: #e6c588; border-color: #e6c588; color: #16130e; }
.btn-secondary { border-color: #69645a; color: var(--ink); }
.btn-secondary:hover { background: #201d17; border-color: var(--brass); }
.text-link, .resource-link { font-size: 15px; font-weight: 600; text-decoration-thickness: 1px; }
.hero { padding-top: 84px; padding-bottom: 72px; }
.hero-inner { gap: 65px; align-items: center; }
.hero-inner > div > .eyebrow::after { content: ''; display: block; width: 55px; height: 1px; background: var(--brass); margin-top: 23px; }
.hero .fine-print { font-size: 13px; line-height: 1.7; }
.library-preview { background: #f1eee7; color: #26231f; border: 1px solid #d5cbb7; border-top: 3px solid var(--brass); box-shadow: 9px 9px 0 #28241c; padding: 31px; }
.library-preview h2 { font-family: var(--serif); font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.library-preview .eyebrow, .library-preview .text-link, .library-preview .preview-arrow { color: #755421; }
.library-preview a:hover { color: #755421; }
.library-preview-top { padding-bottom: 24px; }
.preview-row { padding-block: 23px; border-color: #cbc4b7; }
.preview-title { font-size: 15px; font-weight: 600; }
.preview-detail { font-size: 12px; line-height: 1.6; color: #666057; }
.file-icon { border-color: #b5a078; color: #755421; border-radius: 2px; background: #e9e3d8; font-family: var(--sans); font-size: 9px; }
.preview-footer { border-color: #cbc4b7; }
.preview-footer span { font-size: 11px; color: #666057; }
.preview-footer .text-link { font-size: 13px; }
.hero-caption { font-size: 13px; line-height: 1.6; }
.hero-caption b { font-weight: 600; }
.section { padding-block: 96px; }
.section-tint { background: #151514; }
.section-dark { background: #101010; }
.section-heading > p { line-height: 1.8; }
.card, .sample-card { background: #151515; border-color: #393732; border-radius: 4px; }
.card { padding: 32px; }
.card h3, .resource-card h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.card p, .sample-card p, .sample-card ul { font-size: 15px; line-height: 1.8; }
.resource-number, .step-num { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.sample-card h3 { font-family: var(--serif); font-size: 35px; font-weight: 600; line-height: 1.12; }
.step h3, .packet-item h3 { font-size: 18px; font-weight: 600; }
.step p, .packet-item p { font-size: 14px; line-height: 1.8; }
.founder-copy > p { font-size: 16px; line-height: 1.85; }
.founder-photo img { filter: saturate(.85); border: 1px solid #454037; }
.founder-photo figcaption, .founder-detail span { font-size: 13px; }
.cta-aside h3 { font: 600 32px/1.1 var(--serif); letter-spacing: -.015em; }
.cta-aside p { font-size: 15px; }
.educational-notice { background: #151412; border-color: #494335; border-left-color: var(--brass); padding: 21px 24px; }
.educational-notice strong { font-size: 13px; letter-spacing: .015em; }
.educational-notice p { font-size: 13px; line-height: 1.8; }
.bounds-note { font-size: 12px; line-height: 1.85; }
.site-footer { background: #0b0b0b; }
.footer-links { font-size: 14px; }
.footer-bottom { font-size: 12px; }
.newsletter-panel { background: #171716; border-radius: 8px; border-color: #62563f; }
.newsletter-panel h2 { font-family: var(--serif); }
.newsletter-form input, .newsletter-form textarea { background: #0f0f0e; border-radius: 5px; font-size: 16px; }
.newsletter-form label { font-size: 14px; }

/* Library and resource guides retain their grids, filters and original content. */
.library-hero .lead, .detail-hero .lead { color: var(--muted); }
.folder-preview { background: #f1eee7; color: #26231f; border-radius: 2px; border-color: #d5cbb7; border-top: 3px solid var(--brass); box-shadow: 8px 8px 0 #28241c; }
.folder-preview p, .folder-preview .folder-glyph { color: #666057; }
.folder-preview li span { color: #755421; }
.folder-preview-head { border-color: #cbc4b7; }
.resource-card p, .resource-card ul { color: var(--muted); }
.resource-card { background: #151515; border-color: #3a3833; border-radius: 4px; padding: 29px; }
.resource-card:hover { border-color: #9b8353; box-shadow: none; }
.resource-card h3 { font-size: 31px; line-height: 1.08; }
.resource-card p { font-size: 15px; line-height: 1.75; }
.resource-card ul { font-size: 13px; }
.resource-card-actions { border-color: #3a3833; gap: 14px; }
.resource-card-actions a { font-size: 13px; }
.resource-card-actions .btn { border-radius: 5px; }
.resource-number { font-family: var(--serif); }
.library-search input { background: #111110; border-color: #686051; border-radius: 5px; font-size: 16px; }
.filter-btn { border-radius: 5px; color: #d7cfbf; padding: 10px 17px; font-family: var(--sans); font-size: 14px; }
.filter-btn:hover { border-color: var(--brass); }
.result-count { color: var(--muted); font-size: 14px; }
.resource-note, .ai-steps li { font-size: 14px; line-height: 1.8; color: var(--muted); }
.prompt-panel, .detail-meta, .file-tree { background: #191918; border-radius: 4px; }
.prompt-head button { border-radius: 5px; }
.detail-copy p, .detail-copy li { font-size: 16px; line-height: 1.85; color: var(--muted); }
.detail-meta dd { font-size: 15px; }
.reference-row h3 { font: 600 28px/1.12 var(--serif); letter-spacing: -.015em; }
.reference-row p { font-size: 15px; color: var(--muted); }
.reference-row a { font-size: 14px; }
.disclosure-copy p { font-size: 16px; line-height: 1.9; }

/* Working tools: match the typography without altering calculation states or layout. */
.wb-hero h1 { font-family: var(--serif); letter-spacing: -.028em; }
.wb-nav { font-size: 14px; }
.wb-workspace { border-radius: 5px; border-color: #555044; }
.wb-toolbar, .wb-start, .wb-tabs { background: #171716; }
.wb-main { background: #101010; }
.wb-sidebar, .wb-card { background: #191918; }
.wb-tabs button { font-family: var(--sans); font-size: 14px; }
.wb-section-head h2 { font-family: var(--serif); letter-spacing: -.025em; }
.wb-field input, .wb-field textarea, .wb-field select, .wb-trace input, .wb-trace select,
.wb-number-row input, .wb-start select { font-family: var(--sans); border-radius: 4px; }
.wb-metric strong, .wb-result-grid strong { font-family: var(--serif); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wb-preview { font-family: var(--sans); }
.wb-preview h3 { color: #292923; }
.topbar .logo { font-family: var(--sans); }
.topbar .brand { font-family: var(--serif); }
.hero, .card, .panel { --radius: 5px; }
.topbar a, .tab, .tabs button { font-family: var(--sans); }
.card, .panel { box-shadow: none; }
input[type='number'] { font-variant-numeric: tabular-nums; }
.topbar .nav a { min-height: 42px; padding: 10px 13px; border: 1px solid #4a4438; background: transparent; color: #e4ddce; font-size: 14px; font-weight: 500; border-radius: 5px; }
.topbar + .hero h1 { text-transform: none; text-shadow: none; }
.button, .next-action.primary { background: #d4ad62; color: #16130e; border-color: #d4ad62; box-shadow: none; font-weight: 600; }
.button:hover { background: #e6c588; }
.ghost { background: transparent; font-weight: 600; }
.mode button, .choice, .tab { font-weight: 600; }
.mode button.active, .tab.active { background: #d4ad62; color: #16130e; box-shadow: none; }
.panel h2 { font-size: 32px; }
.metric strong { font-family: var(--serif); font-weight: 500; font-variant-numeric: tabular-nums; }
.metric span { font-weight: 600; letter-spacing: .06em; }

@media(max-width:1050px) {
  .brand-text strong { font-size: 26px; }
  .nav-links { gap: 22px; }
  .hero-inner { gap: 38px; }
  .library-preview { padding: 25px; }
}
@media(max-width:780px) {
  .site-header .nav { min-height: 78px; }
  .brand-text strong { font-size: 28px; }
  .hero { padding-top: 48px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(3.4rem, 10vw, 5rem); }
  .hero .lead { font-size: 17px; }
  .hero-inner { gap: 40px; }
  .section { padding-block: 60px; }
  .library-preview { padding: 26px; }
  .library-preview h2 { font-size: 38px; }
  .wb-tabs button { font-size: 11px; }
  .wb-nav { font-size: 12px; }
  .wb-hero h1 { font-size: 46px; }
  .wb-field input, .wb-field textarea, .wb-field select, .wb-number-row input, .wb-start select { font-size: 16px; }
}
@media(max-width:520px) {
  .hero h1 { font-size: 3.5rem; }
  .hero .button-row .btn { width: 100%; }
  .preview-title { font-size: 15px; }
  .preview-detail { font-size: 12px; }
  .preview-footer { flex-wrap: wrap; }
  .educational-notice { padding: 18px; }
  .educational-notice a { white-space: normal; }
  .section-heading h2 { font-size: 2.7rem; }
  .resource-card, .card { padding: 25px; }
  .wb-nav { gap: 10px; }
  .wb-nav a { font-size: 11px; }
  .wb-hero h1 { font-size: 42px; }
  .topbar { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { font-family: Georgia, serif; }
}
