/*
Theme Name: Simplenet
Theme URI: https://github.com/andreik6v/simplenet
Author: Andrei Chira
Author URI: https://simplenet.io/
Description: A clean, blank base to serve as a starting point to build websites.
Tested up to: 6.7.1
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simplenet
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog, portfolio
*/

html {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding: var(--wp--preset--spacing--40);
}

/* Dark styles */

.theme-dark body {
    --wp--preset--color--theme-1: var(
        --wp--preset--color--custom-theme-1-dark,
        var(--wp--custom--color--theme-1-dark)
    );
    --wp--preset--color--theme-2: var(
        --wp--preset--color--custom-theme-2-dark,
        var(--wp--custom--color--theme-2-dark)
    );
    --wp--preset--color--theme-3: var(
        --wp--preset--color--custom-theme-3-dark,
        var(--wp--custom--color--theme-3-dark)
    );
    --wp--preset--color--theme-4: var(
        --wp--preset--color--custom-theme-4-dark,
        var(--wp--custom--color--theme-4-dark)
    );
    --wp--preset--color--theme-5: var(
        --wp--preset--color--custom-theme-5-dark,
        var(--wp--custom--color--theme-5-dark)
    );
    --wp--preset--color--theme-6: var(
        --wp--preset--color--custom-theme-6-dark,
        var(--wp--custom--color--theme-6-dark)
    );
    --wp--preset--color--accent-1: var(
        --wp--preset--color--custom-accent-1-dark,
        var(--wp--custom--color--accent-1-dark)
    );
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.wp-block-post-content > p + h2,
.wp-block-post-content > p + h3,
.wp-block-post-content > p + h4,
.wp-block-post-content > p + h5,
.wp-block-post-content > p + h6,
.wp-block-post-content > ul + h2,
.wp-block-post-content > ul + h3,
.wp-block-post-content > ul + h4,
.wp-block-post-content > ul + h5,
.wp-block-post-content > ul + h6,
.wp-block-post-content > ol + h2,
.wp-block-post-content > ol + h3,
.wp-block-post-content > ol + h4,
.wp-block-post-content > ol + h5,
.wp-block-post-content > ol + h6 {
    /* Add spacing above headings, so anchor links are not against the viewport. */
    padding-top: var(--wp--preset--spacing--20);
}

.wp-block-post-content > figure + h2,
.wp-block-post-content > figure + h3 {
    /* Add less spacing when applied after figures, to emulate the same visual spacing. */
    padding-top: var(--wp--preset--spacing--20);
}

strong {
    font-weight: 600;
}

/* Logo on Dark Mode
--------------------------------------------- */

.theme-dark .wp-block-site-logo img {
    filter: invert(0.3);
  }
