:root {
    /* Colors */
    --color-100: #fff8ed;
    --color-200: #f5e7d1;
    --color-300: #d3b196;
    --color-400: #887e7e;
    --color-500: #8c6e63;
    --color-600: #3b2f2f;

    /* Brand Colors */
    --brand-500: #13746d;
    --brand-600: #0e5a54;

    /* Font Family */
    --ffamily-1: 'Butler', serif;
    --ffamily-2: 'Montserrat', sans-serif;

    /* Font sizes */
    --fsize-1: clamp(2.5rem, 2.5vw, 4rem);
    --fsize-2: clamp(2rem, 2.5vw, 3rem);
    --fsize-3: clamp(1rem, 2.5vw, 1.3rem);
    --fsize-4: 1rem;

    /* Rounds */
    --round-md: 20px;
    --round-xl: 100px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 6rem;
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* === Body === */

body {
    font-family: var(--ffamily-2);
    font-size: 100%;
    line-height: 1.3;
    color: var(--color-500);
    background-color: var(--color-200);
    overflow-x: hidden;
}

/* === Tipografia === */

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: 0.6px;
    color: var(--color-600);
}

h1, h2 {
    font-family: var(--ffamily-1);
}

h1 {font-size: var(--fsize-1);}
h2 {font-size: var(--fsize-2);}
h3 {font-size: var(--fsize-3); font-weight: 500;}

h2::before {
    content: '# ';
    color: var(--brand-500);
}

p {
    font-size: var(--fsize-3);
    line-height: 1.5;
    letter-spacing: 0.6px;
    color: var(--color-400);
}

a {
    font-size: var(--fsize-3);
    text-decoration: none;
    color: var(--brand-500);
    transition: 0.3s ease;
}

/* === Hero Section === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
    width: 85%;
    max-width: 1280px;
}

.hero-header p + ul {
    margin-top: var(--space-lg);
}

.hero-header p::after {
    content: ' |';
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* === Social Links === */

.social {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.social a {
    font-weight: 400;
    font-size: var(--fsize-4);
}

.social a::before {
    content: "» ";
}

.social a:hover {
    color: var(--color-600);
    text-decoration: underline;
}

/* Hero Image */
.photo {
    flex: 1;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

/* === Navigation === */

.navigation {
    display: flex;
    order: 3;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md);
}

.navigation a {
    color: var(--color-400);
}

.navigation a:hover {
    transform: translateX(var(--space-xs));
    color: var(--brand-500);
}

/* === About Style === */

.container {
    padding: var(--space-xxl) 0;
}

.container > header > h2  {
    margin-bottom: var(--space-lg);
}

.about {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    row-gap: var(--space-md);
    width: 85%;
    max-width: 90ch;
}

/* Skills Style */

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-grid {
    width: 85%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: var(--space-md);
}

.skill-box {
    display: flex;
    flex-direction: column;
    row-gap: var(--space-md);
    font-size: var(--fsize-3);
    padding: var(--space-lg) var(--space-lg);
    border: solid var(--color-400) 2px;
    border-radius: var(--round-md);
    width: 100%;
}

.skill-box:hover {
    cursor: pointer;
}

.skill-box img {
    width: 48px;
    height: 48px;
}

.skill-box h3 + p {
    font-size: var(--fsize-4);
    margin-top: var(--space-sm);
}

/* Contact Style */

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: var(--space-lg);
    height: auto;
    min-height: calc(100vh - 100px);
}

.contact-header, .contact-content {
    width: 85%;
    max-width: 90ch;
}

.contact-header h2::before {
    content: '';
}

.contact-content {
    display: flex;
    flex-direction: column;
    row-gap: var(--space-xxl);
}

.send-mail {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    list-style: none;
    column-gap: 20px;
}

.btn {
    display: inline-block;
    white-space: nowrap;
    padding: var(--space-md) calc(var(--space-md)*2);
    border-radius: var(--round-xl);
    background-color: var(--brand-500);
    font-weight: 500;
    font-size: calc(var(--fsize-4));
    color: var(--color-100);
}

.btn:hover {
    background-color: var(--brand-600);
}

.send-mail li:nth-child(2) .btn {
    background: none;
    color: var(--color-500);
}

.send-mail li:nth-child(2) .btn:hover {
    color: var(--brand-500);
}

/* Footer Style */

.footer {
    width: 100vw;
    text-align: center;
    padding: 50px 0;
}

.footer p {
    font-size: clamp(0.8rem, 2vw, var(--fsize-4));
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }

    .navigation {
        order: 1;
        flex-direction: row;
        width: 100%;
    }

    .photo {
        order: 2;
    }

    .hero-header {
        order: 3;
        text-align: center;
    }

    .hero-header p {
        margin: 0 auto 2rem;
    }

    .social {
        justify-content: center;
    }

    .send-mail {
        justify-content: center;
    }
}