@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

:root {
  color-scheme: dark;
  background: #090909;
  color: #f3f1ec;
  font-family: 'Archivo Black', Impact, 'Arial Black', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
::selection { background: #f3f1ec; color: #090909; }

.layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  min-height: 100svh;
  padding: 26px;
}

.title {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding-right: 22px;
  font-size: clamp(100px, 12.55vw, 236px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.105em;
  white-space: nowrap;
}

.title span { display: block; }

.right-column {
  display: flex;
  flex-direction: column;
  padding-left: 24px;
}

.links {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(5, 1fr);
}

.links a {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.2vw, 20px);
  padding: 0 6px;
  color: inherit;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -.065em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}

.links a::before {
  content: '';
  flex: none;
  width: clamp(16px, 1.5vw, 22px);
  aspect-ratio: 1;
  background: currentColor;
}

.links a:hover,
.links a:focus-visible {
  padding-left: 16px;
  background: #f3f1ec;
  color: #090909;
  outline: none;
}

.contacts {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: inherit;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -.065em;
  text-decoration: none;
}

.contacts:hover,
.contacts:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .title { font-size: clamp(84px, 11.7vw, 150px); }
  .links a { font-size: clamp(20px, 2.7vw, 30px); }
  .contacts { font-size: clamp(20px, 2.7vw, 30px); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); }
}

@media (max-width: 760px) {
  .layout { display: flex; flex-direction: column; padding: 16px; }
  .title {
    justify-content: center;
    min-height: 36svh;
    padding: 0 0 24px;
    font-size: clamp(76px, 18.2vw, 143px);
  }
  .right-column { padding: 20px 0 0; }
  .contacts { position: static; align-self: center; margin-top: 84px; transform: none; }
  .links a {
    min-height: 76px;
    font-size: clamp(24px, 5.8vw, 38px);
    -webkit-tap-highlight-color: transparent;
  }
  .links a:hover,
  .links a:focus-visible {
    padding-left: 6px;
    background: transparent;
    color: inherit;
  }
  .contacts { font-size: clamp(24px, 5.8vw, 38px); }
}

@media (max-width: 420px) {
  .title { font-size: 18.15vw; }
  .links a { font-size: 6.4vw; }
  .contacts { font-size: 6.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  .links a { transition: none; }
}
