/*
Theme Name: SiteClone Base
Description: Ballerina Farm storefront for the isolated SiteClone project.
Version: 0.2.0
Text Domain: siteclone-base
*/
@font-face { font-family: BF America; src: url('assets/body-light.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: BF America; src: url('assets/body-medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: BF America; src: url('assets/body-bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: BF Condensed; src: url('assets/heading.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: BF Mono; src: url('assets/announcement.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }

:root {
    --bf-paper: #fffbf0;
    --bf-ink: #13140f;
    --bf-green: #244c30;
    --bf-banner: #d62d26;
    --bf-button: #ef2100;
    --bf-line: #948b78;
    --bf-gutter: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bf-paper); color: var(--bf-ink); font: 400 16px/1.6 BF America, Helvetica, Arial, sans-serif; }
h1, h2 { font-family: BF Condensed, Impact, sans-serif; line-height: .98; text-transform: uppercase; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bf-skip { position: absolute; inset: 8px auto auto 16px; padding: 10px 16px; background: var(--bf-paper); z-index: 10; transform: translateY(-180%); }
.bf-skip:focus { transform: none; }

.bf-action { display: inline-grid; place-items: center; color: currentColor; border: 0; padding: 0; width: 26px; height: 35px; cursor: pointer; background: transparent; }
.bf-action svg { width: 24px; height: 24px; }
.bf-announcement { min-height: 43px; border-top: 1px solid var(--bf-ink); padding: 7px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; background: var(--bf-banner); color: var(--bf-paper); font: 400 14px/1.45 BF Mono, monospace; text-transform: uppercase; }
.bf-announcement a { text-transform: none; white-space: nowrap; }

.bf-dialog { position: fixed; margin: 0; max-height: 100dvh; max-width: 100%; border: 0; background: var(--bf-paper); color: var(--bf-ink); padding: 62px 24px 24px; }
.bf-dialog::backdrop { background: rgb(0 0 0 / .42); }
.bf-dialog-close { position: absolute; inset: 14px 22px auto auto; }
.bf-hero { height: clamp(540px, calc(100vw * .47222), 880px); position: relative; isolation: isolate; color: #fffbe3; overflow: hidden; text-align: center; }
.bf-hero-background, .bf-hero-background img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.bf-hero-content { padding: 85px var(--bf-gutter) 0; }
.bf-hero h1 { width: max-content; max-width: 100%; margin: 0 auto 22px; font-size: clamp(42px, 3.889vw, 62px); line-height: .95; letter-spacing: .01em; }
.bf-solid-button { background: var(--bf-button); color: #fff; display: inline-flex; align-items: center; justify-content: center; min-width: 320px; min-height: 44px; padding: 9px 32px; text-decoration: none; font-weight: 500; text-transform: uppercase; }
.bf-solid-button:hover { background: #b51c08; }
.bf-hero-detail { position: absolute; width: 330px; height: 330px; object-fit: contain; bottom: 89px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.bf-hero-detail img { width: 100%; height: 100%; object-fit: contain; }
.bf-home-intro { display: grid; min-height: 187px; place-items: center; padding: 25px var(--bf-gutter); border-bottom: 1px solid var(--bf-line); text-align: center; color: var(--bf-green); }
.bf-home-intro p { max-width: 750px; margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.bf-home-favorites { padding: 72px var(--bf-gutter); }
.bf-section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bf-section-title h2 { font-size: clamp(32px, 3vw, 42px); margin: 0 0 20px; }
.bf-section-title a { white-space: nowrap; font-weight: 700; }
.bf-favorites-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.bf-favorites-picture { display: block; width: 100%; max-height: 650px; object-fit: cover; }
.bf-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 48%); gap: 20px; margin: 0; padding: 0 0 14px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.bf-product-rail li { scroll-snap-align: start; }
.bf-product-rail img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.bf-product-rail h3 { margin: 9px 0 3px; }
.bf-product-rail a { text-decoration: none; }
.bf-outline-button { display: block; margin-top: 12px; padding: 7px 12px; text-align: center; border: 1px solid currentColor; }
.bf-card-price { font-size: 14px; }

body:not(.home) #main-content { max-width: 1440px; margin: 0 auto; padding: 42px var(--bf-gutter) 64px; min-height: 48vh; }
.bf-footer { border-top: 1px solid var(--bf-line); background: var(--bf-paper); padding: 26px var(--bf-gutter); }
.bf-footer-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); align-items: start; gap: 36px; }
.bf-footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.bf-footer-groups h2 { font-size: 27px; margin: 0 0 8px; }
.bf-footer-groups ul { list-style: none; margin: 0; padding: 0; }
.bf-footer-groups li { padding: 4px 0; }
.bf-footer-disclosure { display: none; }
.bf-footer-brand { align-self: center; }
.bf-footer-brand img { width: 300px; height: auto; }
.bf-footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--bf-line); padding-top: 19px; display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; }

@media (max-width: 760px) {
    :root { --bf-gutter: 20px; }
    body { font-size: 14px; }
    .bf-action { width: 27px; }
    .bf-announcement { min-height: 97px; display: block; align-content: center; padding: 12px 10px; }
    .bf-announcement a { display: inline-block; margin-left: 7px; }
    .bf-hero { height: 600px; }
    .bf-hero-content { padding-top: 64px; }
    .bf-hero h1 { font-size: clamp(35px, 10.256vw, 44px); margin-bottom: 20px; }
    .bf-solid-button { min-width: 265px; min-height: 42px; }
    .bf-hero-detail { width: min(340px, 94vw); height: min(340px, 94vw); bottom: 50px; }
    .bf-home-intro { min-height: 165px; }
    .bf-home-intro p { max-width: 355px; font: 400 15px/1.55 BF Mono, monospace; text-transform: none; }
    .bf-home-favorites { padding: 26px var(--bf-gutter); }
    .bf-favorites-grid { display: block; }
    .bf-favorites-picture { display: none; }
    .bf-product-rail { grid-auto-columns: calc(50% - 10px); }
    .bf-footer-inner { grid-template-columns: 1fr; }
    .bf-footer-groups { grid-template-columns: 1fr; gap: 0; }
    .bf-footer-expanded { display: none; }
    .bf-footer-disclosure { display: block; border-bottom: 1px solid var(--bf-line); }
    .bf-footer-disclosure summary {
        min-height: 49.6px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        list-style: none;
        font: 700 24px/1 BF Condensed, Impact, sans-serif;
        text-transform: uppercase;
    }
    .bf-footer-disclosure summary::-webkit-details-marker { display: none; }
    .bf-footer-disclosure summary::after { content: '+'; }
    .bf-footer-disclosure[open] summary::after { content: '−'; }
    .bf-footer-disclosure ul { padding-bottom: 14px; }
}

.bf-home-section { padding: 60px 32px; }
.bf-home-section h2 { font-size: clamp(32px, 3vw, 42px); }
.bf-tallow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.42fr) minmax(0, 1.18fr); gap: 38px; align-items: center; }
.bf-tallow h2 { margin: 0 0 14px; }
.bf-tallow img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.bf-tallow-copy .bf-outline-button { display: inline-block; }
.bf-farm-story { height: min(1000px, 100vh); position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden; color: var(--bf-paper); text-align: center; }
.bf-farm-story > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.bf-farm-story::before { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .68)); z-index: -1; }
.bf-farm-story-copy { max-width: 650px; justify-self: center; padding: 24px 24px 84px; }
.bf-farm-story-copy h2 { font-size: clamp(38px, 4.2vw, 60px); margin: 14px 0; }
.bf-farm-story-copy .bf-outline-button { display: inline-block; }
.bf-sourdough-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bf-sourdough-grid > img { min-height: 400px; width: 100%; height: 100%; object-fit: cover; }
.bf-sourdough-grid .bf-product-rail { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: clip; }
.bf-farm-values { margin: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 35px; text-align: center; color: #412c22; }
.bf-farm-values img { width: 100%; max-width: 240px; height: auto; }
.bf-farm-values p { margin: 0; font-weight: 700; }
.bf-collections-grid, .bf-recipes-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.bf-recipes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-collections-grid img, .bf-recipes-grid img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.bf-collections-grid article, .bf-recipes-grid article { margin: 0; }
.bf-collections-grid h3, .bf-recipes-grid h3 { margin: 12px 0 5px; font: 700 28px/1.2 BF Condensed, Impact, sans-serif; text-transform: uppercase; }
@media (max-width: 760px) {
    .bf-home-section { padding: 32px 20px; }
    .bf-tallow { grid-template-columns: 1fr; gap: 22px; }
    .bf-farm-story { height: 690px; max-height: 85vh; }
    .bf-farm-story-copy { padding-bottom: 42px; }
    .bf-sourdough-grid, .bf-collections-grid { grid-template-columns: 1fr; }
    .bf-sourdough-grid > img { min-height: 0; }
    .bf-farm-values { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 142px; overflow-x: auto; gap: 18px; text-align: left; }
    .bf-recipes-grid { gap: 16px; }
    .bf-collections-grid h3, .bf-recipes-grid h3 { font-size: 22px; }
}

.bf-store-archive .woocommerce-breadcrumb {
    margin: 0 0 16px;
    color: var(--bf-ink);
    font-size: 15px;
    line-height: 22px;
}
body:not(.home) #main-content:has(> .bf-store-archive) { padding: 15px 32px 64px; }
.bf-store-archive-title {
    margin: 0;
    font-size: 52px;
    line-height: 64px;
    letter-spacing: -1.04px;
    text-align: center;
}
.bf-store-archive .woocommerce-result-count,
.bf-store-archive .woocommerce-ordering { margin: 16px 0 24px; }
.bf-store-archive ul.products li.product a img { aspect-ratio: 1; object-fit: cover; }

@media (max-width: 700px) {
    body:not(.home) #main-content:has(> .bf-store-archive) { padding: 15px 24px 48px; }
    .bf-store-archive .woocommerce-breadcrumb {
        margin-inline: -8px;
        font-size: 13px;
        line-height: 19px;
    }
    .bf-store-archive .woocommerce-result-count,
    .bf-store-archive .woocommerce-ordering { float: none; display: block; }
}

.bf-faq { max-width: none; }
body:not(.home) #main-content:has(> .bf-faq) { max-width: none; padding: 0 0 64px; }
.bf-faq-breadcrumb { padding: 15px 32px 16px; font-size: 14px; line-height: 22px; }
.bf-faq-breadcrumb a { color:inherit; text-decoration:underline; }
.bf-faq-hero { position:relative; height:600px; display:grid; place-items:center; text-align:center; isolation:isolate; color:#fffbf0; background:#382014; }
.bf-faq-hero picture, .bf-faq-hero img { position:absolute; inset:0; width:100%; height:100%; z-index:-1; object-fit:cover; }
.bf-faq-hero::before { content:""; position:absolute; inset:0; background:rgb(31 45 31 / 40%); }
.bf-faq-hero h1 { position:relative; margin:0; width:min(656px, calc(100% - 48px)); font-size:52px; line-height:52px; letter-spacing:-1.04px; }
.bf-faq-body { max-width:868px; padding:60px 24px 0; margin:0 auto; color:#000; }
.bf-faq-body section + section { margin-top:60px; }
.bf-faq-body h2 { margin:0 0 20px; font:500 16px/16px BF America, sans-serif; text-decoration:underline; text-transform:none; }
.bf-faq-body details + details { margin-top:15px; }
.bf-faq-body summary { position:relative; padding:0 24px 15px 0; border-bottom:1px solid #382014; list-style:none; cursor:pointer; font-weight:500; font-size:16px; line-height:16px; }
.bf-faq-body summary::-webkit-details-marker { display:none; }
.bf-faq-body summary::after { content:""; position:absolute; inset-inline-end:3px; top:3px; width:8px; height:8px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); }
.bf-faq-body details[open] summary::after { top:7px; transform:rotate(225deg); }
.bf-faq-body details p { margin:12px 0 0; }
.bf-faq-farm { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:32px; width:min(1284px, calc(100% - 64px)); margin:76px auto 0; }
.bf-faq-farm-copy { padding:32px; }
.bf-faq-farm-copy h2 { margin:0 0 18px; font-size:48px; line-height:1; }
.bf-faq-farm-copy p { margin:0 0 20px; }
.bf-faq-farm-copy a { display:inline-block; color:inherit; border:1px solid currentColor; padding:14px 28px; text-decoration:none; }
.bf-faq-farm-photos { display:grid; gap:32px; width:45%; }
.bf-faq-farm-photos img { display:block; width:100%; height:auto; }
@media (max-width:700px) {
    .bf-faq-breadcrumb { padding:15px 16px 16px; font-size:13px; line-height:19px; }
    .bf-faq-body { padding-top:25px; }
    .bf-faq-body h2 { margin-bottom:40px; font-size:14px; line-height:14px; text-align:center; }
    .bf-faq-body section + section { margin-top:40px; }
    .bf-faq-farm { width:calc(100% - 48px); grid-template-columns:1fr; gap:20px; margin-top:60px; }
    .bf-faq-farm-copy { padding:0; }
    .bf-faq-farm-copy h2 { font-size:36px; }
    .bf-faq-farm-photos { width:100%; gap:20px; }
}

.bf-terms-policy {
    max-width: 780px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 5rem) 1.25rem;
    line-height: 1.6;
}

.bf-terms-policy section {
    margin-top: 2rem;
}

.bf-terms-policy h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.bf-terms-policy a {
    text-decoration: underline;
}

[data-siteclone-social-icon] { display: none !important; }
