:root {
    --farm-red: #ad4e4b;
    --farm-red-dark: #853b39;
    --ink: #302925;
    --taupe: #a79c90;
    --taupe-light: #ddd6ce;
    --cream: #faf8f4;
    --paper: #fffefa;
    --sage: #757b67;
    --max: 1180px;
    --shadow: 0 18px 50px rgba(48, 41, 37, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.site-header {
    position: relative;
    z-index: 10;
    max-width: var(--max);
    margin: 0 auto;
    padding: 26px 28px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand img { width: 250px; }
.nav { display: flex; gap: 30px; }
.nav a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .76rem;
    font-weight: 700;
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 1px;
    background: var(--farm-red);
    transition: right .2s ease;
}
.nav a:hover::after { right: 0; }

.hero {
    min-height: 610px;
    padding: 70px 28px 90px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(167, 156, 144, .35);
    border-radius: 50%;
    width: 620px;
    height: 620px;
}
.hero::before { left: -460px; top: 40px; }
.hero::after { right: -500px; bottom: -120px; }
.hero-inner { max-width: 860px; text-align: center; position: relative; z-index: 2; }
.eyebrow,
.section-label {
    color: var(--farm-red);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 700;
    font-size: .76rem;
}
h1, h2, h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.08;
}
h1 {
    margin-top: 16px;
    font-size: clamp(3.4rem, 8vw, 7.1rem);
    letter-spacing: -.04em;
}
.hero-copy {
    max-width: 680px;
    margin: 28px auto 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: #5b514b;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--farm-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--farm-red); color: white; }
.button-primary:hover { background: var(--farm-red-dark); }
.button-secondary { color: var(--farm-red); background: transparent; }
.button-secondary:hover { background: white; }
.hero-mark { position: absolute; right: 7vw; top: 95px; width: 190px; opacity: .5; }
.hero-mark svg { width: 100%; fill: none; stroke: var(--taupe); stroke-width: 1.5; }

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 110px 28px;
}
.about { border-top: 1px solid var(--taupe-light); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 24px;
    align-items: start;
}
.about h2,
.gallery-section h2,
.visit h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.about-copy { color: #5f5752; font-size: 1.05rem; }
.about-copy p:first-child { margin-top: 8px; }
.farm-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 70px;
    border-top: 1px solid var(--taupe-light);
    border-bottom: 1px solid var(--taupe-light);
}
.farm-note { padding: 30px 26px; border-right: 1px solid var(--taupe-light); }
.farm-note:last-child { border-right: 0; }
.farm-note span { display: block; color: var(--farm-red); font-family: Georgia, serif; font-style: italic; }
.farm-note strong { display: block; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 400; margin-top: 8px; }
.farm-note small { color: #766d66; }

.gallery-section {
    max-width: none;
    background: var(--paper);
    padding-left: max(28px, calc((100vw - var(--max)) / 2 + 28px));
    padding-right: max(28px, calc((100vw - var(--max)) / 2 + 28px));
}
.section-heading {
    max-width: var(--max);
    margin: 0 auto 42px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}
.section-heading h2 { margin-top: 10px; }
.photo-count { color: #7e756f; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.gallery {
    max-width: var(--max);
    margin: 0 auto;
    columns: 3 320px;
    column-gap: 14px;
}
.gallery-item {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    margin: 0 0 14px;
    cursor: zoom-in;
    break-inside: avoid;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}
.gallery-item:hover img { transform: scale(1.018); filter: saturate(1.04); }
.gallery-empty {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed var(--taupe-light);
    padding: 50px;
}
.gallery-empty > * { margin: 6px 0; }
.gallery-empty h3 { font-size: 2rem; }
.gallery-empty p { max-width: 620px; color: #6b625c; }
.gallery-empty code { background: #f1ede7; padding: .1em .35em; }
.empty-barn { font-size: 3rem; color: var(--farm-red); }

.visit { padding-top: 120px; padding-bottom: 120px; }
.visit-card {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    background: #f0ece6;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.visit-copy { padding: clamp(42px, 7vw, 84px); }
.visit h2 { margin-top: 12px; }
.visit address {
    font-family: Georgia, serif;
    font-style: normal;
    font-size: 1.3rem;
    margin: 30px 0 16px;
}
.visit-copy p { color: #665d57; margin-bottom: 28px; max-width: 420px; }
.map-wrap { min-height: 540px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 540px; filter: grayscale(.15) sepia(.08); }

.site-footer {
    border-top: 1px solid var(--taupe-light);
    padding: 46px 28px 56px;
    text-align: center;
    color: #766d66;
    font-size: .83rem;
    letter-spacing: .08em;
}
.site-footer img { width: 190px; margin: 0 auto 18px; opacity: .9; }

.lightbox {
    width: min(94vw, 1200px);
    height: min(90vh, 900px);
    border: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
}
.lightbox::backdrop { background: rgba(27, 23, 20, .88); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    color: white;
    background: rgba(0,0,0,.25);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 820px) {
    .site-header { padding-top: 18px; }
    .brand img { width: 190px; }
    .nav { gap: 16px; }
    .nav a { font-size: .66rem; }
    .hero { min-height: 570px; padding-top: 55px; }
    .hero-mark { display: none; }
    .section { padding-top: 80px; padding-bottom: 80px; }
    .about-grid, .visit-card { grid-template-columns: 1fr; gap: 30px; }
    .about-grid { gap: 24px; }
    .farm-notes { grid-template-columns: 1fr; }
    .farm-note { border-right: 0; border-bottom: 1px solid var(--taupe-light); }
    .farm-note:last-child { border-bottom: 0; }
    .map-wrap, .map-wrap iframe { min-height: 380px; }
}

@media (max-width: 560px) {
    .site-header { display: block; text-align: center; }
    .brand img { margin: 0 auto; width: 210px; }
    .nav { justify-content: center; margin-top: 10px; }
    h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
    .hero { min-height: 520px; padding: 36px 22px 70px; }
    .section { padding-left: 20px; padding-right: 20px; }
    .gallery-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .section-heading { align-items: start; flex-direction: column; }
    .photo-count { margin: 0; }
    .gallery { columns: 2 145px; gap: 8px; }
    .gallery-item { margin-bottom: 8px; }
    .visit-copy { padding: 38px 28px; }
    .map-wrap, .map-wrap iframe { min-height: 330px; }
}
