:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6f6f6f;
  --faint: #a6a6a6;
  --line: #e3e3e3;
  --line-strong: #c9c9c9;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

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

h1,
p {
  margin: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__note {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.header__link:hover {
  color: var(--ink);
}

.header__link:hover::after {
  transform: scaleX(1);
}

/* Cover */

.cover {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(28px, 6vh, 64px);
}

.cover__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover__lead {
  max-width: 360px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.cover__name {
  padding-inline: var(--pad);
}

.cover__kicker {
  margin-bottom: clamp(12px, 2vh, 24px);
  color: var(--faint);
  letter-spacing: 0.1em;
}

.cover__title {
  font-size: clamp(4rem, 20vw, 19rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  user-select: none;
}

.cover__foot {
  margin-top: clamp(32px, 6vh, 64px);
}

/* Project link */

.project {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 3vw, 34px) var(--pad);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.35s var(--ease);
}

.project:hover {
  background: #161616;
}

.project__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: invert(1) contrast(1.05);
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.project__label {
  color: var(--faint);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.project__title {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project__meta {
  color: #9a9a9a;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.project__arrow {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.project:hover .project__arrow {
  transform: translate(4px, -4px);
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad) 28px;
  color: var(--faint);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

/* Intro */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cover__top,
.cover__name,
.cover__foot {
  animation: rise 0.9s var(--ease) both;
}

.cover__name {
  animation-delay: 0.1s;
}

.cover__foot {
  animation-delay: 0.2s;
}

/* Responsive */

@media (max-width: 900px) {
  .header {
    height: 64px;
  }

  .cover__top {
    flex-direction: column;
    gap: 16px;
  }

  .cover__lead {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header {
    height: 60px;
  }

  .brand__note {
    display: none;
  }

  .cover {
    padding-top: 24px;
  }

  .cover__lead {
    max-width: 100%;
  }

  .cover__title {
    font-size: clamp(3.6rem, 20vw, 8rem);
  }

  .project {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding-block: 20px;
  }

  .project__mark {
    width: 36px;
    height: 36px;
  }

  .project__meta {
    display: none;
  }

  .project__title {
    font-size: 1.05rem;
  }

  .colophon {
    padding-bottom: 24px;
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
