/* Sycamore Creek Farms */

:root {
  --bone: #F2EEE6;
  --sand: #E6E0D3;
  --divider: #D8D1C3;
  --placeholder: #DCD5C6;
  --green: #3E4B34;
  --sage: #5E6B4C;
  --green-divider: #5F6C52;
  --pale-sage: #C9D0B4;
  --wheat: #8A6D3B;
  --underline: #B8A27A;
  --ink: #23251F;
  --body: #34362F;
  --body-2: #44463D;
  --body-3: #4A4B42;
  --muted: #5A5B51;
  --nav: #3C3E36;
  --footer-text: #C9C4B8;
  --footer-muted: #8E8A7E;

  --serif: Bitter, Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--green); color: var(--bone); padding: 10px 14px; border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bone); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

[id] { scroll-margin-top: 90px; }

.eyebrow, .label {
  font-family: var(--cond);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--sage);
}
.label { letter-spacing: 0.18em; }

.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--placeholder);
}

h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 300; }
.eyebrow + h2 { margin-top: 14px; }
.h3 { font-size: 24px; font-weight: 400; }

.body-lg { font-size: 17px; line-height: 1.85; color: var(--body); }
.body { font-size: 16px; line-height: 1.8; color: var(--body); }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 72px;
  align-items: start;
}
.two-col.align-end { align-items: end; gap: 40px 72px; }

.section { padding-top: 96px; }
.section-lg { padding-top: 104px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 238, 230, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px; flex-wrap: wrap;
}
.lockup {
  display: flex; align-items: center; gap: 13px; flex: none;
  padding: 12px 0; text-decoration: none; color: var(--ink);
}
.lockup img { height: 40px; width: auto; }
.lockup-text {
  display: flex; flex-direction: column;
  border-left: 1px solid #CFC7B7; padding-left: 13px;
  font-family: var(--cond); text-transform: uppercase;
}
.lockup-name { font-weight: 600; font-size: 21px; letter-spacing: 0.04em; line-height: 1; color: var(--ink); }
.lockup-sub { font-weight: 500; font-size: 13px; letter-spacing: 0.36em; line-height: 1.4; color: var(--sage); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--nav); text-decoration: none; font-size: 15px; padding: 9px 12px; }
.site-nav a:hover { color: var(--green); }

.menu-btn {
  display: none;
  margin-left: auto;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--divider); border-radius: 999px;
  font: 15px var(--serif); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0 0 12px;
    border-top: 1px solid var(--divider);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--divider); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* Hero */
.hero { padding-top: 64px; }
.hero h1 {
  margin-top: 20px;
  max-width: 17ch;
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 300;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-lede { margin-top: 22px; max-width: 54ch; font-size: 18px; line-height: 1.7; color: var(--body-3); }
.hero-photo { margin-top: 44px; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 260px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--placeholder);
}

/* Stats */
.stats-wrap { padding-top: 64px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--divider);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.stat { background: var(--bone); padding: 28px 24px; }
.stat:first-child { padding-left: 0; }
.stat-num { font-size: 40px; font-weight: 300; color: var(--green); line-height: 1; }
.stat dd { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 520px) {
  .stat { padding-left: 0; }
}

/* Mission */
.mission { margin-top: 96px; background: var(--green); color: var(--bone); }
.mission-inner { padding-top: 88px; padding-bottom: 88px; }
.mission .eyebrow { color: var(--pale-sage); }
.mission h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 300; line-height: 1.3; color: var(--bone); }
.mission-photo { margin-top: 40px; background: #4E5B43; }
.we-will {
  font-size: 22px; font-weight: 400; color: var(--bone);
  padding-bottom: 14px; border-bottom: 1px solid var(--green-divider);
}
.values li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--green-divider);
}
.values .num {
  flex: none; width: 22px;
  font-family: var(--cond); font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--pale-sage);
}
.values p { font-size: 18px; line-height: 1.5; color: var(--bone); }

/* How we farm */
.background { margin-top: 56px; gap: 40px 56px; }

