@font-face {
  font-display: block;
  font-family: "Monument Grotesk Variable";
  src: url("https://type.cargo.site/files/CargoMonumentGroteskPlusVariable.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 200 1000;
}

@font-face {
  font-display: block;
  font-family: "Monument Grotesk Variable";
  src: url("https://type.cargo.site/files/CargoMonumentGroteskItalicPlusVariable.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 200 1000;
}

:root {
  --base-size: 15.552px;
  --black: #000;
  /* Cargo bottom pin at 1440×900 is the footer, 137.188px = 10.5854938272rem */
  --pin-bottom: 10.5854938272rem;
  --fit-main: calc(100vh - 20rem - var(--pin-bottom));
  --hero-h: calc(var(--fit-main) * 1.076);
  --hero-w: calc(var(--hero-h) * 720 / 512);
  --sky: linear-gradient(
    90deg,
    #0a9dff 0%,
    #9be15d 25%,
    #0a9dff 50%,
    #9be15d 75%,
    #0a9dff 100%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Cargo base unit: min(viewport) * weight 9 / 100, then * 0.16 */
  font-size: calc(min(100vw, 100vh) * 0.0144);
  background: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--black);
  background: #fff;
  font-family: "Monument Grotesk Variable", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-weight: 400;
  font-style: normal;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

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

.pinned-top {
  /* One Monument Grotesk fine line (1.55rem × 1.25) above the logo row */
  padding: calc(1.55rem * 1.25) 0 0;
}

.pinned-bottom {
  margin-top: auto;
  padding: 0 0 1.5rem;
  background: #fff;
}

.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1rem;
  width: 100%;
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-10 { grid-column: span 10; }

.center {
  text-align: center;
}

.logo {
  display: inline-block;
  width: calc(100vh * 0.086 / 1.0836501901140685);
  max-width: none;
  line-height: 0;
  vertical-align: top;
}

.logo img {
  width: 100%;
  height: auto;
}

.type-fine,
.type-ultra {
  font-family: "Monument Grotesk Variable", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-style: normal;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #000;
  display: inline-block;
}

.type-fine {
  font-weight: 717;
  letter-spacing: 0.1em;
  font-variation-settings: "wght" 717, "MONO" 0, "slnt" 0;
}

.type-ultra,
.type-ultra b {
  font-weight: 400;
  letter-spacing: 0.062em;
  font-variation-settings: "slnt" 0, "MONO" 0;
}

.type-ultra b {
  font-weight: 717;
  font-variation-settings: "wght" 717, "MONO" 0, "slnt" 0;
}

.type-ultra ul {
  list-style: none;
  margin: 0 0 1.25em;
  padding: 0;
}

.type-ultra li::before {
  content: "– ";
}

.nav-link {
  text-decoration: none;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.page-main {
  padding: 10rem 0 6rem;
}

body.home {
  display: block;
  min-height: 0;
}

body.home .pinned-bottom {
  margin-top: 0;
}

.hero {
  display: flow-root;
  text-align: center;
  padding: 0 0 10rem;
}

.hero-art {
  width: var(--hero-w);
  margin-right: auto;
  margin-left: auto;
  /* Cargo centers the hero in the viewport, and keeps it 12px under the header */
  margin-top: max(
    12px,
    calc((100vh - var(--hero-h)) / 2 - 1.55rem * 1.25 - 100vh * 0.086)
  );
}

.hero-art video {
  width: 100%;
  height: auto;
}

.tagline {
  margin: calc(1.15rem * 1.2 * 2 + 1.55rem * 1.25 * 3) 0 0;
  text-align: center;
  background: linear-gradient(
    90deg,
    #000 0%,
    #000 35%,
    #0a9dff 45%,
    #9be15d 50%,
    #0a9dff 55%,
    #000 65%,
    #000 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: n1-shimmer 5s linear infinite, n1-bob 3s ease-in-out infinite;
}

.site-rule {
  border: 0;
  border-top: 1px solid #000;
  margin: 0;
}

.footer-links {
  padding-top: calc(1.25em * 4);
}

a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.pinned-top a,
.pinned-bottom a,
a.logo {
  text-decoration: none;
}

a:hover,
a:hover * {
  background: var(--sky);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: n1-link-sky 1.6s linear infinite;
  text-decoration-color: #0a9dff;
}

a.active,
a.active * {
  background: linear-gradient(90deg, #0a9dff 0%, #9be15d 50%, #0a9dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-decoration-color: #0a9dff;
  animation: none !important;
}

a.logo,
a.logo:hover,
a.logo:hover *,
a.logo:active,
a.logo:active * {
  background: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentcolor !important;
  animation: none !important;
  text-decoration: none !important;
}

.contact-form {
  width: 100%;
}

.contact-form label,
.contact-form input,
.contact-form textarea,
.contact-form button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #000;
  background: transparent;
  padding: 0.4rem 0 0.5rem;
  margin: 0 0 1.25em;
  outline: none;
  resize: vertical;
}

.contact-form textarea {
  min-height: 8rem;
}

.form-actions {
  display: flex;
  gap: 1.5rem;
}

.form-actions button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-note {
  margin-top: 1.25em;
}

@keyframes n1-link-sky {
  from { background-position: 0 0; }
  to { background-position: -200% 0; }
}

@keyframes n1-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes n1-bob {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .tagline,
  a:hover,
  a:hover * {
    animation: none;
  }
}

@media (max-width: 700px) {
  .cols {
    column-gap: 0.6rem;
  }

  .span-6,
  .span-10 {
    grid-column: 1 / -1;
  }

  .footer-links .span-3,
  .footer-links .span-7 {
    grid-column: span 6;
  }
}
