/* Highland Business Funding.
 *
 * 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: WHERE YOU ARE ON THE CLIMB.
 *
 * VOLLKORN OVER ASSISTANT, heather on white with a cool mist tint. Heather
 * (#6b3b84) is about 8:1 on white, so it carries eyebrows and links; fills
 * that carry white text use the deeper #4c2a5e. On the peat-dark ink of the
 * application band the eyebrow is a pale heather, because the accent itself
 * is too dark to read there.
 */

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

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

:root {
  --ink: #1f1a2b;
  --ink-soft: #2e2740;
  --text: #3f3a4c;
  --muted: #625b6f;

  --accent: #6b3b84;
  --accent-deep: #4c2a5e;
  --accent-wash: #f3edf6;
  --accent-line: #ddcbe6;

  --good: #3f6b4c;
  --good-wash: #edf4ef;
  --warn: #8a4a10;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f2f3f6;
  --rule: #e2e2ea;
  --rule-firm: #c9c8d6;

  --ask-ink: #d3cbdc;
  --ask-accent: #cfa9e2;

  --shadow: 31, 26, 43;

  --display: "Vollkorn", Georgia, serif;
  --body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

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

  --radius: 6px;
  --radius-sm: 4px;
}

/* ------------------------------------------------------------------ *
 * WHERE YOU ARE ON THE CLIMB -- the band this site has and the skeleton
 * does not, directly under the front door.
 *
 * A photograph of the road up, with the page's own ground rising into it as
 * a ridge line: the profile of the climb, with a marker at each of the five
 * stages. Under it, the five stages as five columns, left to right in the
 * order you climb them, each with its photograph, what lenders tend to read
 * at that stage, and the programmes that most often open up there.
 * ------------------------------------------------------------------ */
.ridge {
  position: relative;
  margin: 48px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.ridge > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

.ridge__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
}

.ridge__line .fill {
  fill: var(--paper);
}

.ridge__line .edge {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.ridge__mark {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.ridge__mark b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #ffffff;
  border: 3px solid var(--paper);
  font-family: var(--display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(var(--shadow), 0.3);
}

/* The years label sits above the marker, on the photograph, so it gets its
   own ground rather than trusting whatever the picture is doing there. */
.ridge__mark span {
  order: -1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.climb {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  counter-reset: stage;
}

.climb__stage {
  counter-increment: stage;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.climb__shot {
  margin: 0;
}

.climb__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.climb__say {
  padding: 16px 16px 6px;
}

.climb__years {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}

.climb__years::before {
  content: counter(stage) " \00b7  ";
}

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

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

.climb__reads {
  margin: 12px 16px 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--rule-firm);
  list-style: none;
}

.climb__reads li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 4px;
}

.climb__reads li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--accent-line);
}

.climb__label {
  margin: 14px 16px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.climb__fits {
  list-style: none;
  margin: 0 16px 16px;
  padding: 0;
  margin-top: auto;
}

.climb__label + .climb__fits {
  margin-top: 0;
}

.climb__fits li {
  border-top: 1px solid var(--rule);
}

.climb__fits a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-deep);
  text-decoration: none;
}

.climb__fits a:hover {
  text-decoration: underline;
}

.climb__fits small {
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

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

/* On a programme page: the stages it tends to fit, as a short list. */
.onclimb {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.onclimb li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.onclimb b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #ffffff;
  font-family: var(--display);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onclimb strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}

.onclimb span {
  color: var(--text);
}

@media (max-width: 1100px) {
  .climb {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ridge > img {
    aspect-ratio: 5 / 2;
  }
  .ridge__mark span {
    display: none;
  }
  .ridge__mark b {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .climb {
    grid-template-columns: minmax(0, 1fr);
  }
  .climb__stage {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .climb__shot {
    grid-row: span 4;
  }
  .climb__shot img {
    height: 100%;
    aspect-ratio: auto;
  }
  .climb__say,
  .climb__reads,
  .climb__label,
  .climb__fits {
    grid-column: 2;
  }
  .climb__reads {
    display: none;
  }
}

@media (max-width: 460px) {
  .climb__stage {
    display: flex;
  }
  .climb__shot img {
    aspect-ratio: 16 / 9;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #1f1a2b;
  --nav-ink-soft: #625b6f;
  --nav-rule: #e2e2ea;
  --nav-hover: #6b3b84;
  --nav-panel: #ffffff;
  --nav-cta-bg: #4c2a5e;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--body);
  --nav-size: 1rem;
  --nav-weight: 600;
  --nav-track: 0.01em;
  --nav-case: none;

  --foot-bg: #1f1a2b;
  --foot-ink: #c5bfd0;
  --foot-head: #f7f4fa;
  --foot-rule: #3a3348;
  --foot-link: #f7f4fa;
}

/* 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.2rem;
  color: var(--ink);
  margin: 2em 0 0.5em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.5em;
}
