@font-face {
  font-family: 'Minecraft';
  src:
    url('../fonts/minecraft.woff2') format('woff2'),
    url('../fonts/minecraft.woff') format('woff'),
    url('../fonts/minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src:
    url('../fonts/gothambook.woff2') format('woff2'),
    url('../fonts/gothambook.woff') format('woff'),
    url('../fonts/gothambook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
  background: #ffffff;
}

body {
  overflow: hidden;
}

.page {
  position: relative;
  height: 100vh;
  padding: 3% 3% 10% 3%;
}

.centre {
  position: absolute;
  top: 3%;
  left: 3%;
  right: 3%;
  bottom: 10%;
  background: #e6e6e6;
  overflow: hidden;
}

.centre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/herobanner.svg") center / contain no-repeat;
  pointer-events: none;
}

.mobile-monogram,
.mobile-menu {
  display: none;
}

.mobile-projects-head,
.mobile-page-nav {
  display: none;
}

.logo {
  position: absolute;
  left: 3%;
  bottom: 2%;
  height: 60px;
  pointer-events: none;
}

.site-nav {
  position: absolute;
  right: 3%;
  bottom: 1%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-family: 'Minecraft', monospace;
  font-size: 10px;
  line-height: 1.6;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: #000;
}

.site-nav a:hover {
  opacity: 0.6;
}

.frame {
  height: 100vh;
  padding: 3%;
  background: #ffffff;
}

.layout {
  height: 100%;
  display: flex;
}

.left-panel {
  width: 33%;
  position: relative;
}

.left-top {
  font-family: 'Minecraft', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

.home-link,
.home-link:visited {
  text-decoration: none;
  color: inherit;
}

.left-bottom {
  position: absolute;
  bottom: 0;
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
}

.insta-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.insta-line img {
  width: 12px;
  height: 12px;
  display: block;
}

.insta-line a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.insta-line a:hover {
  opacity: 0.6;
}

.right-panel {
  width: 67%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.right-panel::-webkit-scrollbar {
  display: none;
}

.projects-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8%;
  align-content: space-between;
}

.projects-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.projects-grid a span {
  font-family: 'Minecraft', monospace;
  font-size: 100px;
  color: #cfcfcf;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
    min-height: 100%;
  }

  .page {
    min-height: 100svh;
    padding: 6% 6% 7%;
  }

  .centre {
    top: 4.25%;
    left: 6.5%;
    right: 6.5%;
    bottom: 31.5%;
  }

  .logo {
    left: 6.5%;
    bottom: 4.5%;
    width: 168px;
    max-width: 42vw;
    height: auto;
  }

  .site-nav {
    right: 7.5%;
    bottom: 12.5%;
    display: none;
    gap: 11px;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .site-nav a {
    color: #6f7580;
  }

  .page.menu-open .site-nav {
    display: flex;
  }

  .centre::before {
    display: none;
  }

  .mobile-monogram {
    position: absolute;
    top: 43%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    font-family: 'Minecraft', monospace;
    font-size: clamp(60px, 16vw, 82px);
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
  }

  .mobile-menu {
    position: absolute;
    right: 7.5%;
    bottom: 5.2%;
    display: flex;
    width: 32px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .mobile-menu span {
    display: block;
    width: 100%;
    height: 4px;
    background: #6f7580;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .page.menu-open .mobile-menu span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .page.menu-open .mobile-menu span:nth-child(2) {
    opacity: 0;
  }

  .page.menu-open .mobile-menu span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .frame {
    padding: 4%;
    height: auto;
    min-height: 100vh;
  }

  .layout {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .left-top {
    font-size: 11px;
  }

  .left-bottom {
    position: relative;
    margin-top: 12px;
    font-size: 11px;
  }

  .right-panel {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20%;
  }

  .projects-grid a span {
    font-size: 48px;
  }

  .projects-page .frame {
    padding: 6% 5%;
    min-height: 100svh;
  }

  .projects-page .left-panel {
    position: relative;
    margin-bottom: 0;
  }

  .projects-page .left-bottom {
    display: none;
  }

  .projects-page .mobile-projects-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .projects-page .left-top {
    font-size: 10px;
    letter-spacing: 0.04em;
    margin: 0;
  }

  .projects-page .mobile-menu {
    position: static;
    display: flex;
    width: 32px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .projects-page .mobile-page-nav {
    position: absolute;
    top: 56px;
    right: 0;
    display: none;
    text-align: right;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    z-index: 2;
  }

  .projects-page .mobile-page-nav a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: #6f7580;
  }

  .projects-page.menu-open .mobile-page-nav {
    display: block;
  }

  .projects-page.menu-open .mobile-menu span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .projects-page.menu-open .mobile-menu span:nth-child(2) {
    opacity: 0;
  }

  .projects-page.menu-open .mobile-menu span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .projects-page .right-panel {
    margin-top: 112px;
  }

  .projects-page .projects-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    align-content: start;
  }

  .projects-page .projects-grid a {
    justify-content: flex-start;
    min-height: 26svh;
    align-items: center;
    padding: 0;
    border-bottom: 0;
  }

  .projects-page .projects-grid a span {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(52px, 15.6vw, 72px);
    line-height: 1;
  }
}
