/**
 * content.css: /blog, /blog/<slug> and /changelog (ACT-249).
 *
 * A port of the design system's `ui_kits/website/Actorly Blog.dc.html`, `Actorly Article.dc.html` and
 * `Actorly Changelog.dc.html` (skill actorly-design): the inline styles of the specimens, as classes on the tokens.
 * Every colour is a token from design-tokens.css; sizes the tokens do not name are in rem (1rem = 16px).
 * The card tints are the specimens' own oklch values. Motion is public/js/content-pages.js (pills, copy link) and
 * motion-kit.js (the reveals).
 */

.cp-root { overflow-x: clip; }
.cp-wrap { max-width: var(--act-content-max); margin: 0 auto; }
.cp-wrap-narrow { max-width: 61.25rem; }
.cp-wrap-narrow .cp-lede { max-width: 37.5rem; } /* the Changelog specimen caps its lede at 600px, the Blog at 620px */

/* ---------------------------------------------------------------- hero */
.cp-hero { padding: 11.25rem var(--act-gutter) 4rem; }
.cp-hero .cp-wrap { display: flex; flex-direction: column; gap: 1.375rem; }
.cp-h1 { margin: 0; font-variation-settings: var(--act-display-wdth); font-weight: 700; font-size: var(--act-h1); line-height: var(--act-lh-display); letter-spacing: -.058em; }
.cp-h1-art { font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: var(--act-lh-h2); letter-spacing: -.055em; }
.cp-h2 { margin: 0; font-variation-settings: var(--act-display-wdth); font-weight: 700; font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: var(--act-lh-h2); letter-spacing: -.055em; }
.cp-lede { margin: 0; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: var(--act-lh-lede); color: var(--act-body); max-width: 38.75rem; }
.cp-link { color: var(--act-ink); text-decoration: underline; text-decoration-color: var(--act-ember); text-underline-offset: 5px; font-weight: 600; }

/* ---------------------------------------------------------------- pill filters */
.cp-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.cp-pill { height: 2.5rem; padding: 0 1rem; border: 0; border-radius: var(--act-radius-pill); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; background: var(--act-white); color: var(--act-ink); box-shadow: var(--act-ring); transition: background .25s ease, color .25s ease; }
.cp-pill.is-on { background: var(--act-ink); color: var(--act-paper); }
.cp-pill:focus-visible, .cp-copy:focus-visible { outline: 2px solid var(--act-ember-text); outline-offset: 3px; }

