/*
Theme Name: Alquimia
Theme URI: https://alquimiainc.com
Description: Child theme of Kadence for Alquimia Inc. Holds site-specific CSS and the measurement snippets, so a Kadence update never overwrites them.
Author: PWL Studio
Author URI: https://pwlstudio.com
Template: kadence
Version: 1.0.4
Text Domain: alquimia
*/

/* Site-specific overrides live here. Keep this file small and intentional. */


/* ---------------------------------------------------------------------------
   /work/ (page 160) - one frame for every photograph.
   The library mixes 4:3 landscape (1024x768) and portrait (576x1024) originals.
   Left at their natural height in a three-column row, a portrait plate runs about
   2.4x the height of its neighbours and tears a hole in the grid. 4:3 is the
   majority ratio, so the landscape plates crop by nothing and only the portrait
   outlier is trimmed. Added 5 December 2026.
--------------------------------------------------------------------------- */
.page-id-160 .elementor-widget-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
	background-color: #F2F2F2;
}

/* ---------------------------------------------------------------------------
   THE SPEC - type scale. Added 5 December 2026.
   The SPEC index and the articles are rendered by Kadence, not Elementor, so
   they never received the display scale the built pages use. They inherited a
   64px h1 and a 40px h2 - sizes drawn for a 1200px Elementor column - over a
   730px reading measure. The column was never the problem; the headings were.
   Card titles at 40px turned an 80-character SEO title into a nine-line tower.
--------------------------------------------------------------------------- */

/* Index and archive cards read as cards. */
body.blog .entry-title,
body.archive .entry-title,
body.search .entry-title {
	font-size: 23px;
	line-height: 1.26;
	letter-spacing: -0.005em;
}

/* An article is set for reading: about 39em of measure, headings in proportion. */
body.single-post .content-container.site-container { max-width: 820px; }

body.single-post .entry-title,
body.single-post h1.entry-title {
	font-size: 46px;
	line-height: 1.14;
}

body.single-post .entry-content h2 {
	font-size: 28px;
	line-height: 1.25;
	margin-top: 2.1em;
}

body.single-post .entry-content h3 {
	font-size: 21px;
	line-height: 1.3;
}

body.single-post .entry-content p,
body.single-post .entry-content li {
	font-size: 18px;
	line-height: 1.72;
}

@media (max-width: 767px) {
	body.single-post .entry-title,
	body.single-post h1.entry-title { font-size: 33px; }
	body.single-post .entry-content h2 { font-size: 24px; }
	body.blog .entry-title,
	body.archive .entry-title { font-size: 21px; }
}

/* ---------------------------------------------------------------------------
   THE SPEC - hero band. Added 5 December 2026.
   The built pages all open on a #F2F2F2 band: eyebrow, H1, lede. The SPEC index
   had the band but no eyebrow, and a single article had no band at all - its
   title sat on white inside the article card. That is why the section read as a
   different site. Kadence does have a post_title_layout "above" hero, but its
   Customizer save is rejected here, so the band is built in CSS: a full-bleed
   header whose text still lines up with the 820px reading container.
--------------------------------------------------------------------------- */
/* THE SPEC - hero band, to match the built pages. */
body.single-post .entry-header.post-title{
	background:#F2F2F2;
	margin-left:calc(50% - 50vw);
	margin-right:calc(50% - 50vw);
	padding:74px max(24px, calc(50vw - 410px)) 62px;
	margin-bottom:54px;
}
body.single-post .entry-header.post-title .entry-taxonomies{
	display:block;margin:0 0 18px;font-family:"Lato",sans-serif;font-size:11px;font-weight:700;
	letter-spacing:.2em;text-transform:uppercase;color:#A0592D;
}
body.single-post .entry-header.post-title .entry-taxonomies a{color:#A0592D;text-decoration:none}
body.single-post .entry-header.post-title .entry-meta{
	margin-top:22px;font-family:"Lato",sans-serif;font-size:12px;letter-spacing:.09em;
	text-transform:uppercase;color:#6B6460;
}
body.blog .post-archive-hero-section .entry-hero-container-inner{padding:96px 0 90px}
body.blog .page-title.archive-title{font-size:72px;line-height:1.06}
body.blog .post-archive-hero-section .entry-header::before{
	content:"Writing";display:block;margin:0 0 20px;font-family:"Lato",sans-serif;font-size:11px;
	font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#A0592D;
}
@media(max-width:767px){
body.single-post .entry-header.post-title{padding:48px 24px 40px;margin-bottom:34px}
body.blog .post-archive-hero-section .entry-hero-container-inner{padding:58px 0 54px}
body.blog .page-title.archive-title{font-size:40px}
}

/* The index hero aligns to the card grid, like every built page.
   Kadence centres it with a flex column, so text-align alone will not move it. */
body.blog .post-archive-hero-section .entry-header{
	align-items:flex-start;justify-content:flex-start;text-align:left;
}
body.blog .post-archive-hero-section .page-title.archive-title{text-align:left}
body.blog .post-archive-hero-section .hero-container{padding-left:56px;padding-right:56px}
@media(max-width:767px){
	body.blog .post-archive-hero-section .hero-container{padding-left:24px;padding-right:24px}
}
