/* Blog-specific styles. Base site styles (colors, .font-display, .hero-gradient, .subtle-grid, .feature-card…)
   are inlined from index.html at build time, so only blog additions live here. */

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #14b8a6; color: #0a1628; padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; border-radius: .5rem; }
:focus-visible { outline: 2px solid #14b8a6; outline-offset: 2px; }

/* Make the whole card clickable while keeping a single link for screen readers */
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:focus-within { outline: 2px solid #14b8a6; outline-offset: 2px; }
.post-card[hidden] { display: none; }

/* Category chips */
.cat-chip { display: inline-block; border-radius: 9999px; background: #ccfbf1; color: #115e59; padding: .2rem .65rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.cat-chip-dark { background: rgba(20,184,166,.1); color: #5eead4; border: 1px solid rgba(20,184,166,.3); }
a.cat-chip-dark:hover { background: rgba(20,184,166,.2); }

.filter-chip { border-radius: 9999px; border: 1px solid #cbd5e1; background: #fff; color: #334155; padding: .45rem .95rem; font-size: .8125rem; font-weight: 500; transition: all .15s; }
.filter-chip:hover { border-color: #0d9488; color: #0f766e; }
.filter-chip[aria-pressed="true"] { background: #0a1628; border-color: #0a1628; color: #fff; }

/* Placeholder when a post has no featured image */
.card-placeholder { display: flex; height: 100%; width: 100%; align-items: flex-end; padding: 1rem 1.25rem; background-color: #0a1628; background-image: linear-gradient(135deg, #0a1628 0%, #0f2847 100%), linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; background-blend-mode: normal; border-bottom: 3px solid #14b8a6; }
.card-placeholder span { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -.01em; color: #5eead4; font-size: .95rem; }

/* Article typography */
.prose-asc { max-width: 44rem; margin-inline: auto; font-size: 1.0625rem; line-height: 1.8; color: #334155; }
.prose-asc > * + * { margin-top: 1.25em; }
.prose-asc h2, .prose-asc h3, .prose-asc h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -.025em; color: #0a1628; line-height: 1.25; scroll-margin-top: 6rem; }
.prose-asc h2 { font-size: 1.65rem; margin-top: 2.25em; }
.prose-asc h3 { font-size: 1.3rem; margin-top: 1.9em; }
.prose-asc h4 { font-size: 1.1rem; margin-top: 1.6em; }
.prose-asc h2 + *, .prose-asc h3 + *, .prose-asc h4 + * { margin-top: .75em; }
.prose-asc p:first-of-type { font-size: 1.2rem; color: #1e293b; }
.prose-asc a { color: #0f766e; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose-asc a:hover { color: #115e59; text-decoration-thickness: 2px; }
.prose-asc strong { color: #0f172a; font-weight: 600; }
.prose-asc ul, .prose-asc ol { padding-left: 1.5em; }
.prose-asc ul { list-style: disc; }
.prose-asc ol { list-style: decimal; }
.prose-asc li + li { margin-top: .45em; }
.prose-asc li::marker { color: #0d9488; }
.prose-asc blockquote { border-left: 3px solid #14b8a6; background: #f0fdfa; padding: .9em 1.2em; color: #134e4a; border-radius: 0 .5rem .5rem 0; }
.prose-asc blockquote > * + * { margin-top: .6em; }
.prose-asc hr { border: 0; border-top: 1px solid #e2e8f0; margin-block: 2.5em; }
.prose-asc img { max-width: 100%; height: auto; border-radius: .75rem; }
.prose-asc code { background: #e2e8f0; color: #0f172a; padding: .12em .4em; border-radius: .3rem; font-size: .9em; }
.prose-asc pre { background: #0a1628; color: #e2e8f0; padding: 1.1em 1.25em; border-radius: .75rem; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose-asc pre code { background: none; color: inherit; padding: 0; }
.prose-asc .table-wrap { overflow-x: auto; }
.prose-asc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose-asc th { text-align: left; background: #0a1628; color: #fff; font-weight: 600; padding: .6em .9em; }
.prose-asc td { padding: .6em .9em; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.prose-asc tbody tr:nth-child(even) { background: #f1f5f9; }

@media (prefers-reduced-motion: reduce) {
  .feature-card, .filter-chip { transition: none; }
  .feature-card:hover { transform: none; }
}
