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

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'body_typography',
	'label'       => esc_html__( 'Body Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Nunito',
		'variant'        => '300',
		'font-size'      => '1rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'body',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h1_typography',
	'label'       => esc_html__( 'H1 Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '2.5rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h1',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h2_typography',
	'label'       => esc_html__( 'H2 Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '2rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h2',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h3_typography',
	'label'       => esc_html__( 'H3 Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.75rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h3',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h4_typography',
	'label'       => esc_html__( 'H4 Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.5rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h4',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h5_typography',
	'label'       => esc_html__( 'H5 Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.25rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h5',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h6_typography',
	'label'       => esc_html__( 'H6 Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h6',
		],
	],
] );

Kirki::add_field( 'author_blog_config', [
	'type'        => 'typography',
	'settings'    => 'widgets_title_typography',
	'label'       => esc_html__( 'Widget Title Typography', 'author-blog' ),
	'section'     => 'author_blog_typography_section',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.6rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#000000',
		'text-transform' => 'none',
	],
	'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',
		],
	],
] );