/* ============================================================
 * Editorial single-post layout (Polish 2026-05).
 *
 * 3-column body: sticky sidebar (TOC + reading-progress + share)
 * | centred essay column (~680px) | margin-note column.
 * Drop-cap on the lede, restyled blockquotes as pullquotes,
 * dark newsletter band, author card section.
 *
 * All classes scoped under .tirivashe-single-editorial so it
 * doesn't bleed into archive / page templates. Palette + fonts
 * stay locked to existing tokens (Inter + Source Serif 4 +
 * JetBrains Mono; #F26522 accent).
 *
 * ============================================================ */

/* ===== Override the body.is-full-width-content "break out at 100vw" rule
 * for the essay column. That rule (in components.css) targets every direct
 * <section>/<div> child of .entry-content and stretches it to viewport width
 * with negative margins — designed for homepage block sections. Our editorial
 * essay column also carries .entry-content (for plugin compatibility), so its
 * inline <div class="ts-post-essay-footer"> would otherwise break out and
 * cause horizontal overflow. Re-assert reading-column constraints here. */
body.is-full-width-content .ts-post-essay > div,
body.is-full-width-content .ts-post-essay > section,
body.is-full-width-content .ts-post-essay > article,
body.is-full-width-content .ts-post-essay > aside,
body.is-full-width-content .ts-post-essay > header,
body.is-full-width-content .ts-post-essay > footer {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ===== Override the full-width container reset for paragraphs.
 * The earlier rule `body.is-full-width-content .entry-content > * { margin: 0 }`
 * (designed to let block-section children butt up edge-to-edge) was
 * killing the bottom margin on every <p>, every <h2>, every <ul>
 * inside the essay. Restore semantic spacing inside the editorial
 * essay column with stronger specificity so we don't have to touch
 * the original archive-friendly reset.
 */
.tirivashe-single-editorial .ts-post-essay > p,
.tirivashe-single-editorial .ts-post-essay p { margin: 0 0 1.4em; }
.tirivashe-single-editorial .ts-post-essay > h2,
.tirivashe-single-editorial .ts-post-essay h2 { margin: 3rem 0 1rem; }
.tirivashe-single-editorial .ts-post-essay > h3,
.tirivashe-single-editorial .ts-post-essay h3 { margin: 2.5rem 0 0.875rem; }
.tirivashe-single-editorial .ts-post-essay > ul,
.tirivashe-single-editorial .ts-post-essay > ol,
.tirivashe-single-editorial .ts-post-essay ul,
.tirivashe-single-editorial .ts-post-essay ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.tirivashe-single-editorial .ts-post-essay li { margin-bottom: 0.5em; line-height: 1.65; }
.tirivashe-single-editorial .ts-post-essay > blockquote,
.tirivashe-single-editorial .ts-post-essay blockquote { margin: 2.5rem 0; }
.tirivashe-single-editorial .ts-post-essay > hr { margin: 3rem 0; }

/* ===== HERO IMAGE BAND (single post) =====
 * Renders only when the post has a featured image. Sits between the post-meta
 * bar and the body grid, matching the header's max-width band so it lines up
 * vertically with the title above and the essay column below. The caption
 * (when present) is editorial: a 12px hairline + serif italic.
 */
.ts-post-hero {
    margin: 0;
    padding: 2rem var(--gutter) 0;
    background: var(--paper);
}
.ts-post-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ts-post-hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-photo);
    background: var(--paper-soft);
}
.ts-post-hero__caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-faded);
    margin: 1rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ts-post-hero__caption-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ===== POST HEADER ===== */
.ts-post-header {
    padding: 4.5rem var(--gutter) 3rem;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
}
.ts-post-header__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ts-crumbs {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink-faded);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}
.ts-crumbs a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color var(--motion-fast, 150ms) ease;
}
.ts-crumbs a:hover { color: var(--accent); }
.ts-crumbs__pillar { color: var(--accent) !important; }
.ts-crumbs__sep { color: var(--rule-strong); }
.ts-crumbs__num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faded);
}

