/*
Theme Name:   Blocksy Child
Theme URI:    https://agendaoccidente.es/
Description:  Tema hijo de Blocksy para Agenda Occidente
Author:       Agenda Occidente
Template:     blocksy
Version:      1.0.0
Text Domain:  blocksy-child
*/

/* ==========================================================================
   Variables tipográficas
   (las @font-face están en assets/css/fonts.css)
   ========================================================================== */
:root {
  --ao-font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ao-font-sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Sobrescribe las variables tipográficas de Blocksy */
  --theme-font-family:          var(--ao-font-sans);
  --theme-heading-font-family:  var(--ao-font-serif);
}

/* ==========================================================================
   Base: texto general y párrafos → IBM Plex Sans
   ========================================================================== */
body,
button,
input,
select,
textarea,
p,
li,
blockquote cite,
figcaption,
.entry-content,
.ct-widget,
.ct-footer,
.menu a,
.ct-menu-link,
.entry-meta,
.ct-button {
  font-family: var(--ao-font-sans);
}

body {
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  font-weight: 400;
  line-height: 1.7;
}

strong, b { font-weight: 600; }

/* ==========================================================================
   Títulos → Newsreader
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.ct-post-title,
.ct-widget-title,
.widget-title,
.wp-block-heading,
.wp-block-post-title,
.site-title {
  font-family: var(--ao-font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

h1, .entry-title, .page-title { font-weight: 700; }

/* Cursivas con Newsreader Italic real (no sintética) */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
blockquote,
.wp-block-quote,
.wp-block-pullquote {
  font-family: var(--ao-font-serif);
  font-style: italic;
}

em, i { font-style: italic; }

/* ==========================================================================
   Elementos editoriales
   ========================================================================== */
blockquote,
.wp-block-quote {
  font-size: 1.25em;
  line-height: 1.5;
  font-weight: 400;
}

.entry-meta,
.ct-meta-element,
figcaption,
.wp-element-caption {
  font-family: var(--ao-font-sans);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Subtítulos / extractos en serif (opcional) */
.entry-excerpt,
.ct-entry-excerpt {
  font-family: var(--ao-font-serif);
  font-size: 1.125em;
  line-height: 1.6;
}

/* Menús y botones en Plex Sans con algo más de peso */
.ct-menu-link,
.menu a,
.ct-button,
.wp-block-button__link,
button,
input[type="submit"] {
  font-family: var(--ao-font-sans);
  font-weight: 500;
}