@font-face {
    font-family: 'Mona Sans';
    src: url('/fonts/MonaSansSemiExpanded-SemiBold.woff2') format('woff2'),
        url('/fonts/MonaSansSemiExpanded-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('/fonts/MonaSans-Regular.woff2') format('woff2'),
        url('/fonts/MonaSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/fonts/Merriweather-Bold.woff2') format('woff2'),
        url('/fonts/Merriweather-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/fonts/Merriweather-BoldItalic.woff2') format('woff2'),
        url('/fonts/Merriweather-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/fonts/Merriweather-Light.woff2') format('woff2'),
        url('/fonts/Merriweather-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/fonts/Merriweather-LightItalic.woff2') format('woff2'),
        url('/fonts/Merriweather-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

:root {
    --hdFont: 'Mona Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --txtFont: 'Merriweather', serif;
    --baseFontSize: 18px;
    --bgColor: #f8f8f4;
    --mainColor: rgb(34, 34, 34);
    --subtleColor: #bababa;
    --subtleBackground: #dadada;
    --highlightColor: hsl(39, 100%, 50%);
    --happyBackground: rgb(230, 255, 225);
}

html {
    box-sizing: border-box;
    font-family: var(--txtFont);
    font-size: var(--baseFontSize);
    font-weight: 300;
    line-height: 1.75;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a,
a:visited {
    color: var(--mainColor);
}

p {
    margin: 0 0 1.35em;
    padding: 0;
}

.underline {
    text-decoration: underline;
}

.nowrapme {
    white-space: nowrap;
}

body {
    max-width: 46em;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
    line-height: var(--baseLineHeight);
    background-color: var(--bgColor);
    color: var(--mainColor);
}

h1,
h2,
h3,
h4 {
    text-align: left;
    font-family: var(--hdFont);
    font-weight: 600;
    margin: 1em 0;
    padding: 0;
    line-height: 1.15;
}

h1 {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    font-size: 3rem;
    letter-spacing: -0.1rem;
    text-align: center;
}

h2 {
    /* margin-top: 2.5em; */
    text-align: left;

    &.lev1 {
        font-size: 2.2rem;
        margin-top: 2.2rem;
        margin-bottom: 1rem;
    }
}

h3 {
    margin-top: 2em;
    margin-bottom: 2em;
}

li {
    margin-bottom: 0.2em;
}

code {
    font-size: 0.9rem;
    background-color: var(--subtleBackground);
    padding: 0.1rem 0.25rem;
    border-radius: 0.25rem;
}

.centro {
    text-align: center;
}

details {
    border: 1px solid #ccc;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    margin-bottom: 1em;
    background: #f9f9f9;
    transition: all 0.3s ease;

    summary {
        font-weight: bold;
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 0.5em;
    }

    summary::marker {
        display: none;
    }

    summary::before {
        content: "▶";
        transition: transform 0.2s ease;
    }

    &[open] summary::before {
        transform: rotate(90deg);
    }

    &[open] {
        background: #eef;
    }

    &>*:not(summary) {
        margin-top: 0.5em;
    }

    &>*:last-child {
        margin-bottom: 0;
    }
}

.byundef {
    text-align: center;
    font-family: var(--hdFont);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--subtleColor);

    a {
        color: var(--subtleColor);

        &:hover {
            color: var(--mainColor);
        }
    }
}

.hdr {
    font-weight: bold;
    font-family: var(--hdFont);
    font-weight: 600;
    font-size: 1.02rem;
    text-transform: uppercase;
    text-decoration: underline;
}

nav {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--hdFont);
    font-size: 0.9rem;
    color: var(--subtleColor);
    display: flex;
    justify-content: flex-start;
    max-width: 100%;
    /* gap: 1rem; */
    flex-wrap: wrap;

    a {
        color: var(--subtleColor);
        text-decoration: none;
        margin: 0.25rem 1rem 0.25rem 0;

        &:hover {
            color: var(--mainColor);
        }

        &::last-child {
            margin-right: 0;
        }
    }

    .undefuned {
        font-weight: 600;
    }

    .menu-lang-switch {
        white-space: nowrap;
        /* align-self: flex-end; */
        margin-left: auto;
        margin-right: 0;
    }
}

.profile-pic {
    margin: 0 auto 1rem auto;
    /* margin-left: 1rem; */
    width: auto;
    max-width: 100%;
    /* max-width: 270px; */
    height: auto;
    /* margin-bottom: 1.5rem; */
    /* float: right; */
}

@media (min-width: 600px) {
    .profile-pic {
        margin: 0 0 0 1rem;
        /* margin-left: 1rem; */
        width: 100%;
        max-width: 270px;
        height: auto;
        margin-bottom: 1.5rem;
        float: right;
    }
}

.highlight {
    font-weight: bold;
    font-style: italic;
}

.controlled-wrap {
    display: inline-block;
    white-space: normal;
}

.headspace {
    margin-top: 3.5rem;
}

.nobr {
    white-space: nowrap;
}

.lang-switch {
    text-align: right;
    margin-top: -1rem;

    a {
        text-decoration: none;
    }
}

.final-question {
    margin-top: 2.5rem;
}

hr {
    margin: 2rem 0;
    border: 1px solid var(--subtleColor);


    &.invisible {
        border: none;
        /* height: 2rem; */
        background-color: transparent;
    }
}

.working-on-now {
    margin: 2rem -1rem;
    padding: 1rem;
    background-color: var(--happyBackground);
    border-radius: 0.5rem;

    h3 {
        margin-top: 0;
    }

    ul {
        margin-bottom: 0;
    }
}

button {
    font-family: var(--hdFont);
    background-color: hsl(39, 100%, 50%);
    color: white;
    border: none;
    padding: 0.5rem 1rem 0.6rem;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0.5rem;
}

.cta {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
}

.cta p {
    margin-bottom: 0.75rem;
}

.cta button#lets-talk,
.cta button.lets-talk {
    background-color: var(--highlightColor);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-family: var(--hdFont);
    font-size: 1rem;
    cursor: pointer;
}

.cta button#lets-talk:hover,
.cta button.lets-talk:hover {
    background-color: hsl(39, 100%, 45%);
}

dialog {
    padding: 0 0.5rem;
    border: 0;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.95);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

dialog .inner {
    padding: 2rem 1rem 0 1rem;
}

.inner h3 {
    margin-top: 0;
}

#openp,
#openm {
    text-decoration: none;
    background-color: hsl(39, 100%, 80%);
    padding: 0.1rem 0.5rem 0.2rem;
    border: 1px solid var(--highlightColor);
}

dialog form {
    text-align: left;
}

dialog button.close {
    background-color: transparent;
    font-size: 0.8rem;
    border: none;
    color: var(--subtleColor);
    margin: 0;
    padding: 0;
}

dt h3 {
    margin-bottom: 0.5rem;
}

dd {
    margin: 0;
    text-align: center;
}

button#link-talk {
    font: inherit;
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    /* font-family: var(--hdFont);
    font-size: 1rem; */
    cursor: pointer;
    text-decoration: underline;
}

nav.footer-nav {
    text-align: center;
    margin-top: 3rem;
    color: gray;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: var(--hdFont);
    font-weight: 600;

    & a {
        color: gray;
        text-decoration: none;
    }
}

.legal,
.legal a {
    color: var(--subtleColor);
    font-size: 0.7rem;
}

footer {
    text-align: center;
    padding: 1rem 0;
    padding-top: 3rem;
}