.ts-post-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
    max-width: 22ch;
    text-wrap: balance;
    color: var(--ink);
}
.ts-post-title em { font-style: italic; color: var(--accent); }

.ts-post-dek {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 50ch;
    margin: 0 0 2.5rem;
    text-wrap: pretty;
}

.ts-post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 1.125rem 0;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.ts-post-meta-bar__author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.ts-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ink);
}
.ts-author-avatar--initial {
    display: grid;
    place-items: center;
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
}
.ts-author-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
}
.ts-author-role {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--ink-faded);
    margin-top: 1px;
}
.ts-post-meta-bar__details {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.ts-meta-detail__label {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
.ts-meta-detail__value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: 2px;
    color: var(--ink);
}

/* ===== POST BODY (2-col: sticky sidebar + essay column) =====
 * Right margin column was originally reserved for inline marginalia. None of
 * the published posts use marginalia today, so the column was just creating
 * a 220px void on the right side of the article. Dropped it. Essay fills the
 * available width up to a soft 760px cap (so line-length stays comfortable
 * for serif body text).
 */
.ts-post-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem var(--gutter) 5rem;
    /* Note: do NOT set align-items: start here. The default `stretch` is what
     * lets .ts-post-sidebar take the full row height, which is what gives
     * .ts-post-sidebar__sticky room to actually stick within its parent.
     * align-items: start would size the sidebar grid item to its content
     * (small) and the inner sticky would have no scroll room. */
}
@media (max-width: 1000px) {
    .ts-post-body { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem var(--gutter) 3rem; }
    .ts-post-margin { display: none; }
}
/* If the right margin column is still rendered (legacy posts / migration
 * window), hide it so the layout holds together. */
.ts-post-margin { display: none; }

/* ===== STICKY SIDEBAR ===== */
.ts-post-sidebar {
    position: relative;
    height: 100%;  /* Fills its grid cell so the inner sticky has room. */
}
.ts-post-sidebar__sticky {
    position: sticky;
    top: 2rem;
    display: grid;
    gap: 1.75rem;
}
@media (max-width: 1000px) {
    .ts-post-sidebar__sticky {
        position: static;
        background: var(--paper-soft);
        padding: 1.5rem;
        border-radius: var(--radius-md, 6px);
    }
}
.ts-sidebar-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faded);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 1rem;
}

/* TOC */
.ts-post-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    counter-reset: ts-toc;
}
.ts-post-toc li { counter-increment: ts-toc; }
.ts-post-toc a {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ink-soft);
    text-decoration: none;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.5rem;
    padding: 0.375rem 0 0.375rem 0.75rem;
    border-left: 2px solid transparent;
    margin-left: -0.75rem;
    transition: color var(--motion-fast, 150ms) ease, border-color var(--motion-fast, 150ms) ease;
}
.ts-post-toc a::before {
    content: counter(ts-toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faded);
}
.ts-post-toc a:hover { color: var(--ink); }
.ts-post-toc a.is-active {
    border-left-color: var(--accent);
    color: var(--ink);
    font-weight: 600;
}
.ts-post-toc a.is-active::before { color: var(--accent); }

/* Reading progress */
.ts-progress { display: grid; gap: 0.375rem; }
.ts-progress__bar {
    width: 100%;
    height: 2px;
    background: var(--rule);
    overflow: hidden;
}
.ts-progress__fill {
    height: 100%;
    background: var(--accent);
    transition: width 100ms linear;
}
.ts-progress__pct {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faded);
}

/* Share */
.ts-share-buttons { display: flex; gap: 0.375rem; }
.ts-share-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule);
    background: var(--paper);
    text-decoration: none;
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--motion-fast, 150ms) ease;
}
.ts-share-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* ===== ESSAY COLUMN =====
 * Left-aligned within its grid cell (not auto-centred), with a soft max-width
 * for serif-body line-length comfort. The grid cell itself now flexes to fill
 * the right side of the page, so the article visually extends to the end of
 * the content column instead of leaving a void.
 */
