:root {
  --white: #ffffff;
  --white-opacity: #f5f5f580;
  --black: #111111;
  --black-opacity: #11111180;
  --black-opacity-30: #11111130;
  --gray: #e1e1e6;
  --dark-gray: #808080;
  --almost-black: #000105;
  --color: 128, 128, 128;
  --blue: #007fff;
  --yellow: #fffe00;
  --violet: #9c75ff;
  --green: #3cb371;
  --coral: #ff7f50;
  --light-violet: #ebecff;
  --light-grey: #d3d3d3;
  --gap: calc(6px + 0.2vw);
  --gap-md: 32px;
  --gap-sm: 16px;
  --gap-xs: 8px;
}

[data-type=controls] > * {
  align-items: center;
  display: flex;
  justify-content: center;
  transition: transform 0.2s ease;
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
}
[data-type=controls] > .more, [data-type=controls] > .link, [data-type=controls] > .anchor {
  height: 20px;
  width: 20px;
}
[data-type=controls] > .more:hover, [data-type=controls] > .link:hover, [data-type=controls] > .anchor:hover {
  cursor: pointer;
}
[data-type=controls] > .more:hover {
  cursor: pointer;
}
[data-type=controls] > .link {
  background-color: var(--gray);
  border: 1px solid var(--black);
}
[data-type=controls] > .link:hover:hover {
  color: var(--black);
  opacity: 0.5;
}
[data-type=controls] > .link > .anchor {
  background-color: #2b2b2b;
}

.main .title {
  margin: calc(var(--gap) * 5) 0 calc(var(--gap) * 3) 0;
  max-width: calc(1200px - var(--gap) * 2);
  width: calc(100% - var(--gap) * 4);
}
.main .title h1 {
  -webkit-font-smoothing: antialiased;
  font-size: 2.25em;
  line-height: 1.1;
  margin: 0 calc(var(--gap) * 2);
}
@media screen and (min-width: 640px) {
  .main .title h1 {
    font-size: clamp(3.25rem, 6vw, 3.75rem);
    line-height: 1;
  }
}

.grid {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--gap-md);
  }
}
.grid > * {
  overflow: hidden;
  position: relative;
}
@media screen and (max-width: 639px) {
  .grid > * .card-controls {
    display: none;
  }
}
.grid .work-item-list:hover .work-card-info {
  color: rgba(var(--color), 0.8);
}
.grid .card-image img {
  border-radius: clamp(8px, 2vw, 16px);
}
.grid h3 {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-top: var(--gap-sm);
}
@media screen and (min-width: 640px) {
  .grid h3 {
    font-size: 0.8rem;
  }
}
@media screen and (min-width: 1024px) {
  .grid h3 {
    font-size: 0.8rem;
  }
}
@media screen and (max-width: 640px) {
  .grid h3 {
    margin-top: var(--gap-sm);
  }
}
.grid h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 118%;
  text-align: left;
  margin-top: var(--gap-sm);
}
@media screen and (min-width: 640px) {
  .grid h2 {
    font-size: 1.5rem;
  }
}
@media screen and (min-width: 1024px) {
  .grid h2 {
    font-size: 1.5rem;
  }
}
@media screen and (max-width: 640px) {
  .grid h2 {
    font-size: 1.15rem;
    font-weight: 400;
    text-align: left;
    margin-top: var(--gap-sm);
  }
}
@media screen and (max-width: 640px) and (min-width: 640px) {
  .grid h2 {
    font-size: 1.15rem;
  }
}
@media screen and (max-width: 640px) and (min-width: 1024px) {
  .grid h2 {
    font-size: 1.15rem;
  }
}
.grid .work-years {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.7px;
  color: var(--dark-gray);
  display: inline-block;
}
@media screen and (min-width: 640px) {
  .grid .work-years {
    font-size: 0.8rem;
  }
}
@media screen and (min-width: 1024px) {
  .grid .work-years {
    font-size: 0.8rem;
  }
}
