/* Site footer — the fixed-reveal footer from the paperdesign wireframe, lifted
   out so pages other than that one can use it. Structure is unchanged: the
   .site-footer element is a spacer of min(728px, 100svh) and its inner is
   position:fixed at the bottom, so the page scrolls away to uncover it.
   Colours come from this repo's shade tokens rather than the wireframe's
   page-scoped --paper/--fg, which only exist inside that component.

   Anything rendered above this needs an opaque background and a higher stacking
   context, or the fixed inner shows through it. .docs-page does both. */

.site-footer {
  position: relative;
  z-index: 3;
  background: var(--pp-cream);
  overflow: hidden;
  clip-path: inset(0);
}

@media (min-width: 900px) {
  .site-footer {
    height: min(728px, 100svh);
  }
}

.site-footer__gridlines {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--pp-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pp-border) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.3;
  pointer-events: none;
}

.site-footer__ghost {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 2004 / 552;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(6rem, 18.5vw, 18.5rem);
  font-weight: 360;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--pp-fg);
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: start;
  gap: 40px;
  width: 100%;
  padding: 60px 16px;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 40px 60px;
    padding: 60px 28px;
  }
}

@media (min-width: 900px) {
  .site-footer__inner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    max-width: 1080px;
    height: min(728px, 100svh);
    padding: clamp(40px, 15svh, 120px) 28px;
  }
}

@media (min-width: 1471px) {
  .site-footer__inner {
    max-width: 1321px;
  }
}

@media (min-width: 1140px) {
  .site-footer__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.site-footer__brandcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 900px) {
  .site-footer__brandcol {
    justify-content: space-between;
    align-self: stretch;
  }
}

.site-footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 120px;
}

.site-footer__resources {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  flex-shrink: 0;
}

.site-footer__title {
  color: var(--pp-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}

.site-footer__group a {
  color: var(--pp-fg);
  opacity: 0.8;
  text-decoration: none;
  font-size: 15px;
  line-height: 24px;
  transition: opacity 0.15s ease-out;
}

.site-footer__group a:hover {
  opacity: 1;
}

.site-footer__copyright {
  color: var(--pp-fg);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}

.site-footer__brandcol .site-footer__copyright {
  display: none;
}

@media (min-width: 900px) {
  .site-footer__brandcol .site-footer__copyright {
    display: block;
  }
}

.site-footer__contact {
  color: var(--pp-fg);
  opacity: 0.8;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.site-footer__bottominfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 900px) {
  .site-footer__bottominfo {
    display: none;
  }
}
