:root {
  --cream: #f7f1e3;
  --cream-dark: #efe5cf;
  --line: #e3d6b8;
  --green: #2f4a2c;
  --green-soft: #4d6a47;
  --rust: #b5562f;
  --rust-dark: #96441f;
  --white: #fffdf8;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font: 17px/1.6 var(--sans);
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); text-align: center; }
h3 { font-size: 1.2rem; }

a { color: var(--rust-dark); }
img { max-width: 100%; height: auto; display: block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6em 1.4em;
  border: 2px solid var(--rust);
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--rust-dark); border-color: var(--rust-dark); }
.button:disabled { opacity: .6; cursor: wait; }
.button-ghost { background: transparent; color: #fff; border-color: #fff; }
.button-ghost:hover, .button-ghost:focus-visible { background: rgba(255, 255, 255, .15); border-color: #fff; }
[hidden] { display: none !important; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--green); }
.hero-logo {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: 12px 16px 4px;
}
.hero-logo img { width: min(280px, 70vw); margin: 0 auto; }
.hero-photo img { width: 100%; height: min(78vh, 620px); object-fit: cover; }
.hero-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 20px 28px;
  background: linear-gradient(0deg, rgba(47, 74, 44, .92) 30%, rgba(47, 74, 44, 0));
}
.hero-text > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-text p { font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Sections */
.section { padding: 56px 20px; }
.section > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.section-alt { background: var(--cream-dark); }

.promise {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.promise li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.promise svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--rust);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  font: 700 1.2rem var(--serif);
}
.steps-action { text-align: center; margin-top: 20px; }

.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse picture { order: 2; }
}

.pasture-video { margin: 28px auto 0; }
.pasture-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; background: var(--green); }
.pasture-video figcaption { text-align: center; font-size: .95rem; color: var(--green-soft); margin-top: 8px; }

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.facts {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px;
}
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 700 1rem var(--serif); }
.facts dd { margin: 0; }

.why { list-style: none; padding: 0; margin: 0; }
.why li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.why li:last-child { border-bottom: 0; }

/* Available now */
.section-highlight { background: var(--white); border-top: 4px solid var(--rust); }
.available-intro { text-align: center; font-size: 1.1rem; }
.size.sold-out { opacity: .6; }
.size .sold-out-label { font-weight: 700; color: var(--rust-dark); margin: 0 0 12px; }

/* Batch */
.batch-ready { text-align: center; font: 700 1.25rem var(--serif); margin-bottom: 4px; }
.batch-status {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.sizes {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 24px;
}
.size {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.price { font: 700 1.8rem var(--serif); margin: 0 0 12px; }
.note { text-align: center; font-size: .95rem; color: var(--green-soft); margin-top: 20px; }

/* Reserve */
#reserve > p { text-align: center; }
.reserve-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.reserve-form label { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
.reserve-form input, .reserve-form select, .reserve-form textarea {
  font: inherit;
  color: inherit;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cdbf9f;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  min-width: 0;
}
.field-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 380px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-privacy { font-size: .85rem; color: var(--green-soft); margin: 0; }
.form-error { color: var(--rust-dark); font-weight: 600; margin: 0; }
.thanks {
  max-width: 520px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.thanks .button { margin-top: 8px; }
.pay-hint { font-weight: 700; color: var(--rust-dark); margin: 8px 0 0; }

/* FAQ */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  max-width: 720px;
}
summary { cursor: pointer; font: 700 1.05rem var(--serif); }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.footer {
  text-align: center;
  padding: 120px 20px 32px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(47, 74, 44, .95) 55%, rgba(47, 74, 44, .55)),
    url("../img/photos/field-sunrise.3d685d6a.jpg") center / cover;
}
.footer img {
  width: 180px;
  margin: 0 auto 12px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.footer a { color: #ffd9a8; }
.small { font-size: .85rem; opacity: .8; }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* Privacy page */
.page { max-width: 720px; margin: 0 auto; padding: 32px 20px 56px; }
.page h1 { text-align: center; }
.page h2 { text-align: left; font-size: 1.3rem; margin-top: 1.5em; }
.page-logo img { width: 200px; margin: 0 auto 16px; }

/* Site menu */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.site-nav a { color: var(--green); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--rust-dark); }
.site-nav .nav-home { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.site-nav .nav-cta { color: #fff; min-height: 38px; padding: .35em 1.1em; }

/* Price strip under the farm-page hero */
.price-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--green);
  color: #fff;
  text-align: center;
}
.price-strip p { margin: 0; }
.price-strip strong { color: #ffd9a8; }
.price-strip span:not(:empty)::before { content: " · "; }
@media (max-width: 700px) {
  .price-strip strong { display: block; }
  .price-strip strong + span:not(:empty)::before,
  .price-strip strong + span:empty + span::before { content: none; }
  .price-strip .strip-pickup { display: block; }
  .price-strip span.strip-pickup:not(:empty)::before { content: none; }
}

/* Order and recipe page headers */
.page-header { text-align: center; padding: 28px 20px 8px; }
.page-header img { margin: 0 auto 8px; width: min(240px, 60vw); }
.page-header picture img { width: min(720px, 100%); border-radius: var(--radius); margin-top: 16px; }
.cta-text { text-align: center; }

/* Recipe */
.recipe-list, .recipe-steps { max-width: 720px; margin-left: auto; margin-right: auto; }
.recipe-list li, .recipe-steps li { margin-bottom: 8px; }
.roast-times { margin: 20px auto 0; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.roast-times caption { font: 700 1rem var(--serif); margin-bottom: 8px; }
.roast-times th, .roast-times td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; }
