/* ===========================================================================
   Editorial — LOUD edition
   Literary bones (Fraunces + Newsreader, cream paper, real reading column),
   cranked: green fills, wonky giant display type, outlined index numbers,
   drop cap, oversized quotes. Spicy, still elegant.
   =========================================================================== */

:root {
    --paper:      #FBF8F1;  /* warm off-white */
    --paper-deep: #F0EADB;  /* recessed panels */
    --ink:        #16130F;  /* deep near-black, warm */
    --ink-soft:   #574E44;  /* muted text */
    --ink-faint:  #8A8073;  /* meta, captions */
    --accent:        #0B6E3B;  /* deep pine — loud, used as fills */
    --accent-ink:    #07532B;  /* hover */
    --accent-bright: #36C172;  /* lighter green for use on dark backgrounds */
    --gold:          #B08D2E;  /* antique brass, ornament only, never fills */
    --rule:       #E2DBCB;  /* hairlines */

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
    --font-meta:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* the spice: high optical size, max wonk, crisp soft */
    --display-wonk: 'opsz' 144, 'SOFT' 0, 'WONK' 1;

    --measure:      40rem;
    --measure-wide: 60rem;
    --wrap:         74rem;
    --gutter:       2.25rem;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }

/* film-grain / paper texture over the whole page (lightweight SVG noise) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

a { color: inherit; text-decoration: none; }

/* loud accent strip across the very top */
.site {
    min-height: 100vh; display: flex; flex-direction: column;
    border-top: 6px solid var(--accent);
    box-shadow: inset 0 8px 0 -6px var(--gold);  /* deco double-rule: brass hairline under the green */
}
.site-main { flex: 1 0 auto; }

/* ---------- layout helpers ---------- */
.wrap        { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure     { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.measure-wide{ width: 100%; max-width: var(--measure-wide); margin-inline: auto; padding-inline: var(--gutter); }
.dot         { color: var(--accent); margin-inline: 0.45em; font-weight: 700; }

h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 50; }
.site-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding-block: 1.1rem;
}
.site-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.85rem;
    letter-spacing: -0.03em;
    font-variation-settings: var(--display-wonk);
}
.site-title:hover { color: var(--accent); }
.site-header-right { display: flex; align-items: center; gap: 1.75rem; }

/* ---------- the empire: top money makers (Basis + CE + The Tax Lot) ---------- */
.empire-row {
    display: grid; grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid var(--ink);
}
.empire-card {
    display: flex; flex-direction: column; justify-content: center; gap: 0.15rem;
    min-height: clamp(20px, 3vh, 34px);
    padding: 0.4rem var(--gutter);
    background: var(--ink); color: var(--paper);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.07), inset 0 -4px 10px rgba(0,0,0,0.16);
    transition: transform 0.09s ease, box-shadow 0.12s ease, background 0.2s ease;
}
.empire-card:active {
    transform: translateY(2px);
    box-shadow: inset 0 7px 15px rgba(0,0,0,0.34);
}
.empire-card + .empire-card { border-left: 2px solid var(--gold); }
.empire-card:hover { background: #211c16; }
.empire-card-eyebrow {
    font-family: var(--font-meta); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-bright);
}
.empire-card-title {
    font-family: var(--font-body); font-variation-settings: var(--display-wonk);
    font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.02; letter-spacing: -0.02em;
    color: var(--paper);
}
.empire-card-cta {
    font-family: var(--font-meta); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold);
}
@media (max-width: 700px) {
    .empire-row { grid-template-columns: 1fr; }
    .empire-card + .empire-card { border-left: 0; border-top: 2px solid var(--gold); }
}
/* CE: house pine green, authoritative */
.empire-card--ce { background: var(--accent); }
.empire-card--ce:hover { background: var(--accent-ink); }
.empire-card--ce .empire-card-eyebrow,
.empire-card--ce .empire-card-cta { color: #e6db74; }
/* The Tax Lot: light studio card with an animated waveform */
.empire-card--podcast { background: var(--paper-deep); color: var(--ink); }
.empire-card--podcast:hover { background: #E8E1D0; }
.empire-card--podcast .empire-card-eyebrow,
.empire-card--podcast .empire-card-cta { color: var(--accent); }
.empire-card--podcast .empire-card-title { color: var(--ink); display: flex; align-items: center; gap: 0.7rem; }
.empire-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 1.05em; }
.empire-wave span {
    width: 3px; height: 40%; background: var(--accent);
    animation: empire-wave 1.1s ease-in-out infinite;
}
.empire-wave span:nth-child(1) { animation-delay: -0.9s; }
.empire-wave span:nth-child(2) { animation-delay: -0.5s; }
.empire-wave span:nth-child(3) { animation-delay: -0.2s; }
.empire-wave span:nth-child(4) { animation-delay: -0.7s; }
.empire-wave span:nth-child(5) { animation-delay: -0.1s; }
.empire-wave span:nth-child(6) { animation-delay: -0.6s; }
.empire-wave span:nth-child(7) { animation-delay: -0.35s; }
@keyframes empire-wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .empire-wave span { animation: none; height: 55%; } }

