/* Steadyline Business Funds.
 *
 * 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: DRAW YOUR LINES FIRST.
 *
 * BIG SHOULDERS DISPLAY OVER HEEBO, graphite on white with a cool grey
 * tint, and one deep cyan that marks every line. The cyan (#0e7490) is about
 * 5.4:1 on white, enough for eyebrows and links; fills carrying white text
 * use #155e75. Big Shoulders is a condensed face, so headings are set larger
 * and with a little air between the letters.
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("display.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Heebo";
  src: url("text.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #1b1f24;
  --ink-soft: #2a3038;
  --text: #39414b;
  --muted: #5d6671;

  --accent: #0e7490;
  --accent-deep: #155e75;
  --accent-wash: #e8f5f8;
  --accent-line: #b5dde7;

  --good: #155e75;
  --good-wash: #e8f5f8;
  --warn: #8a4a10;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f1f3f5;
  --rule: #dfe3e8;
  --rule-firm: #c3cad2;

  --ask-ink: #c8d0d8;
  --ask-accent: #6fd0e4;

  --shadow: 27, 31, 36;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display-weight: 800;
  --display-track: 0.01em;

  --radius: 2px;
  --radius-sm: 2px;
}

/* ------------------------------------------------------------------ *
 * DRAW YOUR LINES FIRST -- the band this site has and the skeleton does
 * not, directly under the application on the front page.
 *
 * A ruled sheet. Each of the five limits is one line on it: its number in
 * the margin, the question in the display face, why it matters, and on the
 * right a box drawn as a ruled write-in line where the owner can put their
 * own figure, with what part of an offer answers it underneath. A cyan
 * margin rule runs down the sheet, the way it runs down a ledger page.
 * Nothing typed is sent anywhere: the inputs are not in a form.
 * ------------------------------------------------------------------ */
.sheet {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--card);
}

.line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 36px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.line:first-child {
  border-top: 0;
}

/* The margin rule, through every line. */
.line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80px;
  width: 2px;
  background: var(--accent-line);
}

.line__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  text-align: right;
  padding-right: 26px;
}

.line__name {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.line__ask {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.line__why {
  margin: 0;
  color: var(--text);
}

.line__write label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 4px 0 4px;
}

/* The write-in: no box, only the line you would write on. */
.line__write input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 8px 2px;
  font: 600 1.1rem var(--body);
  color: var(--ink);
}

.line__write input:focus {
  outline: none;
  border-bottom-color: var(--accent);
  background: var(--accent-wash);
}

.line__offer {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--tint);
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
  color: var(--text);
}

.line__offer b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.sheet__note {
  max-width: 66ch;
  margin: 26px 0 0;
  color: var(--muted);
}

/* On a programme page: the one line that matters most for it, drawn large. */
.watch {
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
}

.watch + .acts {
  margin-top: 28px;
}

.watch .line__n {
  font-size: 3rem;
  text-align: left;
  padding: 0;
}

@media (max-width: 960px) {
  .line {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .line::before {
    left: 56px;
  }
  .line__n {
    padding-right: 22px;
    font-size: 2.1rem;
  }
  .line__write {
    grid-column: 2;
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .line {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 16px;
    padding: 24px 0;
  }
  .line::before {
    left: 34px;
  }
  .line__n {
    font-size: 1.6rem;
    padding-right: 14px;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #1b1f24;
  --nav-ink-soft: #5d6671;
  --nav-rule: #dfe3e8;
  --nav-hover: #0e7490;
  --nav-panel: #ffffff;
  --nav-cta-bg: #155e75;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--body);
  --nav-size: 0.95rem;
  --nav-weight: 500;
  --nav-track: 0.01em;
  --nav-case: none;

  --foot-bg: #1b1f24;
  --foot-ink: #b9c1ca;
  --foot-head: #f4f6f8;
  --foot-rule: #343b44;
  --foot-link: #f4f6f8;
}

/* The front door and the application page open with the form; on a phone
   the head's full top padding would put an empty band above the first
   question, so it is taken in. */
@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.35rem;
  color: var(--ink);
  margin: 2em 0 0.5em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.5em;
}
