/* Capit site. Tokens mirror design.md (navy, pale blue, flat, no gradients).
   Plus Jakarta Sans is self-hosted in fonts/ (SIL OFL), with a system font fallback. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.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 {
  --primary: #14214B;
  --secondary-text: #4A5578;
  --accent: #E8EFFA;
  --border: #D9E4F5;
  --background: #FBFCFE;
  --surface: #FFFFFF;
  --link: #2F56C4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--primary);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
}

/* Header and footer match the landing page (styles.css). */
header.site a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 22px;
}

header.site a.brand::before {
  content: "";
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='o' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23F0F5FF'/%3E%3Cstop offset='.4' stop-color='%238FB2FF'/%3E%3Cstop offset='1' stop-color='%233D6BE0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100' height='100' rx='22.4' fill='%23fff' stroke='%23E3E8F2' stroke-width='1.5'/%3E%3Ccircle cx='46' cy='43' r='16' fill='url(%23o)'/%3E%3Cellipse cx='41.5' cy='37' rx='5' ry='3' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='74' cy='31' r='10.5' fill='%23F5B9A0'/%3E%3Ccircle cx='71' cy='65' r='14' fill='%23BDB2EC'/%3E%3Ccircle cx='40' cy='72' r='9' fill='%239FD8C2'/%3E%3Ccircle cx='20' cy='52' r='8' fill='%23BFD0AE'/%3E%3C/svg%3E") center / contain no-repeat;
}

header.site nav { display: flex; flex-wrap: wrap; gap: 0 24px; }

nav a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  display: inline-block;
}

nav a:hover, nav a:focus { color: var(--primary); text-decoration: underline; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; font-weight: 600; }
p, li { margin: 0 0 12px; }
ul { padding-left: 24px; margin: 0 0 12px; }

a { color: var(--primary); text-decoration-color: var(--link); text-underline-offset: 3px; }

.lede { color: var(--secondary-text); font-size: 18px; margin-bottom: 24px; }
.meta { color: var(--secondary-text); font-size: 14px; }

.card {
  background: var(--accent);
  border-radius: 16px;
  padding: 16px;
  margin: 24px 0;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 12px 0 24px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--border); }
th { color: var(--secondary-text); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  margin-top: 48px;
  padding-top: 24px;
  color: var(--secondary-text);
  font-size: 14px;
}

footer.site::before { content: "\00A9  2026 Capit"; margin-right: auto; }

footer.site a { color: var(--secondary-text); padding: 12px 0; display: inline-block; }

.hero { padding: 48px 0 24px; }
.hero h1 { font-size: 40px; }

@media (min-width: 480px) { .wrap { padding: 32px 24px 64px; } }
