.post-card-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-header-content {
    min-height: 46vh;
    max-height: 640px;
}
@media (max-width: 600px) {
    .site-header-content {
        min-height: 60vh;
        max-height: 520px;
    }
}
.site-header-content::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.36) 50%, rgba(0, 0, 0, 0.46));
}
.site-header-content .site-title,
.site-header-content > p {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fdfaf3;
    opacity: 0.92;
}

.hero-search {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 620px;
    margin: 28px auto 0;
    text-align: left;
}

.hero-search-input {
    box-sizing: border-box !important;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.7rem;
    color: #15171a;
    background: #fff;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    outline: 0;
}
.hero-search-input::placeholder { color: #90a0a8; }

.hero-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    max-height: 60vh;
    overflow-y: auto;
}
.hero-search-results:empty { display: none; }

.hero-search-empty {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    padding: 16px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    color: #738a94;
    font-size: 1.4rem;
}

.nav-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    opacity: 0.85;
}
.nav-search:hover { opacity: 1; }
.nav-search svg { width: 17px; height: 17px; }

.gh-head-menu .nav a {
    font-size: 1.9rem;
}
.gh-social svg {
    width: 18px;
    height: 18px;
}
.gh-social-facebook svg {
    width: 16px;
    height: 16px;
}

.gh-social-running svg {
    fill: none;
    stroke: #fff;
}

.gh-head-logo img,
.gh-head-actions svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.gh-head-menu .nav a {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.post-card-large .post-card-image-link {
    min-height: 0;
}
.post-card-large .post-card-image {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.search-modal[hidden] { display: none; }
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 20px;
}
.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.search-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid #e9eef1;
}
.search-input-wrap svg { width: 20px; height: 20px; color: #738a94; flex-shrink: 0; }
.search-input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 1.8rem;
    color: #15171a;
    background: none;
}
.search-hint {
    font-size: 1.1rem;
    color: #90a0a8;
    border: 1px solid #e0e6ea;
    border-radius: 4px;
    padding: 1px 6px;
}
.search-results {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 56vh;
    overflow-y: auto;
}

.hero-search-results,
.search-results {
    padding-left: 6px;
    padding-right: 6px;
    list-style: none;
}
.hero-search-results li,
.search-results li {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.4;
}
.hero-search-results li + li,
.search-results li + li { margin-top: 0; }

.search-result a {
    display: block;
    padding: 10px 14px;
    border-radius: 7px;
    text-decoration: none;
    color: #15171a;
}
.search-result.is-active a,
.search-result a:hover { background: #f2f5f7; }
.search-result-title {
    display: block;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
}
.search-result-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 3px;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #5b6b73;
}
.search-empty {
    padding: 22px;
    text-align: center;
    color: #738a94;
    font-size: 1.5rem;
}

.site-footer {
    margin-top: 40px;
    padding: 26px 4vmin;
}
@media (min-width: 800px) {
    .site-footer .inner {
        grid-template-columns: 1fr auto;
        grid-gap: 24px;
        align-items: center;
    }
    .site-footer-nav ul {
        justify-content: flex-end;
        margin: 0;
    }
}

:root {
    --font-serif: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
    --font-sans-serif: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-sans: var(--font-sans-serif);
    --font-mono: "IBM Plex Mono", Menlo, monospace;
    --brass: #b8893b;
    --brass-bright: #d2a44e;
}

.site-title,
.post-card-title,
.article-title {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.005em;
}
.site-title { font-weight: 700; }

.post-card-primary-tag {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.05rem;
    color: var(--brass);
}

.post-card-byline-author,
.post-card-byline-date,
.post-card-meta time {
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.post-card-content-link:hover .post-card-title {
    color: var(--brass);
}

.site-footer .copyright {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}
.footer-coords {
    color: var(--brass);
    margin-right: 0.5em;
}
.site-footer-nav a {
    font-family: var(--font-mono);
    font-size: 1.15rem;
}
.site-footer-nav .nav-rss svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
    border-radius: 2px;
}