.ts-post-essay {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--ink);
    max-width: 760px;
    margin: 0;          /* not auto — keep left-aligned */
}
.ts-post-essay strong { font-weight: 700; color: var(--ink); }
.ts-post-essay em { font-style: italic; }
.ts-post-essay a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--motion-fast, 150ms) ease;
}
.ts-post-essay a:hover { color: var(--accent); }

/* Drop-cap on the FIRST paragraph only (the lede) */
.ts-post-essay > p:first-of-type {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 1.75rem;
}
.ts-post-essay > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    font-size: 4.5rem;
    float: left;
    line-height: 0.85;
    margin: 0.5rem 0.75rem 0 0;
    color: var(--accent);
}

/* H2 — sectional headings inside essay */
.ts-post-essay h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    scroll-margin-top: 2rem;
}
.ts-post-essay h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.015em;
    color: var(--ink);
}

/* Pullquote-style blockquote (overrides the default .prose blockquote) */
.ts-post-essay blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--ink);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    border-left: 0;
    padding: 1.5rem 0 1.5rem 3.5rem;
    margin: 2.5rem -2rem;
    position: relative;
    background: transparent;
}
.ts-post-essay blockquote::before {
    content: "“";
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 0.85;
    color: var(--accent);
}
.ts-post-essay blockquote p { margin: 0 0 0.5rem; }
.ts-post-essay blockquote p:last-child { margin: 0; }
@media (max-width: 700px) {
    .ts-post-essay blockquote { margin: 2rem 0; padding-left: 3rem; }
}

/* HR inside the essay */
.ts-post-hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 3.5rem 0 2rem;
}

/* Essay footer (signature + tags) */
.ts-post-essay-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}
.ts-signature {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}
.ts-signature-place {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-top: 0.375rem;
}
.ts-post-essay-footer__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ts-tag {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--paper-soft);
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border-radius: 2px;
    transition: all var(--motion-fast, 150ms) ease;
}
.ts-tag:hover { background: var(--accent); color: var(--paper); }

/* ===== AUTHOR CARD ===== */
.ts-post-author-card {
    background: var(--paper-soft);
    padding: 5rem var(--gutter);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.ts-post-author-card__inner {
    max-width: 1100px;  /* aligns with .ts-post-header / .ts-archive-header inner */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;  /* fix the photo column so the bio fills the rest */
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
@media (max-width: 700px) {
    .ts-post-author-card__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}
.ts-author-card-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ink);
}
.ts-author-card-avatar--initial {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
}
.ts-author-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin: 1rem 0 0.75rem;
    color: var(--ink);
}
.ts-author-card-bio {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink-soft);
    /* No explicit max-width — let the bio fill the right grid column.
     * The 200px photo column on the left + the gap leaves 800px+ for the
     * bio at the 1100px max container, which sits comfortably in the
     * 65–80ch readability range for serif body. */
    margin: 0 0 1.5rem;
}
.ts-author-card-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 700px) {
    .ts-author-card-links { justify-content: center; }
    .ts-author-card-bio { margin-left: auto; margin-right: auto; }
}

/* ===== EYEBROW + DOTMARK + BTN-LINK + H-SECTION (reusable editorial bits) ===== */
.ts-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
.ts-eyebrow--on-dark { color: rgba(255,255,255,0.7); }
.ts-dotmark {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.625rem;
    transform: translateY(-2px);
    vertical-align: middle;
}
.ts-dotmark--on-dark { background: var(--paper); }
.ts-btn-link {
    padding: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--rule-strong);
    padding-bottom: 0.25rem;
    transition: all var(--motion-fast, 150ms) ease;
}
.ts-btn-link:hover { color: var(--accent); border-color: var(--accent); }
.ts-h-section {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ink);
    margin: 1rem 0 1.5rem;
}
.ts-h-section em { font-style: italic; color: var(--accent); }
.ts-h-section--on-dark { color: var(--paper); }

