@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Franklin:wght@400;500;600&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --cream: #f4eddf;
  --cream-light: #fbf8f1;
  --sage: #6e8065;
  --sage-dark: #42513b;
  --forest: #263326;
  --rust: #a14f31;
  --brown: #352b23;
  --muted: #776c61;
  --line: rgba(53, 43, 35, 0.16);
  --white: #fff;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --wide: 1180px;
  --shadow: 0 22px 60px rgba(46, 39, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brown);
  background: var(--cream-light);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--rust);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.nav-shell,
.footer-grid,
.copyright {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.rust {
  color: var(--rust);
}

.eyebrow.light {
  color: #e9ddc8;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--cream-light);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--cream);
  background: var(--sage-dark);
  border-radius: 50% 50% 45% 45%;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--rust);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brown);
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  color: var(--white);
}

.home-hero {
  min-height: min(780px, calc(100vh - 90px));
}

.hero picture,
.page-hero > picture,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero picture img,
.page-hero > picture img {
  height: 100%;
  object-fit: cover;
}

.home-hero picture img {
  object-position: center 47%;
}

.hero-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(23, 29, 21, 0.82) 0%, rgba(23, 29, 21, 0.42) 48%, rgba(23, 29, 21, 0.05) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
}

.home-hero .hero-content {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin: 0 auto;
  padding: 7rem 0 7.5rem;
}

.home-hero h1 {
  max-width: 900px;
  margin-bottom: 1.2rem;
}

.home-hero .hero-content > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--rust);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
}

.button-light {
  color: var(--forest);
  background: var(--cream);
}

.button-dark {
  color: var(--white);
  background: var(--forest);
}

.text-link {
  display: inline-block;
  padding-bottom: 0.25rem;
  color: var(--forest);
  border-bottom: 1px solid var(--rust);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5.5rem, 10vw, 9rem);
}

.intro-section h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.lead-copy {
  align-self: end;
  color: #51483f;
  font-size: 1.07rem;
}

.lead-copy p {
  margin-bottom: 1.4rem;
}

.photo-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 650px;
  margin-bottom: clamp(6rem, 10vw, 10rem);
  background: var(--cream);
}

.feature-photo img {
  height: 100%;
  min-height: 650px;
  object-fit: cover;
}

.feature-copy {
  align-self: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.priority-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.priority-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.priority-list span {
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.priority-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.55rem;
}

.priority-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.practices-preview {
  padding-block: clamp(5.5rem, 10vw, 9rem);
  color: var(--cream-light);
  background: var(--sage-dark);
}

.practices-preview h2 {
  max-width: 720px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 3.5rem 0;
  background: rgba(255, 255, 255, 0.18);
}

.preview-grid article {
  min-height: 300px;
  padding: 2.3rem;
  background: var(--sage-dark);
}

.preview-grid h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.preview-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.line-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #d9c8ad;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 5rem;
  align-items: end;
  padding-block: clamp(5rem, 9vw, 8rem);
}

.cta-band h2 {
  margin-bottom: 0;
}

.cta-band > div:last-child p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.compact-hero {
  min-height: 490px;
  align-items: center;
  color: var(--cream-light);
  background:
    radial-gradient(circle at 80% 20%, rgba(161, 79, 49, 0.55), transparent 28rem),
    var(--forest);
}

.compact-hero .section-shell {
  padding-block: 5rem;
}

.compact-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.7rem, 8vw, 7rem);
}

.compact-hero p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
}

.listing-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.sold-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  column-gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.livestock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.livestock-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.listing-gallery,
.listing-placeholder {
  position: relative;
  height: 450px;
  background: #d8d2c8;
}

.gallery-main-image {
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  background: rgba(27, 31, 24, 0.72);
  backdrop-filter: blur(8px);
}

.gallery-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumb.is-active,
.gallery-thumb:focus-visible {
  border-color: var(--cream);
}

.gallery-thumb img {
  height: 100%;
  object-fit: cover;
}

.listing-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  color: #766d62;
  background: linear-gradient(150deg, #e8e1d5, #cfc7b9);
}

.listing-placeholder svg {
  width: 180px;
  fill: none;
  stroke: #8a8176;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.listing-placeholder span {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listing-content {
  padding: clamp(1.7rem, 4vw, 2.7rem);
}

.listing-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.listing-heading h3 {
  margin: 0;
  font-size: 2.4rem;
}

