@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@600;700;800&display=swap");
/* The bee look of the home page, for any page that opts in with <body class="bee">:
   round fonts (Fredoka and Nunito), a soft honeycomb background,
   a honey-yellow menu bar, Buzzy with a speech bubble, and the dark footer (.bee-foot).
   Used by every page with the site menu. Page titles use .page-hero: Buzzy, then the title and a line under it. */
:root { --f-display: "Fredoka", "Baloo 2", system-ui, sans-serif; --f-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --line: #efe2c4; }
body.bee {
  font-family: var(--f-body);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 197, 24, 0.16), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(245, 197, 24, 0.14), transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32M28 64L0 80v32' fill='none' stroke='%23d9960f' stroke-opacity='0.09' stroke-width='1.5'/%3E%3C/svg%3E"),
    var(--cream);
  background-attachment: fixed;
}
body.bee h1, body.bee h2, body.bee h3 { font-family: var(--f-display); font-weight: 600; }

/* Menu bar: honey yellow */
body.bee nav { background: linear-gradient(135deg, var(--honey) 0%, var(--honey-deep) 100%); border-bottom: 0; box-shadow: 0 3px 14px rgba(43, 38, 32, 0.14); padding: 0.75rem 1.5rem; }
body.bee nav .wordmark { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.01em; }
body.bee nav .wordmark { display: inline-flex; align-items: center; gap: 0.5rem; }
body.bee nav .wordmark::before { content: ""; width: 35px; height: 40px; flex: none; background: url(/media/logo/beecurio-logo-128.png) center / contain no-repeat; }
body.bee nav > ul { gap: 0.35rem; align-items: center; }
body.bee nav > ul > li > a { font-weight: 800; font-size: 0.98rem; padding: 0.4rem 0.8rem; border-radius: 999px; transition: background 0.15s; }
body.bee nav > ul > li > a:hover, body.bee nav > ul > li > a.active { color: var(--dark); background: rgba(255, 255, 255, 0.4); }

/* Buzzy with a speech bubble */
.buzzy-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.buzzy { flex: none; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgba(43, 38, 32, 0.12)); }
.bubble { position: relative; background: #fff; border: 2.5px solid var(--dark); border-radius: 18px; padding: 0.5rem 0.9rem; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; box-shadow: 0 4px 0 var(--dark); white-space: nowrap; }
/* the speech tail: a dark triangle with a white one on top, halfway up the bubble, so its point is sharp and it never meets the bubble's bottom shadow */
.bubble::before { content: ""; position: absolute; left: -15px; top: 50%; margin-top: -10px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 15px solid var(--dark); }
.bubble::after { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -7.5px; width: 0; height: 0; border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; border-right: 11px solid #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* Page title: Buzzy, then the title and a line under it. As wide as the page's content:
   1120px for homework shelves, .mid (980px) for the Honey Trail, .narrow (760px) for text pages. */
.page-hero { max-width: 1120px; margin: 0 auto; padding: 1.75rem 1.25rem 0.25rem; display: flex; align-items: center; gap: 1.25rem; }
.page-hero.mid { max-width: 980px; }
.page-hero.narrow { max-width: 760px; padding-left: 1.5rem; padding-right: 1.5rem; }
.page-hero .buzzy { width: 92px; height: 92px; }
.page-hero h1 { margin: 0 0 0.3rem; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.1; }
.page-hero p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; font-weight: 600; }
.page-hero .hello:empty { display: none; }
.page-hero .hello { margin-top: 0.5rem; font-size: 0.95rem; }
.page-hero .hello a { color: var(--dark); font-weight: 800; }
body.bee .page-hero + section { padding-top: 1.5rem; }
body.bee .back { font-family: var(--f-display); font-weight: 600; }

/* Footer */
.bee-foot { background: var(--dark); color: #d8cfbf; padding: 0.9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.4rem 1.5rem; flex-wrap: wrap; font-size: 0.9rem; }
.bee-foot .brand { display: flex; align-items: center; gap: 0.55rem; }
.bee-foot .brand b { font-family: var(--f-display); font-weight: 600; color: var(--honey); font-size: 1.15rem; }
.bee-foot small { color: #a39a8a; font-size: 0.8rem; }

@media (max-width: 640px) {
  .page-hero { flex-direction: column; text-align: center; gap: 0.4rem; padding-top: 1.1rem; }
  .page-hero .buzzy { width: 68px; height: 68px; }
}
@media (max-width: 860px) {
  .bee-foot { flex-direction: column; padding: 0.75rem 1rem; }
}
@media (max-width: 560px) {
  /* phones: the name on one line, the menu on the next */
  body.bee nav { flex-direction: column; gap: 0.15rem; padding: 0.5rem 0.5rem 0.4rem; }
  body.bee nav .wordmark { font-size: 1.2rem; }
  body.bee nav > ul { gap: 0; flex-wrap: wrap; justify-content: center; row-gap: 0.2rem; }
  body.bee nav > ul > li > a { padding: 0.25rem 0.35rem; font-size: 0.85rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .buzzy { animation: none; } }
