@font-face {
    font-family: "LuckyOrganics";
    src: url("LuckyOrganics-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


:root {
    /* USUFRUTTO earthy palette */
    --ink: #f2f0e8;
    --paper: #232014;
    --paper-dark: #171713;
    --white: #3b2818;
    --accent: #d7b081;
    --accent-dark: #5f6c37;

    --serif: "LuckyOrganics", Georgia, serif;
    --sans: Aptos, "Segoe UI", Arial, sans-serif;

    --max-width: 1180px;
    --gutter: clamp(1.5rem, 5vw, 5rem);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}


body {
    margin: 0;

    background: var(--paper);
    color: var(--ink);

    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
}


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


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


button {
    font: inherit;
}


/* --------------------------------
   HEADER
-------------------------------- */

.site-header {
    position: fixed;
    z-index: 100;

    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;
    padding: 1.5rem var(--gutter);

    background: transparent;
}


/* The logo-button at the top right */

.brand.menu-toggle {
    display: block;
    flex: 0 0 auto;

    width: 155px;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.brand.menu-toggle img {
    width: 100%;
    height: auto;
}


/* The animated clone is the only visible logo during the journey */

.hero-logo,
.brand.menu-toggle img {
    visibility: hidden;
}


/* Reveal the actual button after the animation finishes */

.site-header.is-scrolled .brand.menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* --------------------------------
   MENU
-------------------------------- */

/*
   Keep the menu box only as wide as its contents.
   Avoid a full-width transparent click target.
*/

.site-header nav {
    position: absolute;

    top: calc(100% + 0.5rem);
    right: var(--gutter);

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;

    width: max-content;
    max-width: calc(100vw - 2 * var(--gutter));

    padding: 0.25rem 0;

    background: transparent;
    border: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.22s ease,
        transform 0.28s ease,
        visibility 0s linear 0.45s;
}


.site-header.is-menu-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);

    transition:
        opacity 0.22s ease,
        transform 0.28s ease,
        visibility 0s;
}


/* Individual menu options */

.site-header nav a {
    display: block;
    width: fit-content;
    max-width: 100%;

    padding: 0.45rem 0.1rem;

    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: right;

    opacity: 0;
    transform: translateY(-10px);

    text-shadow:
        0 0 0.65em var(--paper),
        0 3px 6px rgba(0, 0, 0, 0.18);

    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}


/* Fully opaque text and proportional opening stagger */

.site-header.is-menu-open #site-navigation a {
    opacity: 1;
    color: var(--ink);
    transform: translateY(0);

    transition-delay: var(--menu-open-delay, 0s);
}


/* Reverse the stagger when closing */

.site-header:not(.is-menu-open) #site-navigation a {
    transition-delay: var(--menu-close-delay, 0s);
}


/* --------------------------------
   GENERAL
-------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-left: var(--gutter);
    padding-right: var(--gutter);

    background:
        radial-gradient(
            ellipse at 50% 42%,
            rgba(190, 170, 130, 0.18) 0%,
            rgba(190, 170, 130, 0.08) 35%,
            transparent 72%
        ),
        var(--paper);
}


.section,
.contact {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}


.section {
    position: relative;

    padding-top: clamp(6rem, 12vw, 11rem);
    padding-bottom: clamp(6rem, 12vw, 11rem);
}


.section-content {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
}


h1,
h2 {
    margin: 0;

    font-family: var(--serif);
    font-weight: 400;

    line-height: 0.95;
    letter-spacing: -0.025em;
}


h1 {
    font-size: clamp(5rem, 13vw, 11rem);
}


h2 {
    max-width: 950px;

    font-size: clamp(4rem, 9vw, 8rem);
}


h3 {
    margin: 0 0 0.5rem;

    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;

    line-height: 1;
}


p {
    margin-top: 0;
}


.body-text {
    max-width: 750px;
    margin-top: 3rem;

    font-size: clamp(1.15rem, 1.7vw, 1.3rem);
}


.large-text {
    max-width: 850px;
    margin-top: 4rem;

    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
}


.intro {
    max-width: 700px;
    margin-top: 3rem;

    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.45;
}


/* --------------------------------
   BUTTONS
-------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    margin-top: 3rem;
    padding: 0.9rem 1.3rem;

    border: 1px solid currentColor;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}


.button:hover {
    background: var(--ink);
    color: var(--paper);

    transform: translateY(-2px);
}


.button span {
    font-size: 1.2rem;
}


/* --------------------------------
   FOOTER
-------------------------------- */

footer {
    display: flex;
    justify-content: space-between;

    padding: 1.5rem var(--gutter);

    background: var(--paper-dark);
    color: var(--ink);

    border-top: 1px solid rgba(242, 240, 232, 0.15);

    font-size: 0.75rem;
    opacity: 0.6;
}


footer p {
    margin: 0;
}


/* --------------------------------
   REDUCED MOTION
-------------------------------- */

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