.crop-year {
  margin-top: 88px;
  display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-start;
}
.crop-year-head { flex: 1 1 240px; position: sticky; top: 110px; }
.crop-year-head h3 { font-size: clamp(26px, 3vw, 32px); font-weight: 300; }
.crop-year-head p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 30ch; }
.seasons { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.season {
  display: flex; flex-wrap: wrap; gap: 10px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--divider);
}
.season-label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.season-when {
  font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 13px; font-weight: 600; color: var(--wheat);
}
.season h4 { font-size: 20px; font-weight: 400; line-height: 1.3; }
.season p { flex: 2 1 320px; min-width: 0; font-size: 16px; line-height: 1.8; color: var(--body); max-width: 62ch; }
/* Once the crop-year layout stacks, the sticky heading just rides over the rows. */
@media (max-width: 860px) {
  .crop-year-head { position: static; }
}

.timeline-head {
  margin-top: 80px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 24px;
}
.timeline-head p { margin-top: 6px; font-size: 15px; color: var(--muted); }

.tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--sand); border-radius: 999px;
}
.tabs [role="tab"] {
  border: none; cursor: pointer;
  font-family: var(--serif); font-size: 14px;
  padding: 9px 16px; min-height: 40px; border-radius: 999px;
  background: transparent; color: var(--nav);
}
.tabs [role="tab"]:hover { color: var(--green); }
.tabs [role="tab"][aria-selected="true"] { background: var(--green); color: var(--bone); }

.timeline {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 4px;
  overflow: hidden;
}
/* Six periods: keep rows even (6 / 3 / 2 / 1) instead of leaving an orphan column. */
@media (max-width: 1080px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .timeline { grid-template-columns: 1fr; } }
.tl-col { background: var(--bone); padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.tl-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.tl-year {
  font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 12px; font-weight: 600; color: var(--wheat);
}
.tl-season { font-size: 19px; color: var(--ink); }
.tl-items { display: flex; flex-direction: column; gap: 10px; }
.tl-items li { position: relative; padding-left: 15px; font-size: 14px; line-height: 1.55; color: var(--body); }
.tl-items li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sage);
}

/* Equipment */
.equipment-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 36px 20px;
}

/* People */
.people-note { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--body-2); max-width: 40ch; }
.people { border-top: 1px solid var(--divider); }
.people li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--divider);
}
.person-name { font-size: 19px; color: var(--ink); }
.person-role { font-size: 15px; color: var(--muted); }

/* Contact */
.contact { margin-top: 104px; background: var(--sand); border-top: 1px solid var(--divider); }
.contact-inner {
  padding-top: 80px; padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px 72px; align-items: start;
}
.contact-intro { margin-top: 18px; font-size: 17px; line-height: 1.8; color: var(--body); max-width: 44ch; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-card .label { font-family: var(--cond); font-size: 13px; line-height: 1.12; }
.contact-card a { color: var(--ink); }
.contact-lg { font-size: 17px; line-height: 1.6; }
.contact-email { font-size: 15px; word-break: break-all; }

/* Footer */
.site-footer { background: var(--ink); color: var(--footer-text); }
.footer-inner {
  padding-top: 48px; padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}
.lockup-footer { padding: 0; }
.lockup-footer img { height: 38px; filter: invert(1); }
.lockup-footer .lockup-text { border-left-color: #45473E; }
.lockup-footer .lockup-name { font-size: 19px; color: var(--bone); }
.lockup-footer .lockup-sub { font-size: 12px; color: #B3BD99; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links .label { font-size: 12px; color: var(--footer-muted); }
.footer-links a { color: var(--footer-text); text-decoration-color: #5A5C51; }
.footer-links a:hover { color: var(--bone); text-decoration-color: var(--bone); }
.site-footer :focus-visible { outline-color: var(--bone); }
.footer-bottom { border-top: 1px solid #36382F; }
.footer-bottom .wrap { padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: var(--footer-muted); }

/* Small phones: keep the lockup and menu button on one line, and the tabs as one even row. */
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .menu-btn { padding: 8px 13px; }
  .menu-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 26px; }
  .tabs [role="tab"] { padding: 8px 6px; line-height: 1.25; }
}
