:root {
    --wine-dark: #800020;
    --wine-light: #570013;
    --bg-color: #fff8f5;
    --wine: #800020;
    --wine-hover: #570013;
    --paper: #fff8f5;
}

.auth-page,
.store-page,
.community-page {
    margin: 0;
    max-width: none;
    min-width: 0;
    background: #fff8f5;
}

.auth-page .site-header,
.store-page .store-header,
.community-page .store-header {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #fff8f5;
    border-bottom: 1px solid #e9e1dc;
}

.site-header .logo {
    color: #570013;
}

.store-page > main,
.community-page > main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.store-page .store-footer,
.community-page .store-footer {
    width: 100%;
    max-width: none;
    background: #e9e1dc;
}

.store-header .header-login,
.store-header .header-login:hover,
.store-header .header-login:focus-visible {
    font-family: inherit;
    cursor: pointer;
}

.store-header .header-login:hover,
.store-header .header-login:focus-visible {
    background: #800020;
    color: #fff;
}

.community-page .education-overlay h3 {
    color: #fff;
}

/* Footer shared by the store and community pages. */
.store-page .store-footer,
.community-page .store-footer {
    grid-template-columns: minmax(90px, 1fr) auto minmax(86px, 1fr);
    column-gap: 0;
    row-gap: 32px;
    min-height: 0;
    padding: 32px clamp(20px, 5vw, 64px) 16px;
}

.store-footer .logo {
    font-size: 24px;
    font-weight: 600;
    line-height: 33.6px;
}

.store-footer .footer-links {
    flex-wrap: nowrap;
    gap: 32px;
}

.store-footer .footer-links a {
    margin: 0;
    color: #584141;
    font-size: 12px;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-self: end;
}

.footer-social img {
    display: block;
    max-width: none;
}

.store-footer small {
    grid-column: 1 / -1;
    color: #584141;
    font-size: 14px;
    line-height: 20px;
    opacity: .6;
}

/* The events panel is a pale rose card against the community page canvas. */
.community-page .events-section {
    background: #fdfcf8;
}

.community-page .events-copy {
    min-height: 800px;
    background: linear-gradient(90deg, #fff8f5 0%, #fff8f5 50%, #fdf8f6 100%);
}

.community-page .events-copy .eyebrow {
    display: none;
}

.community-page .events-copy > p:not(.eyebrow) {
    color: #584141;
    font-size: 18px;
    line-height: 1.6;
}

.community-page .event-description {
    max-width: 236px;
}

.community-page .event-description h3 {
    font-size: 24px;
    line-height: 1.4;
}

.community-page .event-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.community-page .event-location {
    font-size: 14px;
}

.community-page .event-button {
    min-width: 175px;
    padding: 0 32px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.community-page .event-date,
.community-page .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-page .event-date::before {
    content: "";
    display: block;
    flex: 0 0 12px;
    width: 12px;
    height: 13.3333px;
    background: url('../img/figma/event-calendar.svg') no-repeat center;
}

.community-page .event-location::before {
    content: "";
    display: block;
    flex: 0 0 10.6667px;
    width: 10.6667px;
    height: 13.3333px;
    background: url('../img/figma/event-location.svg') no-repeat center;
}

@media (max-width: 1100px) {
    .store-page .store-footer,
    .community-page .store-footer {
        grid-template-columns: 1fr auto;
        row-gap: 24px;
    }

    .store-footer .footer-links {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .community-page .events-copy {
        min-height: 0;
    }

    .community-page .event-button {
        min-width: 0;
    }

    .store-page .store-footer,
    .community-page .store-footer {
        padding: 28px 20px 20px;
    }

    .store-footer .footer-links {
        column-gap: 20px;
        row-gap: 16px;
    }

    .store-footer small {
        text-align: left;
    }
}

.service-error {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(72px, 12vw, 160px) 24px;
    text-align: center;
}

.service-error h1 {
    margin: 0 0 16px;
    color: #570013;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.service-error p {
    margin: 0 0 28px;
    color: #584141;
}
