/**
 * Site-wide styles that every page needs — see partials/footer.html.
 *
 * The footer carries its layout inline (as exported from the design), so what
 * lives here is only what an inline style attribute cannot express: the image
 * fill rule, the display-font token and the hover states. The `.grain`
 * texture rides along because every page links this one file.
 */

/* Display face for the footer headline and stat figures. Imported here so a
 * page only has to link this stylesheet to get a correct footer. */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/**
 * Photos fill their positioned container, the way the design's image slots
 * did. Also used by the homepage, which loads this file too.
 */
.elh-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/**
 * Page grain texture. Shared by several inner pages (process, sell, faq,
 * investors, stories, why-us), which is why it lives in this site-wide file.
 */
.grain {
  position: relative;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.site-footer {
  /* Display face for the headline and the stat figures. */
  --disp: 'DM Serif Display', Georgia, serif;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-weight: 300;
}
.site-footer a {
  text-decoration: none;
}

/* Hover states. The elements style themselves inline, so these must win. */
.elh-fh1:hover { background: #BFA06A !important; border-color: #BFA06A !important; color: #001526 !important; }
.elh-fh2:hover { color: #BFA06A !important; }
