/* Content pages on layouts.taste: proof, resources, blog index, topic hubs, blog posts, legal pages,
   newsletter status pages, the /prompting landing.
   Tokens and components come from the kit (public/assets/system.css); this file only adds what a
   long reading page needs. Loaded by each page via @push('head'). */

/* The kit sizes every main > section to whole screens (the homepage's one-section-per-screen rhythm).
   Content pages are documents: their sections take the height of what they hold. */
main.page > :is(section, .section, article) { height: auto; min-height: 0; padding: var(--padt) 0 var(--padb); }
main.page > :is(section, .section, article) + :is(section, .section, article) { padding-top: var(--s-8, 64px); }
main.page > :is(section, .section, article).ground-surface { padding-top: var(--padb); }
main.page > :is(section, .section, article) > .wrap { height: auto; }

/* headings: the accent word (<em> in the copy) in signal orange, upright like the wordmark's i */
main.page :is(h1, h2, h3) em { font-style: normal; color: var(--accent); }
.pg-eyebrow { font: 500 var(--t-small)/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); }
.pg-head { max-width: 860px; display: grid; gap: var(--s-4); }
.pg-head > p:not(.pg-eyebrow) { font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
.pg-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.pg-meta > :first-child { color: var(--accent); }
.pg-meta a { color: inherit; }

/* ---------------------------------------------------------------- proof */
.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-8, 64px); border-top: 1px solid var(--line); }
.pg-stats > div { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--line); }
.pg-stats > div:not(:nth-child(3n + 1)) { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.pg-stats dd { margin: 0; }
.pg-stats .t-stat { font-size: clamp(26px, 1vw + 22px, 36px); overflow-wrap: anywhere; }
.pg-stats dt { color: var(--muted); }
@media (max-width: 1023px) {
  .pg-stats { grid-template-columns: minmax(0, 1fr); }
  .pg-stats > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
}
.pg-case { gap: var(--s-3); }
.pg-case > .pg-receipt { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); }
.pg-receipt > span { font-size: var(--t-small); color: var(--muted); }

/* ---------------------------------------------------------------- resources */
.card.res-card { padding: 0; overflow: hidden; gap: 0; }
.res-card > img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.res-card__body { display: flex; flex-direction: column; gap: var(--s-3); flex: 1; padding: var(--s-5); }
.res-card__body > h2 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.res-card__body > p { max-width: 56ch; }
.res-card__action { margin-top: auto; padding-top: var(--s-2); }
.res-card .hv-nl { width: 100%; }
.res-card .hv-nl__hint { font-size: var(--t-small); color: var(--muted); }

/* ---------------------------------------------------------------- blog lists */
.pg-tabs { margin-top: var(--s-7, 48px); }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.tab[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pg-posts { margin-top: var(--s-7, 48px); }
.card.post-card { gap: var(--s-3); text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease); min-height: 280px; }
.card.post-card:hover { border-color: var(--line-strong); }
.post-card > h2, .post-card > h3 { font: var(--display-weight) 26px/1.15 var(--font-display); font-variation-settings: var(--display-axes); letter-spacing: var(--display-tracking); }
.post-card > p { color: var(--muted); }
.post-card > .pg-more { margin-top: auto; font-weight: 500; display: inline-flex; gap: var(--s-2); }
.post-card:hover > .pg-more { color: var(--accent); }
@media (max-width: 1023px) { .pg-posts > .post-card { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .pg-posts > .post-card { grid-column: auto / span 6; } }
.pg-empty { font-size: var(--t-lead); color: var(--muted); padding-block: var(--s-8, 64px); }

/* ---------------------------------------------------------------- blog post */
.pg-col { width: min(100%, 720px); margin-inline: auto; }
.pg-back { display: inline-flex; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; color: var(--muted); margin-bottom: var(--s-7, 48px); }
.pg-back:hover { color: var(--ink); }
.post-title { margin-top: var(--s-4); }
.post-excerpt { margin-top: var(--s-5); font: var(--display-weight) clamp(20px, 1vw + 16px, 24px)/1.4 var(--font-display); font-variation-settings: var(--display-axes); }
.post-byline { margin-top: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.post-byline img { width: 32px; height: 32px; }
.post-byline a { color: var(--ink); font-weight: 500; }
.post-box { margin-top: var(--s-7, 48px); padding: var(--s-5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-md); background: var(--card); display: grid; gap: var(--s-2); }
.post-box__label { font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--accent); }
.post-series ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s-1); color: var(--muted); }
.post-series li[aria-current="page"] { color: var(--ink); font-weight: 500; }
.post-series a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.post-series a:hover { color: var(--ink); }

