/*
Theme Name: Simplenet
Theme URI: https://github.com/andreik6v/simplenet
Author: Andrei Chira
Author URI: https://kiravo.net/
Description: A clean, blank base to serve as a starting point to build websites.
Tested up to: 6.8
Requires PHP: 7.0
Version: 1.6
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-top: var(--wp--preset--spacing--50);
}

/* 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);
  }

  /* Fields */

  label {
	color: var(--wp--preset--color--theme-6);
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: calc( var(--wp--preset--spacing--5) * 0.5);
  }

  textarea,
  input:not([type=submit]):not([type=checkbox]) {
	background-color: color-mix(in srgb, var(--wp--preset--color--theme-1) 98%, var(--wp--preset--color--theme-6) 2%);
	border-color: var(--wp--preset--color--theme-4);
	border-radius: var(--wp--preset--spacing--5);
	border-style: solid;
	border-width: 1px;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--wp--preset--color--theme-6);
	font-size: var(--wp--preset--font-size--small);
	font-family: inherit;
	line-height: 1.5;
	min-height: 40px;
	padding: 8px 12px;
	width: 100%;
  }

  input::placeholder {
	color: var(--wp--preset--color--theme-5);
  }

  input[type=submit] {
	width: 100%;
  }

  textarea:focus-visible,
  input:not([type=submit]):focus-visible {
	outline: 2px solid var(--wp--preset--color--theme-3);
	outline-offset: 2px;
  }

  /* Dark mode toggle block */

  .wp-block-tabor-dark-mode-toggle__track:not(.has-background) {
	background: var(--wp--preset--color--theme-3);
  }

  .wp-block-tabor-dark-mode-toggle__track:not(.has-background):hover {
	background-color: var(--wp--preset--color--theme-4);
	color: var(--wp--preset--color--theme-6);
  }