/* full-width Basis band, styled to match basisconf.com (black + gold rules) */
.basis-band {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
    width: 100%;
    padding: 1.9rem var(--gutter);
    background: #000; color: #f8f8f0;
    border-block: 4px solid #e6db74;
    text-align: center;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -4px 10px rgba(0,0,0,0.3);
    transition: transform 0.09s ease, box-shadow 0.12s ease, background 0.2s ease;
}
.basis-band:hover { background: #0d0d0d; }
.basis-band:active { transform: translateY(2px); box-shadow: inset 0 7px 16px rgba(0,0,0,0.5); }
.basis-band-label {
    font-family: var(--font-body); font-variation-settings: var(--display-wonk);
    font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 0.95; letter-spacing: -0.01em;
    color: #f8f8f0;
}
.basis-band-sub {
    font-family: var(--font-meta); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em; color: #e6db74;
}

/* ---------- press / social-proof ticker tape: "As seen in" label + blocked article cells ---------- */
.press {
    display: flex; align-items: stretch;
    background: var(--ink);
    border-block: 2px solid var(--ink);
    overflow: hidden;
}
.press-label {
    flex: none; display: flex; align-items: center;
    padding: 0 1.8rem;
    font-family: var(--font-meta); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright);
    white-space: nowrap; border-right: 1px solid rgba(251, 248, 241, 0.22);
}
.press-viewport { flex: 1 1 auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.press-track {
    display: inline-flex; align-items: stretch;
    white-space: nowrap; will-change: transform;
    animation: press-scroll 70s linear infinite;
}
.press:hover .press-track { animation-play-state: paused; }
.press-item {
    flex: none; display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: 0.95rem; text-align: left;
    padding: 1.6rem 2.2rem;
    border-right: 1px solid rgba(251, 248, 241, 0.18);
}
.press-thumb {
    flex: none; width: 84px; aspect-ratio: 16 / 9; overflow: hidden;
    border: 1px solid rgba(251, 248, 241, 0.22);
}
.press-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: saturate(0.9); transition: filter 0.2s ease;
}
.press-item:hover .press-thumb img { filter: saturate(1.05); }
.press-copy { display: flex; flex-direction: column; gap: 0.3rem; }
.press-title {
    font-family: var(--font-body); font-size: 1.1rem; font-weight: 600;
    letter-spacing: -0.01em; color: var(--paper); white-space: nowrap;
    transition: color 0.15s ease;
}
.press-pub {
    font-family: var(--font-meta); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright);
}
.press-item:hover .press-title { color: var(--accent-bright); }
@keyframes press-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .press-track { animation: none; }
    .press-viewport { overflow-x: auto; }
}
/* ticker closes the above-the-fold: no gap below it before the next section */
.press + .states, .press + .concentration { margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-meta);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65rem 1.2rem;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.12s ease;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-lg { font-size: 0.95rem; padding: 0.95rem 2rem; }

/* ---------- section heads ---------- */
.section-head {
    display: flex; align-items: baseline; gap: 1.25rem;
    margin-top: 8rem; margin-bottom: 2.75rem;
    border-bottom: 2px solid var(--ink); padding-bottom: 0.55rem;
}
.section-head-label {
    font-family: var(--font-meta); font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}

/* ---------- newspaper front page ---------- */
.front { border-bottom: 2px solid var(--ink); }
.front-grid {
    display: grid; grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: "left lead right";
    gap: 2.5rem; padding-block: 3rem; align-items: start;
}
.front-lead { grid-area: lead; padding-inline: 2.5rem; border-inline: 1px solid var(--rule); }
.front-side { display: flex; flex-direction: column; gap: 1.75rem; }
.front-side--left { grid-area: left; }
.front-side--right { grid-area: right; }
.front-side .mini + .mini { border-top: 1px solid var(--rule); padding-top: 1.75rem; }

.lead-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.5rem; filter: saturate(0.92); transition: filter 0.4s ease; }
.lead-img-link { display: block; overflow: hidden; }
.lead-img-link:hover .lead-img { filter: saturate(1.05); }
.lead-kicker, .mini-kicker {
    display: inline-block; font-family: var(--font-meta); font-weight: 800;
    text-transform: uppercase; color: var(--accent);
}
.lead-kicker { font-size: 0.74rem; letter-spacing: 0.12em; margin-bottom: 0.55rem; }
.lead-title {
    font-family: var(--font-body); font-variation-settings: var(--display-wonk);
    font-weight: 700; font-size: clamp(2.4rem, 4.2vw, 4.4rem); line-height: 0.98; letter-spacing: -0.035em;
}
.lead-title a:hover, .mini-title a:hover { color: var(--accent); }
.lead-meta, .mini-meta {
    font-family: var(--font-meta); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint);
}
.lead-meta { font-size: 0.78rem; margin-top: 1rem; }

.mini-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 0.7rem; filter: saturate(0.85); }
.mini-img-link { display: block; overflow: hidden; }
.mini-kicker { font-size: 0.66rem; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.mini-title {
    font-family: var(--font-body); font-variation-settings: var(--display-wonk);
    font-weight: 600; font-size: 1.22rem; line-height: 1.08; letter-spacing: -0.01em;
}
.mini-meta { font-size: 0.7rem; margin-top: 0.5rem; }

@media (max-width: 900px) {
    .front-grid { grid-template-columns: 1fr; grid-template-areas: "lead" "left" "right"; gap: 2.5rem; }
    .front-lead { padding-inline: 0; border-inline: 0; }
    .front-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .front-side .mini + .mini { border-top: 0; padding-top: 0; }
}
@media (max-width: 540px) {
    .front-side { grid-template-columns: 1fr; }
}

/* ---------- post feed ---------- */
.post-feed { padding-block: 4.5rem; }

/* grid of the rest: cards that press in on hover */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 2rem 1.75rem;
}
.post-card { position: relative; }

