/*
 * The site footer (static/site-footer.html), on every public page: the
 * homepage, the docs, the model pages, the blog, the legal pages, the
 * dictionary and the price calculator. Loaded by each of them, after the
 * page's own stylesheet, and scoped to .site-footer so no page's rules reach
 * into it: it looks the same everywhere.
 *
 * It also declares the two faces the footer and the homepage set type in,
 * Space Grotesk (titles and the wordmark) and Inter (links), served from our
 * own origin like the rest of the site's type (see base.css for why not from
 * Google's CDN). Each is the variable file Google serves, cut to latin and
 * latin-ext, under the licences in /static/fonts. A page that sets neither
 * face outside its footer downloads only what the footer shows.
 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/static/fonts/space-grotesk-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/static/fonts/space-grotesk-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/static/fonts/inter-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/static/fonts/inter-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.site-footer {
  --footer-ink: #B7AED6;
  background: #16132B;
  color: var(--footer-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.site-footer .shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 26px 34px;
}
.site-footer a { color: var(--footer-ink); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer p { margin: 0; }

/* The brand on the left, the link columns on the right. */
.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(183, 174, 214, .18);
}
.site-footer .footer-brand { max-width: 360px; }
.site-footer .logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.site-footer .logo-name { color: #FFD447; }
.site-footer .logo-tld { color: #FF4FA3; }
.site-footer .footer-brand p { margin-top: 16px; font-size: 15px; line-height: 1.55; }

.site-footer .footer-cols {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(220px, 300px) minmax(110px, 150px);
  gap: 32px 56px;
}
.site-footer .footer-col-title {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
}
.site-footer .footer-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
/* Resources is the long list: two short columns keep it level with the others. */
.site-footer .footer-col-wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }

.site-footer .footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}
.site-footer .footer-base-links { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 640px) {
  .site-footer .shell { padding: 40px 16px 30px; }
  .site-footer .footer-brand { max-width: none; }
  .site-footer .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-col-wide { grid-row: span 2; }
  .site-footer .footer-col-wide ul { grid-template-columns: 1fr; }
}
