@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("/fonts/instrument.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #eef0e6;
  --ink: #1d2a1e;
  --muted: #56634f;
  --moss: #2f4a31;
  --moss-deep: #243a26;
  --pollen: #f0c02e;
  --wood: #c89a6a;
  --wood-line: #b0814f;
  --hole: #2b1d13;
  --clay: #9c7651;
  --line: #d3d8c6;
  --wrong: #f2a08a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap { max-width: 36rem; margin: 0 auto; padding: 0 1.4rem; }

h1, h2, h3 {
  font-family: "Bricolage", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(3rem, 15vw, 4.6rem); font-stretch: 80%; font-weight: 800; hyphens: manual; }
h2 { font-size: 1.85rem; font-stretch: 85%; margin-bottom: .8rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--pollen); outline-offset: 3px; border-radius: 4px; }

/* Hero */
.hero { padding-top: 3.2rem; padding-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 1.1rem; max-width: 30rem; }
.nest { margin: 1.2rem -1rem 1.6rem; }
.nest svg { display: block; width: 100%; height: auto; overflow: visible; cursor: pointer; }
.wood { fill: var(--wood); }
.grain path { fill: none; stroke: var(--wood-line); stroke-width: 1.1; opacity: .55; }
.h { fill: var(--hole); }
.h-in { fill: #170f09; }
.h-clay { fill: var(--clay); stroke: #8a6644; stroke-width: 1; }
.trail { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; opacity: .35; }
.bee .body { fill: var(--pollen); }
.bee .stripe { stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; }
.bee .head { fill: var(--ink); }
.bee .wing { fill: #ffffff; opacity: .8; }
.bee .wings { transform-origin: 0 -2px; animation: flap .08s linear infinite alternate; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
.bee.rest .wings { animation: none; }

/* Buttons */
.btn {
  display: inline-block;
  font: 700 1rem/1 "Instrument", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* Content */
main section { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.fact { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.1rem; }
.num {
  font-family: "Bricolage", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 3rem;
  line-height: .9;
  min-width: 4.2rem;
  color: var(--moss);
}
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-left: 1.7rem; margin-bottom: .9rem; }
.dots li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: .72em; height: .72em;
  border-radius: 50%;
  background: var(--hole);
  box-shadow: inset -.12em -.12em 0 rgba(255,255,255,.12);
}
.notice { border-top: 0 !important; }
.notice h2, .notice p { position: relative; }
.notice::before {
  content: "";
  display: block;
  height: 6px;
  width: 3.5rem;
  background: var(--pollen);
  border-radius: 3px;
  margin-bottom: 1.4rem;
}

/* Quiz */
.quiz { background: var(--moss); color: #eef0e6; padding: 3rem 0 3.4rem; margin-top: 1.2rem; scroll-margin-top: 0; }
.quiz h2 { font-size: 2.3rem; color: #fff; }
.quiz .btn { background: var(--pollen); color: var(--ink); }
.progress { height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; margin: .4rem 0 .6rem; }
.bar { height: 100%; width: 0; background: var(--pollen); border-radius: 3px; transition: width .35s ease; }
.count { font-size: .9rem; color: #b9c8b5; margin: 0 0 .4rem; }
.quiz h3 { font-size: 1.45rem; font-stretch: 90%; line-height: 1.15; margin: 0 0 1.2rem; color: #fff; }
.options { display: grid; gap: .6rem; margin-bottom: 1.1rem; }
.opt {
  text-align: left;
  font: 500 1.02rem/1.35 "Instrument", system-ui, sans-serif;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: .95rem 1.1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.opt:hover:not(:disabled) { border-color: #fff; }
.opt:disabled { cursor: default; opacity: .55; }
.opt.correct { opacity: 1; background: var(--pollen); border-color: var(--pollen); color: var(--ink); }
.opt.wrong { opacity: 1; border-color: var(--wrong); color: var(--wrong); text-decoration: line-through; }
.feedback { border-left: 3px solid var(--pollen); padding: .2rem 0 .2rem 1rem; margin-bottom: 1.4rem; color: #e3e9df; }
.feedback.no { border-color: var(--wrong); }
.feedback strong { display: block; font-family: "Bricolage", sans-serif; font-size: 1.2rem; color: #fff; margin-bottom: .15rem; }

/* Result page */
.score-big {
  font-family: "Bricolage", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(6rem, 34vw, 9rem);
  line-height: .85;
  letter-spacing: -0.04em;
  color: var(--moss);
  margin: 1.4rem 0 .6rem;
}
.score-big small { font-size: .38em; color: var(--muted); letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Footer */
.foot { font-size: .85rem; color: var(--muted); padding-top: 2.2rem; padding-bottom: 3rem; }
.foot p { margin-bottom: .6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bee .wings { animation: none; }
}
