/* Inner pages on the home system (Nov 20, 2026): About, Resources, Blog. White pages, a clear title block with an eyebrow,
   hairline cards that lift on hover, forest/lime accents (never tint on grey), and the lime closing band before the footer. */

/* ---------- title block ---------- */
main .page-head, main .blog-head { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); text-align: left; }
main .page-head .wrap { max-width: 1140px; }
main .page-head h1, main .blog-head h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; margin: 0; }
main .page-head .sub, main .blog-head > p { margin: 18px 0 0; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
main .page-head .eyebrow, main .blog-head .eyebrow { margin-bottom: 16px; }

/* ---------- About: a reading column with a contents rail that shows where you are ---------- */
.cs-body { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 960px) { .cs-body { grid-template-columns: 200px minmax(0, 680px); gap: 72px; } }
.cs-body .toc { position: sticky; top: 104px; align-self: start; display: grid; gap: 2px; background: none; border: 0; padding: 0; }
.cs-body .toc b { font: 600 var(--fs-label)/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.cs-body .toc a { position: relative; padding: 9px 0 9px 18px; color: var(--muted); text-decoration: none; font-size: 15.5px; border: 0; background: none; border-radius: 0; }
.cs-body .toc a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--surface3); transition: background-color 0.3s var(--curve-standard); }
.cs-body .toc a:hover { color: var(--text); }
.cs-body .toc a[aria-current], .cs-body .toc a.on { color: var(--text); font-weight: 600; }
.cs-body .toc a[aria-current]::before, .cs-body .toc a.on::before { background: var(--forest); }
@media (max-width: 959px) { .cs-body .toc { display: none; } }
.cs-story section { padding: 0; margin: 0 0 clamp(48px, 6vw, 72px); background: none; border: 0; }
.cs-story h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
.cs-story p { font-size: 18px; line-height: 1.7; color: #2b2d29; max-width: 62ch; }
/* the two ideas the page is about get their own colour */
.cs-story #no-guilt { padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--forest); color: #eef6e8; }
.cs-story #no-guilt h2 { color: var(--lime); }
.cs-story #no-guilt p { color: #d6e3cc; }
.cs-story #cubi { padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--lime); color: var(--forest); }
.cs-story #cubi p { color: #24420c; }
/* the timeline: forest dots for done, a lime ring for now */
.timeline .dot { background: var(--forest); box-shadow: 0 0 0 4px var(--bg); }
.timeline li.now .dot { background: var(--lime); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--forest); }
.timeline li.next .dot { background: var(--surface3); }
.timeline .tl-card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; box-shadow: none; }
.timeline li.now .tl-card { border-color: var(--forest); }
.timeline .tl-when { color: var(--muted); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline .tl-when b { background: var(--forest); color: var(--lime); border-radius: 999px; padding: 3px 8px; margin-left: 6px; letter-spacing: 0; text-transform: none; }

/* ---------- Resources: hairline cards that lift ---------- */
.res-grid { gap: 16px; }
.res-card { background: var(--bg); border: 1px solid var(--border); border-radius: 26px; box-shadow: none; transition: transform 0.3s var(--curve-standard), border-color 0.3s var(--curve-standard), box-shadow 0.3s var(--curve-standard); }
.res-card:hover { transform: translateY(-4px); border-color: var(--forest); box-shadow: 0 24px 40px -28px rgba(14, 15, 12, 0.35); }
.res-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.res-card p { color: var(--muted); }
.res-art { background: none; }
.res-art svg [fill="var(--surface)"] { fill: var(--lime-soft); }
.res-go { color: var(--forest); font-weight: 600; }
.res-go svg { transition: transform 0.3s var(--curve-standard); }
.res-card:hover .res-go svg { transform: translateX(4px); }

/* ---------- Blog ---------- */
main.wrap > .blog-head { padding-left: 0; padding-right: 0; }
.cats { margin-top: 28px; gap: 8px; }
.cats span { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.cats span.on { background: var(--forest); border-color: var(--forest); color: var(--lime); }
.posts { padding-bottom: clamp(56px, 7vw, 96px); }
.post-card { background: var(--bg); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; box-shadow: none; transition: transform 0.3s var(--curve-standard), border-color 0.3s var(--curve-standard), box-shadow 0.3s var(--curve-standard); }
.post-card:hover { transform: translateY(-4px); border-color: var(--forest); box-shadow: 0 24px 40px -28px rgba(14, 15, 12, 0.35); }
.post-card h2 { letter-spacing: -0.02em; }
.post-card .meta span:first-child { color: var(--forest); font-weight: 600; }

/* ---------- the closing band on every inner page ---------- */
.end-cta { text-align: center; }
.end-cta h2 { margin: 0 auto; font-size: clamp(40px, 6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; color: var(--forest); max-width: 14ch; }
.end-cta .sub { margin: 18px auto 0; color: var(--muted); max-width: 40ch; }
.end-cta .get { justify-content: center; margin-top: 32px; }
.end-cta .get .badges { justify-content: center; }

/* About's title block: left, like the others */
main .cs-head, main .cs-head .wrap { text-align: left; }
main .cs-head h1, main .cs-head .sub, main .cs-head .eyebrow { margin-left: 0; margin-right: 0; text-align: left; }
main .cs-head .sub { font-size: var(--fs-lead); max-width: 46ch; }

/* ---------- details pass (Nov 20) ---------- */
/* titles use the width they have: no three-line wraps with an empty right side */
main .page-head h1, main .blog-head h1 { max-width: 22ch; }
main .page-head, main .blog-head { padding-top: clamp(32px, 5vw, 64px); }
/* About: Cubi beside the title, and the story starts sooner */
.cs-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 20px; }
.cs-cubi { width: 88px; transform: rotate(-8deg); filter: drop-shadow(0 16px 20px rgba(22, 51, 0, 0.18)); }
@media (min-width: 760px) {
  .cs-head-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; }
  .cs-head-grid > :not(.cs-cubi) { grid-column: 1; }
  .cs-cubi { grid-column: 2; grid-row: 1 / span 3; width: clamp(150px, 16vw, 210px); margin-right: 4%; }
}
.cs-cubi .cubi .eyes { transform: translate(-6px, 2px); }
main .cs-head { padding-bottom: clamp(16px, 2vw, 24px); }
.cs-body { margin-top: clamp(16px, 3vw, 32px); }
/* Say hello: two equal actions */
.hello-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hello-acts .btn { min-width: 190px; }
.hello-acts .btn.copied { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--forest); }
@media (max-width: 460px) { .hello-acts .btn { flex: 1 1 100%; } }
/* the blog post's back link and its in-article call to action */
a.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px var(--border); }
a.back:hover { background: var(--surface); }
a.back .fa { width: 18px; height: 18px; color: var(--forest); }
.post-cta { background: var(--forest); color: #eef6e8; border: 0; border-radius: 28px; padding: clamp(24px, 4vw, 40px); }
.post-cta h2 { color: var(--lime); }
.post-cta p { color: #d6e3cc; }
.post-cta .btn.cta { background: var(--lime); color: var(--forest); }
.post-cta .btn.cta:hover { background: #b4f08f; }
/* resources: the Read arrow is an icon now */
.res-go { display: inline-flex; align-items: center; gap: 8px; }
.res-go .fa { width: 18px; height: 18px; }

/* ---------- About: Cubi narrates (about-cubi.js) ---------- */
.narrator { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.nar-cubi { width: 88px; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(-8deg); filter: drop-shadow(0 14px 18px rgba(22, 51, 0, 0.2)); border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.nar-cubi:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.nar-cubi .cubi .eyes { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nar-say { order: -1; position: relative; margin: 0; max-width: 260px; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--forest); color: #eef6e8; font-size: 15px; line-height: 1.4; font-weight: 500; box-shadow: 0 14px 28px -18px rgba(22, 51, 0, 0.6); }
.nar-say::after { content: ""; position: absolute; left: 22px; bottom: -7px; width: 14px; height: 14px; background: var(--forest); transform: rotate(45deg); border-radius: 2px; }
.narrator.talk .nar-say { animation: nar-talk 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.narrator.hop .nar-cubi { animation: nar-hop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes nar-talk { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
@keyframes nar-hop { 40% { transform: translateY(-14px) rotate(-2deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .narrator.talk .nar-say, .narrator.hop .nar-cubi { animation: none; } }
html.a11y-motion .narrator .nar-say, html.a11y-motion .narrator .nar-cubi { animation: none !important; }
/* laptops: Cubi rides above the contents rail and follows you down the story */
.cs-body .toc .nar-side { margin: 0 0 28px; }
.cs-body .toc .nar-side .nar-say { max-width: 220px; font-size: 14.5px; }
.cs-body .toc .nar-side .nar-cubi { width: 80px; margin-left: 8px; }
/* the title block keeps Cubi only on phones (where the contents rail is hidden) */
.cs-head .nar-head { margin-bottom: 18px; }
@media (min-width: 960px) { .cs-head .nar-head { display: none; } }
@media (min-width: 760px) and (max-width: 959px) { .cs-head-grid { grid-template-columns: minmax(0, 1fr); } .cs-head .nar-head { grid-column: 1; grid-row: auto; } }
@media (max-width: 759px) { .cs-head .nar-head .nar-cubi { width: 72px; } }

/* ---------- Nov 20, round 4 ---------- */
/* About: Cubi narrates from a right-hand column on laptops; the contents list stays on the left */
@media (min-width: 960px) {
  .cs-body { grid-template-columns: 180px minmax(0, 640px) minmax(200px, 1fr); gap: 56px; }
  .nar-col { position: sticky; top: 112px; align-self: start; }
  .nar-col .nar-side { align-items: flex-start; }
  .nar-col .nar-say { max-width: 240px; font-size: 15px; }
  .nar-col .nar-cubi { width: 96px; margin-left: 12px; }
}
@media (max-width: 959px) { .nar-col { display: none; } }

/* Resources: each card's picture on its own colour tile */
.res-art { aspect-ratio: auto; height: 132px; border-radius: 20px; background: var(--lime-soft); }
.res-art svg { width: auto; height: 76%; }
.res-art svg [fill="var(--surface)"] { fill: #fff; }
.res-grid .res-card:nth-child(1) .res-art { background: var(--lime); }
.res-grid .res-card:nth-child(2) .res-art { background: var(--sun); }
.res-grid .res-card:nth-child(3) .res-art { background: var(--peach); }
.res-grid .res-card:nth-child(4) .res-art { background: var(--sky); }
.res-grid .res-card:nth-child(5) .res-art { background: var(--rose); }
.res-grid .res-card:nth-child(6) .res-art { background: var(--lime-soft); }
.res-card:hover .res-art svg { transform: scale(1.06) rotate(-3deg); }
