/* Site footer: SILO's contact details, the locations, the main links and
   the legal links, on dark blue like the brochure's back cover. */

@layer components {
  .site-footer {
    position: relative;
    overflow: clip;
    padding-block: var(--theme-space-lg) var(--theme-space-md);
    background: var(--theme-color-dark);
    color: var(--theme-color-on-dark);
  }

  .site-footer ::selection {
    background: var(--theme-color-on-dark);
    color: var(--theme-color-dark);
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--theme-space-md) var(--theme-space-sm);
  }

  .site-footer__brand {
    display: grid;
    align-content: start;
    gap: var(--theme-space-sm);
  }

  .site-footer__logo {
    width: 4.5rem;
    fill: currentcolor;
  }

  .site-footer__tagline {
    max-width: 18rem;
    font-size: var(--theme-text-lg);
    font-weight: var(--theme-weight-light);
    line-height: var(--theme-leading-snug);
  }

  .site-footer__heading {
    margin-bottom: var(--theme-space-xs);
    font-size: var(--theme-text-sm);
    font-weight: var(--theme-weight-bold);
    color: var(--theme-color-secondary);
  }

  .site-footer address,
  .site-footer__list {
    font-size: var(--theme-text-sm);
    font-style: normal;
    line-height: 1.9;
  }

  .site-footer a {
    text-decoration-color: color-mix(in oklab, currentcolor 40%, transparent);
  }

  .site-footer a:hover {
    text-decoration-color: var(--theme-color-accent);
  }

  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-space-2xs) var(--theme-space-sm);
    margin-top: var(--theme-space-lg);
    padding-top: var(--theme-space-sm);
    border-top: var(--theme-border-width) solid
      color-mix(in oklab, var(--theme-color-on-dark) 25%, transparent);
    font-size: var(--theme-text-xs);
    color: color-mix(in oklab, var(--theme-color-on-dark) 75%, var(--theme-color-dark));
  }

  .site-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-space-2xs) var(--theme-space-sm);
    margin-inline-start: auto;
  }
}
