/* The footer every public page of the Ruytha Studios apps shares (Shutter, Slate, Tools).
   scripts/footer.mjs writes the markup; this file is copied to each app by scripts/share.mjs. */
.site-foot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}
.sf-in {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 40px;
}
.sf-top {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) 3fr;
  gap: 40px;
}
.sf-brand { display: grid; align-content: start; gap: 14px; }
.sf-brand p { margin: 0; max-width: 28ch; line-height: 1.6; }
.sf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.sf-col h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sf-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-col a, .sf-legal a, .sf-credits a { color: var(--text-2); text-decoration: none; }
.sf-col a:hover, .sf-legal a:hover, .sf-credits a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sf-col a[aria-current="page"] { color: var(--text); }

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.sf-bottom .studio { margin-right: auto; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sf-copy { margin: 0; }
.sf-credits { margin: 16px 0 0; font-size: 13px; line-height: 1.6; }
.sf-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* The studio's mark beside its name, and a large ghost of it in the corner. */
.site-foot::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  z-index: -1;
  width: 280px;
  height: 280px;
  background: var(--text);
  opacity: .03;
  -webkit-mask: url("/assets/ruytha-studios.svg") center / contain no-repeat;
  mask: url("/assets/ruytha-studios.svg") center / contain no-repeat;
  pointer-events: none;
}
/* The studio's lockup, as on ruytha.dev: the mark beside "studios" in the logo type. */
.site-foot .studio { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); text-decoration: none; }
.site-foot .studio-logo { gap: 7px; color: var(--text); opacity: .7; transition: opacity .25s ease; }
.site-foot .studio-logo span { font-size: 19px; font-stretch: 112%; letter-spacing: -.045em; }
.site-foot .studio-mark {
  width: 17px; height: 17px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("/assets/ruytha-studios.svg") center / contain no-repeat;
  mask: url("/assets/ruytha-studios.svg") center / contain no-repeat;
}
.site-foot .studio:hover .studio-logo, .site-foot .studio:focus-visible .studio-logo { opacity: 1; }

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr; gap: 32px; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-foot { margin-top: 64px; }
  .sf-in { width: calc(100% - 32px); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); }
  .sf-bottom .studio { flex-basis: 100%; }
}
@media print { .site-foot { display: none; } }
