:root {
  --night: #151e2e;
  --panel: #202c40;
  --milk: #f4f1eb;
  --paper: #faf7f1;
  --ink: #1a2636;
  --amber: #f4b678;
  --fog: #bec8d7;
  --line: #d9d5cd;
  --gutter: clamp(18px, 4.4vw, 70px);
}

body { background: var(--night); }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
main { min-width: 0; }
main [id] { scroll-margin-top: 90px; }
main :where(h1, h2, h3, h4, summary, button) { font-family: Rubik, system-ui, sans-serif; }
:where(main, footer) :is(a, button, summary):focus-visible { outline-offset: 4px; }
::selection { color: #182132; background: #f5c798; }

.site-footer {
  margin: 0;
  color: #e8eaf0;
  background: #141d2d;
  border-top: 1px solid #384456;
  font-family: Rubik, system-ui, sans-serif;
}
.site-footer .wrap { padding-block: 45px 19px; }
.site-footer .footer-grid {
  grid-template-columns: minmax(200px, 1.4fr) 1fr 1fr;
  gap: 36px;
  padding: 0;
}
.site-footer h3 { color: #f0e9df; font-size: 1rem; font-weight: 540; margin: 0 0 12px; }
.site-footer p, .site-footer li { font-size: .94rem; line-height: 1.55; color: var(--fog); margin: 0 0 5px; }
.site-footer ul { gap: 0; }
.site-footer a { color: #e4e7ee; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .brand { color: #f9f9fc; font-size: 1.7rem; }
.site-footer .brand img { width: 26px; }
.site-footer .foot-lead { max-width: 37ch; }
.site-footer .footer-bottom {
  margin-top: 32px;
  padding: 15px 0 0;
  border-color: #3d4655;
  justify-content: space-between;
  color: #aebace;
}

@media (max-width: 650px) {
  main [id] { scroll-margin-top: 70px; }
  .site-footer .wrap { padding-block: 32px 16px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 16px; }
  .site-footer .foot-lead { grid-column: 1 / -1; }
  .site-footer .footer-bottom { margin-top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
