/* Brassberry Farms site. Palette and type follow the game's UI (Not-Factorio/docs/ui-style.md). */
:root {
  --page: #FFF8EC;
  --page-deep: #FFE9B8;
  --well: #FFFCF6;
  --well-line: #E6D2B6;
  --outline: #C9A07A;
  --ink: #4A2E1C;
  --ink-soft: #6B4A32;
  --muted: #8A6A50;
  --sage: #8DBF7A;
  --sage-lip: #5F9150;
  --butter: #F6D27A;
  --butter-lip: #D2A447;
  --terra: #cf6a4b;
  --terra-lip: #9E4A31;
  --sky: #8EC5E0;
  --sky-lip: #5A93B0;
  --plum: #B48CC8;
  --plum-lip: #82609A;
  --cream: #FFF3DA;
  --night: #2E2A55;
  --night-deep: #1E1B3C;
  --r-panel: 18px;
  --r-card: 14px;
  --r-btn: 12px;
  --max: 1120px;
  --bouncy: cubic-bezier(.2, 1.35, .4, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--well-line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 19px; color: var(--ink-soft); white-space: nowrap; }
.nav-brand img { transition: transform .4s var(--bouncy); }
.nav-brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none; font-weight: 800; color: var(--ink-soft);
  padding: 6px 12px; border-radius: var(--r-btn);
  transition: background .15s;
}
.nav-links a:hover { background: var(--page-deep); }
.nav-links .nav-cta { background: var(--sage); border: 2px solid var(--ink-soft); box-shadow: 0 3px 0 var(--sage-lip); margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--sage); transform: translateY(-1px); }

