/* The front page, and only the front page.

   It used to share the login pages' photograph and their dark ground; it now
   stands on light paper of its own, which is why backdrop.css is no longer
   imported here - the login pages keep the photo, and this page keeps the quiet.
   The ink and rules below are hand-picked rather than taken from the app's
   palettes: a visitor has not signed in, so there is no palette to read yet. */

:root {
  --landing-ink: #10151b;        /* headings and anything that carries weight */
  --landing-text: #3c4551;       /* body copy */
  --landing-muted: #5a6470;      /* the quieter line under a heading */
  --landing-rule: #e3e7ec;       /* every hairline on the page */
  --landing-accent: #0b5ed7;     /* one accent, used sparingly - dark enough
                                    to be read as text where it is text */
  --landing-paper: #ffffff;
  --landing-band: #f7f9fb;       /* the hero's own slightly cooler ground */
}

html {
  background-color: var(--landing-paper);
}

body {
  background-color: var(--landing-paper);
  color: var(--landing-text);
}

/* style.css gives <main> flex: 1 so it fills the window on the app pages. Here
   there is more of the page under it, and a stretched <main> would push it far
   down - so it sizes to its content and the footer keeps its own mt-auto. */
main {
  flex: 0 0 auto;
}

/* --- the bars ------------------------------------------------------------- */

.navbar {
  background-color: var(--landing-paper);
  border-bottom: 1px solid var(--landing-rule) !important;
}

footer {
  background-color: var(--landing-paper);
  border-top: 1px solid var(--landing-rule) !important;
}

.landing-brand {
  color: var(--landing-ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing-brand:hover {
  color: var(--landing-accent);
}

/* --- the hero ------------------------------------------------------------- */

/* A band rather than a box: the colour runs the full width of the window and the
   words keep to the container inside it. */
.landing-hero {
  max-width: none;
  padding-top: clamp(3.5rem, 11vh, 6.5rem);
  padding-bottom: clamp(3rem, 9vh, 5rem);
  background-color: var(--landing-band);
  border-bottom: 1px solid var(--landing-rule);
}

/* Text wants a line length whatever it sits on. */
.landing-measure {
  max-width: 46rem;
}

.landing-hero h1 {
  color: var(--landing-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-hero .lead {
  color: var(--landing-text);
  font-size: 1.2rem;
  line-height: 1.6;
}

.landing-hero .text-body-secondary {
  color: var(--landing-muted) !important;
}

/* --- the line between the hero and what the site holds -------------------- */

.landing-tagline {
  padding-top: 2.75rem;
  padding-bottom: 0.5rem;
}

.landing-tagline .lead {
  display: inline-block;
  max-width: 44rem;
  margin: 0;
  color: var(--landing-muted);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- what the site holds, a row each -------------------------------------- */

/* Horizontal lines rather than boxes: each thing the site does is a row of the
   page, told apart by a hairline above it and by where it starts, not by a
   border round it. The name and its one-line claim sit on the left, the detail
   beside them - two columns on a desktop, stacked on anything narrower. */
.landing-rows {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.landing-row {
  padding: 2.25rem 0;
  border-top: 1px solid var(--landing-rule);
}

.landing-row:first-child {
  border-top: 0;
}

.landing-row__title {
  position: relative;
  margin-bottom: 0.6rem;
  padding-top: 0.85rem;
  color: var(--landing-ink);
  font-weight: 600;
}

/* A short rule over each name: one rhythm down the page. */
.landing-row__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--landing-accent);
}

.landing-row__lead {
  margin-bottom: 0;
  color: var(--landing-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.landing-row__body {
  margin-bottom: 0;
  color: var(--landing-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.landing-row__body strong {
  color: var(--landing-ink);
  font-weight: 600;
}

/* --- small screens -------------------------------------------------------- */

@media (max-width: 575.98px) {
  .landing-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }

  .landing-hero .lead,
  .landing-tagline .lead {
    font-size: 1.05rem;
  }

  .landing-row {
    padding: 1.75rem 0;
  }
}
