/*
Theme Name: No Fuss
Theme URI: https://software.digthatgroove.se/software/no-fuss
Author: Dig That Groove AB
Author URI: https://digthatgroove.se/
Description: A guided block theme foundation for small-business websites.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: no-fuss
Tags: block-patterns, full-site-editing, accessibility-ready, e-commerce
*/

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

.wp-site-blocks {
    min-height: 100vh;
}

a {
    text-underline-offset: 0.18em;
}

:focus-visible {
    outline: 3px solid var(--wp--preset--color--brand);
    outline-offset: 3px;
}

.no-fuss-skip-link {
    position: fixed;
    z-index: 100000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    transform: translateY(-180%);
    border-radius: 0.5rem;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--paper);
}

.no-fuss-skip-link:focus {
    transform: translateY(0);
}

.wp-block-post-template.is-layout-grid {
    align-items: stretch;
}

.wp-block-post-template.is-layout-grid > li {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 1.25rem;
}

.wp-block-post-featured-image img,
.woocommerce-product-gallery img,
.wc-block-grid__product-image img {
    border-radius: 1rem;
}

input:not([type='hidden']):not([type='checkbox']):not([type='radio']),
select,
textarea {
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    border-radius: 0.65rem;
    background: #fff;
    color: #211d1a;
    font: inherit;
}

button,
input[type='button'],
input[type='submit'],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--paper);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.no-fuss-contact-form input:not([type='hidden']),
.no-fuss-contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    border-radius: 0.75rem;
    background: #fff;
    color: #211d1a;
    font: inherit;
}

.no-fuss-contact-form button {
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: #211d1a;
    color: #fff8ee;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 1rem;
    background: var(--wp--preset--color--paper);
}
