/* learn.getboon.ai: one hand-written stylesheet, no build step.
   Every color is a boon-core tailwind token (packages/boon-core/config/tailwind.config.js);
   DESIGN.md "Brand" has the file:line per token and the contrast numbers. No hex outside :root. */
:root {
  --ink: #2E2E2E;            /* neutral-black: body text, 13.2:1 on paper */
  --paper: #FCFCFC;          /* neutral-white: page and card background */
  --soft: #F7F7F7;           /* neutral-100: code, figure matte */
  --line: #EBEBEB;           /* neutral-200: hairlines */
  --line-strong: #DDDDDD;    /* neutral-300: kbd border */
  --muted: #5E5E5E;          /* neutral-800: secondary text, 6.3:1 on paper */
  --pine-900: #24614E;       /* brand-everpine-900: links and text accents, 7.1:1 on paper */
  --pine-700: #3E9D77;       /* brand-everpine-700 = app --primary: borders, focus, icons (3.3:1, UI only) */
  --pine-500: #6FD6A0;       /* brand-everpine-500: accents on the dark bar */
  --pine-300: #B7EFD0;       /* brand-everpine-300: "learn" and footer links on the dark bar */
  --pine-50: #E0FAED;        /* brand-everpine-50 = app --accent: quick path, step dots, badge */
  --bar: #243B34;            /* brand-tarnish-900: the app's dark top bar / rail */
  --bar-2: #34554B;          /* brand-tarnish-800: hairlines on the dark bar */
  --bar-text: #CBE0D3;       /* brand-tarnish-300: secondary text on the dark bar */
  --tint: #EEF6F2;           /* brand-tarnish-100: card hover */
  --warn-50: #FFFAEB;        /* warning-50 */
  --warn-300: #FEC84B;       /* warning-300 */
  --warn-800: #93370D;       /* warning-800 */
  --radius: .5rem;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pagefind-ui-font: var(--font);
  --pagefind-ui-primary: var(--pine-900);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--paper);
  --pagefind-ui-border: var(--line-strong);
  --pagefind-ui-tag: var(--pine-50);
  --pagefind-ui-border-radius: var(--radius);
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--pine-900); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--pine-700); outline-offset: 2px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 1; }

/* dark bar: header, home hero, footer (tarnish-900 like the app chrome) */
header.site, footer.site { background: var(--bar); color: var(--bar-text); }
header.site :focus-visible, .hero :focus-visible, footer.site :focus-visible { outline-color: var(--pine-500); }
#search :focus-visible { outline-color: var(--pine-700); } /* the search box is a white panel inside the hero: 3.3:1, not 1.7:1 */
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; min-height: 4rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--pine-300); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.brand img { display: block; height: 1.6rem; width: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
header.site nav a { color: var(--bar-text); text-decoration: none; font-weight: 500; padding: .25rem 0; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--paper); box-shadow: inset 0 -2px var(--pine-500); }
footer.site { margin-top: 4rem; font-size: .9rem; border-top: 1px solid var(--bar-2); }
footer.site a { color: var(--pine-300); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
footer.site p { margin: 0; }

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; margin: .5rem 0 .75rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.05rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin-top: 0; }

/* home hero: full-bleed dark band without overflow (shadow + clip, no 100vw) */
.hero { background: var(--bar); color: var(--paper); box-shadow: 0 0 0 100vmax var(--bar); clip-path: inset(0 -100vmax); padding: 2.5rem 0 3rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); padding-top: 3.5rem; } }
.hero h1 { margin-top: 0; }
.hero .lede { color: var(--bar-text); }
#search { max-width: 40rem; margin-top: 1.5rem; background: var(--paper); border-radius: var(--radius); padding: .5rem; color: var(--ink); }
#search:empty { display: none; }
.reel { margin: 0; }
.reel h2 { margin: 0 0 .6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pine-300); }
.reel video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--bar-2); border: 1px solid var(--bar-2); }
.reel p { margin: .6rem 0 0; font-size: .9rem; color: var(--bar-text); }

.start { list-style: none; counter-reset: step; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.start li { counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--paper); }
.start li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pine-50); color: var(--pine-900); font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.start a, .start .t { display: block; font-weight: 600; }
.start small { color: var(--muted); }
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.cards a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-top: 4px solid var(--pine-700); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.cards a:hover { background: var(--tint); }
.cards .t { font-weight: 700; font-size: 1.1rem; color: var(--pine-900); }
.cards .d { color: var(--muted); }
.cards .n { margin-top: auto; font-size: .85rem; color: var(--muted); }

/* lists (home recent, collection, related) */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list a { font-weight: 500; }
.list time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.crumbs { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.crumbs > * + *::before { content: "/"; display: inline-block; margin: 0 .5rem; color: var(--muted); }

/* article */
.article-grid { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .article-grid { grid-template-columns: minmax(0, 46rem) 16rem; justify-content: space-between; } .rail { position: sticky; top: 1rem; align-self: start; } }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.meta time::before { content: "\2713\00a0"; color: var(--pine-700); font-weight: 700; }
.badge { background: var(--pine-50); color: var(--pine-900); border-radius: 999px; padding: .1rem .6rem; font-weight: 600; font-size: .8rem; }
.box { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.box-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.path.box { background: var(--pine-50); border-left: 4px solid var(--pine-700); }
.path.box .box-title { color: var(--pine-900); }
.steps { list-style: none; padding: 0; margin: .4rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.steps li { display: flex; align-items: center; gap: .35rem; }
.steps li + li::before { content: "\203A"; color: var(--pine-900); font-weight: 700; } /* chevron; order is carried by <ol> */
kbd { font: 600 .85rem/1.2 var(--font); background: var(--paper); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: .35rem; padding: .2rem .5rem; color: var(--ink); white-space: nowrap; }
.not { background: var(--warn-50); border-left: 4px solid var(--warn-300); }
.not .box-title { color: var(--warn-800); }
.not ul { margin: 0; padding-left: 1.1rem; }
.prose { max-width: 46rem; }
.prose strong { font-weight: 650; }
.prose code { background: var(--soft); padding: .1rem .3rem; border-radius: .25rem; font-size: .9em; }
.prose pre { background: var(--soft); padding: 1rem; overflow-x: auto; border-radius: var(--radius); }
.prose img { max-width: 100%; height: auto; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
/* screenshots (render-image.html): natural size up to the column, framed on a matte */
.shot { margin: 1.25rem 0 1.75rem; }
.shot img { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); box-shadow: 0 1px 3px var(--line); }
.shot figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.rail { font-size: .92rem; }
.rail-title { font-weight: 700; margin: 0 0 .4rem; }
.rail nav + nav { margin-top: 1.5rem; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .2rem .75rem; text-decoration: none; color: var(--muted); }
.toc li a:hover { color: var(--pine-900); box-shadow: inset 2px 0 var(--pine-700); }
.rail .list li { display: block; padding: .5rem 0; }
.rail .list time { display: block; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--pine-700); }
.pager small { display: block; color: var(--muted); font-weight: 400; }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 40rem) { body { font-size: 16px; } .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Guide video on article pages: reuses .reel, light background. */
.guide-video { margin: 0 0 1.5rem; }
.guide-video details { margin-top: .5rem; font-size: .9rem; }
.guide-video summary { cursor: pointer; font-weight: 600; }
.guide-video details p { margin: .4rem 0 0; color: inherit; font-size: inherit; }
