:root {
  --nav-h: 56px;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #3d2b1f;
  --ink-soft: #6b5545;
  --brown: #b8733f;
  --brown-dark: #5a3418;
  --muzzle: #f0c9a0;
  --green: #6cbf4b;
  --green-dark: #3f8f2a;
  --sky: #bfe6ff;
  --sky-deep: #8fd0fb;
  --sun: #ffd166;
  --pink: #ff8fab;
  --lilac: #c9b6ff;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(61, 43, 31, .12), 0 14px 30px rgba(61, 43, 31, .10);
  --font-head: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
}

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

a { color: var(--green-dark); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }


.top {
  position: relative;
  min-height: clamp(380px, 42vw, 580px);
  display: flex; align-items: flex-start;
  padding: clamp(28px, 5vw, 64px) 0 92px;
  background: #6b8fb3;
  overflow: hidden;
  isolation: isolate;
}
.top__inner { position: relative; z-index: 2; text-align: center; }

.brand { display: inline-block; text-decoration: none; color: #fff; }
.brand__name {
  display: block;
  font: 800 clamp(44px, 7.2vw, 96px)/.95 var(--font-head);
  letter-spacing: -.01em;
  text-shadow: 0 3px 0 rgba(61, 43, 31, .55), 0 10px 30px rgba(0, 0, 0, .45);
}
.top--drawn .brand__name { text-shadow: 0 4px 0 #b4532f, 0 8px 0 rgba(61, 43, 31, .25), 0 14px 30px rgba(30, 60, 90, .35); }
.brand__sub {
  display: inline-block; margin-top: 14px;
  padding: 6px 16px; border-radius: 99px;
  background: var(--sun); color: var(--brown-dark);
  font: 700 clamp(14px, 1.6vw, 18px)/1.2 var(--font-head);
  box-shadow: 0 4px 0 rgba(61, 43, 31, .25);
}
.phase-night .brand__sub { background: #fff4c2; }
.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; }

.horse {
  position: absolute; z-index: 1;
  left: 50%; bottom: 38px;
  width: clamp(190px, 20vw, 300px);
  margin-left: calc(clamp(190px, 20vw, 300px) / -2);
  cursor: pointer;
}
.horse__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(40, 30, 20, .3)); }
.horse__head { transform-box: view-box; transform-origin: 130px 200px; will-change: transform; }
#horseFeatures, #horseForelock { transform-box: view-box; transform-origin: 130px 150px; }
.horse__lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .08s ease-in; }
.horse.is-blink .horse__lid { transform: scaleY(1); }
.horse__ear { transform-box: fill-box; transform-origin: 50% 100%; }
.horse.is-twitch .horse__ear--left { animation: earTwitch .5s ease-in-out; }
.horse.is-twitch-back .horse__ear--right { animation: earTwitch .45s ease-in-out reverse; }
@keyframes earTwitch { 0%, 100% { rotate: 0deg; } 30% { rotate: -22deg; } 60% { rotate: 10deg; } }

