:root {
  --petrol: #0f5257;
  --petrol-light: #2e8b84;
  --ink: #14140f;
  --stone: #c9c5bc;
  --chalk: #faf9f6;
  --muted: #6b675f;
  --line: #e4e1da;
  color: var(--ink);
  background: var(--chalk);
  font-family: "Archivo", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--chalk);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--chalk);
}

a {
  color: inherit;
}

.site-header {
  min-height: 5.25rem;
  padding: 1.125rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
}

.brand__name {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.brand__name strong {
  color: var(--petrol);
  font-weight: inherit;
}

.brand__tagline,
.eyebrow,
.hero__art span,
.site-footer {
  font-family: "Space Mono", monospace;
}

.brand__tagline {
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

.hero {
  width: 100%;
  min-height: min(43rem, calc(100vh - 10.25rem));
  padding: clamp(4rem, 10vw, 8.5rem) clamp(1.25rem, 7vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.hero__content {
  max-width: 57rem;
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--petrol);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.4rem, 7.8vw, 8.25rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero__art {
  width: min(100%, 23rem);
  aspect-ratio: 1;
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--petrol);
}

.hero__art svg {
  width: 66%;
  height: 66%;
}

.route {
  fill: none;
}

.route--easy {
  stroke: #6e948f;
  stroke-width: 10;
}

.route--hard {
  stroke: var(--chalk);
  stroke-width: 14;
}

.hero__art span {
  position: absolute;
  right: 1.25rem;
  bottom: 1.125rem;
  color: #9dbdb8;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer {
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}

@media (max-width: 48rem) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__art {
    width: min(70vw, 19rem);
    justify-self: start;
  }
}

@media (max-width: 32rem) {
  .brand__tagline {
    display: none;
  }

  .site-header {
    min-height: 4.5rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content,
  .hero__art {
    animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero__art {
    animation-delay: 100ms;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