/* ---------------------------------------------------------------- list + cards */
.cp-list { padding: 0 var(--act-gutter) 8.75rem; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22.5rem), 1fr)); gap: 1.125rem; }
.cp-card { background: var(--act-white); border-radius: 1.625rem; box-shadow: var(--act-ring); overflow: hidden; display: flex; flex-direction: column; color: var(--act-ink); text-decoration: none; transition: box-shadow .25s ease; }
.cp-card:hover { box-shadow: var(--act-ring-hover); }
.cp-card[hidden], .cp-entry[hidden] { display: none; }
.cp-card.is-in, .cp-entry.is-in { animation: cp-in .45s var(--act-ease-settle) both; }
@keyframes cp-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.cp-card-img { height: 13.75rem; padding: var(--act-gutter); display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; background-size: cover; background-position: center; }
.tone-0 { background-color: oklch(0.9 0.04 60); }
.tone-1 { background-color: oklch(0.9 0.035 150); }
.tone-2 { background-color: oklch(0.9 0.04 250); }
.tone-3 { background-color: oklch(0.9 0.05 88); }
.tone-4 { background-color: oklch(0.89 0.04 300); }
.tone-5 { background-color: oklch(0.9 0.04 20); }
.cp-stamp { align-self: flex-start; background: var(--act-ember); color: var(--act-ink); border-radius: var(--act-radius-stamp); padding: .5rem .75rem; font-size: .875rem; font-weight: 700; line-height: 1.3; transform: rotate(-3deg); box-shadow: var(--act-shadow-stamp); }
.cp-stamp span { display: block; font-weight: 500; }
/* a card whose cover image carries its own title shows no stamp over it: the stamp hid words of the title (ACT-272) */
.cp-card-img[style*="background-image"] .cp-stamp { display: none; }
.cp-card-body { padding: 1.5rem 1.625rem 1.75rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.cp-cat { font-size: .875rem; font-weight: 650; color: var(--act-ember-text); }
.cp-card h2 { margin: 0; font-size: 1.4375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cp-card p { margin: 0; font-size: 1rem; line-height: var(--act-lh-lede); color: var(--act-body); }
.cp-meta { margin-top: auto; padding-top: .625rem; font-size: var(--act-small); color: var(--act-faint); }
.cp-empty { margin: 0; padding: 2rem 0; font-size: 1.125rem; color: var(--act-body); }
.cp-empty[hidden], .cp-empty-card[hidden] { display: none; }
.cp-empty-card { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 2.5rem 1.5rem; background: var(--act-white); box-shadow: var(--act-ring); border-radius: var(--act-radius-tile); text-align: center; }
.cp-empty-card .cp-empty { padding: 0; }
.cp-empty-art { width: min(20rem, 100%); height: auto; }
.cp-empty-art .e-card { fill: var(--act-white); stroke: var(--act-ink); stroke-width: 2; }
.cp-empty-art .e-line { fill: var(--act-line); }
.cp-empty-art .e-ink { fill: var(--act-ink); }
.cp-empty-art .e-ember { fill: var(--act-ember); }
.cp-empty-art .e-tone1 { fill: oklch(0.9 0.035 150); } .cp-empty-art .e-tone2 { fill: oklch(0.9 0.04 250); } .cp-empty-art .e-tone3 { fill: oklch(0.9 0.05 88); }

/* ---------------------------------------------------------------- changelog */
.cp-entries { display: flex; flex-direction: column; gap: .875rem; }
.cp-entry { background: var(--act-white); border-radius: var(--act-radius-card); box-shadow: var(--act-ring); padding: clamp(1.375rem, 3vw, 2.125rem); display: grid; grid-template-columns: 9.375rem minmax(0, 1fr); gap: var(--act-gutter); }
.cp-entry-side { display: flex; flex-direction: column; gap: .625rem; }
.cp-entry-side .d { font-size: .9375rem; font-weight: 650; }
.cp-tag { align-self: flex-start; padding: .25rem .6875rem; border-radius: var(--act-radius-pill); font-size: .8125rem; font-weight: 600; background: var(--act-notyet-bg); color: var(--act-notyet-fg); }
.cp-tag-feature { background: var(--act-ember-soft); color: var(--act-ember-text); }
.cp-tag-improvement { background: var(--act-likely-bg); color: var(--act-likely-fg); }
.cp-tag-coverage { background: var(--act-confirmed-bg); color: var(--act-confirmed-fg); }
.cp-entry-main { display: flex; flex-direction: column; gap: .625rem; min-width: 0; }
.cp-entry h2 { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.cp-entry-body { font-size: 1rem; line-height: var(--act-lh-body); color: var(--act-body); }
.cp-entry-body > * { margin: 0 0 .75rem; }
.cp-entry-body > :last-child { margin-bottom: 0; }
.cp-entry .cp-meta { margin-top: 0; padding-top: 0; }

/* ---------------------------------------------------------------- article */
.cp-art-head { padding: 10.625rem var(--act-gutter) 3.5rem; }
.cp-art-head-in { max-width: 55rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.375rem; }
.cp-back { font-size: .9375rem; font-weight: 600; color: var(--act-body); text-decoration: none; }
.cp-back:hover { color: var(--act-ember-text); }
.cp-dek { margin: 0; font-size: 1.25rem; line-height: var(--act-lh-lede); color: var(--act-body); }
.cp-art-meta { display: flex; flex-wrap: wrap; gap: .625rem 1.25rem; align-items: center; font-size: .9375rem; color: var(--act-body); }
.cp-art-meta .who { font-weight: 650; color: var(--act-ink); }
.cp-art-meta .grow { flex: 1; }
.cp-copy { height: 2.375rem; padding: 0 1rem; border: 0; border-radius: var(--act-radius-pill); background: var(--act-white); box-shadow: var(--act-ring); font: inherit; font-size: var(--act-small); font-weight: 600; cursor: pointer; color: var(--act-ink); }
.cp-art-main { background: var(--act-white); padding: 5rem var(--act-gutter) 8.125rem; }
.cp-art-grid { max-width: 73.75rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 4rem; }
.cp-art-body { max-width: 45rem; display: flex; flex-direction: column; gap: 1.375rem; font-size: 1.125rem; line-height: var(--act-lh-long); color: var(--act-body-strong); }
.cp-art-body > * { margin: 0; }
.cp-art-cover { width: 100%; height: auto; border-radius: var(--act-radius-card); }
.cp-art-body img { max-width: 100%; height: auto; border-radius: var(--act-radius-inner); }
.cp-art-body h2 { margin: 1.5rem 0 0; font-variation-settings: var(--act-display-wdth); font-weight: 700; font-size: 2.125rem; line-height: 1.05; letter-spacing: -.04em; color: var(--act-ink); scroll-margin-top: 6.875rem; }
.cp-art-body h3 { margin: 1rem 0 0; font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.03em; color: var(--act-ink); }
.cp-art-body h4 { margin: .5rem 0 0; font-weight: 700; font-size: 1.1875rem; color: var(--act-ink); }
.cp-art-body blockquote { margin: .375rem 0; padding: .25rem 0 .25rem 1.375rem; box-shadow: inset 3px 0 0 var(--act-ember); font-size: 1.3125rem; line-height: 1.5; color: var(--act-ink); font-weight: 500; }
.cp-art-body a { color: var(--act-ink); text-decoration: underline; text-decoration-color: var(--act-ember); text-underline-offset: var(--act-space-1); }
.cp-art-body ul, .cp-art-body ol { padding-left: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.cp-art-body pre { padding: 1rem 1.125rem; border-radius: var(--act-radius-inner); background: var(--act-paper); overflow-x: auto; font-size: .9375rem; }
.cp-art-body code { font-size: .95em; background: var(--act-paper); padding: .1em .35em; border-radius: .3em; }
.cp-art-body pre code { padding: 0; background: none; }
.cp-art-body hr { border: 0; height: thin; background: var(--act-line); width: 100%; }
.cp-art-side { position: sticky; top: 6.875rem; align-self: start; display: flex; flex-direction: column; gap: 1.125rem; }
.cp-side-box { padding: 1.375rem; border-radius: 1.375rem; display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; }
.cp-side-label { font-size: .8125rem; font-weight: 700; color: var(--act-faint); margin-bottom: .375rem; }
.cp-toc { background: var(--act-paper); }
.cp-toc a { padding: .3125rem 0; color: var(--act-ink); text-decoration: none; }
.cp-toc a:hover { color: var(--act-ember-text); }
.cp-side-cta { background: var(--act-surface-inverse); color: var(--act-text-on-inverse); gap: .875rem; }
.cp-side-cta span { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.cp-side-cta a { height: 2.875rem; border-radius: var(--act-radius-pill); background: var(--act-button-inverse-bg); color: var(--act-button-inverse-fg); font-size: .9375rem; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .25s ease, color .25s ease; }
.cp-side-cta a:hover { background: var(--act-paper); color: var(--act-ink); }
.cp-side-ai { box-shadow: var(--act-ring); gap: .625rem; }
.cp-side-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.cp-side-chips a { padding: .375rem .75rem; border-radius: var(--act-radius-pill); background: var(--act-paper); color: var(--act-ink); text-decoration: none; }
.cp-side-chips a:hover { color: var(--act-ember-text); }
.cp-more { padding: 6.875rem var(--act-gutter); }
.cp-more .cp-wrap { max-width: 73.75rem; display: flex; flex-direction: column; gap: 1.375rem; }
.cp-more-h { margin: 0; font-variation-settings: var(--act-display-wdth); font-weight: 700; font-size: clamp(1.875rem, 3.6vw, 3.25rem); letter-spacing: -.05em; }
.cp-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.cp-more-card { background: var(--act-white); border-radius: 1.375rem; box-shadow: var(--act-ring); padding: var(--act-gutter); display: flex; flex-direction: column; gap: .5rem; color: var(--act-ink); text-decoration: none; transition: box-shadow .25s ease; }
.cp-more-card:hover { box-shadow: var(--act-ring-hover); }
.cp-more-card .t { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }

@media (max-width: 60rem) {
  .cp-art-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-art-side { position: static; }
}
@media (max-width: 40rem) {
  /* a card cover shows whole at its own 1200x630 ratio; the stamp is smaller and sits inside the card padding */
  .cp-card-img { height: auto; aspect-ratio: 1200 / 630; padding: .625rem; }
  .cp-stamp { padding: .25rem .5rem; font-size: .6875rem; border-radius: .5rem; }
  .cp-hero { padding-top: 8.5rem; }
  .cp-art-head { padding-top: 8rem; }
  .cp-entry { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
  .cp-entry-side { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-pill, .cp-card, .cp-more-card, .cp-side-cta a { transition: none; }
  .cp-card.is-in, .cp-entry.is-in { animation: none; }
}
.cp-rss { color: var(--act-ink); display: block; width: fit-content; margin: 1.125rem auto 0; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--act-ember); text-underline-offset: 5px; } /* the Changelog specimen's "Subscribe with RSS" (ACT-263) */
.cp-art-body table, .cp-entry-body table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cp-art-body th, .cp-entry-body th { text-align: left; font-weight: 700; color: var(--act-ink); background: var(--act-table-head); }
.cp-art-body th, .cp-art-body td, .cp-entry-body th, .cp-entry-body td { padding: .625rem .75rem; border: thin solid var(--act-line); vertical-align: top; }

/* ---------------------------------------------------------------- phones (ACT-272)
   /blog, the articles and /changelog: tighter section rhythm, 44px pills and buttons, an article body sized for reading in one hand. */
@media (max-width: 40rem) {
  .cp-hero { padding: 7rem var(--act-gutter) 2rem; }
  .cp-h1 { font-size: clamp(2.5rem, 12.5vw, 3.25rem); }
  .cp-h1-art { font-size: clamp(2rem, 9.4vw, 2.5rem); line-height: 1.02; }
  .cp-h2 { font-size: clamp(1.875rem, 8.6vw, 2.25rem); }
  .cp-hero .cp-wrap { gap: 1rem; }
  .cp-pills { margin-top: .25rem; }
  .cp-pill { height: 2.75rem; padding: 0 1.125rem; }
  .cp-list { padding-bottom: 4rem; }
  .cp-grid { gap: .875rem; }
  .cp-card { border-radius: 1.375rem; }
  .cp-card-body { padding: 1.125rem 1.25rem 1.375rem; gap: .5rem; }
  .cp-card h2 { font-size: 1.25rem; }
  .cp-card p { font-size: .9375rem; }
  .cp-empty-card { padding: 2rem 1.25rem; }
  .cp-entry { padding: 1.25rem; }
  .cp-entries { gap: .75rem; }
  .cp-entry h2 { font-size: 1.1875rem; }
  .cp-rss { min-height: 2.75rem; display: flex; align-items: center; justify-content: center; }

  .cp-art-head { padding: 6.5rem var(--act-gutter) 2rem; }
  .cp-art-head-in { gap: 1rem; }
  .cp-back { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .cp-dek { font-size: 1.0625rem; }
  .cp-art-meta { gap: .5rem 1rem; font-size: .875rem; }
  .cp-art-meta .grow { flex-basis: 100%; height: 0; }
  .cp-copy { height: 2.75rem; padding: 0 1.25rem; }
  .cp-art-main { padding: 2.5rem var(--act-gutter) 3.5rem; }
  .cp-art-grid { gap: 2.5rem; }
  .cp-art-body { gap: 1.125rem; font-size: 1.0625rem; line-height: 1.7; }
  .cp-art-body h2 { margin-top: 1.25rem; font-size: 1.625rem; line-height: 1.1; scroll-margin-top: 5.5rem; }
  .cp-art-body h3 { font-size: 1.3125rem; }
  .cp-art-body blockquote { font-size: 1.125rem; padding-left: 1rem; }
  .cp-art-body ul, .cp-art-body ol { padding-left: 1.25rem; }
  .cp-art-body pre, .cp-art-body table { max-width: 100%; overflow-x: auto; }
  .cp-art-body table { display: block; }
  .cp-art-side { gap: .875rem; }
  .cp-side-box { padding: 1.125rem; border-radius: 1.25rem; }
  .cp-toc a { display: flex; align-items: center; min-height: 2.75rem; padding: .25rem 0; }
  .cp-side-cta a { height: 3.25rem; font-size: 1rem; }
  .cp-side-chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .375rem 1rem; }
  .cp-more { padding: 3.5rem var(--act-gutter); }
  .cp-more .cp-wrap { gap: 1rem; }
  .cp-more-h { font-size: 1.875rem; }
  .cp-more-card { border-radius: 1.25rem; padding: 1.25rem; }
}