.nav {
  position: sticky; top: 0; z-index: 20;
  box-sizing: border-box;
  min-height: var(--nav-h);
  margin-top: calc(-1 * var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  background: #3f8f2a;
  border-bottom: 3px solid var(--green-dark);
  padding: 0 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.nav__toggle { display: none; }

.nav__menu, .sub { list-style: none; margin: 0; padding: 0; }

.nav__menu {
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 4px;
  width: 100%; max-width: 1240px; margin-inline: auto;
}
.nav__menu > li { flex: none; }
.nav__menu > li > a { white-space: nowrap; }
.nav__more > .sub { left: auto; right: 0; }
.nav__more .sub .sub { left: auto; right: 100%; margin: 0 6px 0 0; }
.nav__more[hidden] { display: none; }

.nav__menu > li { position: relative; }

.nav a {
  display: block;
  padding: 7px 14px;
  border-radius: 99px;
  color: #fff;
  font: 600 16px/1.2 var(--font-head);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.nav__menu > li > a:hover,
.nav__menu > li > a:focus-visible,
.nav a[aria-current="page"] {
  background: #fff;
  color: var(--green-dark);
}

/* Language switch at the end of the menu: both languages, the current one marked. */
.nav__lang { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .35); }
.nav .nav__lang a { padding: 6px 9px; font-size: 14px; letter-spacing: .04em; }
.nav .nav__lang a[aria-current="true"] { background: rgba(255, 255, 255, .22); }
.lang-note { max-width: 1100px; margin: 22px auto 0; padding: 12px 18px; border-radius: 14px; background: #fff3cf; color: #5e3a1c; font-weight: 600; text-align: center; }

.has-sub > a::after { content: " ▾"; font-size: .8em; }
.sub-toggle { display: none; }

.sub {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }

.sub a { color: var(--ink); font-size: 15px; border-radius: 12px; }
.sub a:hover, .sub a:focus-visible { background: var(--cream); color: var(--green-dark); }
.sub .sub { top: 0; left: 100%; margin-left: 6px; }


.btn, .prose a.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 99px;
  font: 600 17px/1 var(--font-head);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(61, 43, 31, .2);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover, .prose a.button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(61, 43, 31, .2); }
.btn:active, .prose a.button:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(61, 43, 31, .2); }
.btn--sun   { background: var(--sun); }
.btn--green, .prose a.button { background: var(--green); color: #fff; }
.btn--ghost { background: #fff; color: var(--brown-dark); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.title { font-size: clamp(30px, 4.5vw, 44px); text-align: center; color: var(--brown-dark); }
.title::after {
  content: "🐾"; display: block; font-size: 22px; margin-top: 6px; letter-spacing: 10px;
}
.title--left { text-align: left; }
.intro { text-align: center; max-width: 680px; margin: 0 auto 36px; color: var(--ink-soft); }
.lead { font-size: 20px; font-weight: 700; color: var(--ink); }
.center { text-align: center; }

.block { padding: 64px 0; }
.block:nth-of-type(even) { background: #fff; }
.block + .block--button, .block--text + .block--text { padding-top: 0; }
.block--button { padding: 8px 0 48px; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.btns--center { justify-content: center; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink);
}
.skip:focus { top: 12px; }

.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); color: var(--brown-dark); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15px; color: var(--ink-soft); }
.crumbs a { color: var(--green-dark); }

.hero { padding-top: 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.tag {
  display: inline-block; margin: 0 0 14px;
  padding: 4px 14px; border-radius: 99px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: 14px;
}
.hero h1, .hero__title { font-size: clamp(38px, 6vw, 62px); color: var(--brown-dark); }
.hero__photo {
  margin: 0;
  border: 10px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(2deg);
}

.prose { font-size: 18px; }
.prose h2 { font-size: clamp(26px, 3.5vw, 34px); color: var(--brown-dark); margin-top: 1.4em; }
.prose h3 { font-size: 23px; color: var(--brown-dark); margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose ul li::marker { content: "🐾  "; font-size: .8em; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 22px; border-radius: var(--radius);
  background: #fff1c9; font-weight: 600;
}

.figure { margin: 0 auto; }
.figure a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: min(70vh, 640px); width: auto; }
.figure figcaption { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 15px; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}
.gallery a { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.06); }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px;
}
.card {
  padding: 26px 22px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  background: #ffe1e9;
  transition: transform .2s;
}
.card:nth-child(5n+2) { background: #def3d4; }
.card:nth-child(5n+3) { background: #dcf0ff; }
.card:nth-child(5n+4) { background: #fff1c9; }
.card:nth-child(5n+5) { background: #ece4ff; }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card h3 { font-size: 22px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.card__icon {
  display: grid; place-items: center;
  width: 70px; height: 70px; margin: 0 auto 14px;
  border-radius: 50%; background: #fff;
  font-size: 34px;
}

.posters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 380px)); justify-content: center; gap: 32px; }
.poster {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 8px solid #fff; box-shadow: var(--shadow);
  transition: transform .2s;
}
.poster:nth-child(odd) { transform: rotate(-2deg); }
.poster:nth-child(even) { transform: rotate(2deg); }
.poster:hover { transform: rotate(0) scale(1.03); }

.block--contact { background: var(--sky) !important; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 20px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  text-align: center; text-decoration: none; color: var(--ink);
  overflow-wrap: anywhere;
  transition: transform .2s;
}
.contact__item span:last-child { font-size: 14px; color: var(--ink-soft); }
.contact__icon { font-size: 34px; }
a.contact__item:hover { transform: translateY(-4px); }

.map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #def3d4; min-height: 340px; display: grid;
}
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map__placeholder { display: grid; place-content: center; text-align: center; padding: 32px 16px; }
.map__placeholder p { margin: 0 0 8px; }
.map__note { font-size: 14px; color: var(--ink-soft); }