.gh-content > p,
.gh-content > ul,
.gh-content > ol,
.gh-content > dl {
    font-family: var(--font-sans-serif);
}
.gh-content a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.gh-content a:hover { color: var(--brass); }
.gh-content > blockquote {
    border-left: 3px solid var(--brass);
    padding-left: 1.1em;
    font-style: italic;
    color: #46515a;
}

.gh-content pre {
    background: #0a1a33 !important;
    color: #e7ecf3;
    font-family: var(--font-mono);
    font-size: 1.45rem;
    line-height: 1.6;
    padding: 1.1em 1.2em;
    border-radius: 8px;
    border-left: 3px solid var(--brass);
    overflow-x: auto;
}
.gh-content pre code {
    font-family: var(--font-mono);
    background: none;
    padding: 0;
    font-size: inherit;
}
.gh-content :not(pre) > code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: #eef1f4;
    color: #0a1a33;
    padding: 0.12em 0.42em;
    border-radius: 4px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--brass);
    z-index: 4000;
    transition: width 0.05s linear;
}
@media (prefers-reduced-motion: reduce) {
    .reading-progress { transition: none; }
}

.error-callsign {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brass);
    font-size: 1.4rem;
    margin: 0 0 0.5em;
}
.error-message {
    padding-bottom: 4vw;
}
.error-figure {
    max-width: 900px;
    margin: 0 auto 6vw;
}
.error-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 2px solid var(--brass);
}
.error-figure figcaption {
    margin: 0.9rem 0 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1.5;
    color: #738a94;
    text-align: left;
}
@media (max-width: 500px) {
    .error-message { padding-bottom: 8vw; }
    .error-figure { margin-bottom: 10vw; }
}

.article-tag {
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    color: var(--brass);
}
.article-tag a { color: var(--brass); }

.gh-content > * + * { margin-top: 2.4rem; }
.gh-content > [id]:not(:first-child) { margin: 3.6rem 0 0; }
.gh-content > [id] + * { margin-top: 1.2rem !important; }
.gh-content > hr, .gh-content > blockquote { margin-top: 2.4rem; }
.gh-content > hr + *, .gh-content > blockquote + * { margin-top: 2.4rem !important; }

