body {
  background: #f6f4ef;
  margin: 0;
  overflow-x: hidden;
}

.site-menu {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 4rem;

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-menu a {
  text-decoration: none;
  color: #222;
}

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

.site-menu a.active {
  opacity: 0.5;
  pointer-events: none;
}

header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 4rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.home-item img {
  width: 100%;
  display: block;
}

.home-item {
  position: relative;
}

.home-item:first-child {
  grid-row: span 2;
}

.home-item a {
  position: relative;
  display: block;
}

.home-hover {
  position: absolute;
  inset: 0;

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

  background: rgba(0,0,0,0.28);
  color: #fff;

  font-family: 'IBM Plex Mono' , monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  text-align: center;
  white-space: nowrap;      /* ← ESSENCIAL */
  
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-item a:hover .home-hover {
  opacity: 1;
}

.home-item a:hover img {
  transform: scale(1.01);
  transition: transform 0.25s ease;
}

.home-intro {
  max-width: 42rem;
  margin: 6rem auto 7rem auto;
  text-align: center;

  font-size: 1rem;
  line-height: 1.6;

  opacity: 0.85;
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-item:first-child {
    grid-row: auto;
  }
}

body {
  font-family:'Instrument Serif', serif; 
}

/* Projeto - imagem de abertura */
.projeto img:first-of-type {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 6rem;
}

/* imagens dentro do projeto */
.projeto img {
  width: 100%;
  height: auto;
  display: block;
}

/* responsivo */
@media (max-width: 900px) {
  .projeto-corpo {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projeto-texto {
    max-width: none;
  }
}

/* =========================
   PROJETO — IMAGENS
   ========================= */

.projeto-imagens {
  margin-top: 1.5rem;
}

.projeto-imagens img {
  margin-bottom: 3rem;
}

/* leve recuo para sensação editorial */
@media (min-width: 900px) {
  .projeto-imagens {
    padding-top: 2rem;
  }
}



.projeto-conteudo img {
  display: block;
  width: 100%;
  max-width: 720px;

  margin-top: 4rem;
  margin-bottom: 4rem;
}


.projeto-conteudo {
  display: block;
}

.projeto-conteudo img {
  float: none;
  clear: both;
}

.projeto-conteudo > p,
.projeto-conteudo > img {
  display: block;
}

.projeto-conteudo img {
  margin-left: auto;
  margin-right: auto;
}

.projeto-conteudo img {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================
   PROJETO — INTRO EDITORIAL
   ========================= */

.projeto-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.projeto-meta {
  font-size: 0.9rem;
  line-height: 1.6;
}

.projeto-texto {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 38rem;
}

/* responsivo */
@media (max-width: 900px) {
  .projeto-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================
   NAVEGAÇÃO — VOLTAR AO TOPO
   ========================= */

.projeto-footer {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: right;
}

.voltar-topo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
  text-align: center;
}

.voltar-topo:hover {
  opacity: 0.6;
}