/* ===== RELATED POSTS ===== */
.ts-post-related {
    padding: 5rem var(--gutter);
    background: var(--paper);
}
.ts-post-related__inner { max-width: 1240px; margin: 0 auto; }
.ts-section-head { margin-bottom: 2.5rem; }
.ts-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--ink);
    padding-top: 2rem;
}
@media (max-width: 800px) {
    .ts-related-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.ts-related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem 0;
    transition: transform var(--motion-fast, 150ms) ease;
}
.ts-related-card:hover { transform: translateY(-2px); }
.ts-related-card__num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faded);
    letter-spacing: 0.04em;
}
.ts-related-card__cat {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.ts-related-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0.25rem 0 0;
    text-wrap: balance;
    color: var(--ink);
}
.ts-related-card__meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ink-faded);
    margin-top: auto;
    letter-spacing: 0.02em;
    padding-top: 0.625rem;
}

/* ===== NEWSLETTER BAND ===== */
.ts-news-band {
    margin-top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 6rem var(--gutter);
    position: relative;
    overflow: hidden;
}
.ts-news-band::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 600px;
    height: 600px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}
.ts-news-band__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: end;
    position: relative;
}
@media (max-width: 900px) {
    .ts-news-band__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.ts-news-band__copy {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 460px;
    margin: 0 0 1rem;
}
.ts-field {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--ink);
    max-width: 460px;
    margin-top: 1.5rem;
}
.ts-field input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    padding: 0.875rem 0;
    color: var(--ink);
    outline: none;
}
.ts-field input::placeholder { color: var(--ink-faded); }
.ts-field button {
    border: 0;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    padding-left: 1rem;
    cursor: pointer;
}
.ts-field button:hover { color: var(--accent); }
.ts-field--dark { border-bottom-color: rgba(255,255,255,0.4); }
.ts-field--dark input { color: var(--paper); }
.ts-field--dark input::placeholder { color: rgba(255,255,255,0.4); }
.ts-field--dark button { color: var(--paper); }
.ts-field--dark button:hover { color: var(--accent); }
.ts-fineprint {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.75rem;
    letter-spacing: 0.01em;
}

/* ===== Reading-progress + sticky-TOC active-state JS hook ===== */
/* (driven by inline JS at the bottom of single.php) */


/* ============================================================
 * CUSTOM CRAFT ACCENTS (May 2026 — premium polish)
 *
 * Small editorial flourishes that signal hand-set typesetting rather than
 * generic CMS output: asterism (⁂) section dividers, animated heading-rules,
 * NYT-style first-words-small-caps on essay ledes, pillar-coloured accent
 * stripe down the essay margin, fade-in back-to-top affordance.
 * ============================================================ */

/* ===== Asterism section divider — printer's mark used in literary
 * publishing for centuries. Three centred asterisks with horizontal hairlines
 * to either side. Use as <div class="ts-asterism" aria-hidden="true">⁂</div>
 * between sections, or via the renderer in archive.php / single.php.
 */
.ts-asterism {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 3.5rem auto;
    color: var(--ink-faded);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.5em;
    user-select: none;
    max-width: 360px;
}
.ts-asterism::before,
.ts-asterism::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule-strong);
}
.ts-asterism__glyph {
    color: var(--accent);
    transform: translateY(-2px);
    letter-spacing: 0.25em;
}

/* ===== Animated heading-rule — the small accent rule under section eyebrows
 * draws in from left when it scrolls into view. Driven by IntersectionObserver
 * in single-editorial.js (the .is-in-view class is added when visible).
 */
