<?php
Kirki::add_section( 'book_author_blog_typography_settings', array(
    'title'          => esc_html__( 'Typography Settings', 'book-author-blog' ),
    'description'    => esc_html__( 'Customize the typography of your website.', 'book-author-blog' ),
    'panel'          => 'book_author_blog_global_panel',
) );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'body_typography',
	'label'       => esc_html__( 'Body Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '400',
		'font-size'      => '1rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'body',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h1_typography',
	'label'       => esc_html__( 'H1 Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '2.5rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h1',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h2_typography',
	'label'       => esc_html__( 'H2 Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '2rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h2',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h3_typography',
	'label'       => esc_html__( 'H3 Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '1.75rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h3',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h4_typography',
	'label'       => esc_html__( 'H4 Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '1.5rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h4',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h5_typography',
	'label'       => esc_html__( 'H5 Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '1.25rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h5',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h6_typography',
	'label'       => esc_html__( 'H6 Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '1rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h6',
		],
	],
] );

Kirki::add_field( 'book_author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'widgets_title_typography',
	'label'       => esc_html__( 'Widget Title Typography', 'book-author-blog' ),
	'section'     => 'book_author_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Roboto',
		'variant'        => '700',
		'font-size'      => '1.6rem',
		'line-height'    => '1.6',
		'color'          => '#000000',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'aside.widget-area  .widget .widget-title, aside.widget-area .widget .widgettitle, aside.widget-area .widget.widget_block .wp-block-group__inner-container>h2',
		],
	],
] );