/*
Theme Name: Matteo Imperi Landing
Theme URI: https://matteoimperi.com
Author: OrangeSheep
Author URI: https://orangesheep.ai
Description: Personal-brand landing page for Matteo Imperi, visually aligned with OrangeSheep.
Version: 1.1.2
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.3
Text Domain: matteoimperi-landing
*/

:root {
    --mi-orange: #df6d01;
    --mi-orange-dark: #b95700;
    --mi-ink: #171719;
    --mi-muted: #626269;
    --mi-background: #f7f7f5;
    --mi-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    font-family: var(--mi-font);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--mi-ink);
    background:
        radial-gradient(circle at 70% 20%, rgba(223, 109, 1, 0.11) 0, transparent 36rem),
        var(--mi-background);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    border-radius: 0.4rem;
    background: var(--mi-ink);
    color: #fff;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

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

.hero {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: clamp(2rem, 5vh, 4rem) 1.5rem;
}

.hero__content {
    width: min(100%, 920px);
    text-align: center;
    animation: mi-content-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__logo-frame {
    display: flex;
    width: min(260px, 64vw);
    height: min(180px, 44vw);
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto 0.35rem;
    overflow: hidden;
}

.hero__logo {
    display: block;
    width: 100%;
    height: auto;
    transform: translateY(-25%);
}

.hero__name {
    margin: 0 0 2rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.hero__eyebrow {
    margin: 0 0 1.15rem;
    color: var(--mi-orange-dark);
    font-size: 0.78rem;
    font-weight: 780;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 7.8vw, 6.6rem);
    font-weight: 780;
    letter-spacing: -0.066em;
    line-height: 0.93;
}

h1 span {
    display: block;
}

h1 span:last-child {
    font-size: 0.78em;
    line-height: 1.04;
}

.hero-title__separator {
    width: 15%;
    height: 5px;
    margin: 0.22em auto 0.28em;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--mi-orange);
}

.hero__description {
    max-width: 720px;
    margin: 2rem auto 0;
    color: var(--mi-muted);
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.35rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 720;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button--primary {
    background: var(--mi-orange);
    box-shadow: 0 12px 30px rgba(223, 109, 1, 0.24);
    color: #fff;
}

.button--primary:hover {
    background: var(--mi-orange-dark);
    transform: translateY(-2px);
}

.hero__company {
    color: var(--mi-muted);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: 0.2em;
    transition: color 160ms ease;
}

.hero__company:hover {
    color: var(--mi-orange-dark);
}

.hero__status {
    margin: 1.1rem 0 0;
    color: var(--mi-muted);
    font-size: 0.82rem;
}

:is(a, button):focus-visible {
    outline: 3px solid rgba(223, 109, 1, 0.42);
    outline-offset: 4px;
}

@keyframes mi-content-in {
    from {
        opacity: 0;
        transform: translate3d(0, 1rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 46rem) {
    .hero {
        padding-block: 1.75rem 2.75rem;
    }

    .hero__logo-frame {
        width: min(220px, 68vw);
        height: min(150px, 46vw);
    }

    .hero__name {
        margin-bottom: 1.65rem;
    }

    h1 {
        font-size: clamp(2.85rem, 13vw, 4.75rem);
    }

    h1 span:last-child {
        font-size: 0.72em;
        line-height: 1.08;
    }

    .hero-title__separator {
        margin-block: 0.28em 0.34em;
    }

    .hero__description {
        margin-top: 1.55rem;
        font-size: 1.04rem;
    }

    .hero__actions {
        margin-top: 1.9rem;
    }
}

@media (max-width: 32rem) {
    .hero__eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.095em;
    }

    .hero__actions {
        flex-direction: column;
        gap: 1rem;
    }

    .button {
        width: min(100%, 18rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