.listing-heading .eyebrow {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.status {
  padding: 0.38rem 0.68rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-available {
  color: #24462a;
  background: #dcebd9;
}

.status-sold {
  color: #694130;
  background: #eee0d5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.stats > div {
  padding: 1rem 0;
}

.stats > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.stats > div:nth-child(even) {
  padding-left: 1rem;
}

.stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.listing-description {
  margin: 1.3rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.listing-description:empty {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(3rem, 8vw, 6rem);
  text-align: center;
  background: var(--cream);
}

.empty-state h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.empty-state > p:not(.eyebrow) {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
}

.practices-hero,
.about-hero {
  min-height: 680px;
  align-items: end;
}

.practices-hero .hero-content,
.about-hero .hero-content {
  width: min(calc(100% - 2.5rem), var(--wide));
  padding-block: 6rem;
}

.practices-hero h1,
.about-hero h1 {
  margin-bottom: 0;
}

.practice-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.practice-story.reverse .practice-image {
  order: 2;
}

.practice-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.practice-copy {
  position: relative;
}

.practice-copy h2 {
  font-size: clamp(2.3rem, 4.2vw, 4rem);
}

.practice-copy > p:not(.eyebrow) {
  color: #5d544b;
}

.section-number {
  display: block;
  margin-bottom: 4rem;
  color: #b5aa9c;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
}

.quote-band {
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--cream-light);
  background: var(--rust);
}

.quote-band blockquote {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.story-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: clamp(3rem, 9vw, 9rem);
  justify-content: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.story-index {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.story-index ol {
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  counter-reset: story;
}

.story-index li {
  padding: 0.8rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  counter-increment: story;
  font-size: 0.84rem;
}

.story-index li::before {
  margin-right: 0.8rem;
  color: var(--rust);
  content: "0" counter(story);
}

.story-copy article {
  position: relative;
  padding-bottom: 5rem;
}

.story-copy article > span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.story-copy article h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.story-copy article p {
  color: #5d544b;
  font-size: 1.05rem;
}

.story-photo {
  margin: 0 0 5rem;
}

.story-photo img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-photo figcaption {
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1fr;
  gap: 1rem;
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.about-gallery picture:nth-child(2) {
  margin-top: 5rem;
}

.about-gallery img {
  height: 480px;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 90px);
}

.contact-photo img {
  height: 100%;
  min-height: 760px;
  object-fit: cover;
}

.contact-content {
  align-self: center;
  max-width: 720px;
  padding: clamp(3rem, 7vw, 7rem);
}

.contact-content h1 {
  margin-bottom: 1.2rem;
  color: var(--forest);
  font-size: clamp(3.8rem, 7vw, 6.5rem);
}

.contact-lead {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.config-notice {
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  color: #6e3b27;
  background: #f2ded0;
  border-left: 4px solid var(--rust);
  font-size: 0.82rem;
}

.config-notice code {
  font-size: 0.78rem;
}

.contact-methods > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.contact-methods > div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-methods span:first-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-methods a,
.contact-methods p,
.placeholder-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.placeholder-value {
  color: var(--rust);
  text-decoration: underline wavy rgba(161, 79, 49, 0.45);
}

.contact-methods small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.contact-note {
  padding-top: 2.4rem;
}

.contact-note h2 {
  font-size: 1.8rem;
}

.contact-note p {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding-top: 5rem;
  color: rgba(255, 255, 255, 0.76);
  background: #202a20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-grid h2 {
  margin-bottom: 0.8rem;
  color: var(--cream-light);
  font-size: 2.7rem;
}

.footer-grid h3 {
  margin-bottom: 1rem;
  color: var(--cream-light);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid p {
  max-width: 460px;
  font-size: 0.86rem;
}

.footer-grid a {
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.copyright {
  padding-block: 1.3rem;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

@media (max-width: 920px) {
  .nav-shell {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 1.25rem 1.5rem;
    background: var(--cream-light);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .home-hero {
    min-height: 700px;
  }

  .intro-section,
  .photo-feature,
  .cta-band,
  .section-heading,
  .practice-story,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro-section {
    gap: 2.5rem;
  }

  .photo-feature {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid article {
    min-height: auto;
  }

  .livestock-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1rem;
  }

  .practice-story.reverse .practice-image {
    order: 0;
  }

  .practice-image img {
    aspect-ratio: 16 / 10;
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .story-index {
    position: static;
  }

  .story-index ol {
    display: none;
  }

  .contact-photo img {
    min-height: 440px;
    max-height: 58vh;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .section-shell,
  .nav-shell,
  .footer-grid,
  .copyright {
    width: min(calc(100% - 2rem), var(--wide));
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .home-hero {
    min-height: 660px;
  }

  .home-hero .hero-content {
    width: calc(100% - 2rem);
    padding-block: 5rem;
  }

  .home-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .home-hero .hero-content > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .button-row .button {
    width: 100%;
  }

  .feature-photo img {
    min-height: 420px;
  }

  .feature-copy {
    padding: 3rem 1.3rem;
  }

  .cta-band {
    gap: 2rem;
  }

  .practices-hero,
  .about-hero {
    min-height: 570px;
  }

  .practices-hero .hero-content,
  .about-hero .hero-content {
    width: calc(100% - 2rem);
    padding-block: 4rem;
  }

  .listing-gallery,
  .listing-placeholder {
    height: 340px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats > div:nth-child(odd) {
    border-right: 0;
  }

  .stats > div:nth-child(even) {
    padding-left: 0;
  }

  .stats > div + div {
    border-top: 1px solid var(--line);
  }

  .section-number {
    margin-bottom: 2rem;
    font-size: 3.3rem;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery picture:nth-child(2) {
    margin-top: 0;
  }

  .about-gallery img {
    height: 360px;
  }

  .contact-content {
    padding: 4rem 1rem;
  }

  .contact-methods > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
