/*
Theme Name: West Georgia Young Farmers
Description: The cooperative's Universe layout, rebuilt around editable WordPress blocks.
Version: 2.0.9
Requires PHP: 8.3
Text Domain: wgyfc
*/

:root {
    --fixed-row: min(20vw, 150px);
    --fixed-inset: min(2.13333vw, 16px);
    --fixed-body: min(4.26667vw, 32px);
    --flow-width: min(calc(100vw - 32px), 768px);
    --flow-growth: clamp(0px, calc((100vw - 375px) * .2), 78.6px);
    --flow-body: calc(16px + var(--flow-growth) * .042667);
    --title-size: min(15.44vw, 115.8px);
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #000; font: 400 16px/1.2 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.universe-page { padding-top: 60px; }
.universe-page h1, .universe-page h2, .universe-page h3, .universe-page p { margin: 0; font-weight: 400; }
.universe-page p { min-height: 1.2em; }
.universe-page p a { text-decoration: none; }
.universe-page p a:hover { text-decoration: underline; }
.universe-page .wp-block-image { margin: 0; }
.universe-page .wp-block-image img { display: block; width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { top: 4px; left: 4px; z-index: 600; width: auto; height: auto; padding: 10px; clip-path: none; background: #fff; }

.site-menu { position: fixed; z-index: 500; inset: 0 0 auto; height: 60px; padding-inline: 6px 16px; display: flex; align-items: center; pointer-events: none; }
.menu-toggle { display: grid; align-content: center; justify-content: center; gap: 8px; width: 44px; height: 44px; padding: 0; flex: none; border: 0; background: transparent; color: #000; cursor: pointer; pointer-events: auto; }
.menu-toggle span { display: block; width: 24px; height: 4px; border-radius: 100px; background: currentColor; transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.site-menu nav { flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; pointer-events: auto; background: #fff; }
.site-menu nav::-webkit-scrollbar { display: none; }
.site-menu ul { display: flex; width: max-content; gap: 32px; list-style: none; margin: 0; padding: 8px 36px 8px 12px; white-space: nowrap; }
.site-menu a { display: block; font: 400 17px/1.2 var(--sans); text-decoration: none; }
.site-menu a:hover, .site-menu a:focus-visible, .site-menu a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 940px) {
    .site-menu nav { mask-image: linear-gradient(to right, #000 calc(100% - 35px), transparent); }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }

.universe-fixed { width: min(100%, 750px); margin-inline: auto; font-size: var(--fixed-body); padding-bottom: var(--fixed-row); }
.universe-fixed .universe-section-0 { min-height: calc(2 * var(--fixed-row)); display: flex; flex-direction: column; justify-content: end; padding: 0 var(--fixed-inset) calc(var(--fixed-inset) * .33); text-align: center; }
.universe-fixed h1 { font-size: var(--title-size); line-height: 1.2; }
.universe-fixed .wp-block-image img { object-fit: cover; }
.universe-fixed .universe-section-1 img { aspect-ratio: 1; }

[data-page="about"] .universe-section-2,
[data-page="get-involved"] .universe-section-2,
[data-page="what-we-do"] .universe-section-2 { margin-top: var(--fixed-row); padding: calc(var(--fixed-inset) * 1.07) var(--fixed-inset) 0; }
[data-page="about"] .universe-section-2 { min-height: calc(5 * var(--fixed-row)); }
[data-page="about"] .universe-section-3 { min-height: var(--fixed-row); display: flex; align-items: end; padding: 0 var(--fixed-inset) var(--fixed-inset); }
[data-page="about"] .universe-section-3 p { color: #757575; font-weight: 700; }
[data-page="about"] .universe-section-4 { min-height: calc(5 * var(--fixed-row)); padding: calc(var(--fixed-inset) * 1.07) var(--fixed-inset) 0; }

[data-page="contact-us"] .universe-section-1,
[data-page="contact-us"] .universe-section-2 { padding: calc(var(--fixed-inset) * 1.07) var(--fixed-inset) 0; }
[data-page="contact-us"] .universe-section-1 { min-height: calc(2 * var(--fixed-row)); }
[data-page="contact-us"] .universe-section-2 { min-height: calc(4 * var(--fixed-row)); }
[data-page="contact-us"],
[data-page="get-involved"],
[data-page="what-we-do"] { padding-bottom: 0; }

[data-page="get-involved"] .universe-section-0 h3 { transform: translateY(calc(var(--fixed-row) * .133)); }
[data-page="get-involved"] h3 { font-size: min(6.4vw, 48px); line-height: 1.2; }
[data-page="get-involved"] .universe-section-2 { min-height: calc(23 * var(--fixed-row)); }
[data-page="get-involved"] .universe-section-2 p { font-style: italic; }
[data-page="get-involved"] .universe-section-3 img,
[data-page="what-we-do"] .universe-section-3 img { aspect-ratio: 5 / 3; }
[data-page="get-involved"] .universe-section-4 { min-height: var(--fixed-row); display: grid; place-items: center; }
[data-page="get-involved"] .wp-block-social-links { margin: 0; }
[data-page="get-involved"] .wp-block-social-links .wp-social-link { color: #000; background: transparent; }
[data-page="get-involved"] .wp-social-link-instagram a { display: grid; place-items: center; padding: 0; }
[data-page="get-involved"] .wp-social-link-instagram svg { display: none; }
[data-page="get-involved"] .wp-social-link-instagram a::before {
    content: "";
    display: block;
    width: min(var(--fixed-row), 120px);
    aspect-ratio: 1;
    background: currentColor;
    mask: url(images/instagram.svg) center / contain no-repeat;
}

[data-page="what-we-do"] .universe-section-1 img { aspect-ratio: 5 / 4; }
[data-page="what-we-do"] .universe-section-2 { min-height: calc(13 * var(--fixed-row)); }
[data-page="what-we-do"] .universe-section-4 { margin-top: calc(2 * var(--fixed-row)); padding-bottom: calc(3 * var(--fixed-row)); }

.universe-signup { min-height: var(--fixed-row); display: grid; place-items: center; }
.universe-signup form { display: flex; align-items: center; gap: 4px; width: min(100% - 16px, clamp(205px, 37vw, 290px)); min-height: 40px; margin: 0 auto; border: 1px solid #000; border-radius: 100px; padding: 0 2px; max-width: none; }
.universe-signup form p { min-height: auto; flex: 1 1 auto; padding: 0; margin: 0; }
.universe-signup form p:has(button) { flex: 0 0 auto; }
.universe-signup input[type="email"] { appearance: none; min-width: 0; width: 100%; flex: 1 1 auto; height: 38px; padding: 0 4px 0 14px; margin: 0; color: #000; background: transparent; border: 0; border-radius: 100px; box-shadow: none; font: 400 15px/1.2 var(--sans); }
.universe-signup button, .universe-signup input[type="submit"] { flex: none; appearance: none; margin: 0; padding: 11px 16px; border: 0; border-radius: 100px; background: #000; color: #fff; font: 400 13px/1.2 var(--sans); cursor: pointer; }
.universe-signup :disabled { opacity: 1; cursor: default; }
.universe-signup > .mailpoet_form_shortcode { width: 100%; }
.universe-signup .mailpoet_form_form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 4px;
    width: min(100% - 24px, clamp(270px, 50vw, 294px));
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border: 0;
}
.universe-signup .mailpoet_form_form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 50px;
    border: 1px solid #858585;
    border-radius: 100px;
    pointer-events: none;
}
.universe-signup .mailpoet_form_form .mailpoet_paragraph {
    min-width: 0;
    margin: 0 !important;
}
.universe-signup .mailpoet_form_form .mailpoet_text {
    display: block;
    height: 50px;
    padding-inline: 16px 4px;
    font-size: 16px;
}
.universe-signup .mailpoet_text::placeholder {
    color: #595959;
    opacity: 1;
}
.universe-signup .mailpoet_text:focus-visible { outline-offset: -3px; }
.universe-signup .mailpoet_form_form .mailpoet_submit {
    display: block;
    height: 44px;
    margin: 3px 4px 3px 0;
    padding-block: 0;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: .04em;
}
.universe-signup .mailpoet_form_form .mailpoet_message {
    grid-column: 1 / -1;
    padding: 0 !important;
    text-align: center;
    font: 400 15px/1.4 var(--sans);
}
.universe-signup .mailpoet_form_form .mailpoet_message p { padding: 8px 12px; }
.universe-signup .mailpoet_form_form:is(
    .mailpoet_form_captcha_active,
    .mailpoet_form_successfully_send,
    :has(> .mailpoet_message > .mailpoet_validate_success:not([style]))
) {
    display: block;
}
.universe-signup .mailpoet_form_form:is(
    .mailpoet_form_captcha_active,
    .mailpoet_form_successfully_send,
    :has(> .mailpoet_message > .mailpoet_validate_success:not([style]))
)::before {
    content: none;
}
.universe-signup .mailpoet_form_form:is(
    .mailpoet_form_successfully_send,
    :has(> .mailpoet_message > .mailpoet_validate_success:not([style]))
) > .mailpoet_paragraph {
    display: none;
}
.universe-signup .mailpoet_form_form .mailpoet_message .mailpoet_validate_success {
    position: static;
    transform: none;
    color: #000;
    background: #f5f5f5;
    border-radius: 12px;
}
.universe-signup-paused { width: 100%; text-align: center; }
.universe-signup .universe-signup-status { margin: 6px 0 0; font: 400 14px/1.25 var(--sans); }

[data-page="store"] { padding-top: 180px; }
.universe-product { width: var(--flow-width); margin: 0 auto 48px; text-align: center; }
.universe-product:last-child { margin-bottom: 8px; }
.universe-product .wp-block-image { width: 60%; margin-inline: auto; }
.universe-product .wp-block-image img { aspect-ratio: 1; object-fit: cover; }
.universe-product h2 { margin: 9.5px 0 12.5px; padding-inline: 8px; white-space: pre-wrap; font-size: calc(32.96px + var(--flow-growth) * .087893); line-height: 1.2; }
.universe-product .wp-block-buttons { justify-content: center; margin: 0; }
.universe-product .wp-block-button__link { display: block; padding: 15px 24px; border-radius: 0; background: #000; color: #fff; font: 400 calc(24px + var(--flow-growth) * .064)/1.24 var(--sans); text-decoration: none; }
.universe-product .wp-block-button__link:focus-visible { outline: 2px solid #000; outline-offset: 4px; }

[data-page="home"] { font-size: var(--flow-body); }
[data-page="home"] > .wp-block-group { width: var(--flow-width); margin-inline: auto; }
[data-page="home"] .universe-section-0 { padding-top: calc(var(--flow-width) * .208333); }
[data-page="home"] .universe-section-1 { margin-top: max(8px, calc(var(--flow-width) * .472 - 230px)); padding-inline: 4px; text-align: center; }
[data-page="home"] h1 { font-size: min(calc(57.9px + var(--flow-growth) * .1544), 15.12vw); }
[data-page="home"] .universe-section-4 { width: 50%; min-height: 40px; margin-top: clamp(48px, calc((100vw - 390px) * .19 + 48px), 120px); margin-left: 0; padding: 5px 4px 1px; text-align: center; }
[data-page="home"] h3 { white-space: pre-wrap; font-size: calc(24px + var(--flow-growth) * .064); }
[data-page="home"] .universe-section-5 { min-height: 200px; padding: 5px 4px 4px; }
[data-page="home"] .universe-section-5 p:first-child { font-weight: 300; }
[data-page="home"] .universe-section-6 { min-height: 120px; margin-top: 80px; padding: 8px; }
[data-page="home"] .universe-section-7 img,
[data-page="home"] .universe-section-10 img { aspect-ratio: 3 / 2; object-fit: cover; }
[data-page="home"] .universe-section-8 { min-height: 160px; padding: 4px; margin-top: 120px; }
[data-page="home"] .universe-section-8 p { color: #121212; white-space: pre-wrap; }
[data-page="home"] .universe-section-9 { display: grid; width: calc(var(--flow-width) / 6); aspect-ratio: 1; margin-left: 50%; place-items: center; }
[data-page="home"] .universe-section-9::before {
    content: "";
    width: min(100%, 120px);
    aspect-ratio: 1;
    background: currentColor;
    mask: url(images/musical.ly.svg) center / contain no-repeat;
}
[data-page="home"] .universe-section-10 { margin-bottom: 160px; }