/* grid cards become real cards that lift on hover */
.post-grid .post-card {
    background: #FFFDF8;
    border: 1px solid var(--rule);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(.2,.7,.2,1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.post-grid .post-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--ink);
    box-shadow: 8px 8px 0 var(--accent);
}
.post-grid .post-card .post-card-image-link { border-radius: 0; }
.post-grid .post-card .post-card-body { padding: 1.3rem 1.35rem 1.6rem; }

.post-card-image-link { display: block; overflow: hidden; border-radius: 0; }
.post-card-image {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    filter: saturate(0.82) contrast(1.02);
    transition: transform 0.5s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}
.post-card:hover .post-card-image { transform: scale(1.05); filter: saturate(1.08) contrast(1.03); }
.post-card-body { padding-top: 1.2rem; }

.post-card-tag, .article-tag {
    display: inline-block;
    font-family: var(--font-meta);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.post-card-title {
    font-size: 1.75rem;
    line-height: 1.04;
    margin-bottom: 0.55rem;
}
.post-card-title a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 0.12em; background-repeat: no-repeat; background-position: 0 92%;
    transition: background-size 0.3s ease;
}
.post-card-title a:hover { background-size: 100% 0.12em; }
.post-card-meta {
    font-family: var(--font-meta);
    font-size: 0.78rem; font-weight: 600;
    color: var(--ink-faint);
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- single article ---------- */
.article { padding-block: 6rem 2.5rem; }
.article-header { text-align: center; }
.article-tag { font-size: 0.78rem; }
.article-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    margin-block: 0.5rem 0;
    letter-spacing: -0.035em;
    font-variation-settings: var(--display-wonk);
    text-wrap: balance;
}
.article-lead {
    font-size: 1.45rem; font-style: italic; color: var(--ink-soft);
    margin-top: 1.25rem; line-height: 1.45;
}
.article-meta {
    font-family: var(--font-meta);
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ink-faint);
    margin-top: 1.75rem;
}
.article-author { color: var(--accent); font-weight: 800; }
.article-image { margin-block: 3.5rem; }
.article-image img { width: 100%; border-radius: 0; }
.article-image figcaption {
    font-family: var(--font-meta);
    font-size: 0.8rem; color: var(--ink-faint);
    text-align: center; margin-top: 0.75rem;
}

/* ---------- Ghost content (grid lets wide/full images break out) ---------- */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 8rem)
        [main-start] min(var(--measure), 100% - (var(--gutter) * 2))
        [main-end] minmax(0, 8rem)
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
    margin-top: 3.5rem;
}
.gh-content > * { grid-column: main-start / main-end; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { width: 100%; }
.gh-content > * + * { margin-top: 1.95rem; }
.gh-content p { margin: 0; }

/* drop cap on the first SUBSTANTIAL paragraph (JS adds .article-dropcap, skipping
   conference banners, announcements, disclaimers, and bullet intros) */
.article:not(.page) .gh-content p.article-dropcap::first-letter {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: var(--display-wonk);
    float: left;
    font-size: 5.2rem;
    line-height: 0.72;
    padding: 0.05em 0.12em 0 0;
    color: var(--accent);
}
.gh-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    font-weight: 500;
}
.gh-content a:hover { background: var(--accent); color: var(--paper); text-decoration-color: var(--accent); }
.gh-content h2 { font-size: 2.3rem; margin-top: 3.25rem; }
.gh-content h3 { font-size: 1.65rem; margin-top: 2.5rem; }
.gh-content img, .gh-content figure { border-radius: 0; }
.gh-content figcaption {
    font-family: var(--font-meta);
    font-size: 0.8rem; color: var(--ink-faint);
    text-align: center; margin-top: 0.6rem;
}
.gh-content blockquote {
    margin: 3rem 0;
    padding: 0.5rem 0 0.5rem 2.5rem;
    border-left: 4px solid var(--accent);
    font-family: var(--font-body);
    font-variation-settings: var(--display-wonk);
    font-style: italic;
    font-size: 1.85rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    position: relative;
}
.gh-content blockquote::before {
    content: "\201C";
    position: absolute; left: 1.4rem; top: -1.2rem;
    font-family: var(--font-body); font-weight: 700;
    font-size: 5rem; color: var(--accent); opacity: 0.18; line-height: 1;
}
.gh-content ul, .gh-content ol { padding-left: 1.5rem; }
.gh-content li { margin-block: 0.4rem; }
.gh-content li::marker { color: var(--accent); }
.gh-content hr {
    border: 0; height: 3px; background: var(--accent);
    margin-block: 3.25rem; width: 4rem; margin-inline: auto;
}
.gh-content pre {
    background: var(--ink); color: #f4f1ea;
    padding: 1.25rem 1.5rem; border-radius: 0;
    font-size: 0.95rem; line-height: 1.5; overflow-x: auto;
}
.gh-content code {
    font-size: 0.92em;
    background: var(--paper-deep);
    padding: 0.1em 0.35em; border-radius: 0;
}
.gh-content pre code { background: none; padding: 0; }