.articles { display: grid; gap: 24px; }
.article-card {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.article-card--noimg { grid-template-columns: minmax(0, 1fr); }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 22px 26px; }
.article-card time { font-size: 14px; font-weight: 700; color: var(--pink); }
.article-card h3 { font-size: 25px; margin: 4px 0 8px; }
.article-card h3 a { color: var(--brown-dark); text-decoration: none; }
.article-card h3 a:hover { color: var(--green-dark); }
.article-card p { margin: 0 0 10px; color: var(--ink-soft); }
.article-card__more { font-weight: 700; }

.article-detail { padding: 48px 0 72px; }
.article-detail h1 { font-size: clamp(34px, 5vw, 50px); color: var(--brown-dark); margin-bottom: 6px; }
.article-meta { color: var(--ink-soft); margin-top: 0; }
.article-detail__image { margin: 24px 0; }
.article-detail__image img { border-radius: var(--radius); box-shadow: var(--shadow); }

.notfound { text-align: center; }
.notfound__code { font: 800 120px/1 var(--font-head); color: var(--sun); margin: 0; text-shadow: 0 6px 0 rgba(61, 43, 31, .12); }
.notfound h1 { color: var(--brown-dark); }
.notfound__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.notfound__links a { display: block; padding: 6px 14px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); text-decoration: none; }