.post-prose { margin-top: var(--s-7, 48px); font-size: 18px; line-height: 1.7; }
.post-prose > * + * { margin-top: 1.25em; }
.post-prose h2 { font-size: var(--t-h3); line-height: 1.2; margin-top: 2em; }
.post-prose h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin-top: 1.8em; }
.post-prose :is(h2, h3) + * { margin-top: 0.6em; }
.post-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-prose a:hover { color: var(--ink); }
.post-prose strong { font-weight: 600; }
.post-prose :is(ul, ol) { padding-left: 1.4em; }
.post-prose li + li { margin-top: 0.5em; }
.post-prose blockquote { border-left: 2px solid var(--accent); padding-left: var(--s-5); font: var(--display-weight) 1.15em/1.5 var(--font-display); }
.post-prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.post-prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.post-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.post-prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.post-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.post-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.post-prose :is(th, td) { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }

.post-faq { margin-top: var(--s-8, 64px); display: grid; gap: var(--s-5); }
.post-faq > h2 { font-size: var(--t-h3); }
.post-author { margin-top: var(--s-8, 64px); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); display: flex; gap: var(--s-5); align-items: flex-start; }
.post-author > img { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; flex: none; }
.post-author__name { font-weight: 500; font-size: var(--t-lead); }
.post-author__name a { color: var(--ink); }
.post-author__role { font: 500 13px/1.4 var(--font-mono); color: var(--accent); margin-top: var(--s-1); }
.post-author-bio { margin-top: var(--s-3); color: var(--muted); }
@media (max-width: 639px) { .post-author { flex-direction: column; } }
.post-ctas { margin-top: var(--s-8, 64px); display: grid; gap: var(--s-4); }
.post-ctas .card { gap: var(--s-3); }
.post-ctas .card > h3 em { font-style: normal; color: var(--accent); }

/* ---------------------------------------------------------------- legal */
.legal-head { padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.legal-subtitle { color: var(--muted); }
.legal-body { margin-top: var(--s-6); }
.legal-body > section > * + * { margin-top: 1em; }
.legal-body > section + section { margin-top: 2.2em; }
.legal-body h2 { margin-top: 0; }
.legal-back { margin-top: var(--s-8); }

/* ---------------------------------------------------------------- newsletter status pages */
main.page > .nl-status { min-height: 60vh; display: flex; align-items: center; }
.nl-status .pg-head { justify-items: start; }
.nl-status__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--accent); font-size: 22px; }
.nl-status__icon.is-off { color: var(--muted); }
:is(.legal-back, .nl-status) .pg-back { margin-bottom: 0; }

/* ---------------------------------------------------------------- /prompting landing */
main.page > .lp { min-height: calc(100svh - var(--nav)); display: flex; align-items: center; }
.lp-book { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.card.lp-card { gap: var(--s-4); padding: var(--s-6); align-self: start; }
.lp-card > h2 { font-size: var(--t-h3); }
.lp-card > p { color: var(--muted); }
.lp-card .hv-nl { width: 100%; }
.lp-card .hv-nl > .btn { justify-self: start; }
@media (max-width: 1023px) { .lp-card { margin-top: var(--s-7); } }
.nl-status__alt { font-size: var(--t-small); color: var(--muted); }
.nl-status__alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
