/* Inner pages (projects, posts, pages, 404): same night palette, reading-friendly layout. */

body.hm-inner {
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(77,141,255,.18), transparent 70%),
    radial-gradient(50% 35% at 0% 30%, rgba(155,123,255,.12), transparent 70%),
    var(--sky-1);
  background-attachment: fixed;
}
.page-shell { position: relative; z-index: 1; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(60px, 9vw, 110px); min-height: 70vh; }
.container.narrow { max-width: 820px; }
.page-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 56px); }
.page-title { margin-block: 10px 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent-2); }
.back-link i[data-icon] { transform: scaleX(-1); width: 18px; height: 18px; }
[dir="rtl"] .back-link i[data-icon] { transform: none; }
.page-hero { margin: 26px 0 30px; }
.page-hero img { width: 100%; height: auto; }

/* cards */
.post-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { overflow: hidden; }
.post-card-link { display: grid; height: 100%; }
.post-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-media.is-empty { background: radial-gradient(circle at 70% 20%, rgba(77,141,255,.45), transparent 65%), linear-gradient(160deg, #0E2457, #081739); }
.post-card-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.post-card-excerpt { color: var(--ink-2); font-size: 14.5px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 10px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-weight: 700; }
.nav-links .page-numbers.current { background: #fff; color: #0A1C47; }

/* the "See all work" button on the landing page */
.work-link { display: flex; justify-content: center; margin-top: 32px; }

/* long-form content from the editor */
.prose { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: #fff; line-height: 1.25; letter-spacing: -.02em; margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-inline-start: 1.3em; list-style: revert; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; border-radius: 16px; border-inline-start: 3px solid var(--accent); background: rgba(255,255,255,.05); color: #fff; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 14px; background: rgba(3,9,22,.6); border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); }
.prose .wp-block-button__link { display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--btn); color: #fff; text-decoration: none; font-weight: 700; }
.prose .alignwide, .prose .alignfull { width: 100%; }

.page-shell .cta-band { margin-top: clamp(48px, 7vw, 80px); }
.page-404 .container { display: grid; justify-items: start; gap: 14px; }
.inner-footer { background: rgba(3,9,22,.55); }
.hm-inner .sticky-cta { display: none; }
@media (max-width: 760px) { .hm-inner .sticky-cta { display: inline-flex; } }