.block--calendar.is-loading .cal { opacity: .55; transition: opacity .15s; }
.cal { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 22px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cal__month { margin: 0; font-size: clamp(24px, 3.5vw, 34px); color: var(--brown-dark); text-transform: capitalize; }
.cal__nav {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sun); color: var(--brown-dark); font: 700 28px/1 var(--font-head); text-decoration: none;
  box-shadow: 0 4px 0 rgba(61, 43, 31, .18); transition: transform .15s;
}
.cal__nav:hover { transform: translateY(-2px); }
.cal__today { text-align: center; margin: 0 0 10px; font-size: 15px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.cal__wd { text-align: center; font: 700 15px var(--font-head); color: var(--ink-soft); padding-bottom: 4px; }
.cal__wd.is-weekend { color: var(--pink); }
.cal__day {
  min-height: 112px; padding: 6px; border-radius: 14px; background: var(--cream);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.cal__day.is-weekend { background: #fff5f0; }
.cal__day.is-out { opacity: .45; }
.cal__day.is-today { outline: 3px solid var(--green); outline-offset: -3px; background: #f1faea; }
.cal__num { font: 700 16px/1 var(--font-head); color: var(--brown-dark); padding: 2px 4px; }
.is-today .cal__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; padding: 0; }
.cal__ev {
  display: block; padding: 3px 7px; border-radius: 8px; font-size: 12.5px; line-height: 1.3; font-weight: 700;
  color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #fff1c9; border-left: 4px solid var(--sun);
}
.cal__ev:hover { filter: brightness(.96); }
.cal__ev b { font-weight: 800; }
.cal__more { font-size: 12px; color: var(--ink-soft); padding-left: 4px; }
.cal__dots { display: none; gap: 3px; justify-content: center; margin-top: auto; }
.cal__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.cal__legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-soft); }
.cal__legend li { display: flex; align-items: center; gap: 6px; }

.cal__ev.c-sun { background: #fff1c9; border-color: #f2b705; }
.cal__dot.c-sun { background: #f2b705; }
.cal-item.c-sun { border-left-color: #f2b705; }
.cal__ev.c-green { background: #def3d4; border-color: #6cbf4b; }
.cal__dot.c-green { background: #6cbf4b; }
.cal-item.c-green { border-left-color: #6cbf4b; }
.cal__ev.c-sky { background: #dcf0ff; border-color: #4aa8e8; }
.cal__dot.c-sky { background: #4aa8e8; }
.cal-item.c-sky { border-left-color: #4aa8e8; }
.cal__ev.c-pink { background: #ffe1e9; border-color: #ff8fab; }
.cal__dot.c-pink { background: #ff8fab; }
.cal-item.c-pink { border-left-color: #ff8fab; }
.cal__ev.c-lilac { background: #ece4ff; border-color: #9b7ff0; }
.cal__dot.c-lilac { background: #9b7ff0; }
.cal-item.c-lilac { border-left-color: #9b7ff0; }
.cal__ev.c-brown { background: #f2e6da; border-color: #b8733f; }
.cal__dot.c-brown { background: #b8733f; }
.cal-item.c-brown { border-left-color: #b8733f; }
.cal__ev.c-teal { background: #d6f3ef; border-color: #2bb3a3; }
.cal__dot.c-teal { background: #2bb3a3; }
.cal-item.c-teal { border-left-color: #2bb3a3; }
.cal__ev.c-red { background: #ffe0dc; border-color: #e5533d; }
.cal__dot.c-red { background: #e5533d; }
.cal-item.c-red { border-left-color: #e5533d; }
.cal__ev.c-gray { background: #eceae7; border-color: #9a918a; }
.cal__dot.c-gray { background: #9a918a; }
.cal-item.c-gray { border-left-color: #9a918a; }

.cal-list { margin-top: 36px; display: grid; gap: 14px; }
.cal-list__title { font-size: 26px; color: var(--brown-dark); margin: 0 0 4px; text-transform: none; }
.cal-list__empty { color: var(--ink-soft); }
.cal-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  border-left: 8px solid #f2b705; scroll-margin-top: 90px;
}
.cal-item:target { outline: 3px solid var(--sun); }
.cal-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cal-item--series { grid-template-columns: minmax(0, 1fr); }
.cal-item__date { display: grid; place-items: center; background: var(--cream); border-radius: 16px; padding: 8px 4px; }
.cal-item__date b { font: 800 30px/1 var(--font-head); color: var(--brown-dark); }
.cal-item__date span { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.cal-item__cat { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.cal-item h4 { font: 700 22px/1.2 var(--font-head); color: var(--brown-dark); margin: 2px 0 4px; }
.cal-item p { margin: 0 0 8px; }
.cal-item__when { font-weight: 700; color: var(--green-dark); }
.cal-item__note { color: var(--ink-soft); font-size: 15px; }
.btn--small { padding: 8px 16px; font-size: 15px; }


.top--drawn { background: linear-gradient(180deg, #7cc6f7 0%, #b9e3ff 55%, #dff3ff 100%); }
.scene { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) - 4px); width: 100%; height: 76%; z-index: -2; }
.sky { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.sun {
  position: absolute; top: 8%; right: 9%;
  width: clamp(70px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff3b0, #ffd166 60%, #ffbf3c);
  box-shadow: 0 0 0 16px rgba(255, 209, 102, .28), 0 0 0 36px rgba(255, 209, 102, .14), 0 0 60px 20px rgba(255, 220, 120, .5);
  animation: sunPulse 6s ease-in-out infinite;
}
.cloud {
  position: absolute; left: -260px;
  width: 200px; height: 56px; border-radius: 60px;
  background: #fff;
  box-shadow: inset 0 -8px 0 rgba(160, 200, 230, .35);
  animation: cloudDrift linear infinite;
  opacity: .96;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 90px; height: 90px; top: -48px; left: 30px; }
.cloud::after { width: 66px; height: 66px; top: -32px; left: 104px; }
.cloud--1 { top: 9%; animation-duration: 70s; animation-delay: -10s; }
.cloud--2 { top: 24%; transform: scale(.7); animation-duration: 95s; animation-delay: -55s; opacity: .85; }
.cloud--3 { top: 4%; transform: scale(1.15); animation-duration: 120s; animation-delay: -80s; }
.cloud--4 { top: 34%; transform: scale(.55); animation-duration: 80s; animation-delay: -30s; opacity: .8; }
.cloud--5 { top: 16%; transform: scale(.9); animation-duration: 105s; animation-delay: -100s; }
.bird {
  position: absolute; width: 22px; height: 10px; left: -40px;
  border: 3px solid #4b5b6b; border-color: #4b5b6b transparent transparent transparent;
  border-radius: 50% 50% 0 0;
  animation: birdFly 38s linear infinite;
}
.bird::after {
  content: ""; position: absolute; left: 16px; top: -3px; width: 22px; height: 10px;
  border: 3px solid #4b5b6b; border-color: #4b5b6b transparent transparent transparent; border-radius: 50% 50% 0 0;
}
.bird--1 { top: 20%; animation-delay: -12s; }
.bird--2 { top: 27%; animation-delay: -26s; transform: scale(.7); }
@keyframes cloudDrift { from { translate: 0 0; } to { translate: calc(100vw + 520px) 0; } }
@keyframes birdFly { 0% { translate: 0 0; } 50% { translate: 55vw -30px; } 100% { translate: calc(100vw + 80px) 10px; } }
@keyframes sunPulse { 50% { scale: 1.06; } }
@media (prefers-reduced-motion: reduce) { .cloud, .bird, .sun { animation: none; } .cloud { left: 10%; } }

.top--drawn { transition: background 1s; }
.scene { overflow: visible; }
.scene__tint, .scene__lights { pointer-events: none; }
.scene__tint { opacity: 0; transition: opacity 1s; }
.scene__tint-stop { stop-color: #0b1a3a; transition: stop-color 1s; }
.scene__lights { opacity: 0; transition: opacity 1s; }
.stars, .moon { position: absolute; opacity: 0; transition: opacity 1.2s; }
.stars { inset: 0; background-image: radial-gradient(1.5px 1px at 51% 8%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 13% 48%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 65% 29%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 56% 55%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 12% 56%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 16% 30%, #fff 60%, transparent 100%), radial-gradient(2px 2px at 75% 9%, #fff 60%, transparent 100%), radial-gradient(2px 2px at 51% 8%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 72% 19%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 19% 17%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 72% 25%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 74% 26%, #fff 60%, transparent 100%), radial-gradient(1.5px 1px at 71% 10%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 80% 28%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 69% 56%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 75% 60%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 32% 25%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 11% 40%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 44% 59%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 10% 17%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 22% 45%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 54% 7%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 98% 42%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 45% 65%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 9% 13%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 90% 10%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 90% 41%, #fff 60%, transparent 100%), radial-gradient(2px 2px at 88% 59%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 50% 46%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 46% 23%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 64% 9%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 17% 33%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 64% 12%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 52% 37%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 71% 37%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 46% 50%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 11% 24%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 85% 31%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 76% 25%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 1% 20%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 48% 42%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 66% 8%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 72% 52%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 51% 15%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 52% 9%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 27% 58%, #fff 60%, transparent 100%); }
.stars::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 44% 8%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 73% 21%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 47% 5%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 79% 50%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 33% 46%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 61% 17%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 60% 63%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 11% 20%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 44% 35%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 21% 68%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 68% 48%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 70% 5%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 83% 13%, #fff 60%, transparent 100%), radial-gradient(2px 1.5px at 67% 48%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 99% 30%, #fff 60%, transparent 100%), radial-gradient(2px 2px at 65% 44%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 79% 26%, #fff 60%, transparent 100%), radial-gradient(1px 1.5px at 95% 31%, #fff 60%, transparent 100%), radial-gradient(1px 2px at 64% 47%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 4% 37%, #fff 60%, transparent 100%), radial-gradient(1.5px 1.5px at 25% 46%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 45% 48%, #fff 60%, transparent 100%), radial-gradient(1px 1px at 14% 31%, #fff 60%, transparent 100%), radial-gradient(1.5px 1px at 44% 28%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 79% 2%, #fff 60%, transparent 100%), radial-gradient(1.5px 2px at 45% 12%, #fff 60%, transparent 100%), radial-gradient(2px 1px at 50% 27%, #fff 60%, transparent 100%), radial-gradient(1.5px 1px at 56% 44%, #fff 60%, transparent 100%); animation: twinkle 3.5s ease-in-out infinite; }
.moon {
  z-index: 2;
  top: 12%; right: 14%; width: clamp(54px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 16px 8px 0 0 #fff4c2;
  filter: drop-shadow(0 0 18px rgba(255, 244, 194, .55));
}
@keyframes twinkle { 50% { opacity: .25; } }

.top--drawn.phase-dawn { background: linear-gradient(180deg, #8fb7e8 0%, #ffc3a0 55%, #ffe3b8 100%); }
.phase-dawn .sun { top: 46%; right: auto; left: 10%; background: radial-gradient(circle at 40% 40%, #fff1c7, #ffb85c 60%, #ff9446); box-shadow: 0 0 0 18px rgba(255, 170, 90, .25), 0 0 80px 30px rgba(255, 170, 90, .45); }
.phase-dawn .scene__tint { opacity: .12; }
.phase-dawn .scene__tint-stop { stop-color: #ff9a6b; }

.top--drawn.phase-dusk { background: linear-gradient(180deg, #4a3d7e 0%, #c2607e 50%, #ffa45c 100%); }
.phase-dusk .sun { top: 50%; right: 8%; background: radial-gradient(circle at 40% 40%, #ffe0a8, #ff7a45 60%, #e8503a); box-shadow: 0 0 0 18px rgba(255, 110, 70, .25), 0 0 90px 34px rgba(255, 110, 70, .5); }
.phase-dusk .scene__tint { opacity: .22; }
.phase-dusk .scene__tint-stop { stop-color: #5b2d6b; }
.phase-dusk .cloud { background: #ffd6c7; }
.phase-dusk .cloud::before, .phase-dusk .cloud::after { background: #ffd6c7; }

.top--drawn.phase-night { background: linear-gradient(180deg, #071330 0%, #142a57 55%, #2a4677 100%); }
.phase-night .sun, .phase-night .bird { opacity: 0; }
.phase-night .stars, .phase-night .moon { opacity: 1; }
.phase-night .scene__tint { opacity: .58; }
.phase-night .scene__lights { opacity: 1; }
.phase-night .cloud { opacity: .22 !important; }
.phase-night .horse__svg { filter: brightness(.62) saturate(.8) drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.sun { transition: top 1s, left 1s, right 1s, opacity 1s; }

.horse__zzz { position: absolute; left: 70%; top: 20%; z-index: 3; display: none; font: 800 26px/1 var(--font-head); color: #fff4c2; pointer-events: none; }
.horse.is-sleeping .horse__zzz { display: block; }
.horse__zzz i { position: absolute; font-style: normal; opacity: 0; animation: zzz 3.6s ease-in infinite; -webkit-text-stroke: 2px #1c2a4a; paint-order: stroke fill; text-shadow: 0 0 12px rgba(255, 244, 194, .7); }
.horse__zzz i:nth-child(2) { animation-delay: 1.2s; font-size: 32px; }
.horse__zzz i:nth-child(3) { animation-delay: 2.4s; font-size: 40px; }
@keyframes zzz { 0% { opacity: 0; translate: 0 10px; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: 46px -38px; } }
.horse__closed { display: none; }
.horse.is-sleeping .horse__closed { display: inline; }
.horse.is-sleeping .horse__eye { display: none; }
.horse.is-sleeping .horse__lid { transform: scaleY(1); transition-duration: .6s; }
.horse.is-sleeping { cursor: default; }

.scene__door { cursor: pointer; pointer-events: all; outline: none; -webkit-tap-highlight-color: transparent; }
.scene__door:focus, .scene__door:focus-visible { outline: none; }
.scene__door-inside { fill: #3a2414; transition: fill .3s; }
.scene__door-leaf { transform-box: fill-box; transform-origin: 0 50%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.scene__door:hover .scene__door-leaf, .scene__door:focus-visible .scene__door-leaf { transform: scaleX(.62) skewY(-4deg); }
.scene__door:hover .scene__door-inside, .scene__door.is-entering .scene__door-inside { fill: #ffd27a; }
.scene__door.is-entering .scene__door-leaf { transform: scaleX(.12) skewY(-8deg); transition-duration: .35s; }
.scene__door-shade, .scene__door-inside-shade { fill: #0b1a3a; opacity: 0; pointer-events: none; transition: opacity 1s, fill 1s; }
.phase-dawn .scene__door-shade, .phase-dawn .scene__door-inside-shade { fill: #ff9a6b; opacity: .12; }
.phase-dusk .scene__door-shade, .phase-dusk .scene__door-inside-shade { fill: #5b2d6b; opacity: .22; }
.phase-night .scene__door-shade { opacity: .58; }
.phase-night .scene__door-inside { fill: #2a1a10; }
.phase-night .scene__door-inside-shade { opacity: .3; }
.phase-night .scene__door:hover .scene__door-inside, .phase-night .scene__door.is-entering .scene__door-inside { fill: #ffd26e; }
.phase-night .scene__door:hover .scene__door-inside-shade, .phase-night .scene__door.is-entering .scene__door-inside-shade { opacity: 0; }
.foot__login { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); text-decoration: none; font-weight: 700; }
.foot__login:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 700px) {
  .horse, .top .life { display: none; }
}

.nl { display: grid; gap: 14px; }
.nl__tabs { display: flex; gap: 6px; background: var(--cream); padding: 4px; border-radius: 99px; width: fit-content; }
.nl__tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 99px; font: 700 15px var(--font-head); color: var(--ink-soft); cursor: pointer; }
.nl__tab[aria-selected="true"] { background: #fff; color: var(--green-dark); box-shadow: 0 2px 6px rgba(61, 43, 31, .12); }
.nl__form { display: grid; gap: 12px; }
.nl__form[hidden] { display: none; }
.nl__lead { margin: 0; color: var(--ink-soft); }
.nl__field { display: grid; gap: 6px; font-weight: 700; }
.nl__field input { font: 400 17px var(--font-body); padding: 12px 14px; border: 2px solid #ead9bf; border-radius: 14px; background: #fff; color: var(--ink); }
.nl__field input:focus { outline: none; border-color: var(--green); }
.nl__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.nl__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); }
.nl__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl__form .btn { justify-self: start; border: 0; cursor: pointer; }
.nl__message { margin: 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; background: #def3d4; color: var(--green-dark); }
.nl__message.is-error { background: #ffe1e9; color: #a3324f; }
.nl-page { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

.nl-modal {
  width: min(520px, 100vw - 32px); border: 0; border-radius: 26px; padding: 28px 26px 24px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(30, 20, 12, .35);
  opacity: 0; transform: translateY(18px) scale(.94);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.3, .4, 1), overlay .3s allow-discrete, display .3s allow-discrete;
}
.nl-modal[open] { opacity: 1; transform: none; }
@starting-style { .nl-modal[open] { opacity: 0; transform: translateY(18px) scale(.94); } }
.nl-modal::backdrop { background: rgba(30, 20, 12, 0); transition: background .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
.nl-modal[open]::backdrop { background: rgba(30, 20, 12, .55); }
@starting-style { .nl-modal[open]::backdrop { background: rgba(30, 20, 12, 0); } }
.nl-modal h2 { margin: 0 0 14px; font-size: 28px; color: var(--brown-dark); }
.nl-modal__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); font-size: 26px; cursor: pointer; color: var(--ink); }

.foot { position: relative; z-index: 1; margin-top: -66px; background: linear-gradient(180deg, transparent 0, transparent 66px, var(--green) 66px); color: #fff; padding-bottom: 28px; }
.foot a { color: #fff; }
.fence {
  height: 72px;
  position: relative;
  background: url("../img/fence.svg") 0 100% / 96px 72px repeat-x;
}
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 15px; line-height: 1.7; }
.foot p { margin: 0; }


.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 24px;
}
.lightbox::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(30, 20, 12, .85);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.is-open::before { opacity: 1; }
.lightbox.is-open .lightbox__close { opacity: 1; transform: none; }
.lightbox[hidden] { display: none; }
.lightbox img {
  position: relative; max-height: 92vh; max-width: 100%; width: auto; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  transform-origin: 50% 50%; will-change: transform;
}
.lightbox__close {
  position: absolute; top: 14px; right: 18px; z-index: 1;
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.4, .4, 1);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; font-size: 30px; cursor: pointer;
}


@media (max-width: 900px) {
  .top { min-height: 360px; padding: 22px 0 84px; }
  .brand__name { font-size: clamp(40px, 11vw, 56px); }
  .brand__sub { margin-top: 8px; }
  .horse { width: 128px; margin-left: -64px; bottom: 50px; }
  .scene { left: 50%; width: 1000px; margin-left: -500px; height: 74%; }
  .top--drawn .horse { margin-left: 36px; }
  .nav { padding: 6px 16px; }
  .nav__toggle {
    display: flex; align-items: center; gap: 10px; margin: 0 auto;
    padding: 8px 18px; border: 0; border-radius: 99px;
    background: #fff; color: var(--green-dark);
    font: 600 17px var(--font-head); cursor: pointer;
  }
  .nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 20px; height: 3px; border-radius: 3px; background: currentColor; position: relative;
  }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; }
  .nav__burger::before { top: -6px; }
  .nav__burger::after { top: 6px; }

  .nav__menu { display: none; flex-direction: column; gap: 2px; padding-top: 10px; max-height: 70vh; overflow-y: auto; }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu li { display: flex; flex-wrap: wrap; align-items: center; }
  .nav__menu li > a { flex: 1; }
  .nav__menu .nav__lang { justify-content: center; margin: 6px 0 0; padding: 8px 0 0; border-left: 0; border-top: 2px solid rgba(255, 255, 255, .35); }
  .nav__menu .nav__lang a { flex: none; }
  .has-sub > a::after { content: none; }

  .sub-toggle {
    display: block; width: 40px; height: 36px; border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .25); color: #fff; cursor: pointer;
  }
  .sub-toggle::before { content: "▾"; font-size: 18px; }
  .sub-toggle[aria-expanded="true"]::before { content: "▴"; }

  .sub, .sub .sub {
    position: static; flex-basis: 100%; min-width: 0; margin: 4px 0 6px 14px;
    display: none; opacity: 1; visibility: visible; transform: none;
    background: rgba(255, 255, 255, .15); box-shadow: none;
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { transform: none; }
  .sub.is-open { display: block; }
  .sub a { color: #fff; }
  .sub a:hover { background: rgba(255, 255, 255, .25); color: #fff; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__photo { transform: none; }
  .posters__grid { grid-template-columns: minmax(0, 380px); }
  .article-card { grid-template-columns: minmax(0, 1fr); }
  .article-card__image { aspect-ratio: 16 / 9; }
  .block { padding: 48px 0; }
  .cal { padding: 14px 10px; border-radius: 20px; }
  .cal__grid { gap: 3px; }
  .cal__wd { font-size: 13px; }
  .cal__day { min-height: 54px; padding: 4px 2px; align-items: center; border-radius: 10px; }
  .cal__ev, .cal__more { display: none; }
  .cal__dots { display: flex; flex-wrap: wrap; }
  .cal__dot { width: 8px; height: 8px; }
  .cal-item { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .cal-item__date b { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.preview-bar { position: sticky; top: 0; z-index: 70; padding: 10px 16px; text-align: center; font-weight: 700; background: #ffd166; color: #5a3418; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }

main > :last-child { padding-bottom: calc(64px + 56px); }

@media (max-width: 900px) {
  .cal-item--series { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 11px 14px; }
  .sub-toggle { width: 44px; height: 44px; }
  .nav__menu { max-height: calc(100dvh - var(--nav-h) - 16px); }
  .foot a { display: inline-block; padding: 6px 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  /* A phone on its side: lower header, and the horse shrinks with it so it keeps its size next to the farm.
     The "desktop version" switch keeps the full PC header instead. */
  :root:not(.is-desktop-view) .top { min-height: 220px; padding-bottom: 60px; }
  :root:not(.is-desktop-view) .horse { width: 112px; margin-left: -56px; bottom: 34px; }
}
.nl-modal h2 { padding-right: 48px; }
.nl__consent input { flex: none; }

/* Event registration form */
.regf { display: grid; gap: 16px; background: var(--paper); border-radius: var(--radius); padding: clamp(18px, 4vw, 32px); box-shadow: var(--shadow); }
.regf__field { display: grid; gap: 6px; font-weight: 700; }
.regf__field input, .regf__field textarea { font: 400 17px var(--font-body); padding: 12px 14px; border: 2px solid #ead9bf; border-radius: 14px; background: #fff; color: var(--ink); width: 100%; }
.regf__field input[type=file] { padding: 10px; }
.regf__field input:focus, .regf__field textarea:focus { outline: none; border-color: var(--green); }
.regf__field small { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.regf__req { color: #c0392b; }
.regf__opt { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.regf__hint { margin: 0; font-size: 14px; color: var(--ink-soft); }
.regf .btn { justify-self: start; border: 0; cursor: pointer; }
.regf__notice { padding: 14px 18px; border-radius: 16px; background: #e8f0fb; font-weight: 700; }
.regf__notice--warn { background: #fff1cc; color: #7a4e00; }
.regf__notice--error { background: #ffe1e9; color: #a3324f; }
.regf__places { font-size: 18px; }
.event-detail__signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }
.event-detail__full { padding: 8px 16px; border-radius: 99px; background: #ffe1e9; color: #a3324f; font-weight: 800; }
.cal-item__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Footer switch: offered on phones, and the way back once the desktop view is on. */
.foot__view { display: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 700px) { .foot__view--desktop { display: flex; width: fit-content; } }
.is-desktop-view .foot__view--mobile { display: flex; width: fit-content; }
.is-desktop-view .foot__view--desktop { display: none; }

/* Christmas: Santa hat on the horse (only in the Christmas period). */
.horse__hat { display: none; }
.top.is-xmas .horse__hat { display: inline; }
