@font-face {
  font-family: Onest;
  src: url('/fonts/onest-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: #fff;
  color: #181818;
  font-family: Onest, Arial, sans-serif;
  font-synthesis: none;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 5rem max(1.75rem, 9vw);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(14rem, 28vw, 21rem);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  width: 100%;
  max-width: 70rem;
}

.identity { min-width: 0; }

h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .125rem;
  margin-top: 1.5625rem;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  color: #595959;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}

.contact--primary { color: #181818; }

.contact > span:last-child {
  text-decoration: underline;
  text-decoration-color: #b0b0b0;
  text-underline-offset: .3125rem;
  text-decoration-thickness: 1px;
}

.contact:hover { color: #181818; }
.contact:hover > span:last-child { text-decoration-color: currentColor; }
.contact:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.telegram-icon {
  width: 1rem;
  height: 1.125rem;
  flex: none;
  background: currentColor;
  mask: url('/assets/telegram-plane.svg') center / contain no-repeat;
}

.photo-window {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  color: #767676;
  font-size: .8125rem;
  overflow: hidden;
}

.photo-window img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

footer {
  padding: 0 max(1.75rem, 9vw) 1.75rem;
  color: #767676;
  font-size: .75rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  main { padding-top: 3rem; padding-bottom: 3rem; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .photo-window { grid-row: 1; width: min(100%, 16rem); }
  h1 { font-size: 2rem; }
}

