.site-footer {
  --footer-rule: color-mix(in srgb, currentColor 32%, transparent);
  --footer-fill: color-mix(in srgb, currentColor 12%, transparent);
  margin-block-start: 2rem;
}
.site-footer .bar {
  display: grid;
  min-block-size: 0;
  padding-block: 1.15rem;
  gap: .55rem 1.25rem;
  align-items: center;
  font-size: .86rem;
}
.site-footer .bar > * { min-inline-size: 0; overflow-wrap: anywhere; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-underline-offset: .16em; }
.site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-footer a:active { background: var(--footer-fill); }
.footer-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .48rem;
  text-decoration: none;
  font-size: 1rem;
}
.footer-brand img { flex: none; inline-size: 2rem; block-size: 2rem; }
.site-footer :is(.footer-about, .footer-navigation) { grid-area: about; }
.site-footer .footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: .2rem .72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact { grid-area: contact; }
.footer-age {
  grid-area: age;
  display: flex;
  align-items: center;
  gap: .42rem;
}
.footer-age-mark {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-inline-size: 2.1rem;
  min-block-size: 2.1rem;
  border: 1px solid var(--footer-rule);
  border-radius: 50%;
}
.footer-disclosure { grid-area: ads; }

@media (min-width: 761px) {
  .site-footer[data-site-footer=columns] .bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .65fr);
    grid-template-areas: "brand about age" "brand contact ads";
  }
  .site-footer[data-site-footer=columns] .footer-age,
  .site-footer[data-site-footer=columns] .footer-disclosure { justify-self: end; }

  .site-footer[data-site-footer=band] .bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, auto);
    grid-template-areas: "brand about contact" "age age ads";
  }
  .site-footer[data-site-footer=band] .footer-age,
  .site-footer[data-site-footer=band] .footer-disclosure {
    border-block-start: 1px solid var(--footer-rule);
    padding-block-start: .55rem;
  }
  .site-footer[data-site-footer=band] .footer-disclosure { align-self: stretch; text-align: end; }

  .site-footer[data-site-footer=split] .bar {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "brand age" "about ads" "contact ads";
    gap: .3rem 2rem;
  }
  .site-footer[data-site-footer=split] :is(.footer-age, .footer-disclosure) {
    padding-inline-start: 1rem;
    border-inline-start: 1px solid var(--footer-rule);
  }
  .site-footer[data-site-footer=split] .footer-disclosure { align-self: stretch; align-content: center; }

  .site-footer[data-site-footer=centered] .bar {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    grid-template-areas: "brand brand brand brand" ". about contact ." ". age ads .";
    justify-items: center;
  }
  .site-footer[data-site-footer=centered] .footer-brand { justify-self: center; }
  .site-footer[data-site-footer=centered] .footer-navigation ul { justify-content: center; }
}

@media (max-width: 760px) {
  .site-footer .bar { padding-block: .9rem; gap: .55rem .65rem; }
  .site-footer[data-site-footer-mobile=stack] .bar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "about" "contact" "age" "ads";
    gap: .45rem;
  }
  .site-footer[data-site-footer-mobile=stack] .footer-age {
    border-block-start: 1px solid var(--footer-rule);
    padding-block-start: .55rem;
  }

  .site-footer[data-site-footer-mobile=tiles] .bar {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas: "brand brand" "about contact" "age ads";
  }
  .site-footer[data-site-footer-mobile=tiles] :is(.bar > .footer-about, .footer-navigation, .footer-contact) {
    display: grid;
    align-content: center;
    align-self: stretch;
    min-block-size: 2.7rem;
    padding: .35rem .5rem;
    background: var(--footer-fill);
    border-radius: .28rem;
  }
  .site-footer[data-site-footer-mobile=tiles] .footer-disclosure { justify-self: end; }

  .site-footer[data-site-footer-mobile=rail] .bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
    grid-template-areas: "brand age" "about age" "contact ads";
    align-items: start;
  }
  .site-footer[data-site-footer-mobile=rail] .footer-age {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-inline-start: 1px solid var(--footer-rule);
    padding-inline-start: .45rem;
  }
  .site-footer[data-site-footer-mobile=rail] .footer-disclosure { text-align: end; }

  .site-footer[data-site-footer-mobile=centered] .bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" "about about" "contact contact" "age ads";
    justify-items: center;
    text-align: center;
  }
  .site-footer[data-site-footer-mobile=centered] .footer-brand { justify-self: center; }
  .site-footer[data-site-footer-mobile=centered] .footer-navigation ul { justify-content: center; }
  .site-footer[data-site-footer-mobile=centered] .footer-age { justify-self: end; }
  .site-footer[data-site-footer-mobile=centered] .footer-disclosure { justify-self: start; }

  .site-footer[data-site-footer-mobile=strip] .bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "age ads" "brand about" "contact contact";
  }
  .site-footer[data-site-footer-mobile=strip] :is(.footer-age, .footer-disclosure) {
    background: var(--footer-fill);
    padding: .32rem .48rem;
    min-block-size: 2.65rem;
    align-content: center;
  }
  .site-footer[data-site-footer-mobile=strip] .footer-about { text-align: end; }
  .site-footer[data-site-footer-mobile=strip] .footer-navigation ul { justify-content: end; }
}