.heading-rule,
.ts-anim-rule {
    display: inline-block;
    width: 0;
    height: var(--rule-accent-height, 3px);
    background: var(--accent);
    margin: 0.75rem 0 1.25rem;
    transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.heading-rule.is-in-view,
.ts-anim-rule.is-in-view {
    width: var(--rule-accent-width, 56px);
}
.heading-rule.center,
.ts-anim-rule.center { margin-left: auto; margin-right: auto; }

/* ===== Back-to-top button — fades in after 800px scroll, smooth-scrolls
 * to the document top. Bottom-right corner, small circular accent button.
 */
.ts-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 50%;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 250ms ease, transform 250ms ease, background 150ms ease;
    pointer-events: none;
    z-index: 950;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.ts-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ts-back-to-top:hover { background: var(--accent); }
.ts-back-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .ts-back-to-top { transition: opacity 100ms linear, background 100ms linear; transform: none !important; }
}

/* ===== First-words small-caps on essay ledes — NYT magazine print style.
 * The first paragraph of every essay opens with the first ~3 words rendered
 * in small caps, signalling "we typeset this on purpose". Achieved by JS
 * wrapping the first 3 words in a <span class="ts-firstwords">. */
.ts-firstwords {
    font-family: var(--font-display);
    font-variant: small-caps;
    font-feature-settings: "smcp" 1, "c2sc" 1;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}

/* (Pillar accent stripe was removed — the long coloured rule down the
 * essay's left edge fought with the body type and read as a heavy boundary
 * rather than a quiet signal. Pillar identity is conveyed via the eyebrow
 * + meta-bar instead.) */

/* ============================================================
 * Site-wide premium polish: smooth scroll, focus rings, selection
 * ============================================================ */

/* Smooth scroll for in-page anchor jumps (TOC, "back to top", etc.) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Editorial focus ring — accent-orange halo, more polished than the system default. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 1px;
}

/* Text selection in brand colour */
::selection {
    background: var(--accent);
    color: var(--paper);
}

/* Scroll-margin so anchor jumps don't hide the heading under any sticky bar */
.ts-post-essay h2,
.ts-post-essay h3,
.ts-page-prose h2,
.ts-page-prose h3 {
    scroll-margin-top: 6rem;
}


/* ============================================================
 * Print stylesheet — premium publications all have one. The reader prints
 * an essay → it should look like an essay (clean serif body, no nav, no
 * sidebar, no newsletter strip), not mangled blog markup.
 * ============================================================ */
@media print {
    /* Hide the chrome */
    .site-header,
    .site-footer,
    .ts-top-progress,
    .ts-post-sidebar,
    .ts-post-author-card,
    .ts-post-related,
    .newsletter-strip,
    .ts-page-next,
    .trust-strip,
    .ventures-strip,
    .hero,
    .intro-hero,
    .book-hero,
    .ts-archive-pagination,
    .ts-archive-featured-wrap,
    .ts-archive-grid-wrap,
    .ts-share-buttons,
    .ts-archive-header__meta-bar,
    nav { display: none !important; }

    /* Page setup */
    @page {
        size: A4;
        margin: 24mm 22mm 22mm 22mm;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 11.5pt;
        line-height: 1.55;
        font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    }

    /* Single post — print just the essay column */
    .ts-post-body {
        display: block !important;
        padding: 0 !important;
        max-width: none !important;
    }
    .ts-post-essay {
        max-width: none !important;
        font-size: 11.5pt !important;
        line-height: 1.55 !important;
        color: black !important;
    }
    .ts-post-essay > p:first-of-type::first-letter {
        /* Drop a smaller drop-cap that doesn't dominate the printed page */
        font-size: 36pt !important;
        color: black !important;
    }
    .ts-post-essay h2,
    .ts-post-essay h3 {
        color: black !important;
        page-break-after: avoid;
    }

    /* Header on print: pillar + title + dek + byline */
    .ts-post-header {
        padding: 0 0 12pt !important;
        border: 0 !important;
        background: none !important;
    }
    .ts-post-title {
        font-size: 24pt !important;
        line-height: 1.1 !important;
        color: black !important;
    }
    .ts-post-title em { color: black !important; font-style: italic; }
    .ts-post-dek {
        font-size: 13pt !important;
        font-style: italic;
        color: #444 !important;
    }
    .ts-crumbs { font-size: 9pt !important; }

    /* Links: show URL after the link text on print, like NYT */
    .ts-post-essay a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    .ts-post-essay a[href^="#"]::after,
    .ts-post-essay a[href^="javascript:"]::after { content: ""; }

    /* No background fills, drop-shadows */
    * {
        background: white !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Page-break hints */
    h1, h2, h3, h4 { page-break-after: avoid; }
    p, blockquote, ul, ol { orphans: 3; widows: 3; }
    img, figure, blockquote { page-break-inside: avoid; }
}


/* ============================================================
 * ARCHIVE LAYOUT (May 2026 polish — same editorial register as single.php)
 *
 * Header band: eyebrow + big serif title + italic dek + meta-bar.
 * Featured essay (most-recent on the index): wide editorial card.
 * Grid: 3-up text-first cards with № id mono · pillar uppercase orange ·
 * big serif title · italic dek · mono meta.
 *
 * No image cards. The archive reads as a curated list of pieces, not a
 * gallery, which matches the writing-first feel of the single-post layout.
 * ============================================================ */

/* ===== Archive header ===== */
.ts-archive-header {
    padding: 4.5rem var(--gutter) 3rem;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
}
.ts-archive-header__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ts-archive-header__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.ts-archive-header__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 1.25rem;
    max-width: 22ch;
    text-wrap: balance;
}
.ts-archive-header__dek {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 50ch;
    margin: 0 0 2.5rem;
    text-wrap: pretty;
}
.ts-archive-header__meta-bar {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 1.125rem 0;
}

