/* ============================================================
   MEET THE FARM — character & machine glossary page styles
   Built on css/site.css tokens (Fredoka/Nunito, barn/hay/sky/grass).
   Loaded only by meet-the-farm.html.
   ============================================================ */

/* ---------- hero ---------- */
.meet-hero {
  text-align: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-2);
}
.meet-hero .section-title { color: var(--barn-dark); }
.meet-hero .section-sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.meet-motto {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--bark);
  background: var(--sun);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lifted);
}
.meet-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.meet-jump a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--bark);
  background: var(--surface-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lifted);
  transition: transform var(--transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.meet-jump a:hover { transform: translateY(-2px); background: var(--sun); }

/* ---------- sections ---------- */
.meet-section { padding-top: var(--space-4); scroll-margin-top: 84px; }
.meet-section-title { color: var(--barn-dark); }
.meet-section-sub { color: var(--text-secondary); margin-top: var(--space-2); margin-bottom: var(--space-5); max-width: 640px; }

/* ---------- entry cards ---------- */
.meet-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.meet-card { display: flex; flex-direction: column; text-align: left; }
.meet-art {
  height: 180px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
}
.meet-art img {
  max-height: 180px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.meet-card h3 { font-size: 24px; color: var(--barn-dark); }
.meet-card .crew-role { margin-top: 6px; }
.meet-who { margin-top: var(--space-3); color: var(--text-primary); }
.meet-chore {
  margin-top: var(--space-2);
  color: var(--text-primary);
}
.meet-chore strong, .meet-who strong { color: var(--barn-dark); }
.meet-fact {
  margin-top: var(--space-3);
  background: #ffe27a;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14.5px;
  line-height: 1.45;
}
.meet-fact strong { color: var(--bark); }

/* the book's own glossary quote (machines) */
.meet-gloss {
  margin-top: var(--space-3);
  border-left: 4px dashed var(--hay);
  padding: 4px 0 4px 12px;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 15px;
}
.meet-gloss strong { color: var(--barn-dark); font-style: normal; }

/* machines use a roomier art box — the cutouts are wide */
.meet-card.machine-entry .meet-art { height: 200px; }
.meet-card.machine-entry .meet-art img { max-height: 200px; }

/* ---------- text-only entries (no artwork in the book) ---------- */
.meet-emoji {
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 56px;
  line-height: 1;
  background: #d3effa;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.meet-emoji.emoji-barn { background: #ffd9d6; }
.meet-emoji.emoji-house { background: var(--sun); }
.meet-emoji.emoji-pond { background: #d3effa; }
.meet-emoji.emoji-trees { background: #d8f3c9; }
.meet-emoji.emoji-truck { background: #ffe9d1; }
.meet-where { margin-top: var(--space-3); }
.meet-where strong { color: var(--barn-dark); }

/* ---------- back home ---------- */
.meet-back {
  text-align: center;
  margin: var(--space-8) 0 var(--space-6);
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

/* tab bar: hide the icon-text spans (world.css does this on the home app;
   this page doesn't load world.css, so repeat the rule here) */
.tabbar a .tb-ico { font-size: 0; }

/* ---------- nav fit (8 topnav items between 900-1100px) ---------- */
@media (max-width: 1100px) {
  .topnav a { padding: 8px 10px; font-size: 14px; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .meet-art, .meet-card.machine-entry .meet-art { height: 150px; }
  .meet-art img, .meet-card.machine-entry .meet-art img { max-height: 150px; }
  .meet-emoji { height: 96px; font-size: 48px; }
  .meet-jump a { font-size: 14px; padding: 7px 13px; }
}
