/* Proven Business Funding.
 *
 * On the ADR-0011 skeleton -- `tools/sitegen/page.css` is the layout. What is
 * here is the palette, the two typefaces, the chrome's tokens and the one band
 * this site has that the skeleton does not: the evidence.
 *
 * BRYGADA 1918 OVER INTER, forest green on white with a cream tint. The green
 * (#166534) is 7:1 on white and over 6:1 on the cream, so it can carry type
 * anywhere on paper; on the dark ask band the eyebrow is a pale sage instead,
 * because the forest green disappears into forest ink. Corners are small:
 * this is a checklist, and a checklist is ruled, not rounded.
 */

@font-face {
  font-family: "Brygada 1918";
  src: url("display.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("text.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #14231a;
  --ink-soft: #0d1811;
  --text: #2c3a31;
  --muted: #56655b;

  --accent: #166534;
  --accent-deep: #14532d;
  --accent-wash: #e5efe6;
  --accent-line: #b7d1bd;

  --good: #166534;
  --good-wash: #dfece2;
  --warn: #8a4a12;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f7f3ea;
  --rule: #e6dfcf;
  --rule-firm: #cdc2a9;

  --ask-ink: #aabcae;
  --ask-accent: #9fd2ac;

  --shadow: 20, 35, 26;

  --display: "Brygada 1918", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display-weight: 600;
  --display-track: -0.012em;
  --eyebrow-track: 0.08em;

  --shell: 1180px;
  --radius: 8px;
  --radius-sm: 5px;

  --hero-bg: linear-gradient(175deg, #f7f3ea 0%, #ffffff 62%);
  --head-bg: linear-gradient(175deg, #f7f3ea 0%, #ffffff 74%);
}

/* ------------------------------------------------------------------ *
 * THE EVIDENCE -- "What you'll be asked to show".
 *
 * The brand's idea as a band: a lender funds a record, so the site lays the
 * record out. Five items, each on its own ruled line, read left to right as
 * a checklist is: the item and what you show, what it proves, and which of
 * the six publish something about it -- with "the lender decides" wherever
 * common.mjs publishes nothing. Directly under the application on the index.
 * ------------------------------------------------------------------ */
.proof {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  counter-reset: proof;
}

.proof__item {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: 36px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-firm);
}

.proof__what h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

/* The tick box. Drawn, not an icon: a square in the accent with the check
   inside it, the one mark a checklist is made of. */
.proof__what h3::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23166534' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: translateY(2px);
}

.proof__what p,
.proof__why p {
  margin: 0;
  color: var(--text);
}

.proof__lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.proof__who ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.proof__who li {
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--accent-line);
  margin-bottom: 8px;
  background: var(--card);
}

.proof__who li a {
  display: block;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.proof__who li a:hover {
  text-decoration: underline;
}

.proof__who li span {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.proof__rest {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.proof__note {
  margin: 28px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* On a program page the same five, each marked for what that program
   publishes. `is-quiet` is an item where it publishes nothing. */
.proof--one .proof__item {
  grid-template-columns: 1fr 1.4fr;
}

.proof--one .is-quiet h3::before {
  background: none;
  border-color: var(--rule-firm);
}

@media (max-width: 1000px) {
  .proof__item {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }
  .proof__what {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .proof__item,
  .proof--one .proof__item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #14231a;
  --nav-ink-soft: #56655b;
  --nav-rule: #e6dfcf;
  --nav-hover: #166534;
  --nav-panel: #ffffff;
  --nav-cta-bg: #166534;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--body);
  --nav-size: 0.9375rem;
  --nav-weight: 500;
  --nav-track: 0;
  --nav-case: none;
  --nav-radius: 5px;

  --foot-bg: #14231a;
  --foot-ink: #a9b7ad;
  --foot-head: #f7f3ea;
  --foot-rule: #2d3f33;
  --foot-link: #ffffff;
}

/* The front door and the application page open with the form, and on a
   phone the form comes first. The head's full top padding would leave a
   band of cream between the navbar and the first question. */
@media (max-width: 760px) {
  .head--form {
    padding-top: 18px;
  }
  .head--form .frame {
    padding: 6px;
  }
}

/* The legal pages: numbered heads inside the prose, smaller than a band's
   h2 so a long document reads as one document. */
.legal h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2em 0 0.5em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.5em;
}