/* ===== Featured (most-recent) essay card ===== */
.ts-archive-featured-wrap {
    padding: 3rem var(--gutter) 0;
}
.ts-archive-featured-wrap__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ts-archive-featured {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--paper-soft);
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
    border-left: 4px solid var(--accent);
    transition: transform var(--motion-fast, 150ms) ease, background var(--motion-fast, 150ms) ease;
}
.ts-archive-featured:hover { transform: translateX(3px); background: var(--accent-faint); }

/* When the featured card has an image, switch to a 2-column layout with the
 * image on the left and copy on the right. When no image, body fills the card. */
.ts-archive-featured--with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.2fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 720px) {
    .ts-archive-featured--with-image { grid-template-columns: 1fr; padding: 1.5rem; }
}
.ts-archive-featured__media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--rule);
}
.ts-archive-featured__image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.ts-archive-featured:hover .ts-archive-featured__image { transform: scale(1.02); }
.ts-archive-featured__body { display: block; }
.ts-archive-featured__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ts-archive-featured__ribbon {
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--accent);
    padding: 0.375rem 0.75rem;
    border-radius: 2px;
}
.ts-archive-featured__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 1rem;
    max-width: 24ch;
    text-wrap: balance;
}
.ts-archive-featured__dek {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 1.5rem;
}
.ts-archive-featured__byline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-faded);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ===== Grid + cards ===== */
.ts-archive-grid-wrap {
    padding: 3rem var(--gutter) 5rem;
}
.ts-archive-grid-wrap__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ts-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
    border-top: 1px solid var(--ink);
    padding-top: 2rem;
}
@media (max-width: 900px) {
    .ts-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ts-archive-grid { grid-template-columns: 1fr; }
}

.ts-archive-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem 0 0;
    text-decoration: none;
    color: inherit;
    transition: transform var(--motion-fast, 150ms) ease;
}
.ts-archive-card:hover { transform: translateY(-2px); }
.ts-archive-card:hover .ts-archive-card__title { color: var(--accent); }
.ts-archive-card:hover .ts-archive-card__image { transform: scale(1.02); }

