:root{
  --border: #fff;
  --bw: 2px;
  --r: 18px;
  --max: 920px;
  --padX: 18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: var(--font);
  color: #fff;
  background: #000;
}

.wrap{
  max-width: var(--max);
  margin: 18px auto 40px;
  padding: 0 var(--padX);
}


.nav{
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  font-weight: 600;
  text-transform: lowercase;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

.navlinks{
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 18px;
  flex-wrap: wrap;
}

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

.nav a:hover{
  text-decoration: underline;
}


h1{
  margin: 22px 0 24px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -2px;
  font-weight: 800;
}


.cards{
  display: grid;
  gap: 20px;
}

.card{
  position: relative;
  border: var(--bw) solid var(--border);
  border-radius: var(--r);

  min-height: 160px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.arrow{
  position: absolute;
  top: 22px;
  left: 22px;

  font-size: 64px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;
  color: inherit;

  display: inline-block;
  transform: rotate(45deg);
}

.arrow:hover{
  color: #5f5e5d;
}

.card-footer{
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  font-size: 14px;
  font-weight: 600;
}


@media (max-width: 520px){
  .nav{
    gap: 10px;
    padding: 10px 12px;
  }

  .navlinks{
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-end;
  }

  .navlinks::-webkit-scrollbar{ height: 0; }
}

@media (max-width: 480px){
  h1{
    font-size: 48px;
    line-height: 1;
  }

  .card{
    min-height: 120px;
    padding: 20px;
  }

  .arrow{
    font-size: 48px;
  }

  .card-footer{
    font-size: 13px;
  }
}

