/* Shared typography, navigation and footer */

@font-face {
  font-family: Neurial;
  src: url("fonts/NeurialGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Neurial;
  src: url("fonts/NeurialGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: Neurial;
  src: url("fonts/NeurialGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Neurial;
  src: url("fonts/NeurialGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Rich text uses a synthetic bold of the regular face on the original site. */
@font-face {
  font-family: "Neurial Text";
  src: url("fonts/NeurialGrotesk-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #212126;
  --cream: #f3ece5;
  --gutter: 32px;
  --round: 24px;
  --headline: 32px;
  --subhead: 32px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.5 Neurial, sans-serif;
  color: var(--ink);
  background: white;
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 { font-weight: 400; }

h2, h3 { line-height: 1.375; }

h2 { font-size: var(--subhead); }

img, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button, summary { cursor: pointer; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
}

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid #648df2;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 16px;
  color: var(--ink);
  background: white;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus { transform: none; }

.inset { padding-inline: var(--gutter); }

.headline {
  font-size: var(--headline);
  line-height: var(--headline-line, 44px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  padding: 32px;
  font-size: 14px;
}

.site-header > a { width: 25%; }

.site-header img {
  width: 142px;
  height: 22px;
}

.site-header nav {
  display: flex;
  gap: 112px;
  font-weight: 500;
}

.site-header [aria-current="page"] { font-weight: 700; }

.menu-toggle, .mobile-contact { display: none; }

.brands {
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: 25% 75%;
  align-items: center;
  background: var(--cream);
}

.brands > p {
  padding-block: 20px;
  font-size: 32px;
  line-height: 44px;
}

.marquee {
  overflow-x: auto;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track, .brand-group {
  display: flex;
  align-items: center;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee:has(.brand-group[aria-hidden]) { overflow: hidden; }
  .marquee-track:has(.brand-group[aria-hidden]) { animation: marquee 64s linear infinite; }
  .marquee:hover .marquee-track:has(.brand-group[aria-hidden]) { animation-play-state: paused; }
}

.brand-group img {
  margin: 0 32px;
  flex: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.footer-contact {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 25% 33.333% 1fr;
  gap: 32px;
  font-size: 14px;
}

.footer-contact p { max-width: 91.6667%; }

.footer-contact address { font-style: normal; }

.footer-contact address a {
  display: inline-block;
  margin-top: 11px;
}

.footer-contact small {
  grid-column: 1 / -1;
  opacity: .7;
  font-size: 14px;
  font-weight: 300;
}

@media (min-width: 1536px) {
  :root {
    --headline: 48px;
    --headline-line: 64px;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  :root { --subhead: 24px; }

  .brands { grid-template-columns: 26% 70%; }

  .brands > p {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --subhead: 20px;
    --gutter: 16px;
  }

  .footer-contact { padding-inline: 16px; }
}

@media (max-width: 767px) {
  :root {
    --headline: 24px;
    --headline-line: 32px;
    --subhead: 16px;
    --gutter: 16px;
  }

  h2, h3 { line-height: 1.5; }

  .site-header {
    position: fixed;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    height: 59px;
    background: white;
    border-bottom: 1px solid #98989a;
  }

  .site-header > a { width: auto; }

  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 6px;
    width: 32px;
    height: 26px;
  }

  .menu-toggle span {
    width: 30px;
    height: 2px;
    background: currentColor;
  }

  .menu-toggle span:last-child { width: 20px; }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }

  .menu-toggle[aria-expanded="true"] span:last-child {
    width: 30px;
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-header nav { display: none; }

  .menu-toggle[aria-expanded="true"] + nav {
    display: flex;
    position: absolute;
    inset: 59px 0 auto;
    height: calc(100dvh - 59px);
    overflow: auto;
    background: white;
    flex-direction: column;
    padding: 48px 16px 16px;
    gap: 16px;
    font-size: 40px;
    line-height: 48px;
    font-weight: 300;
  }

  .mobile-contact {
    display: block;
    margin: auto 0 128px auto;
    width: 80%;
    font: 400 16px/24px Neurial, sans-serif;
  }

  .mobile-contact p {
    opacity: .8;
    margin-bottom: 16px;
  }

  .mobile-contact a {
    font-weight: 500;
    font-size: 14px;
  }

  body:has(.menu-toggle[aria-expanded="true"]) { overflow: hidden; }

  footer { margin-top: 32px; }

  .brands {
    grid-template-columns: 100%;
    padding-block: 16px 64px;
    row-gap: 32px;
  }

  .brands > p {
    font-size: 24px;
    line-height: 32px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    padding: 32px 16px 80px;
  }

  .footer-contact p { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-group[aria-hidden] { display: none; }
}

@media (scripting: none) {
  .menu-toggle { display: none; }
}

@media (scripting: none) and (max-width: 767px) {
  .site-header nav {
    display: flex;
    gap: 10px;
  }

  .site-header img { width: 105px; }
  .mobile-contact { display: none; }
}
