/*
Theme Name: JAPON.COM.VE Editorial Theme
Theme URI: https://japon.com.ve/
Author: José Alejandro Patiño
Author URI: https://japon.com.ve/about
Description: A bespoke, high-performance, minimalist editorial WordPress theme designed for JAPON.COM.VE. Emphasizes Swiss grid design, Japanese Shibumi (effortless precision), and maximum readability. Optimized for Gutenberg editor, Redis caching, and RankMath SEO.
Version: 1.0.0
License: GNU GPLv2 or later
Text Domain: japon-editorial
Tags: clean-layout, custom-menu, featured-images, full-width-template, theme-options, translation-ready

This theme is designed for high-end digital publishing. All utility CSS is loaded via optimized Tailwind enqueuing.
*/

/* Reset & Basic Base Styles for WP Editor Compatibility */
img {
    max-width: 100%;
    height: auto;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Base Editorial Typography for Reader Comfort */
body {
    font-family: 'Inter', sans-serif;
    color: #2c2c2c;
    background-color: #fdf8f8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.entry-content p,
.prose p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2c2c2c;
    margin-bottom: 2rem;
    letter-spacing: -0.005em;
}

/* Content Headings - Designed for Strict Hierarchy and Robust Weight */
h1, .entry-content h1, .prose h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin-top: 3.5rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.025em;
}

h2, .entry-content h2, .prose h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.35rem;
    font-weight: 800; /* Extra bold for clear typographic presence */
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h3, .entry-content h3, .prose h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 700; /* Bold */
    line-height: 1.4;
    color: #2c2c2c;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;
}

h4, .entry-content h4, .prose h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c2c2c;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Custom Selection Highlight in Brand Color */
::selection {
    background: #ba002c;
    color: #ffffff;
}

/* ==========================================
   FUKASAWA-INSPIRED READABILITY TYPOGRAPHY
   ========================================== */

/* Dropcap (Letra Capital) - Elegant Japanese Crimson Dropcap */
.has-drop-cap:not(:focus)::first-letter,
.entry-content p:first-of-type::first-letter {
    float: left;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 5rem;
    line-height: 0.65;
    margin: 0.1em 0.12em 0 0;
    color: #ba002c;
    font-weight: 700;
}

/* High-Impact Lead Paragraph (Texto de Impacto) */
.entry-content p.lead,
.prose p.lead {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 1.35rem;
    line-height: 1.8;
    color: #1a1a1a;
    font-style: italic;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

/* Blockquotes (Citas Clásicas Fukasawa - Perfeccionadas Estilo Screenshot) */
blockquote,
.entry-content blockquote {
    border-left: none;
    padding: 1.5rem 5rem 1.5rem 0;
    margin: 3rem 0;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #4a4a4a;
    position: relative;
    display: block;
}

blockquote::after,
.entry-content blockquote::after {
    content: "”";
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 8rem;
    color: #00a8cc; /* Precioso Turquesa / Cyan */
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    line-height: 1;
    font-weight: bold;
    user-select: none;
    opacity: 0.9;
}

blockquote p,
.entry-content blockquote p {
    margin: 0;
    line-height: 1.8;
}

blockquote cite,
.entry-content blockquote cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #747878;
    margin-top: 12px;
}

/* Pullquotes (Citas de Impacto Centradas) */
.pullquote,
.entry-content .wp-block-pullquote {
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 2.5rem 1rem;
    margin: 3.5rem 0;
    text-align: center;
}

.pullquote blockquote,
.entry-content .wp-block-pullquote blockquote {
    border-left: none;
    padding-left: 0;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.5;
    color: #ba002c; /* Highlighted in brand crimson */
    font-family: 'EB Garamond', 'Georgia', serif;
    font-weight: 500;
}

.pullquote cite,
.entry-content .wp-block-pullquote cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #747878;
    margin-top: 1.5rem;
}

/* Beautiful Text Highlight */
.highlight-text {
    background: linear-gradient(180deg, rgba(255,255,255,0) 65%, rgba(186,0,44,0.08) 65%);
    font-weight: 500;
    color: #1a1a1a;
}
