* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f3f3f3;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

/* layout */

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* left column */

.left-column {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 42px 42px 20px 42px;
  display: flex;
  flex-direction: column;
}

.text-scroll {
  flex: 1;
  overflow-y: auto;
  max-width: 520px;
  padding-bottom: 36px;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.022em;
}

.text-scroll p {
  margin: 0 0 26px 0;
}

.text-scroll strong {
  font-weight: 700;
}

/* smaller text blocks */

.meta {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.56);
}

.note {
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.32);
  margin-top: -6px;
  margin-bottom: 0;
}

/* contact */

.contact {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.5);
}

.contact a {
  display: block;
  text-decoration: none;
}

/* right column */

.right-column {
  padding: 14px 28px 14px 8px;
}

/* homepage projects */

.project {
  position: relative;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: white;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.18s ease;
}

.project:hover::after {
  background: rgba(0, 0, 0, 0.07);
}

.overlay {
  position: absolute;
  left: 12px;
  bottom: 11px;
  opacity: 0;
  transition: opacity 0.18s ease;
  font-size: 16px;
  letter-spacing: -0.02em;
  z-index: 2;
}

.project:hover .overlay {
  opacity: 1;
}

/* project pages */

.project-page-images img {
  display: block;
  width: 80%;
  height: auto;
  margin-bottom: 8px;
  margin-left: auto;
}

/* back arrow */

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.45);
  font-size: 24px;
  line-height: 1;
}

/* mobile */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-column {
    position: relative;
    height: auto;
    padding: 28px 22px 14px 22px;
  }

  .text-scroll {
    overflow: visible;
    max-width: none;
    font-size: 22px;
    padding-bottom: 18px;
  }

  .contact {
    margin-top: 18px;
    font-size: 10px;
  }

  .right-column {
    padding: 0 22px 22px 22px;
  }

  .project-page-images img {
    width: 100%;
    margin-left: 0;
  }
}