/* Image slot — sits above the topline. Only rendered when post has a thumbnail. */
.ts-archive-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--rule);
    margin-bottom: 0.875rem;
}
.ts-archive-card__image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
/* Image-having cards get a slightly more generous padding above the image
 * so the grid still aligns with text-only cards visually. */
.ts-archive-card--with-image { padding-top: 0; }

.ts-archive-card__topline {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.ts-archive-card__num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faded);
    letter-spacing: 0.04em;
}
.ts-archive-card__cat {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.ts-archive-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0.25rem 0 0;
    text-wrap: balance;
    color: var(--ink);
    transition: color var(--motion-fast, 150ms) ease;
}
.ts-archive-card__dek {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0.375rem 0 0;
    /* Clamp to 3 lines so cards stay aligned. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ts-archive-card__meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faded);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.625rem;
}
.ts-archive-card__sep { color: var(--rule-strong); }

/* ===== Pagination ===== */
.ts-archive-pagination {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}
.ts-archive-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.ts-archive-pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border: 1px solid var(--rule);
    color: var(--ink-soft);
    text-decoration: none;
    transition: all var(--motion-fast, 150ms) ease;
}
.ts-archive-pagination .page-numbers:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.ts-archive-pagination .page-numbers.current {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.ts-archive-pagination .prev,
.ts-archive-pagination .next {
    border: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}
.ts-archive-pagination .prev:hover,
.ts-archive-pagination .next:hover {
    color: var(--ink);
    background: transparent;
}

/* ============================================================
 * STATIC PAGE LAYOUTS (About / Consulting / Speaking / Contact)
 *
 * Editorial register matching the archive: ts-archive-header reused for
 * the page hero, then alternating ts-page-prose-wrap (reading column) and
 * ts-page-section (full-width with grid contents) for body. Slim ts-page-next
 * CTA strip. Three-lanes / case-grid components for engagement listings.
 * ============================================================ */

/* Reading-column prose wrapper (used for About body, Consulting target-client,
 * etc.) — same width discipline as a single-post essay. */
.ts-page-prose-wrap {
    padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
    background: var(--paper);
}
.ts-page-prose-wrap--alt { background: var(--paper-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ts-page-prose {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-soft);
}
.ts-page-prose .eyebrow {
    color: var(--accent);
    margin-bottom: var(--space-2);
    display: inline-block;
}
.ts-page-prose h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}
.ts-page-prose h2 + p { margin-top: 0; }
.ts-page-prose p { margin: 0 0 1.25em; }
.ts-page-prose strong { color: var(--ink); font-weight: 700; }
.ts-page-prose em { font-style: italic; }
.ts-page-prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}
.ts-page-prose a:hover { color: var(--accent); }

/* Numbered ordered list with editorial styling (Consulting "process") */
.ts-page-numbered {
    list-style: none;
    margin: 0 0 1.5em;
    padding: 0;
    counter-reset: tspn;
}
.ts-page-numbered li {
    counter-increment: tspn;
    position: relative;
    padding: 0.875rem 0 0.875rem 3.5rem;
    border-bottom: 1px solid var(--rule);
}
.ts-page-numbered li:last-child { border-bottom: 0; }
.ts-page-numbered li::before {
    content: counter(tspn, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 700;
}

/* Plain editorial list (Speaking "Recent stages") */
.ts-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}
.ts-page-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-soft);
}
.ts-page-list li strong { color: var(--ink); margin-right: 0.5rem; }
.ts-page-list li em { color: var(--ink-faded); font-style: italic; }

