
/* =========================================================
   LM IMPIANTI — GLOBAL DESIGN SYSTEM
   ========================================================= */

/* 01 — FONT GLOBALI */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:wght@400;500;600;700&display=swap');


/* =========================================================
   02 — DESIGN TOKENS
   ========================================================= */

:root {
    --bg: #f1f0eb;
    --surface: #f7f6f1;
    --text: #17191a;
    --muted: #6e7477;
    --blue: #3389b5;
    --line: rgba(23,25,26,.12);
    --white: #fff;
    --dark: #101516;

    /* Typography */
    --font: "Instrument Sans", sans-serif;
    --display: "IBM Plex Mono", monospace;

    --lm-font-body: var(--font);
    --lm-font-heading: var(--display);
    --lm-font-mono: var(--display);

    /* Layout */
    --container: 1440px;
    --side: clamp(20px,4vw,64px);

    /* Motion */
    --ease: cubic-bezier(.22,1,.36,1);
}


/* =========================================================
   03 — GLOBAL RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   04 — GLOBAL TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--lm-font-heading);
}


/* =========================================================
   05 — GLOBAL LAYOUT
   ========================================================= */

.lm-container {
    width: min(var(--container),100%);
    margin-inline: auto;
    padding-inline: var(--side);
}

.section-space {
    padding-block: clamp(90px,10vw,160px);
}


/* =========================================================
   06 — TYPOGRAPHIC COMPONENTS
   ========================================================= */

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.section-title {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(48px,5.7vw,90px);
    font-weight: 500;
    line-height: .93;
    letter-spacing: -.06em;
}


/* =========================================================
   07 — INTERNAL PAGE HERO
   ========================================================= */

.internal-hero {
    padding: clamp(145px,15vw,225px) 0
             clamp(75px,9vw,125px);
}

.internal-hero h1,
.internal-page h1,
.error-page h1 {
    max-width: 1050px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(55px,7.5vw,120px);
    font-weight: 500;
    line-height: .91;
    letter-spacing: -.065em;
}

.internal-hero__lead {
    width: min(570px,100%);
    margin: 30px 0 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}


/* =========================================================
   08 — CONTENT
   ========================================================= */

.internal-content,
.projects-section,
.contact-section {
    padding-bottom: clamp(90px,10vw,150px);
}

.prose {
    max-width: 800px;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   09 — BUTTONS & LINKS
   ========================================================= */

.lm-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px;
    border: 1px solid transparent;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: .3s;
}

.lm-button:hover {
    transform: translateY(-2px);
}

.lm-button--dark {
    color: #fff;
    background: var(--dark);
}

.lm-button--light {
    color: var(--dark);
    background: #fff;
}

.lm-button--ghost {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.04);
}

.text-link {
    display: inline-flex;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}


/* =========================================================
   10 — ERROR PAGE
   ========================================================= */

.error-page {
    padding: 180px 0;
}

.error-page .lm-button {
    margin-top: 30px;
}


/* =========================================================
   11 — RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    :root {
        --side: 18px;
    }

    .section-space {
        padding-block: 75px;
    }

    .internal-hero__lead {
        margin-left: 0;
    }

}
