@font-face {
  font-family: "PortfolioFont";
  src: url("fonts/portfolio-font.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-padding: 28px;
  --text-colour: #111;
  --video-width: min(58vw, 920px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background-image: url("checkerboard.png");
  background-repeat: repeat;
  background-size: 15.12px 15.12px;
  color: var(--text-colour);
  font-family: "PortfolioFont", Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  position: relative;
  padding: var(--page-padding);
}

.left-nav {
  position: fixed;
  left: var(--page-padding);
  top: var(--page-padding);
  display: grid;
  gap: 2px;
  z-index: 2;
}

.left-nav a {
  display: inline-block;
  width: fit-content;
  padding: 0 3px;
  background: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.left-nav a.active {
  text-decoration: underline;
}

.contact {
  position: fixed;
  top: var(--page-padding);
  right: var(--page-padding);
  display: inline-block;
  width: fit-content;
  padding: 0 3px;
  background: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.video-centre {
  min-height: calc(100vh - var(--page-padding) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-window {
  width: var(--video-width);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-window iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.project-label {
  position: fixed;
  left: var(--page-padding);
  bottom: var(--page-padding);
  display: inline-block;
  width: fit-content;
  padding: 0 3px;
  background: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  :root {
    --page-padding: 18px;
    --video-width: 92vw;
  }

  .left-nav {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 36px;
  }

  .contact {
    position: absolute;
  }

  .video-centre {
    min-height: 70vh;
  }

  .project-label {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 24px;
  }
}