/* FILENAME: project.css */

:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f0e6;
    color: #162016;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 80% 5%, rgb(129 156 88 / 16%), transparent 28rem),
        #f3f0e6;
}

a {
    color: inherit;
    text-underline-offset: 0.25em;
}

.site-header,
main,
footer {
    width: min(70rem, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    padding-block: 1.25rem;
    border-bottom: 1px solid #ccd2c2;
    color: #4d584a;
    font-size: 0.9rem;
}

.hero {
    position: relative;
    min-width: 0;
    max-width: 57rem;
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.app-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgb(28 39 22 / 16%);
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: #62734f;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 10ch;
    margin-bottom: 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 14vw, 8.5rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.82;
}

.lede {
    max-width: 38rem;
    margin-bottom: 2rem;
    color: #475243;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    line-height: 1.5;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}

.actions a {
    font-weight: 700;
}

.actions .primary {
    padding: 0.8rem 1.05rem;
    border-radius: 0.7rem;
    background: #172316;
    color: #f7f7ef;
    text-decoration: none;
}

.availability {
    max-width: 36rem;
    margin: 1.5rem 0 0;
    padding-left: 0.9rem;
    border-left: 3px solid #93a977;
    color: #667060;
    font-size: 0.9rem;
    line-height: 1.55;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #c7cec0;
    border-left: 1px solid #c7cec0;
}

.feature-grid article {
    min-width: 0;
    min-height: 15rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-right: 1px solid #c7cec0;
    border-bottom: 1px solid #c7cec0;
    background: rgb(250 249 243 / 58%);
}

.feature-grid span {
    color: #8a9a77;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
}

.feature-grid h2,
.stack h2 {
    margin: 2.75rem 0 0.8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.feature-grid p,
.stack > p {
    max-width: 34rem;
    margin-bottom: 0;
    color: #596456;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.stack {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 7vw, 7rem);
    padding-block: clamp(4rem, 10vw, 8rem);
}

.stack h2 {
    margin-top: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid #c7cec0;
    color: #687163;
    font-size: 0.85rem;
}

@media (max-width: 42rem) {
    h1 {
        font-size: clamp(3.25rem, 16vw, 4.5rem);
    }

    .feature-grid,
    .stack {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: auto;
    }

    .feature-grid h2 {
        margin-top: 1.75rem;
    }

    footer {
        flex-direction: column;
    }
}

@media (max-width: 30rem) {
    .actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .actions .primary {
        transition: transform 140ms ease, background 140ms ease;
    }

    .actions .primary:hover {
        transform: translateY(-2px);
        background: #2c3d26;
    }
}
