/* Harborstone Funds.
 *
 * On the ADR-0011 skeleton -- `tools/sitegen/page.css` is the layout. What is
 * here is the palette, the two typefaces, the tall front-door photograph, and
 * the one band this site has that the skeleton does not: THE QUESTIONS.
 *
 * GELASIO OVER ASSISTANT: a sturdy old-style serif for the heads, in the
 * register of a harbour master's notice board, and a narrow humanist sans for
 * reading. Sea-glass teal on a sand-coloured tint, with deep harbour navy for
 * type. The teal (#0a6c86) is 5.9:1 on white and 5.3:1 on the sand, so it
 * carries eyebrows and links; fills that carry white text use the navy-teal
 * #0d3b52. On the application band the eyebrow is a pale sea-foam.
 */

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

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

:root {
  --ink: #0d2233;
  --ink-soft: #183449;
  --text: #2f4556;
  --muted: #566a79;

  --accent: #0a6c86;
  --accent-deep: #0d3b52;
  --accent-wash: #e3f2f6;
  --accent-line: #a9d3df;

  --good: #0d3b52;
  --good-wash: #e3f2f6;
  --warn: #8f4b14;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f6f1e7;
  --rule: #e6e0d3;
  --rule-firm: #d2c9b6;

  --ask-ink: #c3d4de;
  --ask-accent: #8fd8ea;

  --shadow: 13, 34, 51;

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

  --display-weight: 700;
  --display-track: -0.01em;
  --body-size: 18px;

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

  --hero-bg: linear-gradient(180deg, #f6f1e7 0%, #ffffff 70%);
}

/* ------------------------------------------------------------------ *
 * THE FRONT DOOR: a tall crop standing beside the words. The photograph is
 * cut 4:5 and held to the height of the words beside it, so on a wide screen
 * it reads as a portrait of the waterfront rather than a banner; a thin
 * navy rule offset behind it is the only ornament.
 * ------------------------------------------------------------------ */
/* Wide screens only: under 760px the skeleton stacks the grid into one
   column, and a column rule here would outrank it. */
@media (min-width: 761px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.shot--tall {
  justify-self: end;
  width: min(100%, 460px);
}
.shot--tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 14px 14px 0 var(--accent-line);
}

@media (max-width: 760px) {
  .shot--tall {
    justify-self: stretch;
    width: calc(100% - 8px);
  }
  .shot--tall img {
    aspect-ratio: 4 / 3;
    box-shadow: 8px 8px 0 var(--accent-line);
  }
}

/* ------------------------------------------------------------------ *
 * THE QUESTIONS -- eight of them, two columns, each set like an entry in a
 * pilot's book: a big serif number, the question, then two labelled
 * answers. "Why ask" is quiet; "Our answer" sits on a white slip with the
 * teal rule down its edge, because that is the half the brand stands behind.
 * ------------------------------------------------------------------ */
.harbor-qs {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.harbor-q {
  padding: 30px 0 34px;
  border-top: 2px solid var(--accent-deep);
}

.harbor-q__n {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 10px;
}

.harbor-q h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
}

.harbor-q__label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.harbor-q p {
  margin: 0 0 14px;
  color: var(--text);
}

.harbor-q__label--here {
  color: var(--accent);
  margin-top: 4px;
}

.harbor-q .harbor-q__here {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  color: var(--ink);
  margin: 0;
}

.harbor-qs__note {
  max-width: 62ch;
  margin: 36px 0 0;
  color: var(--muted);
  font-style: italic;
}

/* On a programme page, on the white band, the answer slip takes the tint. */
.harbor-qs--two {
  margin-top: 36px;
}

@media (max-width: 800px) {
  .harbor-qs {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #0d2233;
  --nav-ink-soft: #566a79;
  --nav-rule: #e6e0d3;
  --nav-hover: #0a6c86;
  --nav-panel: #ffffff;
  --nav-cta-bg: #0d3b52;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--body);
  --nav-size: 1rem;
  --nav-weight: 600;
  --nav-track: 0.01em;
  --nav-case: none;

  --foot-bg: #0d2233;
  --foot-ink: #b8c8d3;
  --foot-head: #f6f1e7;
  --foot-rule: #23405a;
  --foot-link: #fbf8f2;
}

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

.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;
}