/* Hero: the farm going up, on a loop, behind the logo */
.hero {
  position: relative; min-height: min(100svh, 940px);
  display: grid; place-items: center;
  padding: 96px 16px 92px;
  overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; max-width: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 50% 45%, rgba(74, 46, 28, 0.2), rgba(46, 26, 12, 0.62) 78%);
}
.hero-fall { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-fall i {
  position: absolute; top: -40px; display: block;
  animation: fall linear infinite;
}
.hero-fall i::before { content: ""; display: block; animation: sway ease-in-out infinite alternate; animation-duration: inherit; }
.hero-fall .leaf::before { width: 16px; height: 11px; border-radius: 0 80% 0 80%; background: var(--c, #E39A4B); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .12); }
.hero-fall .petal::before { width: 11px; height: 9px; border-radius: 60% 0 60% 0; background: #F7B8C8; }
.hero-fall .snow::before { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .9; }
@keyframes fall { to { transform: translate3d(var(--dx, 60px), calc(100svh + 80px), 0); } }
@keyframes sway { from { transform: translateX(-14px) rotate(-30deg); } to { transform: translateX(14px) rotate(40deg); } }

.hero-inner { text-align: center; max-width: 780px; }
.hero-logo { margin: 0; }
.hero-logo img {
  width: min(640px, 92vw); height: auto; margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(40, 20, 8, 0.45));
  animation: pop .8s var(--bouncy) both;
}
@keyframes pop { from { transform: scale(.85) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-pitch {
  margin: 8px auto 26px; max-width: 610px;
  color: var(--page); font-size: 20px; font-weight: 700;
  text-shadow: 0 2px 0 rgba(74, 46, 28, .75), 0 0 18px rgba(40, 20, 8, .6);
  animation: rise .7s .25s ease-out both;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise .7s .4s ease-out both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-status {
  display: inline-block; margin: 24px 0 0;
  padding: 4px 14px; border-radius: 99px;
  background: rgba(255, 248, 236, .9); color: var(--ink-soft);
  font-weight: 800; font-size: 14px; letter-spacing: .04em;
}

/* A farm-stand awning along the bottom of the hero: stripes with a scalloped edge */
.awning {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 46px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .14), transparent 10px),
    repeating-linear-gradient(90deg, var(--terra) 0 56px, var(--cream) 56px 112px);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 18px no-repeat,
    radial-gradient(circle 28px at 28px 18px, #000 98%, transparent 100%) 0 0 / 56px 46px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% 18px no-repeat,
    radial-gradient(circle 28px at 28px 18px, #000 98%, transparent 100%) 0 0 / 56px 46px repeat-x;
  filter: drop-shadow(0 4px 0 var(--terra-lip));
}
.hero + .section { padding-top: 76px; }

/* Buttons: sheen on top, darker lip below, pressed flattens the lip */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 18px; color: var(--ink);
  padding: 12px 24px 10px;
  border: 2.5px solid var(--ink-soft); border-radius: var(--r-btn);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%);
  transition: transform .08s, box-shadow .08s;
}
.btn-butter { background-color: var(--butter); box-shadow: 0 5px 0 var(--butter-lip), 0 8px 18px rgba(40, 20, 8, .25); }
.btn-sage { background-color: var(--sage); box-shadow: 0 5px 0 var(--sage-lip), 0 8px 18px rgba(40, 20, 8, .25); }
.btn-cream { background-color: var(--well); box-shadow: 0 5px 0 var(--outline), 0 8px 18px rgba(40, 20, 8, .18); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink-soft); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 60px 16px; }
.plaque {
  display: table; margin: 0 auto 32px;
  padding: 6px 28px 5px;
  background: var(--terra); color: var(--page);
  border: 2.5px solid var(--terra-lip); border-radius: var(--r-btn);
  box-shadow: 0 4px 0 var(--terra-lip);
  font-weight: 900; font-size: 26px; letter-spacing: .01em;
  transform: rotate(-1.2deg);
}
.plaque-left { margin-left: 0; }
.lede { max-width: 640px; margin: -10px auto 28px; text-align: center; font-size: 19px; color: var(--ink-soft); }
.card {
  background: var(--well);
  border: 2.5px solid var(--outline); border-radius: var(--r-panel);
  box-shadow: 0 5px 0 var(--well-line);
}
.fine { color: var(--muted); font-size: 14px; text-align: center; margin: 14px 0 0; }
.tilt-l { transform: rotate(-.8deg); }
.tilt-r { transform: rotate(.8deg); }
.more { text-align: center; margin: 28px 0 0; }

/* Things slide up as they scroll in (script.js adds .is-in) */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease-out, translate .7s var(--bouncy); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Trailer */
.video-card { padding: 10px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--ink); }
.facts {
  list-style: none; padding: 0; margin: 28px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.facts li {
  background: var(--well); border: 2px solid var(--well-line); border-radius: 99px;
  padding: 6px 16px 6px 6px; font-weight: 800; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.facts span {
  background: var(--page-deep); color: var(--muted); border-radius: 99px;
  padding: 2px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}

/* Features: big alternating rows, then a grid of four smaller cards */
.features { display: grid; gap: 56px; }
.features .plaque { margin-bottom: 0; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.feature:nth-of-type(even) .feature-clip { order: 2; }
.feature-clip, .mini-clip {
  border: 2.5px solid var(--outline); border-radius: var(--r-panel);
  background: var(--ink); overflow: hidden;
  box-shadow: 0 6px 0 var(--well-line), 0 14px 30px rgba(74, 46, 28, .12);
  transition: transform .3s var(--bouncy);
}
.feature-clip:hover { transform: rotate(0) scale(1.015); }
.feature-clip video, .mini-clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-text h3 { margin: 10px 0 8px; font-size: 32px; font-weight: 900; color: var(--ink-soft); line-height: 1.15; }
.feature-text p { margin: 0; font-size: 18px; }
.tag {
  display: inline-block; padding: 3px 14px 2px;
  border: 2.5px solid var(--ink-soft); border-radius: 99px;
  font-weight: 900; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
}
.tag-sage { background: var(--sage); box-shadow: 0 3px 0 var(--sage-lip); }
.tag-butter { background: var(--butter); box-shadow: 0 3px 0 var(--butter-lip); }
.tag-terra { background: var(--terra); color: var(--page); box-shadow: 0 3px 0 var(--terra-lip); }
.tag-sky { background: var(--sky); box-shadow: 0 3px 0 var(--sky-lip); }
.tag-plum { background: var(--plum); color: var(--page); box-shadow: 0 3px 0 var(--plum-lip); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; }
.mini { padding: 12px 12px 18px; transition: transform .25s var(--bouncy); }
.mini:hover { transform: translateY(-4px) rotate(-.4deg); }
.mini .mini-clip { box-shadow: none; border-radius: var(--r-card); margin-bottom: 14px; }
.mini .tag { margin: 0 8px; }
.mini p { margin: 10px 8px 0; font-size: 16.5px; }

/* Bands: full-width backgrounds behind a section */
.band { position: relative; }
.band-gingham {
  background-color: #FFF1D4;
  background-image:
    linear-gradient(90deg, rgba(207, 106, 75, .09) 50%, transparent 50%),
    linear-gradient(rgba(207, 106, 75, .09) 50%, transparent 50%);
  background-size: 36px 36px;
  border-block: 2.5px solid var(--well-line);
}

/* Seasons: three chips swap the orchard picture */
.seasons { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: center; }
.seasons-text p { font-size: 19px; margin: 0 0 20px; color: var(--ink-soft); }
.season-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 900; font-size: 17px; cursor: pointer; color: var(--ink-soft);
  padding: 8px 20px 7px; border-radius: 99px;
  border: 2.5px solid var(--outline); background: var(--well); box-shadow: 0 4px 0 var(--well-line);
  transition: transform .1s, background .15s;
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--butter); border-color: var(--ink-soft); box-shadow: 0 4px 0 var(--butter-lip); color: var(--ink); }
.chip[data-season="spring"][aria-pressed="true"] { background: var(--sage); box-shadow: 0 4px 0 var(--sage-lip); }
.chip[data-season="fall"][aria-pressed="true"] { background: var(--terra); box-shadow: 0 4px 0 var(--terra-lip); color: var(--page); }
.chip[data-season="winter"][aria-pressed="true"] { background: var(--sky); box-shadow: 0 4px 0 var(--sky-lip); }
.seasons-view { position: relative; padding: 10px; aspect-ratio: 16 / 9; box-sizing: content-box; }
.seasons-view img {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover; border-radius: var(--r-card);
  opacity: 0; transition: opacity .6s ease;
}
.seasons-view img.is-on { opacity: 1; }

/* Rooms */
.rooms-grid { display: block; width: 100%; padding: 10px; cursor: zoom-in; transition: transform .25s var(--bouncy); }
.rooms-grid:hover { transform: scale(1.01); }
.rooms-grid img { width: 100%; border-radius: var(--r-card); }

/* Critter Book: text and the hovered critter's card on the left, a preview of the book on the right, bottoms aligned */
.critters { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 44px; align-items: end; }
.critters-intro { min-width: 0; }
.critters-intro .plaque { margin-bottom: 22px; }
.critters-lede { margin: 0 0 20px; font-size: 18px; color: var(--ink-soft); }
.critters-book { min-width: 0; padding: 14px; }
.critters-wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.critter-tile {
  position: relative; aspect-ratio: 1; padding: 7px; cursor: pointer;
  background: transparent; border: 0; border-radius: 12px; font: inherit;
  display: grid; place-items: center;
  transition: transform .25s var(--bouncy), background .15s;
}
.critter-tile svg, .critter-pic svg { width: 100%; height: 100%; overflow: visible; }
.critter-tile:hover { transform: translateY(-3px) rotate(-3deg); background: var(--page); }
.critter-tile.is-found:hover svg { animation: critter-wiggle .5s ease-in-out; }
.critter-tile[aria-current] { background: #FFF1DE; box-shadow: inset 0 0 0 2px var(--terra); }
.critter-tile:focus-visible { outline: 3px solid var(--sky-lip); outline-offset: 2px; }
.is-shadow svg * { fill: var(--ink-soft) !important; stroke: var(--ink-soft) !important; }
.is-shadow svg { opacity: .2; }
.critter-tile.is-shadow::after { content: "?"; position: absolute; font-weight: 900; font-size: 20px; color: var(--muted); opacity: .75; }
.critter-more { cursor: default; border: 2px dashed var(--well-line); color: var(--muted); font-weight: 900; font-size: 14px; line-height: 1.1; text-align: center; }
.critter-more:hover { transform: none; background: transparent; }
@keyframes critter-wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -8deg; } 65% { rotate: 6deg; } }
/* Every critter's card is stacked in one cell and only the current one shows, so the box never changes height */
.critters-card { display: grid; padding: 12px 14px; border-radius: var(--r-card); }
.critter-dcard { grid-area: 1 / 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; visibility: hidden; }
.critter-dcard.is-on { visibility: visible; }
.critter-pic { width: 64px; height: 64px; padding: 6px; background: var(--page); border-radius: 12px; display: grid; place-items: center; }
.critter-dcard h3 { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.3; }
.critter-kind { display: inline-block; margin-left: 6px; vertical-align: 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--page-deep); border-radius: 99px; padding: 0 8px; }
.critter-dcard p { margin: 3px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.critter-hint { display: flex; gap: 7px; align-items: baseline; color: var(--sage-lip); font-weight: 800; }
.critter-hint::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50% 0; background: var(--sage); transform: translateY(1px) rotate(45deg); }
@media (max-width: 900px) {
  .critters { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .critters-intro { display: contents; }
  .critters-intro .plaque { margin: 0 auto; }
  .critters-lede { text-align: center; margin: 0 auto; max-width: 520px; }
  .critters-book { order: 1; }
  .critters-card { order: 2; }
  .critters-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .critters-book { padding: 10px; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid button {
  padding: 0; border: 2.5px solid var(--outline); border-radius: var(--r-panel);
  background: var(--well); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 6px 0 var(--well-line);
  transition: transform .2s var(--bouncy);
}
.gallery-grid button:hover { transform: translateY(-3px) rotate(-.6deg); }
.gallery-grid button:nth-child(3n):hover { transform: translateY(-3px) rotate(.6deg); }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-grid .g-wide { grid-column: span 2; }

/* Dev blog teaser */
.post-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-tile {
  position: relative; display: block; padding: 10px 10px 18px; text-decoration: none;
  transition: transform .25s var(--bouncy);
}
.post-tile:nth-child(odd) { transform: rotate(-.6deg); }
.post-tile:nth-child(even) { transform: rotate(.6deg); }
.post-tile:hover { transform: translateY(-4px) rotate(0); }
.post-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.post-tile h3 { margin: 14px 8px 4px; font-size: 19px; font-weight: 900; color: var(--ink-soft); line-height: 1.2; }
.post-tile p { margin: 0 8px; font-size: 15.5px; }
.stamp {
  position: absolute; top: 18px; right: 18px;
  padding: 6px 10px 5px; border-radius: 8px;
  background: var(--page); color: var(--terra-lip);
  border: 2.5px dashed var(--terra); outline: 3px solid var(--page);
  font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(6deg);
}

/* Press band */
.press-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--page-deep) linear-gradient(135deg, rgba(255, 255, 255, .5), transparent 60%);
}
.press-card h2 { margin: 0 0 4px; font-size: 26px; font-weight: 900; color: var(--ink-soft); }
.press-card p { margin: 0; }

/* Footer: the farm at night, with fireflies and a duck on the grass */
.footer {
  position: relative; margin-top: 60px; overflow: hidden;
  color: #E9E2FF;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 28% 60%, #fff 99%, transparent),
    radial-gradient(2px 2px at 43% 18%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 57% 48%, #fff 99%, transparent),
    radial-gradient(2px 2px at 71% 26%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 86% 58%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 93% 14%, #fff 99%, transparent),
    radial-gradient(1px 1px at 6% 70%, #fff 99%, transparent),
    radial-gradient(1px 1px at 36% 34%, #fff 99%, transparent),
    radial-gradient(1px 1px at 64% 72%, #fff 99%, transparent),
    radial-gradient(circle at 82% 22%, #FFF6D8 0 26px, rgba(255, 246, 216, .18) 27px 46px, transparent 47px),
    linear-gradient(to bottom, var(--night-deep), var(--night) 70%);
}
.footer::before {
  /* A soft wave where the page meets the night sky */
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 30px;
  background: radial-gradient(ellipse 60px 30px at 50% 0, var(--page) 98%, transparent) 0 0 / 120px 30px repeat-x;
}
.footer-inner {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 2px;
  padding: 70px 16px 30px;
}
.footer-inner img { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .4)); }
.footer .fine { color: #B9B1DA; margin: 6px 0 0; }
.footer-links { display: flex; gap: 20px; margin: 14px 0 4px; }
.footer-links a { font-weight: 800; color: var(--butter); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.firefly {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: #FFF2A0; box-shadow: 0 0 10px 3px rgba(255, 236, 130, .7);
  animation: glow 4s ease-in-out infinite alternate, drift-fly 9s ease-in-out infinite alternate;
}
@keyframes glow { 0%, 30% { opacity: .1; } 70%, 100% { opacity: 1; } }
@keyframes drift-fly { to { translate: var(--fx, 40px) var(--fy, -30px); } }
.footer-ground {
  position: relative; height: 74px;
  background:
    radial-gradient(ellipse 34px 22px at 50% 100%, #3F6E3A 98%, transparent) 0 0 / 52px 22px repeat-x,
    linear-gradient(#3F6E3A, #335C30) 0 22px / 100% 100% no-repeat;
}

/* The duck: waddles along the grass; pet it for hearts */
.duck {
  position: absolute; bottom: 30px; left: -90px; width: 64px; height: 56px;
  padding: 0; border: 0; background: none; cursor: pointer;
  animation: waddle-across 38s linear infinite;
}
.duck svg { width: 100%; height: 100%; overflow: visible; animation: waddle .45s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.duck.is-petted { animation-play-state: paused; }
.duck.is-petted svg { animation: hop .4s var(--bouncy); }
@keyframes waddle-across { to { left: calc(100% + 90px); } }
@keyframes waddle { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes hop { 50% { transform: translateY(-14px) scale(1.06); } }
.heart {
  position: absolute; pointer-events: none; font-size: 20px; color: #F27E9A;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
  animation: heart-up 1.1s ease-out forwards;
}
@keyframes heart-up { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--hx, 0), -60px) scale(1.2); } }

/* Lightbox */
.lightbox {
  padding: 0; border: 3px solid var(--outline); border-radius: var(--r-panel);
  background: var(--well); max-width: min(1600px, 94vw); overflow: hidden;
}
.lightbox::backdrop { background: rgba(40, 20, 8, .75); }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid var(--ink-soft); background: var(--butter); color: var(--ink);
  font: 900 24px/1 "Nunito", sans-serif; cursor: pointer;
  box-shadow: 0 3px 0 var(--butter-lip);
}

/* Small screens */
@media (max-width: 900px) {
  .feature, .seasons { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-of-type(even) .feature-clip { order: 0; }
  .post-trio { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a[href="#trailer"], .nav-links a[href="#gallery"] { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 8px 12px; }
  .nav-links a[href="#features"] { display: none; }
  .nav-links a { padding: 6px 8px; }
  .nav-brand span { display: none; }
  .hero-pitch { font-size: 17px; }
  .feature-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide { grid-column: auto; }
  .feature-text h3 { font-size: 26px; }
  .plaque { font-size: 22px; }
  .press-card { padding: 22px 20px; }
  .awning { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; }
  .hero-fall, .firefly { display: none; }
  .duck { left: 70%; }
}

/* Dev blog pages: each post is a farm newsletter on paper, its date stamped like a postmark */
.blog-page { padding-top: 104px; }
.post { max-width: 780px; margin: 0 auto; }
.post-head { text-align: center; margin-bottom: 28px; position: relative; }
.post-head h1 { margin: 0 0 8px; font-size: 40px; font-weight: 900; color: var(--ink-soft); line-height: 1.15; }
.post-head p { margin: 0; color: var(--muted); }
.post-body {
  position: relative; padding: 34px 40px;
  background-color: var(--well);
  background-image:
    repeating-linear-gradient(transparent 0 31px, rgba(201, 160, 122, .16) 31px 32px);
  transform: rotate(-.3deg);
}
.post-body::before {
  /* A strip of washi tape holding the page down */
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; margin-left: -60px;
  background: rgba(141, 191, 122, .75); border-radius: 3px; transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.post-cover { margin: -10px -14px 26px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); border: 2.5px solid var(--outline); }
.post-body h2 { margin: 30px 0 8px; font-size: 24px; font-weight: 900; color: var(--ink-soft); }
.post-body h2:first-child, .post-cover + h2 { margin-top: 0; }
.post-body ul { margin: 0; padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body li::marker { color: var(--terra); }
.post-body figure { margin: 18px 0; }
.post-body figure img { border-radius: var(--r-card); border: 2.5px solid var(--outline); }
.post-back { display: block; text-align: center; margin-top: 28px; font-weight: 800; color: var(--terra); }
.post-list { display: grid; gap: 22px; }
.post-card {
  position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center;
  padding: 14px 20px 14px 14px; text-decoration: none;
  transition: transform .25s var(--bouncy);
}
.post-card:nth-child(odd) { transform: rotate(-.4deg); }
.post-card:nth-child(even) { transform: rotate(.4deg); }
.post-card:hover { transform: translateY(-3px) rotate(0); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.post-card h3 { margin: 0 0 6px; font-size: 23px; font-weight: 900; color: var(--ink-soft); }
.post-card p { margin: 0; }
.post-more { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--terra); }
@media (max-width: 600px) {
  .post-head h1 { font-size: 30px; }
  .post-body { padding: 24px 20px; }
  .post-cover { margin: -6px -6px 20px; }
  .post-card { grid-template-columns: 1fr; padding: 12px 12px 16px; }
}

/* Press kit */
.press-page { padding-top: 104px; }
.press-head { text-align: center; margin-bottom: 36px; }
.press-head h1 { margin: 0 0 8px; font-size: 42px; font-weight: 900; color: var(--ink-soft); }
.press-head p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 18px; }
.press-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.factsheet { padding: 22px 24px; position: sticky; top: 88px; }
.factsheet h2, .press-section h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; color: var(--ink-soft); }
.factsheet dl { margin: 0; display: grid; gap: 10px; }
.factsheet dt { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.factsheet dd { margin: 0; font-weight: 800; }
.factsheet a { color: var(--terra-lip); }
.press-section { padding: 26px 30px; margin-bottom: 26px; }
.press-section p { margin: 0 0 12px; }
.press-section ul { margin: 0; padding-left: 22px; }
.press-section li { margin: 5px 0; }
.press-section li::marker { color: var(--terra); }
.press-section video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--ink); margin-bottom: 14px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-row .btn { font-size: 16px; padding: 9px 18px 8px; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot-grid a { display: block; border-radius: var(--r-card); overflow: hidden; border: 2.5px solid var(--outline); transition: transform .2s var(--bouncy); }
.shot-grid a:hover { transform: translateY(-2px); }
.shot-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.logo-grid a {
  display: grid; place-items: center; gap: 8px; padding: 18px 12px 12px; text-decoration: none;
  border: 2.5px solid var(--well-line); border-radius: var(--r-card); background: var(--page);
  font-weight: 800; font-size: 14px; color: var(--ink-soft);
}
.logo-grid a.on-dark { background: var(--night); color: #E9E2FF; }
.logo-grid img { height: 90px; width: auto; object-fit: contain; }
@media (max-width: 900px) {
  .press-layout { grid-template-columns: 1fr; }
  .factsheet { position: static; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .press-section { padding: 20px 18px; }
  .logo-grid { grid-template-columns: 1fr; }
}

/* Not found */
.lost { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: 110px 16px 40px; }
.lost h1 { margin: 10px 0 6px; font-size: 40px; font-weight: 900; color: var(--ink-soft); }
.lost p { margin: 0 0 24px; color: var(--muted); font-size: 18px; }
.lost-duck { width: 120px; height: 105px; margin: 0 auto; }
.lost-duck svg { width: 100%; height: 100%; animation: waddle .6s ease-in-out infinite alternate; transform-origin: 50% 90%; }
