/* Vanguard Financing Solutions.
 *
 * On the ADR-0011 skeleton -- `tools/sitegen/page.css` is the layout. What is
 * here is the palette, the two typefaces, and the one band this site has
 * that the skeleton does not: THE UPGRADE BOARD.
 *
 * EXO 2 OVER HEEBO: a squared, engineered display face for the heads and a
 * compact sans for reading. Deep teal on white, a cool steel tint, and a
 * graphite ink. The teal (#0e7490) is 5.4:1 on white and 5.0:1 on the tint,
 * so it carries eyebrows and links; fills with white text use the deeper
 * #155e75. On the graphite of the application band the eyebrow is a light
 * cyan. Corners are tight, almost square: this is a site about machines.
 */

@font-face {
  font-family: "Exo 2";
  src: url("display.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

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

:root {
  --ink: #15191e;
  --ink-soft: #222830;
  --text: #374049;
  --muted: #56616b;

  --accent: #0e7490;
  --accent-deep: #155e75;
  --accent-wash: #e7f4f7;
  --accent-line: #b8dde6;

  --good: #155e75;
  --good-wash: #e7f4f7;
  --warn: #8a4a10;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f1f4f6;
  --rule: #e0e5e9;
  --rule-firm: #c8d0d6;

  --ask-ink: #c4ccd2;
  --ask-accent: #67d4e8;

  --shadow: 21, 25, 30;

  --display: "Exo 2", system-ui, sans-serif;
  --body: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display-weight: 700;
  --display-track: -0.01em;

  --radius: 4px;
  --radius-sm: 3px;

  --hero-bg: linear-gradient(180deg, var(--tint) 0%, var(--paper) 70%);
  --head-bg: linear-gradient(180deg, var(--tint) 0%, var(--paper) 80%);
}

/* ------------------------------------------------------------------ *
 * THE UPGRADE BOARD -- the band this site has and the skeleton does not,
 * directly under the front door.
 *
 * Six tiles in a three-by-two grid, like a spec board on a workshop wall.
 * Each tile: the object being upgraded with its number stencilled on the
 * corner, what it replaces and how it earns its keep, then a teal-ruled
 * footer naming the programme shaped for it, with that programme's two
 * figures and the reason it fits. Tiles are equal height so the footers
 * line up across a row.
 * ------------------------------------------------------------------ */
.board {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.board__tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  overflow: hidden;
}

.board__shot {
  position: relative;
  margin: 0;
}

.board__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.board__n {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.board__body {
  padding: 22px 22px 6px;
}

.board__body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}

.board__dl {
  margin: 0 0 16px;
}

.board__dl > div + div {
  margin-top: 10px;
}

.board__dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.board__dl dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.board__fit {
  margin-top: auto;
  padding: 16px 22px 20px;
  background: var(--accent-wash);
  border-top: 3px solid var(--accent);
}

.board__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.board__prog {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-deep);
  text-decoration: none;
}

.board__prog:hover {
  text-decoration: underline;
}

.board__figs {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.board__fit > p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.board__note {
  max-width: 64ch;
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
}

/* On a programme page the two facts sit under the lede, wider. */
.row__say .board__dl {
  margin: 20px 0 8px;
  padding: 16px 18px;
  background: var(--tint);
  border-left: 3px solid var(--accent);
}

@media (max-width: 1000px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .board {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #15191e;
  --nav-ink: #f1f4f6;
  --nav-ink-soft: #aab4bc;
  --nav-rule: #2b333b;
  --nav-hover: #67d4e8;
  --nav-panel: #15191e;
  --nav-cta-bg: #67d4e8;
  --nav-cta-ink: #15191e;
  --nav-font: var(--display);
  --nav-size: 0.85rem;
  --nav-weight: 700;
  --nav-track: 0.08em;
  --nav-case: uppercase;
  --nav-radius: 3px;
  --foot-bg: #15191e;
  --foot-ink: #b6c0c8;
  --foot-head: #f1f4f6;
  --foot-rule: #2b333b;
  --foot-link: #f7f9fa;
}

@media (max-width: 760px) {
  .head--form {
    padding-top: 18px;
  }
  .head--form .frame {
    padding: 6px;
  }
}

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