/* CS Farmstead — rustic farmhouse theme */
:root {
  --cream: #f5ecd9;
  --cream-2: #efe3c8;
  --paper: #fbf6ec;
  --barn: #573c29;
  --barn-dark: #3f2b1d;
  --forest: #573c29;
  --forest-dark: #4a3222;
  --wood: #c9a77c;
  --tan: #c9a77c;
  --green: #5f7a4a;
  --ink: #2e2219;
  --muted: #6a5a4a;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(46, 34, 25, .35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--barn); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.small { font-size: .95rem; color: var(--muted); margin-top: 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #e0a03a; outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--sans); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .8rem; color: var(--barn); margin-bottom: .75rem;
}
.eyebrow.light { color: var(--tan); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(107, 75, 51, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand-logo, .footer-logo { border-radius: 10px; box-shadow: 0 0 0 1px rgba(87,60,41,.25); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 1.35rem; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: .45rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1rem;
}
.nav-list a:hover { background: var(--cream-2); color: var(--barn); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f7e2bd 0%, var(--cream) 70%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::after { /* soft rolling-hill edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 520 10 760 34 S 1220 20 1600 30 V 70 H 0 Z' fill='%23fbf6ec'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.9rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .2em;
  color: var(--ink);
}
.lede { font-size: clamp(1.15rem, 2.1vw, 1.4rem); max-width: 34ch; color: #4a3a2c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%;
  border-radius: 28px; box-shadow: 0 30px 60px -28px rgba(46, 34, 25, .65);
  border: 6px solid var(--paper);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 30px;
  border: 2px solid var(--tan); z-index: -1;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn .i { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--barn); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--barn-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: rgba(251, 246, 236, .6); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--barn); margin-top: .5rem; }
.about-card {
  margin: 0; background: var(--forest); color: var(--cream); border-radius: 22px; padding: 2.5rem 2rem;
  box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 22px, rgba(0,0,0,.04) 22px 24px);
}
.about-logo { width: min(260px, 80%); height: auto; margin: 0 auto 1.25rem; border-radius: 16px; box-shadow: 0 0 0 3px rgba(201,167,124,.55); }
.about-card figcaption { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; }

.farm { background: var(--cream); border-block: 1px solid rgba(107, 75, 51, .15); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 2rem 1.75rem;
  border: 1px solid rgba(107, 75, 51, .18); box-shadow: 0 6px 18px -14px rgba(46,34,25,.5);
  border-top: 6px solid var(--barn);
}
.card:nth-child(2) { border-top-color: var(--tan); }
.card:nth-child(3) { border-top-color: var(--green); }
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.6rem 1.75rem 2rem; }
.card-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.card p { color: var(--muted); margin: 0; }

.eggs { background: var(--paper); }
.eggs-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.egg-tags { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.egg-tags li {
  background: var(--cream); border: 1.5px solid var(--tan); color: var(--barn);
  font-weight: 700; font-size: .95rem; padding: .4rem .9rem; border-radius: 999px;
}
.eggs-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.eggs-photos figure { margin: 0; }
.eggs-photos figure:nth-child(2) { margin-top: 2.5rem; }
.egg-img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px;
  box-shadow: var(--shadow); border: 5px solid #fff;
}
.eggs .btn { white-space: normal; text-align: left; }
.cta-intro { font-weight: 600; margin-bottom: .8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.cta-row .btn { justify-content: center; }
.btn-email { background: var(--paper); color: var(--barn); border-color: var(--barn); padding-block: .6rem; }
.btn-email:hover { background: var(--barn); color: #fff; transform: translateY(-2px); }
.btn-stack { display: flex; flex-direction: column; line-height: 1.2; }
.btn-sub { font-weight: 600; font-size: .85rem; opacity: .85; word-break: break-all; }
.contact-email { margin: 1.1rem 0 0; font-weight: 600; }
.contact-email a { word-break: break-all; }

.follow {
  background: var(--forest-dark); color: var(--cream);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.06), transparent 40%),
                    radial-gradient(circle at 85% 80%, rgba(255,255,255,.05), transparent 45%);
}
.follow h2 { color: var(--cream); }
.follow-sub { color: #d9cfb8; max-width: 46ch; margin-inline: auto; }
.social-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center;
  padding: 2rem 1rem; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--cream); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.social-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(0,0,0,.6); border-color: var(--tan); }
.social-icon { width: 46px; height: 46px; color: var(--barn); margin-bottom: .4rem; }
.social-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.social-handle { color: var(--muted); font-weight: 600; }
.social-card.is-pending { opacity: .78; }
.social-card.is-pending .social-handle { font-style: italic; font-weight: 400; }

.contact { background: var(--paper); }
.contact-box {
  max-width: 760px; text-align: center; background: var(--cream); border-radius: 22px;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  border: 2px dashed rgba(107, 75, 51, .35);
}

/* Footer */
.site-footer { background: var(--ink); color: #d9cfb8; padding: 2.5rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--cream); }
.footer-social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245, 236, 217, .1); color: var(--cream); transition: background-color .15s ease;
}
.footer-social a:hover { background: var(--barn); }
.footer-social a.is-pending { opacity: .5; }
.footer-social svg { width: 20px; height: 20px; }
.copyright { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: #a99a85; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .eggs-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-photo::before { inset: 12px -10px -12px 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .header-inner { flex-direction: column; gap: .35rem; padding: .6rem 0 .4rem; }
  .nav-list { flex-wrap: wrap; justify-content: center; gap: 0; }
  .nav-list a { padding: .3rem .5rem; font-size: .95rem; white-space: nowrap; }
  .eggs-photos figure:nth-child(2) { margin-top: 1.5rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .social-grid { grid-template-columns: 1fr; }
  .social-card { flex-direction: row; justify-content: flex-start; text-align: left; padding: 1.1rem 1.25rem; gap: .9rem; flex-wrap: wrap; }
  .social-icon { margin: 0; width: 38px; height: 38px; }
  .social-name { font-size: 1.2rem; }
  .social-handle { margin-left: auto; font-size: .95rem; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Farmstand */
.farmstand { background: var(--cream); }
.farmstand-card { max-width: 1040px; text-align: center; background: var(--paper); border: 2px solid var(--tan); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 2.6rem); }
.farmstand-icon { width: 56px; height: 56px; color: var(--barn); margin: 0 auto .6rem; display: block; }
.farmstand-sub { color: var(--muted); margin-bottom: 1.4rem; }
.farmstand-address { display: inline-flex; align-items: center; gap: .8rem; background: var(--barn); color: var(--paper); border-radius: 999px; padding: .8rem 1.5rem .8rem 1.1rem; text-align: left; box-shadow: var(--shadow); }
.farmstand-address svg { width: 28px; height: 28px; color: var(--tan); flex: none; }
.farmstand-address span { display: flex; flex-direction: column; line-height: 1.2; }
.farmstand-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); font-weight: 700; }
.farmstand-address strong { font-family: var(--serif); font-size: 1.35rem; }
.farmstand .small { margin-top: 1.2rem; }
.farmstand-town { font-size: .95rem; color: var(--cream); opacity: .9; }
.farmstand-map { margin-top: 1.4rem; }
.farmstand .farmstand-map + * , .farmstand p.center:has(.farmstand-map) + .small { margin-top: .4rem; }

/* Farmstand photo layout */
.farmstand-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.farmstand-photo { margin: 0; }
.farmstand-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 5px solid #fff; box-shadow: var(--shadow); }
.farmstand-info { min-width: 0; }
@media (max-width: 860px) {
  .farmstand-card { grid-template-columns: 1fr; }
  .farmstand-photo img { aspect-ratio: 1 / 1; object-position: 50% 45%; }
}
@media (max-width: 480px) {
  .farmstand-address { display: flex; border-radius: 18px; }
}

/* What Our Chickens Eat */
.feed { background: var(--cream); border-block: 1px solid rgba(107, 75, 51, .15); }
.feed-intro { max-width: 56ch; margin-inline: auto; color: var(--muted); font-size: 1.15rem; }
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; align-items: stretch; }
.feed-card p { color: var(--muted); margin: 0 0 .9em; }
.feed-card p:last-child { margin-bottom: 0; }
.feed-why { grid-column: 1 / -1; border-top-color: var(--green); }
.feed-closing { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--barn) !important; }
.feed-photo { margin: 0; background: #fff; border-radius: var(--radius); padding: 1rem 1rem .9rem; box-shadow: var(--shadow); border: 1px solid rgba(107, 75, 51, .18); display: flex; flex-direction: column; justify-content: center; }
.feed-photo img { width: 100%; height: auto; border-radius: 10px; }
.feed-photo figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .6rem; }
@media (max-width: 860px) {
  .feed-grid { grid-template-columns: 1fr; }
}
