/* ---------------------------------------------------------------
   footer-docket.css -- the site footer in the docket's black and cream.

   The counterpart of header-docket.css: the same dark paper, the same rule and
   shadow (turned to face up), the same wordmark, the same small-caps links. Loaded
   by includes/footer.php on every page, after design2.css, so a rule here of the
   same weight as one there wins by coming later.

   The footer sits outside the docket sheet, so it carries its own copies of the
   sheet's colours rather than reading them from .docket, exactly as the header
   does.

   The site's link rule (design2.css, four :not()s) turns any plain link red and is
   stronger than a single class, so the footer's links restate it behind the same
   chain. Everything is under .site-foot, so nothing here can reach another part of
   the page.
   --------------------------------------------------------------- */

.site-foot {
  --f-paper: #1c1915;
  --f-ink: #e7dcc6;
  --f-muted: #a39a89;
  --f-subtle: #7d7566;
  --f-rule: #4a443b;
  --f-moral: #e74654;

  background: var(--f-paper);
  border-top: 1px solid var(--f-rule);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

.site-foot .foot-row {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* ---- The name: the header's wordmark, set for a footer ---- */
.site-foot .wordmark {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--f-ink);
}

/* ---- The line under it: the docket's italic serif, as in every standfirst ---- */
.site-foot .foot-lede {
  display: block;
  margin: 0.7rem 0 0;
  max-width: 24rem;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--f-muted);
}

/* ---- The links: small caps, muted, the page's accent on hover ---- */
.site-foot .foot-meta {
  margin: 0;
  font: 600 0.68rem "Instrument Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--f-subtle);
}
.site-foot .foot-meta a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  color: var(--f-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-foot .foot-meta a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover {
  color: var(--f-ink);
  border-bottom-color: var(--f-moral);
}
.site-foot .foot-meta a:focus-visible {
  outline: 2px solid var(--f-moral);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .site-foot .foot-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2.3rem 1.5rem 2.4rem;
  }
  .site-foot .foot-meta { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .site-foot .foot-meta a { transition: none; }
}
