/*
Theme Name: AkiyaKansai
Theme URI: https://www.akiyakansai.com/blog/
Author: AkiyaKansai
Description: Tema del blog de AkiyaKansai. Reutiliza el CSS, las fuentes y el JavaScript de la web principal para que blog y web sean indistinguibles. No duplica estilos: carga /style.css del dominio y solo añade aquí lo propio del blog.
Version: 1.0
Requires at least: 6.0
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akiyakansai
*/

/* ============================================================
   Este fichero se carga DESPUÉS de /style.css, así que aquí solo
   va lo que la web principal no tiene: el listado de artículos y
   la tipografía de texto largo.
   Las variables de color (--bg, --ink, --accent…), las fuentes y
   los tres temas washi/arcilla/sumi vienen heredados.
   ============================================================ */

/* === CABECERA CON FOTO ===
   Mismo patrón que .prop-hero en propiedades.html o .faqp-header en la de
   preguntas frecuentes. Esos estilos viven dentro de cada página y no en
   /style.css, así que aquí hace falta la copia. */
.blog-hero {
  position: relative;
  height: clamp(320px, 52vh, 560px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.blog-hero > img {
  position: absolute;
  inset: -20% 0 -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  z-index: 1;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,8,5,.20) 0%, rgba(10,8,5,.65) 100%);
}
.blog-hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(32px,5vw,64px) clamp(20px,5vw,64px);
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  color: rgba(251,246,238,.95);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.blog-hero-content .section-eyebrow { color: rgba(251,246,238,.72); }
.blog-hero-content h1 {
  margin: 12px 0 0;
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(34px,5vw,62px);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.blog-hero-content p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
  color: rgba(251,246,238,.82);
}
/* Las migas y la fecha, sobre la foto, necesitan el color claro */
.blog-hero-content .migas,
.blog-hero-content .migas a { color: rgba(251,246,238,.78); }
.blog-hero-content .migas .migas-actual { color: rgba(251,246,238,.96); }
.blog-hero-content .articulo-meta { color: rgba(251,246,238,.78); }

/* === LISTADO DE ARTÍCULOS === */
.blog-lista {
  background: var(--bg);
  padding: clamp(48px,6vw,80px) clamp(20px,5vw,64px) clamp(64px,9vw,110px);
}
.blog-lista .inner { max-width: 1100px; margin: 0 auto; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: clamp(24px,3vw,40px);
}
.entrada {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.entrada:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(40,30,20,.13); }
.entrada-img {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg2);
}
.entrada-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entrada-cuerpo { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.entrada-meta {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.entrada h2 { margin: 0; font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 21px; line-height: 1.3; }
.entrada h2 a { color: var(--ink); text-decoration: none; }
.entrada h2 a:hover { color: var(--accent); }
.entrada-extracto { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.entrada-leer { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--accent); text-decoration: none; }

/* === ARTÍCULO === */
.articulo-meta { margin: 16px 0 0; font-size: 13px; letter-spacing: .04em; }

.articulo-cuerpo {
  background: var(--bg);
  padding: clamp(40px,5vw,72px) clamp(20px,5vw,64px) clamp(64px,9vw,110px);
}
.articulo-cuerpo .inner { max-width: 720px; margin: 0 auto; }

/* Tipografía de texto largo. Es lo único que la web no tenía. */
.prosa { color: var(--ink); font-size: 17px; line-height: 1.85; }
.prosa > * { margin: 0 0 1.25em; }
.prosa > *:last-child { margin-bottom: 0; }
.prosa p { color: var(--muted); }
.prosa h2 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: clamp(23px,2.8vw,30px);
  line-height: 1.25;
  color: var(--ink);
  margin: 1.9em 0 .6em;
}
.prosa h3 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.6em 0 .5em;
}
.prosa a { color: var(--accent); }
.prosa strong { color: var(--ink); }
.prosa ul, .prosa ol { padding-left: 1.4em; color: var(--muted); }
.prosa li { margin-bottom: .5em; }
.prosa blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin-left: 0;
  font-family: 'Cormorant', serif;
  font-size: 21px;
  font-style: italic;
  color: var(--ink);
}
.prosa blockquote p { color: inherit; }
.prosa img { max-width: 100%; height: auto; display: block; }
.prosa figure { margin-left: 0; margin-right: 0; }
.prosa figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.prosa hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prosa code {
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.prosa table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prosa th, .prosa td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prosa th { background: var(--bg2); font-weight: 600; }

/* === PAGINACIÓN === */
.blog-paginacion {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: clamp(40px,5vw,64px);
}
.blog-paginacion .page-numbers {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.blog-paginacion .page-numbers.current,
.blog-paginacion .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbf6ee;
}

/* === SIN RESULTADOS === */
.blog-vacio { text-align: center; color: var(--muted); padding: 40px 0; }