/* About: one reading column, restrained type, and static photo grids. */
.page-about .article {
    padding-top: 4.8rem;
}
.page-about .article-header {
    display: none;
}
.page-about .gh-content {
    display: block;
    width: calc(100% - 4.8rem);
    max-width: 800px;
    margin-inline: auto;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    line-height: 1.7;
    color: #303942;
}
.page-about .gh-content > .about-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem 3.6rem;
    align-items: start;
    margin: 0;
}
.page-about .about-identity {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
.page-about .about-hero-text {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.7rem;
    line-height: 1.6;
}
.page-about .about-name {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #0a1a33;
}
.page-about .about-role {
    margin: 1rem 0 0;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #606b75;
}
.page-about .about-hero-text > p,
.page-about .thread-body > p,
.page-about .about-closing > p {
    margin: 0;
}
.page-about .about-hero-text > p + p,
.page-about .thread-body > p + p,
.page-about .about-closing > p + p {
    margin-top: 1.4rem;
}
.page-about .about-headshot {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
}
.page-about .about-headshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.page-about .gh-content > .about-standfirst {
    margin: 2.8rem 0 0;
    padding: 1.6rem 2rem;
    border-left: 2px solid var(--brass);
    background: #f6f7f8;
    font-family: inherit;
    font-size: 1.7rem;
    line-height: 1.6;
    font-weight: 400;
}
.page-about .gh-content > .about-background {
    margin: 1.6rem 0 0;
    font-size: 1.7rem;
}
.page-about .about-background > summary {
    width: fit-content;
    padding: 0.8rem 0;
    cursor: pointer;
    font-weight: 500;
    color: #0a1a33;
}
.page-about .about-background > summary::marker {
    color: var(--brass);
}
.page-about .about-background > summary:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 4px;
}
.page-about .about-background-body {
    padding-top: 1.2rem;
}
.page-about .about-background-body > p {
    margin: 0;
}
.page-about .about-background-body > p + p {
    margin-top: 1.4rem;
}
.page-about .gh-content > .thread {
    margin: 4rem 0 0;
    padding-top: 3.2rem;
    border-top: 1px solid #e3e6e8;
}
.page-about .thread-name {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 1.2rem;
    font-family: var(--font-sans);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #0a1a33;
}
.page-about .thread-icon {
    flex: none;
    font-size: 0.85em;
    line-height: 1;
}
.page-about .thread-name .thread-wings {
    flex: none;
    width: 2.5em;
    height: auto;
    margin: 0;
}
.page-about .thread-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
    margin-top: 2.4rem;
}
.page-about .thread-gallery figure {
    min-width: 0;
    margin: 0;
}
.page-about .thread-gallery > figure > img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    border-radius: 3px;
    background: #f3f4f5;
}
.page-about .thread-gallery .video-embed {
    width: 100%;
    height: 240px;
}
.page-about .thread-gallery .video-facade img {
    object-fit: contain;
}
.page-about .thread-gallery > figure:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 440px;
}
.page-about .thread-gallery > figure:only-child > img {
    height: auto;
}
.page-about .thread-gallery figcaption {
    margin: 0.8rem 0 0;
    padding: 0;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1.3rem;
    line-height: 1.5;
    color: #606b75;
}
.page-about .gh-content > .about-closing {
    margin: 4rem 0 0;
    padding: clamp(2rem, 4vw, 3.2rem);
    border: 1px solid #e3e6e8;
    border-radius: 4px;
    background: #f8f9fa;
    color: #505b65;
    font-size: 1.7rem;
}
.page-about .about-closing-label {
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    color: #303942;
}
.page-about .about-closing-contact {
    color: #606b75;
    font-size: 1.5rem;
}
@media (max-width: 700px) {
    .page-about .article {
        padding-top: 3.2rem;
    }
    .page-about .gh-content {
        width: calc(100% - 4rem);
        font-size: 1.7rem;
    }
    .page-about .gh-content > .about-hero {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 2.4rem 1.6rem;
    }
    .page-about .about-identity {
        grid-column: 1;
        align-self: center;
    }
    .page-about .about-headshot {
        grid-column: 2;
        grid-row: 1;
    }
    .page-about .about-hero-text {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .page-about .about-name {
        font-size: 3rem;
    }
    .page-about .about-role {
        font-size: 1.4rem;
    }
    .page-about .thread-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .page-about .thread-gallery > figure > img {
        height: auto;
        max-height: 360px;
    }
    .page-about .thread-gallery .video-embed {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Click-to-load video. */
.video-embed {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #0a1a33;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0a1a33;
    cursor: pointer;
}
.video-facade img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}
.video-facade-play svg {
    display: block;
    width: 100%;
    height: 100%;
}
.video-facade-bg {
    fill: var(--brass, #b8893b);
    fill-opacity: 0.92;
}
.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
    transform: translate(-50%, -50%) scale(1.08);
}
.video-facade:focus-visible {
    outline: 3px solid var(--brass, #b8893b);
    outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
    .video-facade-play {
        transition: none;
    }
}

.category-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 42vh;
    padding: 6vmin 4vmin;
    background: #0a1a33;
    color: #fff;
    overflow: hidden;
}
.category-header-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.category-header.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
}
.category-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.category-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    text-transform: lowercase;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.category-count {
    font-family: var(--font-mono);
    color: var(--brass);
    letter-spacing: 0.06em;
    font-size: 1.35rem;
    margin: 0.7em 0 0;
}
