:root {
  --blue: #1F8DD0;
  --sky: #8CCBEE;
  --gold: #F2B21B;
  --green: #4FA247;
  --ink: #1E3550;
  --paper: #FCE9C8;
  --hay: #E8D7AA;
  --print: #FBF7EC;
  --gutter: clamp(20px, 6vw, 96px);
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.55 var(--body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.visit__how .line { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

section, .foot { position: relative; isolation: isolate; }
.ground {
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--paper);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(#0000, #000 5%, #000 95%, #0000);
          mask-image: linear-gradient(#0000, #000 5%, #000 95%, #0000);
}
.ground--hero { background-image: url(../art/bg-hero.webp); -webkit-mask-image: linear-gradient(#000 95%, #0000); mask-image: linear-gradient(#000 95%, #0000); }
.ground--goal { background-image: url(../art/bg-goal.webp); }
.ground--meadow { background-image: url(../art/bg-meadow.webp); right: auto; width: 170vw; background-position: center bottom; will-change: transform; -webkit-mask-image: none; mask-image: none; }
.ground--map { background-image: url(../art/bg-map.webp); }
.ground--straw { background-image: url(../art/bg-straw.webp); }
.ground--barn { background-image: url(../art/bg-barn.webp); }
.ground--pond { background-image: url(../art/bg-pond.webp); }
.ground--wall { background-image: url(../art/bg-wall.webp); -webkit-mask-image: none; mask-image: none; }
.ground--evening { background-image: url(../art/bg-evening.webp); background-position: center top; background-color: #2F5F96; -webkit-mask-image: linear-gradient(#0000, #000 8%); mask-image: linear-gradient(#0000, #000 8%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 17px/1 var(--body); color: var(--ink); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--gold { background: var(--gold); }
.btn--line { background: var(--print); }
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.textlink { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--gold); }

.print {
  margin: 0; padding: 10px; background: var(--print);
  box-shadow: 7px 9px 0 rgb(30 53 80 / .16);
}
.print img { width: 100%; height: 100%; object-fit: cover; }

.rise { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.rise.is-in { opacity: 1; transform: none; }

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 10px var(--gutter);
  background: rgb(252 233 200 / .5);
  -webkit-backdrop-filter: blur(3px) saturate(1.4); backdrop-filter: blur(3px) saturate(1.4);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.top.is-stuck {
  background: rgb(252 233 200 / .8);
  -webkit-backdrop-filter: blur(3px) saturate(1.4); backdrop-filter: blur(3px) saturate(1.4);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / .8), 0 1px 0 rgb(30 53 80 / .14);
}
.top__logo img { width: 84px; height: auto; transition: width .25s ease; }
.top.is-stuck .top__logo img { width: 58px; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { font-weight: 600; text-decoration: none; padding: 8px 0; }
.top__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.top__donate { min-height: 44px; padding: 0 20px; }
.top__menu, .tabbar, .sheet { display: none; }

.hero {
  min-height: max(100svh, 720px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  padding: 130px 0 12vh var(--gutter);
  overflow: clip;
}
.hero__copy { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-size: clamp(40px, 4.2vw, 70px); }
.hero__lead { margin-top: 22px; max-width: 30em; font-size: clamp(18px, 1.35vw, 21px); }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__photo { position: relative; z-index: 1; margin-left: 4vw; margin-right: -3vw; transform: rotate(1.6deg); }
.hero__photo img { aspect-ratio: 1536 / 747; }
.hero__grass { position: absolute; z-index: 2; right: -2vw; bottom: 0; width: 62vw; max-width: none; pointer-events: none; }

.pigs { position: absolute; z-index: 3; left: calc(var(--gutter) + 20px); bottom: 3.5vh; display: flex; align-items: flex-end; gap: 4px; }
.pig {
  position: relative; width: clamp(120px, 11vw, 176px); aspect-ratio: 4 / 3;
  padding: 0; border: 0; cursor: pointer;
  background: url(../art/pig.webp) 66.667% 0 / 700% 100% no-repeat;
  transform: translateX(-60vw);
  transition: transform 3.2s linear;
}
.pig--ernie { width: clamp(104px, 9.6vw, 152px); transition-duration: 3.7s; }
.pig.is-home { transform: none; }
.pig.is-walking { animation: pig-walk .48s steps(1) infinite; }
.pig.is-sniff { background-position-x: 83.333%; }
.pig.is-hop { background-position-x: 100%; animation: pig-hop .5s ease; }
.pig__name { position: absolute; left: 50%; top: -14px; translate: -50% 0; font: 700 22px/1 var(--hand); color: var(--ink); opacity: 0; transition: opacity .3s ease; }
.pig.is-named .pig__name { opacity: 1; }
@keyframes pig-walk { 0% { background-position-x: 0; } 25% { background-position-x: 16.667%; } 50% { background-position-x: 33.333%; } 75% { background-position-x: 50%; } }
@keyframes pig-hop { 40% { translate: 0 -16px; } }

.goal { min-height: max(100svh, 700px); display: grid; place-items: start center; padding: 12vh var(--gutter) 10vh; text-align: center; }
.goal__copy { max-width: 720px; }
.goal h2 { font-size: clamp(30px, 3vw, 46px); }
.goal__figure { display: block; margin-top: 4px; font-size: clamp(84px, 13vw, 210px); line-height: .92; letter-spacing: -0.03em; }
.goal__copy > p { margin: 36px auto 36px; max-width: 30em; }
.meter { --at: 50%; position: relative; max-width: min(560px, 40vw); margin: 100px auto 0; }
.meter__bar { height: 28px; border: 2px solid var(--ink); border-radius: 3px; background: var(--print); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.meter__fill { width: 0; height: 100%; background: var(--gold); border-right: 2px solid var(--ink); transition: width 2s cubic-bezier(.3, .7, .3, 1); }
.goal.is-in .meter__fill { width: var(--at); }
.meter__pig { position: absolute; left: 0; bottom: calc(100% - 5px); width: 84px; aspect-ratio: 4 / 3; margin-left: -50px; padding: 0; border: 0; cursor: pointer; background: url(../art/pig.webp) 66.667% 0 / 700% 100% no-repeat; transition: left 2s cubic-bezier(.3, .7, .3, 1); }
.goal.is-in .meter__pig { left: var(--at); animation: pig-walk .48s steps(1) 4; }
.goal .meter__pig.is-hop { background-position-x: 100%; animation: pig-hop .5s ease; }
.meter__ends { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; margin: 12px 0 0; font: 620 18px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.meter__ends span:first-child { text-align: left; }
.meter__ends span:last-child { text-align: right; }
.meter__ends span:nth-child(2) { font: 700 24px/1 var(--hand); }
.note { position: absolute; font: 700 clamp(24px, 2.2vw, 34px)/1 var(--hand); transform: rotate(-4deg); }
.note img { width: clamp(70px, 6vw, 100px); margin: 6px auto 0; }
.note--manager { left: 5%; bottom: 42%; }
.note--home { right: 5%; bottom: 34%; transform: rotate(3deg); }

.rail { height: 400vh; }
.rail__stage { position: sticky; top: 0; height: 100vh; overflow: clip; }
.rail__track { position: relative; display: flex; width: 400vw; height: 100%; will-change: transform; }
.stop { flex: 0 0 100vw; display: grid; align-items: center; gap: 5vw; padding: 110px var(--gutter) 90px; }
.stop__copy { max-width: 460px; }
.stop h3 { font-size: clamp(30px, 2.8vw, 44px); }
.stop p { margin-top: 14px; }
.rail__title { margin-bottom: 26px; font-size: clamp(42px, 4.6vw, 74px); }
.stop--1 { grid-template-columns: 1.15fr 1fr; }
.stop--1 .stop__photo { transform: rotate(-1.5deg); aspect-ratio: 3 / 2; }
.stop--2 { position: relative; grid-template-columns: minmax(0, 380px) minmax(0, 54vw); justify-content: center; gap: 6vw; padding-bottom: 14vh; }
.stop--2 .stop__photo { transform: rotate(1.2deg); aspect-ratio: 3 / 2; }
.stop__hens { position: absolute; left: 12vw; bottom: 5vh; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.rail.is-in .stop__hens .hen--a { animation: hen-peck 2.6s steps(1) infinite; }
.rail.is-in .stop__hens .hen--b { animation: hen-peck 3.4s steps(1) -1.2s infinite; }
.stop--3 { grid-template-columns: 1.1fr 1fr; align-items: end; padding-bottom: 12vh; }
.stop--3 .stop__copy { align-self: center; }
.stop__peek { position: relative; }
.stop--3 .stop__photo { position: relative; transform: rotate(-.8deg); aspect-ratio: 3 / 2; }
.stop--4 { grid-template-columns: minmax(0, 420px) minmax(0, 66vh); justify-content: end; gap: 8vw; padding-right: 0; }
.stop--4 .stop__photo { transform: rotate(2deg); aspect-ratio: 1; margin-right: -3vw; }
.rail__count { position: absolute; right: var(--gutter); top: 104px; font: 600 20px/1 var(--display); letter-spacing: .02em; }

.donkey {
  position: absolute; left: 56%; bottom: 100%; z-index: -1;
  width: clamp(150px, 15vw, 230px); aspect-ratio: 3 / 4;
  padding: 0; border: 0; cursor: pointer;
  background: url(../art/donkey.webp) 0 0 / 400% 100% no-repeat;
  transform: translateY(100%);
  transition: transform .9s cubic-bezier(.2, .9, .3, 1.15);
}
.donkey.is-up { transform: translateY(22%); }
.pals, .calf, .rail__nav { display: none; }
.ponies { position: absolute; left: 6%; top: calc(100% - 7vw); z-index: 2; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; }
.pony { display: block; padding: 0; border: 0; background-color: transparent; background-repeat: no-repeat; background-size: 300% 100%; background-position: 0 0; pointer-events: auto; }
.pony--rear { width: clamp(92px, 9.5vw, 148px); aspect-ratio: 420 / 560; background-image: url(../art/horse-rear.webp); cursor: pointer; }
.pony--rear.is-up { animation: pony-rear 1.5s steps(1) both; }
.pony--graze { width: clamp(112px, 11.6vw, 180px); aspect-ratio: 520 / 420; background-image: url(../art/horse-graze.webp); }
.rail.is-in .pony--graze { animation: pony-graze 5s steps(1) infinite; }
@keyframes pony-rear { 0% { background-position-x: 50%; } 12% { background-position-x: 100%; } 78% { background-position-x: 50%; } 90%, 100% { background-position-x: 0; } }
@keyframes pony-graze { 0% { background-position-x: 0; } 14% { background-position-x: 50%; } 26% { background-position-x: 100%; } 38% { background-position-x: 50%; } 50% { background-position-x: 100%; } 62% { background-position-x: 50%; } 74% { background-position-x: 100%; } 88% { background-position-x: 0; } }
.donkey.is-ear { background-position-x: 33.333%; }
.donkey.is-blink { background-position-x: 66.667%; }
.donkey.is-grin { background-position-x: 100%; }

.visit { min-height: max(100svh, 760px); padding: 14vh var(--gutter); display: grid; align-items: center; }
.visit__copy { max-width: 470px; }
.visit h2 { font-size: clamp(44px, 4.8vw, 78px); }
.visit__copy > p { margin-top: 18px; }
.visit__copy > .visit__how { margin: 0 0 16px; font-weight: 600; }
.facts { margin-bottom: 22px; }
.facts { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: auto auto; gap: 12px 34px; justify-content: start; }
.facts li { font-size: 17px; }
.facts strong { display: block; font: 620 24px/1.1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.pins { display: contents; }
.pin { position: absolute; width: clamp(170px, 17vw, 260px); padding: 8px 8px 0; transition: transform .5s ease, opacity .5s ease; opacity: 0; transform: translateY(26px) rotate(var(--tilt, 0deg)); }
.pin.is-in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.pin img { aspect-ratio: 16 / 11; }
.pin figcaption { padding: 6px 0 8px; text-align: center; font: 700 22px/1 var(--hand); }
.pin--barn { --tilt: -3deg; left: 52%; top: 14%; }
.pin--pond { --tilt: 2.5deg; right: 6%; top: 38%; transition-delay: .15s; }
.pin--paddock { --tilt: -1.5deg; left: 47%; bottom: 10%; transition-delay: .3s; }

.promise { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; padding: 0 var(--gutter); }
.promise > .ground { position: sticky; top: 0; height: 100vh; grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1) -100vh; }
.promise__words { padding: 8vh 0; }
.word { min-height: 62vh; display: grid; align-content: center; opacity: 0; transition: opacity .3s ease; }
.word.is-on { opacity: 1; }
.word h2 { font-size: clamp(58px, 7.4vw, 124px); }
.word p { margin-top: 14px; max-width: 22em; font-size: 20px; }
.word .word__close { margin-top: 10px; font: 620 26px/1.2 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.promise__photos { position: sticky; top: 16vh; align-self: start; height: 68vh; display: grid; align-items: center; }
.promise__frame { position: relative; aspect-ratio: 3 / 2; transform: rotate(1.4deg); }
.promise__frame img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transition: opacity .6s ease; }
.promise__frame img.is-on { opacity: 1; }

.help { aspect-ratio: 16 / 9; padding: 7.5% var(--gutter) 0; }
.help__title { text-align: center; font-size: clamp(40px, 4.4vw, 70px); }
.sign {
  position: absolute; display: grid; align-content: center; gap: 8px; text-align: center; text-decoration: none;
  width: 36%; height: 30%; padding: 0 4%;
  transition: transform .2s ease;
}
.sign strong { font: 640 clamp(26px, 2.9vw, 46px)/1.05 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.sign span { font-size: clamp(14px, 1.3vw, 19px); line-height: 1.35; }
.sign .btn { justify-self: center; min-height: 44px; margin-top: 8px; padding: 0 18px; font-size: clamp(14px, 1.1vw, 16px); }
.stop__tour { display: flex; width: max-content; max-width: 100%; margin-top: 22px; padding: 12px 22px; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; }
.sign--monthly { left: 8.5%; top: 48%; }
.sign--share { left: 55.5%; top: 48%; }

.news { min-height: max(84svh, 620px); display: grid; align-items: end; justify-items: end; padding: 12vh 12vw 16vh var(--gutter); overflow: clip; }
.news__form { max-width: 520px; }
.news h2 { font-size: clamp(42px, 4.6vw, 74px); }
.news__form > p { margin-top: 10px; }
.news__row { display: flex; gap: 12px; margin-top: 22px; }
.news input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 3px; background: var(--print);
  font: 500 17px/1 var(--body); color: var(--ink);
}
.news__done { margin-top: 14px; font: 700 26px/1 var(--hand); }
.ducks { position: absolute; left: 0; right: 0; bottom: 52%; height: 0; pointer-events: none; }
.duck {
  position: absolute; bottom: 0; left: 24vw; width: clamp(90px, 8.5vw, 136px); aspect-ratio: 1; opacity: 0;
  background: url(../art/duck.webp) 0 0 / 400% 100% no-repeat;
  animation: duck-cross 46s linear infinite, duck-paddle 1s steps(1) infinite;
  animation-play-state: paused;
}
.duck--b { width: clamp(74px, 7vw, 112px); bottom: -7vh; animation-duration: 58s, 1.2s; animation-delay: -21s, 0s; }
.news.is-in .duck { animation-play-state: running; }
.duck.is-dabble { animation-name: duck-cross, none; background-position-x: 66.667%; }
.duck.is-flap { animation-name: duck-cross, none; background-position-x: 100%; }
@keyframes duck-cross { 4% { opacity: 1; } 94% { opacity: 1; } to { transform: translateX(66vw); opacity: 0; } }
@keyframes duck-paddle { 0% { background-position-x: 0; } 50% { background-position-x: 33.333%; } }

.volunteer { display: grid; grid-template-columns: 1.05fr 1fr; min-height: max(92svh, 680px); }
.volunteer__photo { margin: 0; }
.volunteer__photo img { width: 100%; height: 100%; object-fit: cover; }
.volunteer__wall { position: relative; isolation: isolate; display: grid; align-content: center; justify-items: start; padding: 10vh var(--gutter) 16vh 5vw; color: var(--print); }
.volunteer h2 { font-size: clamp(44px, 4.8vw, 78px); }
.volunteer__wall > p { margin-top: 16px; max-width: 24em; }
.chalk { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: auto auto; gap: 16px 44px; font: 700 24px/1.1 var(--hand); }
.chalk b { display: block; font-size: 58px; line-height: .9; }
.hens { position: absolute; right: 8%; bottom: 3vh; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.hen { display: block; width: clamp(84px, 8vw, 124px); aspect-ratio: 1; background: url(../art/hen.webp) 0 0 / 400% 100% no-repeat; }
.hen--b { width: clamp(70px, 6.6vw, 104px); transform: scaleX(-1); }
.volunteer.is-in .hen--a { animation: hen-peck 2.6s steps(1) infinite; }
.volunteer.is-in .hen--b { animation: hen-peck 3.4s steps(1) -1.2s infinite; }
.hen--roost { background-position-x: 100%; }
.hen--flip { transform: scaleX(-1); }
@keyframes hen-peck { 0% { background-position-x: 0; } 55% { background-position-x: 33.333%; } 68% { background-position-x: 0; } 76% { background-position-x: 33.333%; } 88% { background-position-x: 66.667%; } }

.foot { padding: 17vw var(--gutter) 28px; color: var(--print); }
.foot__roost { position: absolute; left: 22%; top: calc(9.6vw - clamp(84px, 8vw, 124px)); display: flex; gap: 2px; pointer-events: none; }
.foot__inner { display: grid; grid-template-columns: auto 1.1fr 1.4fr auto; gap: 44px; align-items: start; }
.foot__logo { width: 132px; }
.foot__line { font: 620 26px/1.15 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; max-width: 13em; margin-bottom: 14px; text-wrap: balance; }
.foot__col a, .foot__copyaddr { color: inherit; font: inherit; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(251 247 236 / .5); }
.foot__links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 34px; justify-content: start; }
.foot__links a { text-decoration: none; font-weight: 600; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__small { margin-top: 44px; font-size: 14px; opacity: .85; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; translate: -50% 0;
  padding: 12px 18px; background: var(--ink); color: var(--print); border-radius: 3px; font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1080px) {
  .top__nav { gap: 16px; font-size: 16px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .foot__inner { grid-template-columns: auto 1fr; }
  .pin { width: 19vw; }
  .pin--barn { left: 58%; }
  .pin--paddock { left: 56%; }
  .visit__copy { max-width: 42vw; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .pig { transform: none; transition: none; animation: none !important; }
  .meter__fill { width: var(--at); transition: none; }
  .meter__pig { left: var(--at); transition: none; animation: none !important; }
  .donkey { transform: translateY(22%); transition: none; }
  .duck { animation: none; left: 34vw; opacity: 1; }
  .duck--b { left: 46vw; }
  .hen { animation: none !important; }
  .pony { animation: none !important; }
  .pony--graze { background-position-x: 50%; }
  .pin { opacity: 1; transform: rotate(var(--tilt, 0deg)); transition: none; }
  .rail { height: auto; }
  .rail__stage { position: static; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .rail__track { transform: none !important; height: auto; min-height: 100vh; }
  .stop { scroll-snap-align: start; }
  .word { opacity: 1; }
}
