/* Blog: list and post. Loaded through page_css: blog. Tokens from site.css :root; note look mirrors .page .facts. */

/* Index: posts as a wall of notes */
.blog__lede { max-width: 40ch; font-size: 1.2rem; line-height: 1.5; color: var(--cream-soft); }
.page .post-list { list-style: none; padding: 0; margin-top: 2.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1.75rem 1.5rem; }
.page .post-list li { margin: 0; }
.bnote { color: var(--ink); border-radius: 2px 2px 3px 2px; background-image: linear-gradient(168deg, rgb(255 255 255 / 0.28) 0%, rgb(255 255 255 / 0) 42%, rgb(40 30 0 / 0.1) 100%); box-shadow: 0 1px 1px rgb(6 22 14 / 0.25), 0 24px 30px -14px rgb(6 22 14 / 0.6); transition: translate 0.2s ease, box-shadow 0.2s ease; }
.bnote--0 { background-color: var(--yellow); }
.bnote--1 { background-color: var(--cream-b); }
.bnote--2 { background-color: var(--coral); }
.bnote--tilt0 { rotate: -1.1deg; } .bnote--tilt1 { rotate: 0.8deg; } .bnote--tilt2 { rotate: -0.4deg; } .bnote--tilt3 { rotate: 1.3deg; } .bnote--tilt4 { rotate: -0.8deg; }
.bnote:hover { translate: 0 -4px; box-shadow: 0 1px 1px rgb(6 22 14 / 0.25), 0 30px 34px -14px rgb(6 22 14 / 0.7); }
.page .bnote a { display: block; height: 100%; padding: 1.2rem 1.3rem 1.5rem; color: inherit; text-decoration: none; }
.page .bnote a:hover, .page .bnote a:focus-visible { color: inherit; }
.bnote time { display: block; font-family: "Gochi Hand", cursive; font-size: 1.35rem; line-height: 1; color: var(--ink); opacity: 0.75; }
.page .bnote h2 { margin: 0.6rem 0 0; color: var(--ink); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.1; }
.bnote p { margin-top: 0.7rem; font-size: 1rem; line-height: 1.45; }

/* Post */
.page article > * + * { margin-top: 1.25rem; }
.post__meta { margin: 0; font-family: "Gochi Hand", cursive; font-size: 1.5rem; color: var(--yellow); }
.page article > h1 { margin-top: 0; }
.post__lede { padding-bottom: 1.25rem; border-bottom: 2px solid rgb(20 38 28 / 0.2); font-size: 1.25rem; line-height: 1.5; font-weight: 500; }
.post__body .post__sum { margin-block: 1.75rem; padding: 1.1rem 1.25rem; background-color: var(--yellow); rotate: -0.6deg; border-radius: 2px 2px 3px 2px; box-shadow: 0 1px 1px rgb(6 22 14 / 0.2), 0 12px 18px -10px rgb(6 22 14 / 0.45); font-family: "Familjen Grotesk", sans-serif; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.35; text-align: center; }
.post__body { margin-top: 2.25rem; padding: clamp(1.4rem, 4vw, 2.75rem) clamp(1.2rem, 4vw, 2.75rem); color: var(--ink); background-color: var(--cream); border-radius: 2px 2px 3px 2px; background-image: linear-gradient(172deg, rgb(255 255 255 / 0.35) 0%, rgb(255 255 255 / 0) 30%, rgb(40 30 0 / 0.06) 100%); box-shadow: 0 1px 1px rgb(6 22 14 / 0.25), 0 24px 30px -14px rgb(6 22 14 / 0.6); line-height: 1.7; }
.post__body > :first-child { margin-top: 0; }
.page .post__body h2, .page .post__body h3 { color: var(--ink); }
.page .post__body a:not(.btn) { color: var(--ink); text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }
.page .post__body a:not(.btn):hover { color: var(--ink); background: var(--yellow); }
.post__body strong { color: var(--ink); }
.page .post__body th, .page .post__body td { border-color: rgb(20 38 28 / 0.25); }
.post__body > * + * { margin-top: 1.25rem; }
.post__body h2 { margin-top: 2.75rem; }
.post__body img { max-width: 100%; height: auto; }
.post__body blockquote { margin-inline: 0; padding-left: 1.1rem; border-left: 3px solid var(--ink); }
.post__body pre, .post__body code { font-size: 0.9em; }
.post__body pre { overflow-x: auto; padding: 1rem; background: var(--wall-deep); color: var(--cream); border-radius: 0.5rem; }
.post__body table { display: block; overflow-x: auto; }
.post__close { margin-top: 3rem; padding: 1.4rem 1.5rem 1.6rem; color: var(--ink); background-color: var(--yellow); rotate: -0.6deg; border-radius: 2px 2px 3px 2px; background-image: linear-gradient(168deg, rgb(255 255 255 / 0.28) 0%, rgb(255 255 255 / 0) 42%, rgb(40 30 0 / 0.1) 100%); box-shadow: 0 1px 1px rgb(6 22 14 / 0.25), 0 24px 30px -14px rgb(6 22 14 / 0.6); }
.post__close h2 { margin: 0; color: var(--ink); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.post__close p { margin-top: 0.7rem; }
.post__close p:last-child { margin-top: 1rem; }
.post__back { margin-top: 2.5rem; }

/* Explore with AI (SPEC J4) */
.explore { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 2px solid rgb(20 38 28 / 0.2); }
.page .post__body .explore__h { margin: 0 0 0.5rem; font-size: 1.3rem; letter-spacing: -0.02em; }
.explore__q { border-bottom: 1px solid rgb(20 38 28 / 0.18); }
.explore__q summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding-block: 0.5rem; font-weight: 600; cursor: pointer; list-style: none; }
.explore__q summary::-webkit-details-marker { display: none; }
.explore__q summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: 45deg; translate: 0 -0.15rem; transition: rotate 150ms; }
.explore__q[open] summary::after { rotate: 225deg; translate: 0 0.15rem; }
.explore__q summary:hover { color: var(--wall); }
.explore__q summary:focus-visible, .explore__bots a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.post__body .explore__hint { margin: 0; color: rgb(20 38 28 / 0.8); }
.post__body .explore__bots { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1.1rem; }
.post__body .explore__bots .btn { min-height: 44px; padding: 0.45rem 1rem; font-size: 1rem; }
.post__body .explore__note { margin-top: 1.1rem; font-size: 0.95rem; line-height: 1.55; color: rgb(20 38 28 / 0.8); }
.page article > .post__meta { margin-top: 0.4rem; }
