/*
Theme Name: claudiadunkel.net
Theme URI: https://gittr.ch/manuel/claudiadunkel-net
Author: Manuel Friedli
Author URI: https://www.fritteli.ch/
Description: The Theme for the claudiadunkel.net website.
Requires at least: 6.0
Tested up to: 6.6.2
Requires PHP: 7.0
Version: 0.1.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: claudiadunkel-net
Tags: portfolio, one-column, block-styles, custom-background, custom-colors, custom-logo, editor-style, featured-images, full-site-editing, full-width-template, template-editing

claudiadunkel.net WordPress Theme, (C) 2022-2024 Manuel Friedli
claudiadunkel.net is distributed under the terms of the GNU GPL.
*/

html {
    hyphens: auto;
    scroll-behavior: smooth;
    font-size: 120%;
}

h1, h2, h3, h4, h5, h6 {
    hyphens: none;
}

header {
    border-bottom: 1px solid var(--wp--preset--color--mauve);
    z-index: 1000;
}

#bump {
    position: absolute;
    transform: translate(-50%, 0);
    pointer-events: none;
    left: 50%;
    margin-block-start: 0;
}

.wp-site-blocks > header:nth-of-type(1) {
    margin-block-end: -2rem;
}

footer .wp-block-navigation__container {
    flex-direction: column;
}

a:not(.plain-link),
.wp-block-details summary {
    background-image: linear-gradient(var(--wp--preset--color--rose), var(--wp--preset--color--rose)), linear-gradient(var(--wp--preset--color--brown-2), var(--wp--preset--color--brown-2));
    background-size: 0 0, 100% 0.1em;
    background-position-x: 0;
    background-position-y: 100%;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: background-size 300ms ease, font-weight 300ms ease, color 300ms ease;
}

.wp-block-details summary {
    display: inline list-item;
}

nav a:not(.plain-link) {
    font-weight: 700;
    background-size: 0 0, 38% 0.1em;
}

a:not(.plain-link):hover,
a:not(.plain-link):focus,
a:not(.plain-link):active,
.wp-block-details summary:hover,
a[aria-current=page] {
    background-size: 38% 19%, 100% 0.1em;
    font-weight: 700;
    color: var(--wp--preset--color--mauve);
}

.plain-link a {
    background-image: inherit;
    background-size: inherit;
    background-position-x: inherit;
    background-position-y: inherit;
    background-repeat: inherit;
    transition: inherit;
}

.plain-link a:hover,
.plain-link a:focus,
.plain-link a:active {
    background-size: inherit;
}

.sticky-top {
    position: sticky;
    top: 0;
}

.admin-bar .sticky-top {
    top: 32px;
}

.admin-bar .sticky-top + * {
    padding-top: 32px;
}

.scoll-offset-header-top {
    scroll-margin-top: 200px;
}

@media screen and (max-width: 782px) {
    .sticky-top {
        position: inherit;
    }

    .scoll-offset-header-top {
        scroll-margin-top: 50px;
    }

    #wpadminbar {
        position: relative;
    }

    .admin-bar .sticky-top {
        top: 0;
    }

    .admin-bar .sticky-top + * {
        padding-top: 0;
    }
}

.has-modal-open #wpadminbar {
    display: none;
}

strong {
    font-weight: bold;
}
