/*
Theme Name: Twenty Twenty-Five Child - Light Article (Fixed Presets)
Template: twentytwentyfive
Description: Light, article-centric child theme with fixed font-size preset slugs and heading sizing.
Version: 1.0.1
Text Domain: tt25-light-article-child
*/

/* --- Safety net: ensure big titles even if preset vars fail --- */
.wp-block-post-title, 
h1.entry-title, 
.single .wp-block-post-title, 
h1 {
  font-size: clamp(2rem, 4vw, 2.25rem);
  line-height: 1.2;
}
/* Grid + single width rules from earlier */
.is-article .single-wrap{ width:100vw; }
.is-article .single-inner{ width:98%; margin-inline:auto; }
@media (min-width:1024px){ .is-article .single-inner{ width:80%; } }
.wp-block-post-template.is-layout-grid{
  display:grid !important; gap:1.25rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
  list-style:none; margin:0; padding:0;
}
@media (max-width:1024px){ .wp-block-post-template.is-layout-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width:640px){ .wp-block-post-template.is-layout-grid{ grid-template-columns: repeat(1, minmax(0,1fr)); } }


/* --- Content font-size reset (stop body:large from flattening all sizes) --- */
:root { --tt25-body-size: var(--wp--preset--font-size--base); }

/* Force base size on content containers */
:where(.entry-content, .wp-block-post-content, .wp-site-blocks .wp-block-post-content) {
  font-size: var(--tt25-body-size);
  line-height: 1.7;
}

/* Ensure paragraphs use their intended size */
:where(.entry-content, .wp-block-post-content) p {
  font-size: var(--tt25-body-size);
}

/* Fine-tune metadata, captions, and small text */
:where(.wp-block-post-date, .wp-block-post-terms, figcaption, .wp-block-image figcaption) {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted);
}

/* Query Loop cards: prevent inherited large sizes */
.wp-block-post-template .wp-block-group p,
.wp-block-post-template .wp-block-group .wp-block-post-excerpt {
  font-size: var(--tt25-body-size);
	display:none;
}
.wp-block-post-excerpt{
	display:none;
}
/* Hard override for themes that set body to large */
body { font-size: var(--tt25-body-size); }
section > h2 {
    font-weight: bold;
  font-style: italic;
    
}
