:root {
  --blue: #1d4a9c;
  --blue-deep: #102c63;
  --ink: #1a2230;
  --muted: #4a5568;
  --paper: #f7f9fb;
  --sky: #e4ecf7;
  --straw: #e2cf98;
  --serif-display: "Libre Caslon Display", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(2.1rem, 4.6vw, 3.6rem)/1.08 var(--serif-display); letter-spacing: -0.01em; color: var(--blue-deep); }
h3 { font: 700 1.2rem/1.3 var(--serif); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 44, 99, 0.08);
}
.brand img { width: 88px; height: auto; }
.site-header nav { display: flex; gap: clamp(14px, 2.6vw, 36px); font: 500 0.95rem/1 var(--sans); }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-header nav a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; height: min(84vh, 52vw + 160px); min-height: 440px; overflow: hidden; background: var(--blue-deep); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 60, 0.82) 0%, rgba(10, 26, 60, 0.35) 42%, transparent 72%);
}
.hero-copy {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vw, 72px);
  max-width: var(--max); color: #fff;
}
.hero-place { margin: 0 0 12px; font: 500 1.05rem/1 var(--sans); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero h1 {
  font: 400 clamp(2.9rem, 8.4vw, 7.4rem)/0.98 var(--serif-display);
  letter-spacing: -0.02em; max-width: 11ch; text-wrap: balance;
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Intro */
.intro { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) clamp(56px, 8vw, 96px); }
.lede {
  margin: 0; max-width: 30ch;
  font: 400 clamp(1.6rem, 3.3vw, 2.5rem)/1.32 var(--serif); color: var(--blue-deep);
}
.intro-note { margin: 28px 0 0; max-width: 52ch; color: var(--muted); }

/* Farming */
.farming { background: var(--sky); padding: clamp(64px, 9vw, 112px) var(--gutter); }
.farming > h2, .farming-cols { max-width: var(--max); margin-left: auto; margin-right: auto; }
.farming-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
.farming h3 { font: 600 1.05rem/1.3 var(--sans); color: var(--blue); margin-bottom: 18px; }
.farming ul { list-style: none; margin: 0; padding: 0; }
.farming li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid rgba(16, 44, 99, 0.16); max-width: 54ch; }
.farming li::before {
  content: ""; position: absolute; left: 2px; top: 1.45em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--blue);
}

/* Animals */
.animals { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.animals-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.animals-head h2 { max-width: 12ch; }
.animals-head p { margin: 0; color: var(--muted); max-width: 48ch; }

.herd { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 32px); }
.beast { grid-column: span 4; }
.beast--wide { grid-column: span 7; }
.beast:nth-child(2) { grid-column: span 5; }
.beast:nth-child(7) { grid-column: span 8; }
.beast:nth-child(8) { grid-column: span 4; }
.beast img { width: 100%; height: clamp(240px, 26vw, 400px); object-fit: cover; border-radius: 3px; margin-bottom: 16px; }
.beast--tall img { object-position: 50% 30%; }
.beast:nth-child(7) img { object-position: 50% 45%; }
.beast .count { margin: 4px 0 0; font: 500 0.9rem/1.3 var(--sans); color: var(--blue); }
.beast p:not(.count) { margin: 8px 0 0; color: var(--muted); max-width: 48ch; }

.beast--bees {
  grid-column: 1 / -1 !important; order: 99;
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px 28px;
  background: var(--blue); color: #fff; padding: clamp(28px, 4vw, 48px); border-radius: 3px;
}
.beast--bees h3 { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--serif-display); }
.beast--bees .count { margin: 0; color: var(--straw); font-size: 1rem; }
.beast--bees p:not(.count) { color: #e8eef9; margin: 0; }

/* Family */
.family {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 128px);
}
.family img { width: 100%; border-radius: 3px; }
.family-copy p { max-width: 46ch; color: var(--muted); }
.family-copy h2 { margin-bottom: 20px; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--blue-deep); color: #fff; }
.visit-img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.visit-copy { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.visit h2 { color: #fff; margin-bottom: 28px; }
.visit a { color: #fff; }
.visit address { font: 400 1.5rem/1.4 var(--serif); font-style: normal; }
.visit address a { text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact { font: 500 1.05rem/1.9 var(--sans); margin: 24px 0; }
.updates { max-width: 40ch; color: #d3ddf0; }
.updates a { color: var(--straw); }
.social { display: flex; gap: 22px; font: 500 0.95rem/1 var(--sans); margin-top: 32px; }

.site-footer { padding: 24px var(--gutter); font: 400 0.85rem/1 var(--sans); color: var(--muted); text-align: center; }

/* Small screens */
@media (max-width: 860px) {
  .site-header { flex-direction: column; gap: 4px; padding-bottom: 4px; position: static; }
  .brand img { width: 72px; height: auto; }
  .site-header nav { flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 0.9rem; }
  .hero { height: 78vh; }
  .hero-img { object-position: 40% 60%; }
  .farming-cols, .animals-head, .family, .visit { grid-template-columns: 1fr; }
  .herd { grid-template-columns: 1fr; }
  .herd > .beast { grid-column: 1 / -1 !important; }
  .beast img { height: auto; aspect-ratio: 4 / 3; }
  .beast--bees { grid-template-columns: 1fr; }
  .visit-img { min-height: 0; aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
}
