/* Stackurity: header and footer as on stackurity.dev (stackurity/website
   static/styles.css), the post list thumbnails and the share menu. */
:root {
    --stk-navy: #0b1f4d;
    --stk-blue: #0a6cf5;
    --stk-blue-hover: #0858cc;
    --stk-cyan: #19c3ff;
    --stk-bg: #ffffff;
    --stk-border: #dde3ee;
    --stk-text: #0f1b33;
    --stk-text-2: #3d4a63;
    --stk-muted: #5a6780;
    --stk-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.stk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.stk-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--stk-bg) 88%, transparent);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--stk-border); font-family: var(--stk-font); }
.stk-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.stk-brand { display: flex; align-items: center; gap: 10px; color: var(--stk-text); text-decoration: none; font-weight: 800; font-size: 1.85rem; }
.stk-top nav { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.stk-top nav a { color: var(--stk-text-2); text-decoration: none; font-size: 1.5rem; white-space: nowrap; }
.stk-top nav a:hover { color: var(--stk-text); }
.stk-top nav a.stk-active { color: var(--stk-text); font-weight: 650; }
.stk-search { display: inline-flex; align-items: center; padding: 4px; border: 0; background: none; color: var(--stk-text-2); cursor: pointer; }
.stk-search svg { width: 18px; height: 18px; }
.stk-btn { display: inline-block; background: var(--stk-blue); color: #fff !important; border: 1px solid var(--stk-blue);
    padding: 7px 14px; border-radius: 10px; font-weight: 650; font-size: 1.45rem; text-decoration: none; }
.stk-btn:hover { background: var(--stk-blue-hover); border-color: var(--stk-blue-hover); }
@media (max-width: 1000px) {
    .stk-top nav a:not(.stk-btn):not(.stk-keep) { display: none; }
}
@media (max-width: 760px) {
    .stk-top nav { gap: 14px; }
    .stk-brand span { display: none; }
    .stk-btn { padding: 6px 12px; font-size: 1.35rem; }
}

/* Footer */
.stk-foot { border-top: 1px solid var(--stk-border); padding: 28px 0; margin-top: 64px; color: var(--stk-muted);
    font-size: 1.45rem; font-family: var(--stk-font); }
.stk-foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stk-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.stk-foot a { color: var(--stk-muted); }

/* Post lists: the cards are drawn with text near the edges, so show the
   whole image instead of cropping it to the list's shape. */
.gh-card-image { background: var(--stk-navy); }
.gh-card-image img { object-fit: contain !important; }

/* Post body */
.gh-content a { color: var(--stk-blue); }
.gh-content code { background: rgba(11, 31, 77, 0.06); }

/* Share menu (assets/js/stackurity.js) */
.gh-meta-share { position: relative; }
.stk-share-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; padding: 6px;
    background: #fff; border: 1px solid var(--stk-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 31, 77, 0.12);
    display: flex; flex-direction: column; font-family: var(--stk-font); }
.stk-share-menu[hidden] { display: none; }
.stk-share-menu a, .stk-share-menu button { display: block; text-align: left; padding: 9px 12px; border: 0; border-radius: 6px;
    background: none; color: var(--stk-text); font-size: 1.45rem; text-decoration: none; cursor: pointer; }
.stk-share-menu a:hover, .stk-share-menu button:hover { background: rgba(11, 31, 77, 0.06); }

/* Call to action under each post (assets/js/stackurity.js) */
.stk-cta { margin: 48px auto 0; max-width: 720px; padding: 24px 28px; border-radius: 12px; background: var(--stk-navy); color: #fff;
    display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-family: var(--stk-font); }
.stk-cta p { margin: 0; font-size: 1.7rem; line-height: 1.4; }
.stk-cta strong { color: var(--stk-cyan); }
.stk-cta a { background: var(--stk-blue); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.stk-cta a:hover { background: var(--stk-blue-hover); }

/* House style has no em or en dashes: the theme puts one between the
   author and the date in post lists. */
.gh-card-author + .gh-card-date::before { content: "·"; }

/* Blog home heading and 404 page */
.stk-blog-intro { padding-top: 48px; font-family: var(--stk-font); }
.stk-blog-intro h1 { margin: 0; font-size: 3.6rem; font-weight: 800; color: var(--stk-text); letter-spacing: -0.01em; }
.stk-blog-intro p { margin: 8px 0 0; max-width: 720px; font-size: 1.8rem; color: var(--stk-text-2); }
.stk-404 { padding: 96px 0; font-family: var(--stk-font); }
.stk-404 h1 { font-size: 3.6rem; margin: 0 0 12px; }
.stk-404 p, .stk-404 li { font-size: 1.8rem; color: var(--stk-text-2); }
