/* Content pages: journal, articles, plugins hub. Layered on top of site.css. */

/* Page intro (journal index, plugins hub) */
.page-intro { padding: 70px 0 64px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 24px 0 0; font-size: clamp(44px, 5.6vw, 84px); }
.page-intro-copy { max-width: 540px; margin-top: 26px; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* Journal index */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 28% 1fr 40px; gap: 24px; align-items: start; padding: 40px 0; }
.post-row-meta { padding-top: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.post-row-meta b { display: block; font-weight: 400; color: #877344; }
.post-row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.post-row h2 em { color: #83836f; }
.post-row p { max-width: 560px; margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.post-row-arrow { padding-top: 12px; font-size: 20px; color: var(--gold); transition: transform 200ms ease; }
.post-row:hover .post-row-arrow { transform: translate(4px, -4px); }
.post-row:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Article */
.post { padding-top: 70px; }
.post-header { display: grid; grid-template-columns: 28% 1fr; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.post-kicker { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-kicker a:hover { color: var(--ink); }
.post-kicker b { font-weight: 400; color: #877344; }
.post-header h1 { margin: 0; font-size: clamp(42px, 5.2vw, 78px); line-height: 1.08; }
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 12px; color: var(--muted); }
.post-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.post-byline strong { display: block; font-weight: 500; color: var(--ink); }
.post-layout { display: grid; grid-template-columns: 28% 1fr; padding: 60px 0 90px; }
.post-aside { position: relative; }
.post-aside-inner { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 14px; padding-right: 30px; }
.post-aside-card { display: flex; align-items: center; gap: 12px; padding: 14px; max-width: 230px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; font-size: 12px; line-height: 1.4; transition: border-color 160ms ease; }
.post-aside-card:hover { border-color: var(--ink); }
.post-aside-card img { width: 40px; height: 40px; border-radius: 10px; }
.post-aside-card span { color: var(--muted); }
.post-aside-card strong { display: block; font-weight: 500; color: var(--ink); }
.post-body { max-width: 680px; }
.post-body > * + * { margin-top: 22px; }
.post-body p { font-size: 16px; line-height: 1.85; color: #3d3e38; }
.post-body .post-lead { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.45; letter-spacing: -.02em; color: var(--ink); }
.post-body h2 { margin-top: 58px; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.post-body h2 + p { margin-top: 18px; }
.post-body a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-body a:hover { text-decoration-color: var(--ink); }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body code { padding: 1px 6px; border-radius: 4px; background: #efece3; font: 14px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.post-body blockquote { margin: 44px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; letter-spacing: -.02em; color: #6c6d5f; }
.post-demo { margin: 44px 0; }
.post-demo-stage { position: relative; height: 340px; overflow: hidden; border-radius: 14px; background: linear-gradient(160deg, #171a45 0%, #3a2f9e 60%, #6c5ce7 100%); box-shadow: 0 26px 50px -30px rgba(23, 26, 69, .5); }
.post-demo-stage canvas { z-index: 2 !important; }
.post-demo-play { position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%, -50%); padding: 12px 20px; border: 0; border-radius: 999px; background: #fff; color: #1b1d4a; font: inherit; font-size: 13px; cursor: pointer; }
.post-demo figcaption { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.post-demo figcaption span { color: var(--ink); }
.post-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin-top: 60px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
.post-end-product { display: flex; align-items: center; gap: 16px; }
.post-end-product img { width: 56px; height: 56px; border-radius: 14px; }
.post-end-product p { font-size: 13px; line-height: 1.5; color: var(--muted); }
.post-end-product strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.post-end .df-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.post-end .text-link { margin-top: 0; }
.post-author { display: flex; align-items: center; gap: 18px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.post-author p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.post-author strong { display: block; font-weight: 500; color: var(--ink); }

.post-brand { margin: 40px 0 46px; }
.post-brand-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 64px 24px 56px; border-radius: 14px; background: linear-gradient(170deg, #fbfaf6, #efe9dd); border: 1px solid var(--line); text-align: center; }
.post-brand-panel img { width: min(240px, 60%); height: auto; }
.post-brand-tagline { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; color: var(--ink); }
.post-brand-tagline em { color: #83836f; }
.post-brand-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }
.post-brand-facts li { padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.post-brand-facts b { display: block; margin-bottom: 2px; font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.post-body p em { font-family: var(--serif); font-size: 1.06em; color: #6c6d5f; }
.post-next { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-next-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #877344; }
.post-next-title { grid-column: 1; font-family: var(--serif); font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.post-next-title em { color: #83836f; }
.post-next-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 20px; color: var(--gold); transition: transform 200ms ease; }
.post-next:hover .post-next-arrow { transform: translate(3px, -3px); }
.post-next:hover .post-next-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 760px) { .post-brand-facts { grid-template-columns: 1fr 1fr; gap: 14px 16px; } .post-brand-panel { padding: 44px 20px 40px; } }

/* Plugins hub */
.plugin-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plugin-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf6; transition: border-color 180ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1); }
.plugin-card:hover { border-color: #c9c8bb; }
.plugin-card-head { display: flex; align-items: center; gap: 16px; }
.plugin-card-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 26px -14px rgba(58, 47, 158, .6); }
.plugin-card h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.04em; line-height: 1; }
.plugin-card-sub { margin-top: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plugin-card-copy { margin-top: 22px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.plugin-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plugin-tags li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; line-height: 1; }
.plugin-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: auto; padding-top: 28px; }
.plugin-card-actions .text-link { margin-top: 0; }
.plugin-card.is-next { border-style: dashed; background: transparent; justify-content: center; }
.plugin-card.is-next h2 { margin-top: 10px; font-size: 28px; line-height: 1.15; }
.plugin-card.is-next h2 em { color: #83836f; }
.plugins-section { padding: 70px 0 90px; }

@media (max-width: 860px) {
  .post-header, .post-layout { grid-template-columns: 1fr; }
  .post-kicker { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 22px; }
  .post-aside { order: 2; margin-top: 50px; }
  .post-aside-inner { position: static; padding: 0; }
  .post-row { grid-template-columns: 1fr 30px; gap: 8px 16px; padding: 32px 0; }
  .post-row-meta { grid-column: 1 / -1; padding: 0; }
  .plugin-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-intro { padding: 44px 0 46px; }
  .post { padding-top: 44px; }
  .post-header { padding-bottom: 38px; }
  .post-layout { padding: 40px 0 60px; }
  .post-body p { font-size: 15.5px; }
  .post-demo-stage { height: 260px; }
  .post-body blockquote { font-size: 20px; }
  .plugin-card { padding: 24px; }
  .plugins-section { padding: 46px 0 60px; }
}
.post-aside-card img.post-aside-logo, .post-end-product img.post-end-logo { object-fit: contain; padding: 7px; background: #fff; border: 1px solid var(--line); }
.post-body .post-end a, .post-body a.post-next { text-decoration: none; }
.plugins-profile { margin-top: 26px; }
.plugin-card-nodebook .plugin-card-head img { box-shadow: 0 10px 26px -14px rgba(15, 127, 129, .6); }
.plugin-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.post-shot { margin: 34px 0 40px; }
.post-shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 26px 50px -30px rgba(15, 42, 51, .5), 0 0 0 1px rgba(41, 42, 38, .1); }
.post-shot figcaption { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
