@font-face {
font-family: MonoBold;
src: url(../fonts/MonoCondensed-Bold.woff);
}

@font-face {
font-family: Grot;
src: url(../fonts/VTNNQR+NewRailAlphabet-Medium.ttf);
}

html {
  font-family: Grot, sans-serif;
  line-height: 1.15rem;
}

body {
  margin: 0;
}

p a{
  font-family: Grot, sans-serif;
  letter-spacing: 0rem;
  line-height: 1.15rem;
}


.project-link.is-disabled {
  pointer-events: none; /* blocks click */
  cursor: default;
  color: rgba(0, 0, 0, 0.4);
}


/* =========================
   LAYOUT WRAPPER LAYER
========================= */

#root {
  position: relative;
  z-index: 2;
}

/* =========================
   TOP TEXTS
========================= */

.top-texts {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
  margin-top: 0rem;
  border-bottom: solid 1px black;
  padding-bottom: 15vh;
}

.home-text,
.contact-text,
.contact-smth {
  padding: 1rem;
  max-width: 100ch;
}

/* =========================
   LIST RESET
========================= */

ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================
   SHARED GRID SYSTEM
   (HEADER + ROWS MUST MATCH)
========================= */

.table-header,
li a {
  display: grid;

  grid-template-columns:
    25vw   /* PROJECT */
    1fr     /* WORKS (flex) */
    25vw;  /* CLIENT */

  gap: 1rem;
  padding: 0 0.57rem;
  box-sizing: border-box;
}

.new-category{
  
  width: 100%;
}

/* =========================
   HEADER
========================= */

.table-header {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* =========================
   ROWS
========================= */

li a {
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}

li a:hover {
  color: lightgrey;
}

/* =========================
   GRID CELLS (NO PADDING HERE!)
========================= */

.new-title,
.new-works,
.new-category,
.col-title,
.col-works,
.col-category {
  min-width: 0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {
  .table-header{
    display: none;
  }

  .table-header,
  li a {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.85rem;
    border-bottom: solid 1px black;
    padding-bottom: 0.5rem;
  }

  .new-works{
    padding-left: 0rem;
  }
  .new-category{
    margin-top: 0.75rem;
    font-style: italic;
  }

  .new-title{
    
    padding-right: 2rem;
  }

  .project-link{
    margin-bottom: 0.45rem;
  }

  li a:hover {
  color: black;
}

}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
  .table-header,
  li a {
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem;
  }

  .new-title {
    grid-column: 1;
    line-height: 1rem !important;
    letter-spacing: 0.015rem;
    padding-right: 3rem;
    box-sizing: border-box;

  }

  .new-works {
    grid-column: 2;
    line-height: 1rem !important;
    letter-spacing: 0.015rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
  }

  .new-category {
    grid-column: 2;
    margin-top: 0.45rem;
    padding-right: 0.45rem;
    box-sizing: border-box;
  }
}

/* =========================
   HOVER IMAGE (BACKGROUND LAYER)
========================= */

.hover-image {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.2s ease;

  pointer-events: none;

  z-index: -1; /* always behind text */
}

li:hover .hover-image {
  opacity: 1;
}

.hover-image img,
.hover-image video {
  max-width: 67vw;
  max-height: 67vh;
  object-fit: contain;
}

@media (max-width: 600px) {
  .hover-image img,
  .hover-image video {
    max-width: 75vw;
    max-height: 75vh;
  }
}

@media (max-width: 900px) {
  .top-texts {
    grid-template-columns: 1fr !important;
    font-size: 0.85rem;
    color: green;
  }
}

@media (max-width: 600px) {
  .top-texts {
    grid-template-columns: 1fr;
    font-size: 0.85rem;
    gap: 0.25rem;
    color: blue;
  }
}

@media (max-width: 900px) {
  .home-text,
  .contact-text,
  .contact-smth {
    padding: 0.75rem;
  }
}