/* ---------- CTA blocks ---------- */
.post-cta, .footer-cta {
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border-radius: 0;
    padding: 3.5rem 2rem;
}
.post-cta { margin-top: 4.5rem; }
.post-cta-title, .footer-cta-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-variation-settings: var(--display-wonk);
}
.post-cta-sub, .footer-cta-sub { color: #C9C0B2; margin: 0.6rem 0 1.75rem; font-style: italic; }
.post-cta .btn-ghost, .footer-cta .btn-ghost { border-color: var(--paper); color: var(--paper); }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--ink); margin-top: 9rem; }
.site-footer-inner { padding-block: 4rem 3rem; }
.footer-cta { margin-bottom: 3rem; }
.footer-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--font-meta); font-size: 0.82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint);
}
.footer-brand { font-weight: 800; color: var(--ink); font-size: 1rem; }

/* ---------- pagination ---------- */
.pagination {
    display: flex; justify-content: center; gap: 1rem;
    font-family: var(--font-meta); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding-block: 2rem 4rem;
}
.pagination a:hover { color: var(--accent); }

/* search bar (input-style) in the header; click opens Ghost search */
.searchbar-field {
    flex: 1; max-width: 32rem;
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--paper-deep); border: 1px solid var(--rule);
    padding: 0.6rem 0.95rem; cursor: text; text-align: left;
    font-family: var(--font-meta); font-size: 0.85rem; letter-spacing: 0.02em;
    color: var(--ink-faint);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.searchbar-field:hover { border-color: var(--ink); color: var(--ink); }
.searchbar-icon { flex-shrink: 0; }
@media (max-width: 720px) {
    .searchbar-field { flex-basis: 100%; max-width: none; order: 9; }
}

/* About button with a face */
.about-btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1rem 0.65rem 0; overflow: hidden; }
.about-face { align-self: stretch; width: auto; height: auto; aspect-ratio: 1; margin-block: -0.65rem; object-fit: cover; display: block; border: 0; }

