/* Plain CSS rather than Sass: GitHub Pages' older Sass compiler can't handle min() between mixed units. */

.nk-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 80px);
}

.nk-header a,
.nk-home a,
.nk-footer a {
  color: inherit;
  text-decoration: none;
}

.nk-header a:hover,
.nk-home a:hover,
.nk-footer a:hover {
  color: #EA4D3D;
  text-decoration: none;
}

/* Header */

.nk-header .nk-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.nk-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nk-nav {
  display: flex;
  gap: 4px;
  margin-right: -12px;
  font-size: 16px;
  font-weight: 500;
  color: #111212;
}

.nk-nav a {
  padding: 10px 12px;
}

.nk-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Homepage */

.nk-home {
  color: #111212;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.nk-hero {
  padding: clamp(64px, 11vw, 160px) 0 clamp(64px, 9vw, 128px);
}

.nk-hero h1 {
  margin: 0 0 24px;
  color: #86868B;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  animation: nk-rise 600ms cubic-bezier(.2, .7, .2, 1) both;
}

.nk-hero p {
  margin: 0;
  max-width: 15em;
  font-size: clamp(40px, 6.6vw, 92px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
  animation: nk-rise 700ms cubic-bezier(.2, .7, .2, 1) 150ms both;
}

@keyframes nk-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nk-hero h1,
  .nk-hero p {
    animation: none;
  }
}

.nk-section {
  padding-bottom: clamp(64px, 9vw, 128px);
}

.nk-section-title {
  margin: 0 0 24px;
  padding-top: 16px;
  border-top: 1px solid #D2D2D7;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.nk-muted {
  color: #636366;
  font-size: 16px;
  line-height: 1.5;
}

/* Current work tiles */

.nk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 24px;
}

.nk-tile {
  display: block;
}

.nk-art {
  aspect-ratio: 680 / 460;
  border-radius: 24px;
  overflow: hidden;
}

.nk-art img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
}

a:hover > .nk-art img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .nk-art img {
    transition: none;
  }

  a:hover > .nk-art img {
    transform: none;
  }
}

.nk-tile h3 {
  margin: 16px 0 2px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.nk-tile p {
  margin: 0;
}

.nk-bg-gathered { background: linear-gradient(to top, #FE3A30, #FF6A5E); }
.nk-bg-habitat { background: linear-gradient(to bottom, #F7F7F9, #E4E4E9); }
.nk-bg-await { background: linear-gradient(to bottom, #AF52DE, #5856D6); }
.nk-bg-reversal { background: linear-gradient(to bottom, #FFDB4D, #FFCC00); }
.nk-bg-hold { background: #655BDE; }
.nk-bg-braille { background: #F5F7FD; }
.nk-bg-orbit { background: #2B1634; }
.nk-bg-ekranotes { background: #242D37; }
.nk-bg-unisquare { background: #FF3800; }
.nk-bg-well { background: #F5F7FD; }

.nk-bg-touristo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6B2810 url(/images/touristo_wood.svg) center / cover;
}

.nk-art.nk-bg-touristo img {
  width: 56.8%;
  height: auto;
  border-radius: 17%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

/* Past work rows */

.nk-past-title {
  margin-bottom: 8px;
}

.nk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid #D2D2D7;
}

.nk-row .nk-art {
  flex: none;
  width: 104px;
  border-radius: 12px;
}

.nk-row h3 {
  flex: 1 1 200px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.nk-row p {
  flex: 2 1 280px;
  margin: 0;
}

/* Writing */

.nk-writing-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #D2D2D7;
}

.nk-writing-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.nk-writing-head a {
  padding: 10px 0;
}

.nk-writing-head a:not(:hover) {
  color: #636366;
}

.nk-post {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid #D2D2D7;
}

.nk-post-title {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Footer */

.nk-footer {
  background: #111212;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1.5;
}

.nk-footer .nk-wrap {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: 32px;
}

.nk-footer h2 {
  margin: 0 0 16px;
  color: #A1A1A6;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.nk-email {
  display: inline-block;
  font-size: clamp(32px, 6.6vw, 92px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.nk-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: clamp(40px, 6vw, 80px);
  font-size: 16px;
  font-weight: 500;
}

.nk-social a {
  padding: 10px 0;
}
