:root {
  --bg: #ffffff;
  --text: #111;
  --muted: #777;
}

@font-face {
  font-family: Redaction-Regular;
  src: url(assets/Redaction-Regular.otf);
}

@font-face {
  font-family: Redaction-Bold;
  src: url(assets/Redaction-Bold.otf);
}

@font-face {
  font-family: Redaction50-Regular;
  src: url(assets/Redaction50-Regular.otf);
}

@font-face {
  font-family: Redaction50-Bold;
  src: url(assets/Redaction50-Bold.otf);
}

@font-face {
  font-family: LeagueMono-Regular;
  src: url(assets/LeagueMono-Regular.otf);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  padding: 1.125rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.name {
  font-family: 'Redaction50-Bold';
  font-size: 1.5rem;
  letter-spacing: 0.06rem;
  text-decoration: none;
  color: inherit;
}

.contact {
  font-family: 'LeagueMono-Regular';
  font-size: 12px;
  letter-spacing: 0.5px;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  margin-left: 12px;
}

.contact a:hover {
  text-decoration: underline;
}

h1 {
  font-family: 'Redaction50-Bold';
  font-size: 3.5rem;
  letter-spacing: 0.1rem;
  line-height: 3.4rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

h2 {
  font-family: 'Redaction50-Bold';
  font-size: 1.8rem;
  line-height: 2rem;
  margin-left: 0.5rem;
  letter-spacing: 0.1rem;
}

.text {
  margin-left: 2.5rem;
  margin-right: 6rem;
  margin-bottom: 2rem;
}

.descriptionText {
  font-family: 'LeagueMono-Regular';
  font-size: 0.9rem;
  line-height: 1.25rem;
  margin-left: 2.5rem;
}

.posterDescription {
  font-family: 'LeagueMono-Regular';
  font-size: 0.9rem;
  line-height: 1.25rem;
  margin-top: 2rem;
  margin-left: 5rem;
  margin-right: 6rem;
}

.toolsText {
  font-family: 'Redaction-Bold';
  font-size: 1rem;
  margin-top: 2.5rem;
  margin-left: -1rem;
  margin-bottom: 0.25rem;
}

.linkText {
  font-family: 'Redaction';
  font-size: 1.2rem;
  line-height: 1.75rem;
  margin-top: 0.5rem;
  
}

.project-type {
  font-family: 'Redaction';
  font-size: 1.5rem;
  line-height: 1.75rem;
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

.projects {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.project-row {
  display:flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem;
  
}

.project-row.colored {
  border: 0.05rem solid #111;
  padding: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.project.full {
  grid-column: 1 / -1;
  display: flex;
}

.project.firstImage {
  margin-top: 40px;
}

.project {
  display: flex;
  flex: 1;
}

.img-wrapper {
  width: 100%;
  position: relative;

}

.img-wrapper img,
.img-wrapper video {
  width: 100%;
  height: auto;

  display: block;
  object-fit: contain;
}

.img-wrapper.poster {
  width: 22rem;
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.img-wrapper.posterCenter {
  height: 48rem;
  flex-shrink: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.posterCenter img,
.posterCenter video {
  height: 100%;
  width: auto;
  display: block;
}

.img-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: 16/9;
}

.poster {
  display: flex;
  align-items: center;
  
}

.poster video,
.poster img {
  height: 48rem;
  width: auto;
  display: block;
}

.screenshot {
  width: 30rem;
}

@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  

  .projects::before {
    display: none;
  }

  .img-wrapper {
    width: 100%;
  }
}

.project-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1.75rem 4rem;
}

.nav-btn {
  font-family: 'LeagueMono-Regular';
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
  color: var(--text);
  text-decoration: none;
  border: 0.05rem solid #111;
  padding: 0.6rem 1.4rem;
  width: 10rem;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  background: #111;
  color: #fff;
}