/*
Theme Name: CHÉNO
Theme URI: https://chenovenezia.it
Author: parolin.dev
Author URI: https://parolin.dev
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: cheno
*/

:root {
    --cheno-icon-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1.2l7 7.6 7-7.6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
    --cheno-icon-vv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M1 1.2l7 7.6 7-7.6M1 6.2l7 7.6 7-7.6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
    --cheno-gutter: 40px;
    --cheno-header-height: 120px;
    --cheno-compact-height: 60px;
    --cheno-ease: cubic-bezier(.2, .7, .2, 1);
    --cheno-space-top: clamp(20px, 3vw, 64px);
    --cheno-space-section: clamp(100px, 9.5vw, 180px);
    --cheno-space-item: clamp(80px, 8.5vw, 180px);
    --cheno-space-end: clamp(64px, 6vw, 120px);
}

@media (max-width: 1024px) {
    :root {
        --cheno-gutter: 20px;
        --cheno-header-height: 112px;
    }
}

html {
    scrollbar-gutter: stable;
}

body {
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--wp--preset--color--laguna);
    color: var(--wp--preset--color--cream);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    max-width: 1480px;
    min-height: 100dvh;
    margin-inline: auto;
}

.wp-site-blocks > main {
    flex: 1;
}

.wp-site-blocks > * + * {
    margin-block-start: 0;
}

a,
.wp-element-button {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 200ms ease;
}

a:has(img) {
    text-decoration: none;
}

.link-underline a:not(:has(img)),
a.link-underline {
    text-decoration: underline;
}

.wp-block-button.is-style-download .wp-element-button,
.wp-block-button.is-style-forward .wp-element-button,
.cheno-forward {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wp-block-button.is-style-download .wp-element-button::after,
.wp-block-button.is-style-forward .wp-element-button::after,
.cheno-forward::after {
    content: "";
    flex: none;
    width: 14px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.wp-block-button.is-style-download .wp-element-button::after {
    -webkit-mask-image: var(--cheno-icon-v);
    mask-image: var(--cheno-icon-v);
    height: 9px;
}

.wp-block-button.is-style-forward .wp-element-button::after,
.cheno-forward::after {
    -webkit-mask-image: var(--cheno-icon-vv);
    mask-image: var(--cheno-icon-vv);
    height: 13px;
}

.cheno-forward:empty {
    gap: 0;
    text-decoration: none;
}

.cheno-forward:empty::after {
    width: 18px;
    height: 17px;
}

.screen-reader-text:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
