@import url("/saltandthistle/st-core.css");

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-ui);
    color: var(--st-ink);
    background:
        radial-gradient(circle at 7% 10%, rgba(111, 91, 115, 0.11), transparent 35%),
        radial-gradient(circle at 92% 84%, rgba(66, 86, 74, 0.14), transparent 37%),
        linear-gradient(165deg, #f3efe9 0%, var(--st-white) 55%, #efe9e2 100%);
}

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(100% - 2rem, 72rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 2.5vw, 2rem);
}

.home-grid {
    display: grid;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.home-copy {
    padding: clamp(1rem, 3vw, 2rem);
}

h1 {
    margin: 0.6rem 0 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    max-width: 14ch;
    text-wrap: balance;
}

.lead {
    margin: 1.25rem 0 0;
    font-size: clamp(1rem, 0.86rem + 0.4vw, 1.16rem);
    line-height: 1.66;
    color: color-mix(in srgb, var(--st-ink) 82%, white);
    max-width: 48ch;
}

.home-links {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-links a {
    margin-top: 0;
}

.home-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(0.5rem, 2vw, 1rem);
}

.home-mark img {
    width: min(100%, 440px);
    height: auto;
    filter: drop-shadow(0 20px 22px rgba(18, 22, 20, 0.12));
    animation: rise-in 700ms ease both;
}

.home-footer {
    margin-top: 1.5rem;
    padding: 0.95rem 0.1rem 0;
    border-top: 1px solid var(--st-line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: color-mix(in srgb, var(--st-field) 85%, white);
    letter-spacing: 0.03em;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-mark {
        order: -1;
        padding-bottom: 0;
    }

    .home-mark img {
        width: min(80vw, 360px);
    }
}