/* Subscribe and About: identical height, contents centered */
.site-header-right .btn {
    height: 2.4rem; padding-block: 0;
    display: inline-flex; align-items: center;
}
/* ---------- interactive bracket calculator ---------- */
.tool { background: var(--paper-deep); border-block: 2px solid var(--ink); margin-block: 4rem; }
.tool .wrap { padding-block: 3.5rem; }
.tool-eyebrow { font-family: var(--font-meta); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tool-title { font-size: clamp(2rem, 5vw, 3.25rem); font-variation-settings: var(--display-wonk); margin-top: 0.75rem; letter-spacing: -0.03em; }
.tool-sub { font-style: italic; color: var(--ink-soft); margin-top: 0.6rem; max-width: 34rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; margin-top: 2.5rem; align-items: start; }
.tool-label { font-family: var(--font-meta); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.tool-income { display: block; font-family: var(--font-body); font-variation-settings: var(--display-wonk); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; line-height: 1; margin: 0.4rem 0 1.4rem; }
.tool-range { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: var(--rule); outline: none; cursor: pointer; }
.tool-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: var(--accent); border: 2px solid var(--ink); cursor: pointer; }
.tool-range::-moz-range-thumb { width: 22px; height: 22px; background: var(--accent); border: 2px solid var(--ink); cursor: pointer; border-radius: 0; }
.tool-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-top: 2.25rem; }
.tool-stat { background: var(--paper); padding: 1rem 1.1rem; }
.tool-stat-num { display: block; font-family: var(--font-body); font-variation-settings: var(--display-wonk); font-size: 1.65rem; font-weight: 600; }
.tool-stat-label { font-family: var(--font-meta); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.tool-viz { display: flex; flex-direction: column; gap: 0.55rem; }
.tool-bracket { display: grid; grid-template-columns: 2.75rem 1fr 5.5rem; gap: 0.85rem; align-items: center; }
.tool-bracket-rate { font-family: var(--font-meta); font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.tool-bar { height: 1.5rem; background: rgba(11,110,59,0.1); border: 1px solid var(--rule); position: relative; overflow: hidden; }
.tool-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 0.45s cubic-bezier(.2,.7,.2,1); }
.tool-bracket-amt { font-family: var(--font-meta); font-size: 0.78rem; color: var(--ink-faint); text-align: right; white-space: nowrap; }
.tool-foot { font-family: var(--font-meta); font-size: 0.72rem; color: var(--ink-faint); margin-top: 2rem; line-height: 1.5; }

/* ---------- interactive state map: four lenses on the 50 states ---------- */
.states { background: var(--paper-deep); border-block: 2px solid var(--ink); margin-block: 4rem; }
.states .wrap { padding-block: 2rem; }

/* TAI regime palette, shared by every tab (tiles, legend, detail tag). Mirrors PAL in state-map.js. */
.statemap {
    --c-notax: #D8CFBC; --c-conf: #C3D2C0; --c-lock: #A2402B;
    --c-exp: #C2992F; --c-char: #0B6E3B; --c-flat: #AEC2A8; --c-na: #D8D2C4;
}

/* lens tabs: sharp ink pills */
.sm-tabs { display: flex; flex-wrap: nowrap; gap: 0.3rem; margin-top: 0.85rem; }
.states .tool-title { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-top: 0.45rem; }
.states .tool-foot { margin-top: 1rem; }
.sm-tabs button {
    flex: 0 1 auto; white-space: nowrap; min-width: 0;
    font-family: var(--font-meta); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em;
    text-transform: uppercase; padding: 0.4rem 0.55rem; cursor: pointer;
    background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 0;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.sm-tabs button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.sm-tabs button:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* 50/50 split: map + legend on the left, the clicked-state detail on the right */
.sm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.85rem; align-items: start; }
.sm-left { display: flex; flex-direction: column; }

.sm-title { font-family: var(--font-body); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.sm-asof { margin: 0.9rem 0 0; font-family: var(--font-meta); font-size: 0.66rem; color: var(--ink-faint); }

/* the SVG cartogram: sharp tiles, mono labels */
.sm-chart { margin-top: 0.6rem; max-width: 320px; margin-left: auto; margin-right: auto; }
.sm-chart svg { width: 100%; height: auto; display: block; }
.sm-chart g.tile { cursor: pointer; }
.sm-chart g.tile:hover { opacity: 0.86; }
.tile-code { font-family: var(--font-meta); font-weight: 700; font-size: 15px; }
.tile-rate { font-family: var(--font-meta); font-size: 12px; }
.tile-sub { font-family: var(--font-meta); font-size: 10px; }
.strip-lab { font-family: var(--font-meta); font-size: 10px; fill: var(--ink-faint); letter-spacing: 0.08em; }

/* legend: key strip under the map */
.sm-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.9rem 0 0; font-family: var(--font-meta); font-size: 0.66rem; color: var(--ink-soft); }
.sm-legend .li { display: inline-flex; align-items: center; gap: 0.5rem; }
.sm-legend .sw { width: 13px; height: 13px; border: 1px solid rgba(22,19,15,0.35); flex: none; }
.sm-legend .dot-key { color: var(--ink-soft); font-size: 13px; line-height: 1; }

/* clicked-tile detail card: fills the right column, scrolls if a state runs long */
.sm-detail { border: 2px solid var(--ink); background: var(--paper); padding: 0.85rem 1.05rem; overflow-y: auto; }
.sm-detail h3 { margin: 0 0 0.25rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.sm-detail .sm-code { color: var(--ink-faint); font-weight: 400; }
.sm-detail .regime-tag { display: inline-block; font-family: var(--font-meta); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.15rem 0.5rem; margin-left: 0.5rem; vertical-align: middle; }
.sm-detail dl { margin: 0.5rem 0 0; }
.sm-detail dt { font-family: var(--font-meta); font-weight: 700; font-size: 0.58rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.55rem; }
.sm-detail dd { margin: 0.05rem 0 0; font-size: 0.82rem; line-height: 1.4; }
.sm-detail .src { font-size: 0.68rem; color: var(--ink-faint); margin-top: 0.7rem; }
.sm-detail .placeholder { color: var(--ink-faint); font-style: italic; font-size: 0.82rem; }

@media (max-width: 860px) {
    .sm-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Float Quest IPO pipeline (dark dashboard, live from float.quest) ---------- */
/* Local props so the SVG fills (set as var(--x) strings in JS) resolve in this scope.
   Stage colors stay the source's categorical scale; only the chrome is TAI-themed. */
.ipo {
    --panel: #1E1A14; --line: rgba(251,248,241,0.16); --muted: #9C9488;
    --green: var(--accent-bright); --green-dim: #173E2A; --green-bright: #7DECA9;
    --gold: var(--gold-soft, #C8A646); --dead: #A08C7D; --lock: #E8857A;
    background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink);
    margin-block: 4rem; font-variant-numeric: tabular-nums;
}
.ipo .wrap { padding-block: 3.25rem; position: relative; }
.ipo .tool-eyebrow a { color: var(--accent-bright); text-decoration: none; }
.ipo .tool-eyebrow a:hover { color: var(--paper); }
.ipo .tool-title { color: var(--paper); }
.ipo .tool-foot { color: var(--muted); }
.ipo .tool-foot a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }

.ipo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.ipo-updated { font-family: var(--font-meta); font-size: 0.72rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.04em; }
.ipo .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); margin-right: 7px; box-shadow: 0 0 8px var(--accent-bright); animation: ipo-pulse 2.4s infinite; }
@keyframes ipo-pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

.ipo .stats { display: flex; gap: 0.75rem; margin-top: 1.3rem; flex-wrap: wrap; }
.ipo .stat { flex: 1 1 100%; background: var(--panel); border: 1px solid var(--line); padding: 0.8rem 1rem 0.9rem; }
.ipo .stat .k { font-family: var(--font-meta); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.ipo .stat .v { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 1.9rem); font-weight: 600; margin-top: 0.35rem; letter-spacing: -0.01em; }
.ipo .stat .v small { font-size: 0.85rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.ipo .scope { margin-top: 1.4rem; }
.ipo-h { font-family: var(--font-meta); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-bright); margin: 0; font-weight: 700; }
.ipo .sec-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.ipo .chart-card { background: var(--panel); border: 1px solid var(--line); padding: 0.9rem 1.1rem 0.6rem; margin-top: 0.7rem; }
.ipo .legend { display: flex; gap: 1.1rem; align-items: center; font-family: var(--font-meta); font-size: 0.68rem; color: var(--muted); margin: 1rem 0 0.2rem; flex-wrap: wrap; letter-spacing: 0.02em; }
.ipo .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.ipo #ipo-chart { width: 100%; margin-top: 0.3rem; }
.ipo .axis text { fill: var(--muted); font-size: 10.5px; font-family: var(--font-meta); letter-spacing: 0.04em; }
.ipo .axis line, .ipo .axis path { stroke: transparent; }
.ipo .wordmark { fill: var(--accent-bright); font-size: 12px; font-family: var(--font-meta); letter-spacing: 0.28em; font-weight: 700; cursor: pointer; }
.ipo .wordmark:hover { fill: var(--paper); }
.ipo circle.node { cursor: pointer; transition: stroke-width 0.12s ease; }
.ipo circle.node:hover { stroke: var(--paper); stroke-width: 1.5px; }

