@font-face {
  font-family: "Wittgenstein";
  src: url("/assets/fonts/Wittgenstein-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --farm-ivory: #f7f8e9;
  --farm-green: #173b2c;
  --farm-red: #9c3529;
  --farm-ink: #1a1c18;
  --farm-serif: "Wittgenstein", Georgia, serif;
  --farm-sans: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  /* Keep the 14px-to-18px type scale used by the existing farm layout. */
  font-size: clamp(14px, 12.6667px + 0.416667vw, 18px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.home-page {
  margin: 0;
  border-top: 0;
  color: var(--farm-ink);
  background: var(--farm-ivory);
  font-family: var(--farm-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

body.home-page ::selection { color: var(--farm-ivory); background: var(--farm-red); }
body.home-page a { color: inherit; }
body.home-page a:focus-visible { outline: 3px solid var(--farm-red); outline-offset: 5px; }

.home-skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--farm-ivory) !important;
  background: var(--farm-green);
  transform: translateY(-180%);
}
.home-skip-link:focus { transform: translateY(0); }

.home-header { min-height: 5.6rem; background: var(--farm-ivory); }
.home-header__inner {
  width: min(100% - 2rem, 70rem);
  min-height: 5.6rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.home-brand { display: block; width: min(31rem, 42vw); height: 5.6rem; }
.home-brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.home-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); white-space: nowrap; }
.home-nav a {
  color: var(--farm-green);
  font-family: var(--farm-serif);
  font-size: 1rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}
.home-nav a:hover { color: var(--farm-red); }

.home-main { display: block; }
.home-hero {
  position: relative;
  width: min(100%, 99.0625rem);
  min-height: min(31vw, 30rem);
  margin-inline: auto;
  padding-block: clamp(1rem, 1.8vw, 1.75rem);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.home-hero__media,
.home-hero__media picture,
.home-hero__media img { display: block; width: 100%; height: 100%; }
.home-hero__media { position: absolute; inset: 0; }
.home-hero__media img { object-fit: cover; object-position: center; }

.season-notice {
  position: relative;
  width: clamp(20rem, 29%, 28rem);
  margin-inline: auto 4.3%;
  padding: clamp(1.65rem, 2.8vw, 2.75rem);
  border-radius: 0.75rem;
  color: var(--farm-ivory);
  background: var(--farm-green);
  box-shadow: 0 0.3rem 0.85rem rgba(13, 35, 26, 0.22);
}
.season-notice__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.season-notice__label::after {
  flex: 1;
  height: 1px;
  content: "";
  background: rgba(247, 248, 233, 0.62);
}
.season-notice h1 {
  margin: 0 0 1rem;
  color: var(--farm-ivory);
  font-family: var(--farm-serif);
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.season-notice__message {
  max-width: 29ch;
  margin: 0 0 1.35rem;
  color: rgba(247, 248, 233, 0.91);
  font-family: var(--farm-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.35;
}
.home-page .farm-action {
  width: min(100%, 23rem);
  min-height: 3.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.375rem;
  color: #fff;
  background: var(--farm-red);
  box-shadow: inset 0 1px rgba(247, 248, 233, 0.16), 0 2px 3px rgba(13, 35, 26, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--farm-serif);
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
}
.farm-action:hover,
.farm-action:active { background: #7f2b22; }
.farm-action:active { box-shadow: inset 0 1px 3px rgba(13, 35, 26, 0.36); }
.farm-action svg { flex: none; width: 1.25rem; height: 1.25rem; stroke: currentColor; }
body.home-page .season-notice a:focus-visible { outline-color: var(--farm-ivory); outline-offset: 4px; }
.season-notice__directions {
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--farm-ivory) !important;
  display: inline-flex;
  align-items: center;
  font-family: var(--farm-serif);
  text-underline-offset: 0.35rem;
}
.season-notice__address {
  margin: 0.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 248, 233, 0.62);
  color: rgba(247, 248, 233, 0.86);
  font-family: var(--farm-serif);
  font-size: 0.9rem;
  font-style: normal;
}

.home-intro { padding: 1.75rem 1.25rem 1.6rem; text-align: center; }
.home-intro h2 {
  color: var(--farm-green);
  font-family: var(--farm-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.home-intro h2 { margin: 0 0 0.7rem; font-size: clamp(2.2rem, 3.3vw, 3rem); line-height: 1.05; }
.home-intro h2::after {
  width: 3rem;
  height: 1px;
  margin: 0.7rem auto 0;
  content: "";
  background: var(--farm-red);
  display: block;
}
.home-intro p {
  max-width: 67ch;
  margin: 0 auto;
  font-family: var(--farm-serif);
  font-size: 1rem;
}

.farm-experience,
.farm-history,
.farm-cottage {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto clamp(5rem, 9vw, 8rem);
  display: grid;
  align-items: center;
}

.farm-experience { grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.4fr); }
.farm-history { grid-template-columns: minmax(18rem, 0.9fr) minmax(18rem, 1.1fr); }
.farm-cottage { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); }

.farm-experience img,
.farm-history img,
.farm-cottage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.farm-experience img { min-height: 31rem; }
.farm-history img { min-height: 26rem; filter: saturate(0.82) contrast(0.96); }
.farm-cottage__media { min-height: 29rem; height: 100%; overflow: hidden; }

.farm-experience__copy,
.farm-history__copy,
.farm-cottage__copy { padding: clamp(2rem, 5vw, 5rem); }
.farm-experience__copy { color: var(--farm-ivory); background: var(--farm-green); }
.farm-history__copy { padding-right: 0; }
.farm-cottage__copy { color: var(--farm-ivory); background: var(--farm-red); }

.farm-experience h2,
.farm-history h2,
.farm-cottage h2,
.visit-block h2 {
  margin: 0 0 1.25rem;
  font-family: var(--farm-serif);
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.farm-experience p,
.farm-history p,
.farm-cottage p { max-width: 36ch; margin: 0 0 1.5rem; }
.farm-experience a,
.farm-history a,
.farm-cottage a { font-weight: 750; text-underline-offset: 0.35rem; }
.farm-experience a,
.farm-cottage a { color: var(--farm-ivory); }
.farm-history h2,
.farm-history a { color: var(--farm-green); }

.visit-block {
  padding: clamp(3rem, 5vw, 4.5rem) max(1rem, calc((100vw - 76rem) / 2));
  color: var(--farm-ivory);
  background: var(--farm-green);
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.visit-block__heading > p:last-child { max-width: 34ch; color: rgba(247, 248, 233, 0.8); }
.visit-details { margin: 0; border-top: 1px solid rgba(247, 248, 233, 0.4); }
.visit-details div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(247, 248, 233, 0.4);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
}
.visit-details dt { color: rgba(247, 248, 233, 0.68); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.visit-details dd { margin: 0; font-family: var(--farm-serif); }
.visit-details a { text-decoration: underline; text-underline-offset: 0.2em; }
.visit-block__directions {
  width: fit-content;
  margin-top: 1.75rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  color: var(--farm-ivory) !important;
  font-family: var(--farm-serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.visit-block__directions span { margin-left: 0.55rem; }

.home-footer {
  padding: 2.25rem 1rem;
  border-top: 1px solid rgba(247, 248, 233, 0.32);
  color: var(--farm-ivory);
  background: var(--farm-green);
}
.home-footer__inner {
  width: min(100%, 76rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: center;
}
.home-footer p { margin: 0; }
.home-footer nav { display: grid; gap: 0.55rem; }
.home-footer a { color: var(--farm-ivory); text-underline-offset: 0.3rem; }
.home-footer__copyright { color: rgba(247, 248, 233, 0.72); font-size: 0.9rem; }

.plate-stage [data-semantic] { visibility: hidden !important; }
.plate-stage .season-notice > * { visibility: hidden !important; }

@media (prefers-reduced-motion: no-preference) {
  body:not(.plate-stage) .season-notice { animation: notice-arrive 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes notice-arrive {
    from { opacity: 0.94; transform: translateX(0.6rem); }
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .farm-action { transition: background-color 180ms ease-out, box-shadow 180ms ease-out; }
  .farm-action svg { transition: transform 180ms ease-out; }
  .farm-action:hover svg { transform: translateX(0.15rem); }
}

@media (max-width: 900px) {
  .home-header__inner { width: min(100% - 1.5rem, 50rem); gap: 1rem; }
  .home-brand { width: 18rem; }
  .home-nav { gap: 1.1rem; }
  .home-hero { display: block; min-height: 0; padding-block: 0; overflow: visible; }
  .home-hero__media { position: relative; inset: auto; aspect-ratio: 16 / 8; }
  .season-notice { width: min(100% - 2rem, 36rem); margin: 1rem auto 0; padding: clamp(1.5rem, 4vw, 2.5rem); }
  .season-notice h1 { max-width: 14ch; }
  .season-notice__message { max-width: 36ch; }
  .farm-experience,
  .farm-history,
  .farm-cottage { grid-template-columns: 1fr 1fr; }
  .farm-experience img,
  .farm-history img,
  .farm-cottage__media { min-height: 24rem; }
}

@media (max-width: 680px) {
  .home-header__inner { padding: 0.65rem 0 0.8rem; display: block; }
  .home-brand { width: 17rem; height: 4.7rem; margin-inline: auto; }
  .home-nav { justify-content: center; gap: 0.7rem 1.1rem; flex-wrap: wrap; }
  .home-nav a { min-height: 2.75rem; padding-block: 0.65rem; display: inline-flex; align-items: center; font-family: var(--farm-sans); font-size: 0.9rem; }
  .home-hero__media { aspect-ratio: 4 / 3; }
  .season-notice h1 { font-size: clamp(2.2rem, 10vw, 3.3rem); }
  .home-intro { text-align: left; }
  .home-intro h2,
  .home-intro p { max-width: 100%; overflow-wrap: break-word; }
  .home-intro h2::after { margin-left: 0; }
  .farm-experience,
  .farm-history,
  .farm-cottage { width: 100%; grid-template-columns: 1fr; }
  .farm-experience__copy { order: 2; }
  .farm-experience img { order: 1; }
  .farm-history img,
  .farm-cottage__media { min-height: 19rem; aspect-ratio: 4 / 3; }
  .farm-experience img { min-height: 0; aspect-ratio: 4 / 3; }
  .farm-history__copy,
  .farm-experience__copy,
  .farm-cottage__copy { padding: 2.75rem 1.25rem; }
  .visit-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .visit-details div { grid-template-columns: 1fr; gap: 0.3rem; }
  .home-footer__inner { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
}
