/* buzzandwonder.com: one stylesheet for every page. Palette and type follow the
   episodes and the channel kit (bible/brand/): honey, comb, coral, forest and
   cream; Baloo 2 throughout, self-hosted (no third-party requests). */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-VF.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --honey: #e9b04a;
  --honey-light: #f4cb72;
  --comb: #c98a2e;
  --coral: #e8958a;
  --forest: #4f6b55;
  --forest-deep: #3e5844;
  --cream: #f6f2e8;
  --paper: #fbf8f1;
  --line: #ece2cb;
  --charcoal: #2f2a27;
  --soft: #62584f;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--comb); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.4em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--paper); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 64px; }
.wordmark { font-weight: 800; color: var(--honey); -webkit-text-stroke: 0.087em var(--charcoal); paint-order: stroke fill; letter-spacing: 0.01em; white-space: nowrap; }
.wordmark .amp { color: var(--coral); }
.brand .wordmark { font-size: 1.7rem; line-height: 1; margin-top: 4px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-weight: 600; }
.nav a { text-decoration: none; color: var(--charcoal); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--comb); }

/* hero: the channel banner's honeycomb, logo, wordmark and tagline */
.hero {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='180' viewBox='0 0 104 180'%3E%3Cpath d='M52 0 L104 30 L104 90 L52 120 L0 90 L0 30 Z M52 120 L52 180' fill='none' stroke='%23ECE2CB' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 78px 135px;
  border-bottom: 2px solid var(--line);
  text-align: center;
  padding: 48px 0 52px;
}
.hero .mark { width: min(260px, 60vw); margin: 0 auto -6px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: 0.1em; }
.hero .tagline { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 0.4em; }
.hero .lede { max-width: 640px; margin: 0 auto 1.3em; color: var(--soft); }

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px 10px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--charcoal); line-height: 1.1; }
.btn-honey { background: var(--honey); color: var(--charcoal); box-shadow: 0 3px 0 var(--comb); }
.btn-honey:hover { background: var(--honey-light); color: var(--charcoal); }
.btn-plain { background: #fff; color: var(--charcoal); }
.btn-plain:hover { background: var(--cream); color: var(--charcoal); }
.left .buttons, .buttons.left { justify-content: flex-start; }

/* sections and cards */
section { padding: 48px 0; }
.kicker { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--comb); margin-bottom: 0.3em; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.episode { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
.episode .body { padding: 26px 30px 30px; }
.meta { color: var(--soft); font-size: 1rem; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.points .card { padding: 22px 24px 18px; }
.points h3 { color: var(--forest-deep); }
.band { background: var(--cream); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

/* teacher packs */
.pack { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.pack .cover { background: var(--cream); }
.pack .cover img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.pack .body { padding: 26px 30px 28px; }
.inside { margin: 0.4em 0 1.2em; padding-left: 1.2em; }
.inside li { margin-bottom: 0.2em; }

/* prose pages */
.prose { max-width: 760px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0.6em 0 1.4em; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.prose th { color: var(--forest-deep); }
.prose td:first-child { font-weight: 700; white-space: nowrap; }

/* footer */
.site-footer { border-top: 2px solid var(--line); padding: 26px 0 34px; color: var(--soft); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .episode, .pack { grid-template-columns: 1fr; }
  .pack .cover img { max-height: 280px; }
  .points { grid-template-columns: 1fr; }
  .episode .body, .pack .body { padding: 20px 20px 24px; }
  .prose td:first-child { white-space: normal; }
  section { padding: 36px 0; }
  .brand img { width: 52px; }
  .brand .wordmark { font-size: 1.45rem; }
}
