/*
Theme Name: Ruta 30 Studio
Theme URI: https://ruta30.studio/
Author: Ruta 30 Studio
Description: Theme personalizado de Ruta 30 Studio, migrado desde React/Vite y preparado para blog nativo de WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ruta30
*/

/* RUTA 30 STUDIO - DISENO EDITORIAL DEL BLOG */

body.blog .blog-main {
  background: #F2EFE9;
  color: #191919;
  min-height: 100vh;
  padding-bottom: 70px;
}

/* ENCABEZADO DEL BLOG */

body.blog .blog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 65px 24px 40px;
  text-align: center;
}

body.blog .blog-hero .eyebrow {
  align-self: flex-start;
}

body.blog .blog-hero > h1 {
  width: 100%;
  color: #191919;
  text-align: center;
}

body.blog main.blog-main section.blog-hero > p:not(.eyebrow) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 620px;
  margin: 20px auto 0;
  color: #555555;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
  align-self: center;
}

/* CUADRICULA DE ARTICULOS */

body.blog .posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 50px;
}

/* TARJETAS DE ARTICULOS */

body.blog .post-card {
  background: #FFFFFF;
  color: #191919;
  border: 1px solid #E5DFD6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

body.blog .post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

body.blog .post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body.blog .post-card h2,
body.blog .post-card h3 {
  color: #191919;
}

body.blog .post-card p,
body.blog .post-card .post-meta {
  color: #555555;
}

body.blog .post-card a {
  color: #D45200;
}

body.blog .post-card h2 a,
body.blog .post-card h3 a {
  color: #191919;
}

body.blog .post-card h2 a:hover,
body.blog .post-card h3 a:hover {
  color: #D45200;
}

/* TABLET */

@media (max-width: 900px) {
  body.blog .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CELULAR */

@media (max-width: 600px) {
  body.blog .posts-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}
  
/* RUTA 30 STUDIO - DISENO DE NOTAS INDIVIDUALES */

body.single-post .blog-main {
  background: #F2EFE9;
  color: #191919;
  min-height: 100vh;
  padding-bottom: 70px;
}

body.single-post .single-wrap {
  color: #191919;
}

body.single-post .entry-title,
body.single-post .entry-content,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content p,
body.single-post .entry-content li {
  color: #191919;
}

body.single-post .entry-content a {
  color: #D45200;
}
