:root {
    --loom-ink: #1f2a24;
    --loom-muted: #5c695f;
    --loom-green: #2f6f4e;
    --loom-green-dark: #214f38;
    --loom-cream: #fffaf0;
    --loom-paper: #f7f1e6;
    --loom-line: #d8cab5;
    --loom-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--loom-cream);
    color: var(--loom-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: var(--loom-green-dark);
}

a:focus-visible {
    outline: 3px solid #0b6fba;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 10;
    padding: 0.8rem 1rem;
    background: var(--loom-ink);
    color: var(--loom-white);
    border-radius: 6px;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    background: var(--loom-white);
    border-bottom: 1px solid var(--loom-line);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--loom-ink);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 56px;
    height: 56px;
    margin: 0;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-nav a,
.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.site-nav a {
    min-width: 108px;
    padding: 0.7rem 1rem;
    background: var(--loom-paper);
    border: 2px solid var(--loom-line);
    color: var(--loom-ink);
}

.main {
    min-height: 60vh;
}

.landing-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
}

.landing-hero__brand,
.section__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--loom-green-dark);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.landing-hero h1,
.page-panel h1 {
    margin: 0 0 1.5rem;
    color: var(--loom-ink);
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.landing-hero__copy,
.page-panel p {
    max-width: 680px;
    margin: 0 0 2rem;
    color: var(--loom-muted);
    font-size: 1.8rem;
}

.product-placeholder {
    width: 100%;
    margin: 0;
    padding: 5rem max(32px, calc((100% - 1280px) / 2));
    background: var(--loom-white);
}

.product-placeholder h2 {
    margin: 0 0 2rem;
    color: var(--loom-ink);
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.product-placeholder__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4rem;
}

.product-placeholder article {
    min-width: 0;
}

.product-placeholder__image {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    background: #d9d9d9;
    border: 1px solid #c9c9c9;
}

.product-placeholder h3 {
    margin: 0 0 0.25rem;
    color: var(--loom-ink);
    font-size: 1.6rem;
    font-weight: 800;
}

.product-placeholder p {
    margin: 0;
    color: var(--loom-muted);
    font-size: 1.45rem;
    line-height: 1.35;
}

.product-placeholder strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--loom-ink);
    font-size: 1.45rem;
}

.landing-hero__image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.button {
    width: fit-content;
    padding: 0 1.5rem;
    background: var(--loom-green);
    border: 3px solid var(--loom-ink);
    color: var(--loom-white);
    line-height: 1.2;
}

.button:hover,
.button:focus {
    background: var(--loom-green-dark);
    color: var(--loom-white);
}

.page-panel {
    width: min(820px, calc(100% - 32px));
    margin: 4rem auto;
    padding: 2rem;
    background: var(--loom-white);
    border: 1px solid var(--loom-line);
    border-radius: 8px;
}

.site-footer {
    background: #e3d9c9;
    color: var(--loom-ink);
    padding: 3rem 0;
}

.site-footer__inner {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 800;
}

.site-footer a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--loom-ink);
    text-decoration: none;
}

@media (max-width: 820px) {
    .site-header__inner,
    .landing-hero,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        display: grid;
        justify-items: center;
    }

    .landing-hero {
        min-height: 0;
        padding: 3rem 0;
    }

    .landing-hero__image {
        max-width: 580px;
        margin: 0 auto;
    }

    .product-placeholder__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .brand {
        flex-direction: column;
        text-align: center;
        font-size: 1.6rem;
    }

    .site-nav,
    .button {
        width: 100%;
    }

    .site-nav a,
    .button {
        flex: 1 1 140px;
    }

    .page-panel {
        padding: 1.25rem;
    }

    .product-placeholder__grid {
        grid-template-columns: 1fr;
    }
    @media (max-width: 560px) {
        .brand {
            flex-direction: column;
            text-align: center;
            font-size: 1.6rem;
        }

        .site-nav,
        .button {
            width: 100%;
        }

        .site-nav a,
        .button {
            flex: 1 1 140px;
        }

        .page-panel {
            padding: 1.25rem;
        }

        .product-placeholder__grid {
            grid-template-columns: 1fr;
        }
    }

    .captcha-row {
        display: flex;
        justify-content: center;
        margin: 18px 0;
    }

    .form-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .form-actions__buttons {
        display: flex;
        gap: 12px;
    }

    #message {
        resize: none;
        height: 180px;
        overflow-y: auto;
    }
}
