/* ==========================================================
   L'INFERENZIALE
   Landing page
   ========================================================== */

:root {
    --green: #6C945A;
    --green-dark: #547746;
    --green-light: #eef3eb;

    --black: #101210;
    --gray: #626762;
    --gray-light: #e5e8e3;
    --white: #ffffff;

    --max-width: 1200px;
    --reading-width: 780px;

    --radius: 3px;
}


/* RESET
   ---------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 18px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

p {
    margin-top: 0;
}

::selection {
    background: var(--green);
    color: var(--white);
}


/* ACCESSIBILITÀ
   ---------------------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 12px 18px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 4px;
}


/* LAYOUT
   ---------------------------------------------------------- */

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.narrow {
    max-width: var(--reading-width);
}

.center {
    text-align: center;
}


/* HEADER
   ---------------------------------------------------------- */

.site-header {
    padding: 34px 0;
    border-bottom: 1px solid var(--gray-light);
    background: rgba(255, 255, 255, .97);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.brand-name {
    position: relative;

    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 750;
    letter-spacing: -0.065em;

    color: var(--green);
}

.brand-i {
    position: relative;
}

.black-dot {
    position: absolute;

    width: .19em;
    height: .19em;

    left: 50%;
    top: -.04em;

    transform: translate(-50%, -100%);

    border-radius: 50%;
    background: #000;
}

.brand-tagline {
    margin-top: 10px;

    color: var(--green);
    font-size: .66rem;
    font-weight: 600;

    letter-spacing: .27em;
    text-transform: uppercase;
}

.header-contact {
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--black);
}


/* HERO
   ---------------------------------------------------------- */

.hero {
    min-height: 680px;

    display: flex;
    align-items: center;

    padding: 110px 0 120px;
}

.hero-inner {
    max-width: 1040px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 35px;

    color: var(--green-dark);

    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    max-width: 1000px;

    margin: 0 0 42px;

    font-size: clamp(3.5rem, 8.2vw, 7.7rem);
    font-weight: 750;

    line-height: .91;
    letter-spacing: -.07em;
}

.hero h1 span {
    color: var(--green);
}

.hero-lead {
    max-width: 800px;

    margin-bottom: 20px;

    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.5;
}

.hero-secondary {
    max-width: 720px;

    color: var(--gray);

    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 45px;
}


/* BUTTON
   ---------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 27px;

    border: 1px solid var(--black);
    border-radius: var(--radius);

    font-size: .78rem;
    font-weight: 750;

    letter-spacing: .08em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.button-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.button-secondary {
    background: transparent;
}

.button-secondary:hover {
    background: var(--black);
    color: var(--white);
}


/* TYPOGRAPHY
   ---------------------------------------------------------- */

.eyebrow {
    margin-bottom: 18px;

    color: var(--green);

    font-size: .74rem;
    font-weight: 800;

    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: rgba(255, 255, 255, .68);
}


/* MANIFESTO
   ---------------------------------------------------------- */

.manifesto {
    padding: 130px 0;

    background: var(--green-light);
}

.manifesto h2,
.section-heading h2,
.coming h2 {
    margin: 0 0 38px;

    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.manifesto p:not(.eyebrow) {
    font-size: 1.15rem;
}


/* TOPICS
   ---------------------------------------------------------- */

.topics {
    padding: 135px 0 150px;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 75px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--gray-light);
    border-left: 1px solid var(--gray-light);
}

.topic {
    min-height: 310px;

    padding: 36px;

    border-right: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.topic-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 48px;
}

.topic-number {
    display: block;

    color: var(--green);

    font-size: .7rem;
    font-weight: 800;

    letter-spacing: .15em;
}

.topic-icon {
    width: 48px;
    height: 48px;

    color: var(--green);

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex: 0 0 auto;
}

.topic h3 {
    margin: 0 0 16px;

    font-size: 1.4rem;
    line-height: 1.2;
}

.topic p {
    margin: 0;

    color: var(--gray);

    font-size: .94rem;
}


/* CONTRIBUTORS
   ---------------------------------------------------------- */

.contributors {
    padding: 140px 0;

    background: var(--green);
    color: var(--white);
}

.contributors-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;

    gap: 100px;
}

.contributors h2 {
    margin: 0;

    font-size: clamp(3rem, 6vw, 6.4rem);
    line-height: .93;

    letter-spacing: -.065em;
}

.contributors-copy {
    max-width: 650px;
}

.contributors-copy p {
    color: rgba(255, 255, 255, .87);
}

.contributors-intro {
    font-size: 1.4rem;
    line-height: 1.45;
}

.contributors blockquote {
    margin: 42px 0;
    padding: 0;

    border: 0;

    color: var(--white);

    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -.035em;
}

.button-white {
    margin-top: 25px;

    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.button-white:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.email-note {
    margin-top: 20px;

    font-size: .82rem;
}

.email-note a {
    font-weight: 700;
}


/* COMING SOON
   ---------------------------------------------------------- */

.coming {
    padding: 145px 0;
}

.coming-mark {
    display: block;

    margin-bottom: 25px;

    color: var(--green);

    font-size: 5rem;
    font-weight: 800;

    line-height: 1;
    letter-spacing: -.1em;
}

.coming p:not(.eyebrow) {
    font-size: 1.1rem;
}

.coming-email {
    margin-top: 32px;
}

.coming-email a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}


/* FOOTER
   ---------------------------------------------------------- */

.site-footer {
    padding: 80px 0 35px;

    background: var(--black);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    padding-bottom: 65px;
}

.footer-brand {
    color: var(--green);

    font-size: 2.4rem;
    font-weight: 750;

    letter-spacing: -.055em;
}

.footer-grid > div:first-child p {
    color: #aaa;
    font-size: .75rem;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-info p {
    margin: 0 0 7px;

    color: #aaa;

    font-size: .79rem;
    line-height: 1.55;
}

.footer-info a {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    gap: 30px;

    padding-top: 28px;

    border-top: 1px solid #2d302d;

    color: #777;

    font-size: .7rem;
}

.footer-bottom p {
    margin: 0;
}


/* RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contributors-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .contributors h2 br {
        display: none;
    }

}


@media (max-width: 620px) {

    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .site-header {
        padding: 25px 0;
    }

    .header-contact {
        display: none;
    }

    .brand-name {
        font-size: 2.3rem;
    }

    .brand-tagline {
        margin-top: 8px;
        font-size: .52rem;
        letter-spacing: .19em;
    }

    .hero {
        min-height: auto;
        padding: 85px 0 100px;
    }

    .hero h1 {
        font-size: clamp(3.4rem, 16vw, 5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .manifesto,
    .topics,
    .contributors,
    .coming {
        padding: 90px 0;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .topic {
        min-height: 260px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

}


/* Utenti che preferiscono animazioni ridotte */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

}