.ipo-tip { position: fixed; pointer-events: none; z-index: 50; background: rgba(10,11,9,0.95); backdrop-filter: blur(8px); border: 1px solid #2c3a31; color: #eef1e8; padding: 0.7rem 0.8rem; font-size: 0.78rem; line-height: 1.5; max-width: 270px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.1s; }
.ipo-tip b { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }
.ipo-tip .row { color: #a9b4a0; }
.ipo-tip .amt { color: var(--green-bright, #7DECA9); font-weight: 600; }
.ipo-tip .ticker { font-family: var(--font-meta); font-size: 0.66rem; color: var(--accent-bright); letter-spacing: 0.06em; }

.ipo .err { color: var(--lock); padding: 2.5rem 0; font-size: 0.95rem; }
.ipo .err a { color: var(--accent-bright); }

@media (max-width: 640px) {
    .ipo-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* ---------- 351 ETF explorer (dark data dashboard) ---------- */
.explorer { background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); margin-block: 4rem; }
.explorer .wrap { padding-block: 3rem; }
.explorer .tool-eyebrow { color: var(--accent-bright); }
.explorer .tool-title { color: var(--paper); }
.explorer .tool-sub { color: #C9C0B2; }

/* compact stat strip */
.exp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(251,248,241,0.16); border: 1px solid rgba(251,248,241,0.16); margin-top: 1.3rem; }
.exp-stat { background: var(--ink); padding: 0.8rem 0.85rem; }
.exp-stat-num { display: block; font-family: var(--font-body); font-variation-settings: var(--display-wonk); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 600; color: var(--accent-bright); line-height: 1; }
.exp-stat-label { font-family: var(--font-meta); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; color: #9C9488; margin-top: 0.3rem; display: block; }

/* boom-by-year bar chart, with the pipeline as a hollow forward bar */
.exp-chart-wrap { margin-top: 1.4rem; }
.exp-chart-head { margin-bottom: 0.7rem; }
.exp-chart-title { font-family: var(--font-meta); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: #C9C0B2; }
.exp-chart { display: flex; align-items: stretch; gap: 0.5rem; height: 150px; }
.exp-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.exp-bar-val { font-family: var(--font-meta); font-size: 0.7rem; font-weight: 700; color: var(--accent-bright); margin-bottom: 0.3rem; white-space: nowrap; }
.exp-bar-val em { font-style: normal; color: #C9C0B2; }
.exp-bar-track { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.exp-bar { width: 100%; min-height: 2px; transition: height 0.5s cubic-bezier(.2,.7,.2,1); }
.exp-bar--solid { background: var(--accent-bright); }
.exp-bar--pipe { background: transparent; border: 1.5px dashed var(--accent-bright); border-bottom: 0; }
.exp-bar-year { width: 100%; text-align: center; font-family: var(--font-meta); font-size: 0.68rem; color: #9C9488; margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px solid rgba(251,248,241,0.22); }
.exp-err { color: #C9C0B2; font-size: 0.9rem; padding: 0.8rem 0; }
.exp-err a { color: var(--accent-bright); }
.explorer .tool-foot { color: #9C9488; }
.explorer .tool-foot a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- cookie consent banner ---------- */
.consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--paper);
    border-top: 1px solid var(--ink);
    box-shadow: inset 0 3px 0 -2px var(--accent), 0 -12px 30px rgba(22,19,15,0.07);
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.consent.is-visible { transform: translateY(0); }
.consent-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.75rem; padding-block: 1.1rem;
}
.consent-text {
    font-family: var(--font-meta); font-size: 0.82rem; line-height: 1.5;
    color: var(--ink-soft); margin: 0; max-width: 48rem;
}
.consent-eyebrow {
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink); margin-right: 0.6rem; font-size: 0.72rem;
}
.consent-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.footer-consent {
    font-family: var(--font-meta); font-size: 0.82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--ink-faint); transition: color 0.15s ease;
}
.footer-consent:hover { color: var(--accent); }

@media (max-width: 720px) {
    .consent-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .consent-actions { width: 100%; }
    .consent-actions .btn { flex: 1; }
}

/* ---------- tag / topic archive page ---------- */
.archive { border-bottom: 2px solid var(--ink); }
.archive-inner { padding-block: 5rem 3.5rem; }
.archive-eyebrow {
    font-family: var(--font-meta); font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent);
}
.archive-title {
    font-size: clamp(2.5rem, 7vw, 5rem); font-variation-settings: var(--display-wonk);
    letter-spacing: -0.035em; margin-top: 0.6rem;
}
.archive-desc {
    font-size: 1.35rem; font-style: italic; color: var(--ink-soft);
    margin-top: 1rem; max-width: 36rem; line-height: 1.45;
}
.archive-count {
    display: block; margin-top: 1.25rem;
    font-family: var(--font-meta); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint);
}

/* mini-card date (front page) */
.mini-date {
    display: block; margin-top: 0.5rem;
    font-family: var(--font-meta); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint);
    font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- deco spice: dateline, brass ornament, real numerals ---------- */
.dateline { border-bottom: 1px solid var(--ink); }
.dateline-inner {
    display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap;
    padding-block: 0.7rem;
    font-family: var(--font-meta); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
    font-variant-numeric: tabular-nums lining-nums;
}
.dateline-dot { font-size: 0.9em; }

/* foil text selection */
::selection { background: var(--gold); color: var(--ink); }

/* a small brass mark before each section label */
.section-head-label::before {
    content: "\25C6"; color: var(--gold); font-size: 0.62em;
    margin-right: 0.6rem; vertical-align: 0.12em;
}

/* tabular lining numerals for data and UI (no jitter, finance-correct) */
.tool-income, .tool-stat-num, .tool-bracket-rate, .tool-bracket-amt,
.exp-stat-num, .exp-bar-val,
.lead-meta, .mini-meta, .post-card-meta,
.article-meta, .footer-meta, .pagination {
    font-variant-numeric: tabular-nums lining-nums;
}
/* oldstyle figures in running prose (the Gatsby-era tell) */
.gh-content, .article-lead {
    font-variant-numeric: oldstyle-nums proportional-nums;
}

/* ---------- tactile: a little lift at rest, depress on press ---------- */
/* raised: hard shadow lifts the element off the page */
.btn-primary,
.btn-ghost { box-shadow: 3px 3px 0 var(--ink); }
.post-grid .post-card { box-shadow: 4px 4px 0 rgba(22, 19, 15, 0.10); }

/* pressed: translate into where the shadow was, shadow collapses = depressed */
.btn-primary:active,
.btn-ghost:active { transform: translate(3px, 3px); box-shadow: 0 0 0 transparent; }
.post-grid .post-card:active { transform: translate(4px, 4px); box-shadow: 0 0 0 transparent; }
.footer-consent:active { transform: translate(2px, 2px); }

/* press animates fast and snappy on the tiles that lack a transform transition */
.footer-consent {
    transition: transform 0.08s ease, background 0.18s ease, color 0.18s ease;
}

/* ---------- entrance: staggered rise (transform stays free for hover) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .post-grid .post-card {
        animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both;
    }
    .post-grid .post-card:nth-child(1) { animation-delay: 0.04s; }
    .post-grid .post-card:nth-child(2) { animation-delay: 0.10s; }
    .post-grid .post-card:nth-child(3) { animation-delay: 0.16s; }
    .post-grid .post-card:nth-child(4) { animation-delay: 0.22s; }
    .post-grid .post-card:nth-child(5) { animation-delay: 0.28s; }
    .post-grid .post-card:nth-child(6) { animation-delay: 0.34s; }
    .post-grid .post-card:nth-child(n+7) { animation-delay: 0.40s; }
    @keyframes rise {
        from { opacity: 0; translate: 0 20px; }
        to   { opacity: 1; translate: 0 0; }
    }
}

/* ---------- Fraunces lives ONLY on the big titles; everything else is Helvetica ---------- */
.lead-title,
.article-title,
.archive-title,
.site-title,
.tool-title,
.basis-band-label {
    font-family: var(--font-display);
}

/* ---------- about page + media wall ---------- */
.about-page { padding-block: 4rem 6rem; }
.about-hero { display: flex; align-items: center; gap: 2rem; max-width: var(--measure-wide); margin: 0 auto 2.5rem; padding-inline: var(--gutter); }
.about-portrait { width: 132px; height: 132px; flex: none; object-fit: cover; border: 2px solid var(--ink); background: var(--paper-deep); }
.about-name { font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; margin: 0.5rem 0 0; }
.about-role { color: var(--ink-soft); font-size: 1.05rem; margin: 0.6rem 0 0; }
.about-bio > p { font-size: 1.12rem; line-height: 1.65; margin: 0 0 1.1rem; }
.about-lead { font-weight: 600; }
.about-lead::first-letter { font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: 3.4em; line-height: 0.8; float: left; margin: 0.05em 0.08em 0 0; color: var(--accent); }
.about-subhead { font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 2.4rem 0 0.8rem; }
.about-list { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.about-list li { font-size: 1.08rem; line-height: 1.55; margin: 0 0 0.35rem; }
.about-bio a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.research { margin-top: 4rem; border-top: 2px solid var(--ink); padding-top: 2.5rem; }
.research-head { margin-bottom: 1.5rem; }
.research-title { font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -0.025em; margin: 0.5rem 0 0; }
.paper-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.paper { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.paper-name { display: block; font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.paper-name:hover { color: var(--accent); }
.paper-meta { font-family: var(--font-meta); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0.5rem 0 0; }
.paper-desc { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; max-width: 46rem; }

.media-wall { margin-top: 4rem; border-top: 2px solid var(--ink); padding-top: 2.5rem; }
.media-wall-head { margin-bottom: 1.75rem; }
.media-wall-title { font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -0.025em; margin: 0.5rem 0 0; }
.media-group { font-family: var(--font-meta); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 2.25rem 0 0.4rem; }
.media-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.media-item { border-bottom: 1px solid var(--rule); }
.media-item:nth-child(odd) { border-right: 1px solid var(--rule); }
.media-item a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.05rem 1.4rem 1.05rem 0; transition: padding-left 0.16s ease, background 0.16s ease; }
.media-item a:hover { padding-left: 0.9rem; background: var(--paper-deep); }
.media-pub { font-family: var(--font-meta); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.media-headline { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.media-item a:hover .media-headline { color: var(--accent); }
.media-wall .tool-foot { margin-top: 1.5rem; }
.about-privacy { font-family: var(--font-meta); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.5; margin: 3rem auto 0; }

/* youtube preview cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; margin-top: 0.5rem; }
.video-card { display: block; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); background: var(--ink); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), filter 0.3s ease; filter: saturate(0.9); }
.video-card:hover .video-thumb img { transform: scale(1.04); filter: saturate(1.05); }
.video-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(22,19,15,0.72); border: 2px solid var(--paper); transition: background 0.18s ease, transform 0.18s ease; }
.video-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--paper); transform: translateX(2px); }
.video-card:hover .video-play { background: var(--accent); transform: scale(1.08); }
.video-card .media-pub { display: block; margin-top: 0.7rem; }
.video-card .media-headline { display: block; margin-top: 0.2rem; }
.video-card:hover .media-headline { color: var(--accent); }
/* labeled thumb for outlets that don't serve a frame grab (e.g. Bloomberg TV) */
.video-thumb--label { display: flex; align-items: center; justify-content: center; background: var(--ink); }
.video-thumb--label .video-label { color: var(--paper); font-size: 1.05rem; letter-spacing: 0.04em; opacity: 0.9; }
.video-card:hover .video-thumb--label .video-label { opacity: 1; }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- single-asset de-risking heatmap ---------- */
.concentration { background: var(--paper-deep); border-block: 2px solid var(--ink); margin-block: 4rem; }
.concentration .wrap { padding-block: 2.5rem; }
.heat { margin-top: 1.2rem; }

/* color legend */
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; margin-top: 0.85rem; font-family: var(--font-meta); font-size: 0.62rem; color: var(--ink-soft); }
.heat-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.heat-swatch { width: 11px; height: 11px; flex: none; }
.heat-legend-key { color: var(--ink-faint); }

/* table: name + 5 fixed narrow color columns. Always fits, no horizontal scroll. */
.heat-table { margin-top: 0.55rem; border: 1.5px solid var(--ink); }
.heat-thead, .heat-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, minmax(2.1rem, 3rem)); align-items: stretch; }
.heat-thead { background: var(--ink); }
.heat-th { padding: 0.3rem 0.2rem; font-family: var(--font-meta); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--paper); display: flex; align-items: center; justify-content: center; border: 0; border-left: 1px solid rgba(251,248,241,0.18); background: transparent; cursor: pointer; }
.heat-th--name { justify-content: flex-start; border-left: 0; padding-left: 0.8rem; }
.heat-th.is-sorted { color: var(--accent-bright); box-shadow: inset 0 -2px 0 var(--accent-bright); }
.heat-row { border-top: 1px solid var(--rule); background: var(--paper); cursor: pointer; will-change: transform; }
.heat-row:hover { background: #FFFDF8; }
.heat-row.is-active { background: #FFFDF8; }
.heat-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; padding: 0.32rem 0.8rem; }
.heat-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.heat-strat { font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat-cell { border-left: 1px solid var(--paper); min-height: 1.4rem; }
.heat-hi { background: #C3D2C0; }
.heat-mid { background: #EAD9AE; }
.heat-lo { background: #E6C2B8; }
.heat-cell.is-sorted { box-shadow: inset 0 0 0 2px var(--ink); }
.bucket-selling { background: #7A7264; }
.bucket-harvesting { background: #C2992F; }
.bucket-hedging { background: #A2402B; }
.bucket-deferring { background: #0B6E3B; }
.bucket-giving { background: #4A6D8C; }

/* a row expands in place into its description */
.heat-expand { border-top: 1px solid var(--ink); background: #FFFDF8; padding: 0.9rem 1rem 1.1rem; animation: heat-open 0.22s ease; }
@keyframes heat-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.heat-scores { display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; margin: 0.4rem 0 0; }
.heat-score { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-meta); font-size: 0.62rem; color: var(--ink-soft); }
.heat-score b { color: var(--ink); font-weight: 700; }
.heat-score-dot { width: 9px; height: 9px; flex: none; }
.tree-detail-eyebrow { font-family: var(--font-meta); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tree-detail-name { font-family: var(--font-display); font-variation-settings: var(--display-wonk); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: -0.025em; line-height: 1.08; margin: 0.25rem 0 0; }
.tree-detail-idea { font-size: 0.95rem; line-height: 1.45; color: var(--ink); margin: 0.55rem 0 0; }
.tree-links { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
.tree-links-label { font-family: var(--font-meta); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.tree-links a { font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--rule); text-decoration: none; }
.tree-links a:hover { border-color: var(--accent); }
.tree-links--empty { font-family: var(--font-meta); font-size: 0.72rem; font-style: italic; color: var(--ink-faint); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
    body { font-size: 1.15rem; }
    .site-header-inner { flex-direction: column; align-items: stretch; gap: 0.7rem; }
    .site-title { text-align: center; font-size: 1.55rem; }
    .searchbar-field { width: 100%; justify-content: center; }
    .site-header-right { width: 100%; gap: 0.7rem; }
    .site-header-right .btn { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
    .about-btn { padding: 0.5rem 1rem; }
    .footer-meta { flex-direction: column; gap: 0.5rem; text-align: center; }
    .article:not(.page) .gh-content p.article-dropcap::first-letter { font-size: 4rem; }
    .tool-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-hero { flex-direction: column; text-align: center; align-items: center; gap: 1.2rem; }
    .media-list { grid-template-columns: 1fr; }
    .media-item:nth-child(odd) { border-right: 0; }
    .media-item a { padding-right: 0; }
}
