/* US Biz Fund.
 *
 * 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 ROUTE, an application's trip drawn as a
 * run of highway exit signs.
 *
 * BIG SHOULDERS DISPLAY OVER REDDIT SANS. A condensed signage face for the
 * heads, at a heavy weight, and a sturdy open sans for reading. The palette
 * is the road's: interstate-sign green (#006a3d, 6.9:1 on white and 6.4:1 on
 * the tint) for the eyebrows, links and the signs themselves, asphalt
 * charcoal for the ink, and highway yellow (#f2b705) only on dark ground --
 * the exit tabs, the centre line and the apply band's eyebrow -- because on
 * white it would not read.
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Reddit Sans";
  src: url("text.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #1c2124;
  --ink-soft: #2b3236;
  --text: #3a4246;
  --muted: #586165;

  --accent: #006a3d;
  --accent-deep: #004d2c;
  --accent-wash: #e3f1e9;
  --accent-line: #a9d4bc;

  --good: #006a3d;
  --good-wash: #e3f1e9;
  --warn: #8a4a10;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f3f4f1;
  --rule: #e1e4df;
  --rule-firm: #c6ccc5;

  --ask-ink: #c6cecb;
  --ask-accent: #f2b705;

  --shadow: 28, 33, 36;

  --display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --body: "Reddit Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display-weight: 800;
  --display-track: 0.005em;

  --radius: 8px;
  --radius-sm: 6px;
}

/* A condensed face needs to be set larger than a regular one to carry the
   same weight on the page. */
.h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1;
}
.h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.04;
}

/* ------------------------------------------------------------------ *
 * THE ROUTE -- directly under the application on the front page.
 *
 * Five exit signs in a row, joined by the road: an asphalt strip with a
 * dashed yellow centre line running under the signs from the first to the
 * last. Each sign carries its exit number on a yellow tab, the stop's name in
 * the signage face, and beneath it what happens there and who can see the
 * application at that point. Under 1000px the road turns to run down the
 * left-hand side and the signs stack along it.
 * ------------------------------------------------------------------ */
.route {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  counter-reset: exit;
}

/* The road, under the signs. */
.route::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 132px;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--ask-accent) 0 26px, transparent 26px 46px) center / 100% 3px no-repeat,
    var(--ink);
  border-radius: 3px;
}

.route__stop {
  counter-increment: exit;
  position: relative;
  display: flex;
  flex-direction: column;
}

.route__sign {
  position: relative;
  min-height: 112px;
  background: var(--accent);
  color: #ffffff;
  border: 3px solid #ffffff;
  outline: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 16px 16px;
  margin: 0 0 46px;
  box-shadow: 0 10px 22px rgba(var(--shadow), 0.18);
}

.route__sign::before {
  content: "Exit " counter(exit);
  position: absolute;
  top: -14px;
  left: 12px;
  background: var(--ask-accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.route__sign h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.route__what {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.97rem;
}

.route__who {
  margin: 0;
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--ink);
}

.route__who b {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 3px;
}

.route__note {
  max-width: 66ch;
  margin: 36px 0 0;
  color: var(--muted);
}

/* On a programme page: the last stop, as one sign with what the offer
   should show listed on it. */
.arrive {
  background: var(--accent);
  color: #ffffff;
  border: 4px solid #ffffff;
  outline: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 44px 44px 36px;
  position: relative;
  box-shadow: 0 14px 30px rgba(var(--shadow), 0.18);
}

.arrive::before {
  content: "Last stop";
  position: absolute;
  top: -16px;
  left: 28px;
  background: var(--ask-accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}

.arrive .h2 {
  color: #ffffff;
  text-transform: uppercase;
}

.arrive .lede {
  color: #e3f1e9;
  margin-bottom: 22px;
}

.arrive ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}

.arrive li {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 0 0;
  font-weight: 600;
}

.arrive li span {
  display: block;
  font-weight: 400;
  color: #d3eadd;
  font-size: 0.92rem;
}

@media (max-width: 1000px) {
  .route {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 34px;
  }
  .route::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 16px;
    height: auto;
    background:
      repeating-linear-gradient(180deg, var(--ask-accent) 0 22px, transparent 22px 40px) center / 3px 100% no-repeat,
      var(--ink);
  }
  .route__stop {
    padding: 0 0 36px;
  }
  .route__sign {
    min-height: 0;
    margin: 14px 0 16px;
  }
}

@media (max-width: 700px) {
  .arrive {
    padding: 36px 22px 26px;
  }
  .arrive ul {
    grid-template-columns: 1fr;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #1c2124;
  --nav-ink-soft: #586165;
  --nav-rule: #e1e4df;
  --nav-hover: #006a3d;
  --nav-panel: #ffffff;
  --nav-cta-bg: #006a3d;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--display);
  --nav-size: 1.0625rem;
  --nav-weight: 700;
  --nav-track: 0.06em;
  --nav-case: uppercase;

  --foot-bg: #1c2124;
  --foot-ink: #bfc7c4;
  --foot-head: #f2b705;
  --foot-rule: #343c40;
  --foot-link: #f3f6f4;
}

/* The bar is set in the signage face; the footer is small print, and a
   condensed face at footer size is hard to read, so it takes the body face. */
.sitefoot {
  --_font: var(--body);
}

@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-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 2em 0 0.5em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.5em;
}