/* Section with internal grid (Consulting three-lanes, case studies, Speaking talks) */
.ts-page-section {
    padding: clamp(3rem, 6vw, 5rem) var(--gutter);
    background: var(--paper);
}
.ts-page-section--alt { background: var(--paper-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ts-page-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ts-page-section__head {
    max-width: 720px;
    margin: 0 0 2.5rem;
}
.ts-page-section__head .eyebrow {
    color: var(--accent);
    margin-bottom: var(--space-2);
    display: inline-block;
}
.ts-page-section__head h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 1rem;
}
.ts-page-section__head p {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}
.ts-page-section__footnote {
    margin-top: 2rem;
    text-align: center;
    color: var(--ink-faded);
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

/* Three-lanes (Consulting + Speaking) — large numbered cards */
.ts-three-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.ts-three-lanes--four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
    .ts-three-lanes,
    .ts-three-lanes--four { grid-template-columns: 1fr; }
}
.ts-lane-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    transition: border-color var(--motion-fast, 150ms) ease, transform var(--motion-fast, 150ms) ease;
}
.ts-lane-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.ts-lane-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.ts-lane-card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0.75rem 0 0.75rem;
    text-wrap: balance;
}
.ts-lane-card p {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 0 0.75rem;
}
.ts-lane-output {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--ink-faded);
    border-top: 1px solid var(--rule);
    padding-top: 0.75rem;
    margin-top: 0.75rem !important;
}
.ts-lane-output strong { color: var(--ink); font-weight: 700; }

/* Case-study grid (Consulting "Recent work") */
.ts-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--ink);
    padding-top: 2rem;
}
@media (max-width: 800px) { .ts-case-grid { grid-template-columns: 1fr; } }
.ts-case-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ts-case-card__cat {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.ts-case-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}
.ts-case-card__dek {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
}

/* Slim "Next" CTA at the end of About — left side eyebrow + h2, right side links */
.ts-page-next {
    border-top: 1px solid var(--rule);
    padding: clamp(2rem, 4vw, 3rem) var(--gutter);
    background: var(--paper);
}
.ts-page-next__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 700px) {
    .ts-page-next__inner { grid-template-columns: 1fr; gap: 1rem; }
}
.ts-page-next__copy h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0.5rem 0 0;
}
.ts-page-next__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Contact form — styled to match the editorial register */
.ts-contact-form-wrap {
    background: var(--paper-soft);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.ts-contact-form .form-field {
    display: grid;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}
.ts-contact-form .form-field label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
.ts-contact-form .form-field input,
.ts-contact-form .form-field select,
.ts-contact-form .form-field textarea {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--rule-strong);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    border-radius: 2px;
    transition: border-color var(--motion-fast, 150ms) ease, box-shadow var(--motion-fast, 150ms) ease;
}
.ts-contact-form .form-field input:focus,
.ts-contact-form .form-field select:focus,
.ts-contact-form .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.ts-contact-form .form-field textarea { resize: vertical; min-height: 9rem; }
.ts-contact-form button {
    margin-top: 0.5rem;
    cursor: pointer;
}
.ts-contact-form .form-fineprint {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ink-faded);
    margin-top: 0.75rem;
}

/* 404 search form */
.ts-404-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.5rem;
    max-width: 520px;
    margin-bottom: 1rem;
}
.ts-404-search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    padding: 0.625rem 0;
    color: var(--ink);
    outline: none;
}
.ts-404-search input::placeholder { color: var(--ink-faded); }
.ts-404-search button {
    border: 0;
    background: var(--accent);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.625rem 1.125rem;
    cursor: pointer;
    transition: background var(--motion-fast, 150ms) ease;
}
.ts-404-search button:hover { background: var(--accent-hover); }


/* ============================================================
 * Top-of-viewport reading-progress bar (NYT/Stratechery style)
 * 2px line fixed to the top of the viewport, fills as the user scrolls
 * through .ts-post-essay. Driven by the existing single-editorial.js;
 * the inner sidebar progress bar is kept too as a redundancy.
 * ============================================================ */
.ts-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}
.ts-top-progress__fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 100ms linear;
    box-shadow: 0 0 8px rgba(242, 101, 34, 0.45);
}


/* ===== Empty state ===== */
.ts-archive-empty {
    text-align: center;
    padding: 5rem 0;
    border-top: 1px solid var(--ink);
}
.ts-archive-empty h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.ts-archive-empty p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--ink-soft);
    margin: 0 0 1.5rem;
}
