.footer {
  border-top: 1px solid var(--color-fd-border);
  background: var(--color-fd-background);
  font-size: 13px;
  color: var(--color-fd-muted-foreground);
}

.shell {
  box-sizing: border-box;
  width: min(100%, var(--fd-layout-width));
  max-width: var(--fd-layout-width);
  margin: 0 auto;
  border-left: 1px solid var(--color-fd-border);
  border-right: 1px solid var(--color-fd-border);
  padding: 3rem 1rem;
}

.inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 48px;
  padding: 48px var(--site-shell-pad-x);

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px var(--site-shell-pad-x-mobile) 24px;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.logo {
  // Inline <svg> (see `Wordmark`): the lettering inherits
  // `--color-fd-foreground` via `currentColor` so it still flips with
  // the theme, while the dot keeps the brand pink.
  display: block;
  height: 20px;
  width: 86px; // Matches the wordmark viewBox aspect ratio (366:67).
  margin: 0;
}

.tagline {
  max-width: 300px;
  margin: 0;
  line-height: 1.5;
}

.starButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-fd-border);
  background: var(--color-fd-background);
  color: var(--color-fd-foreground);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;

  &:hover {
    background: var(--color-fd-accent);
  }
}

.starIcon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;

  @media (max-width: 640px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heading {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-fd-foreground);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;

  a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-fd-muted-foreground);
    text-decoration: none;
    font-weight: 400;

    &:hover {
      color: var(--color-fd-foreground);
    }
  }
}

.externalIcon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

.heart {
  display: inline-block;
}
