/**
 * components.css — the 7 component patterns from brief §6.6,
 * plus supporting elements (buttons, brand mark, eyebrow, capture form, etc.).
 *
 * Each component is independent and can be used in any layout container.
 */

/* ───── Eyebrow + heading rule (NP-signature) ───── */

.eyebrow {
    font-family: var(--font-sans);
    font-size: var(--type-eyebrow-size);
    font-weight: var(--type-eyebrow-weight);
    letter-spacing: var(--type-eyebrow-tracking);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-2);
    display: inline-block;
}

.heading-rule {
    display: block;
    width: var(--rule-accent-width);
    height: var(--rule-accent-height);
    background: var(--accent);
    margin: var(--space-3) 0;
    border: 0;
}
.heading-rule.center { margin-left: auto; margin-right: auto; }

.caption {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-faded);
}

/* ───── Buttons ───── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: var(--type-ui-size);
    font-weight: 600;
    letter-spacing: -0.005em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
    white-space: nowrap;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #fff; }

.btn-dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }

.btn-block { width: 100%; justify-content: center; padding: 1.125rem 1.75rem; font-size: 1rem; }

.btn-arrow::after { content: "→"; transition: transform var(--motion-fast) ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(2px); }

/* ───── 1. Site header ───── */

.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
    padding: 0.875rem var(--gutter);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}
.site-header-inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.site-nav { display: flex; gap: var(--space-3); font-family: var(--font-sans); font-size: var(--type-ui-size); font-weight: var(--type-ui-weight); }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-header-cta { display: flex; gap: 0.625rem; align-items: center; }

@media (max-width: 720px) {
    .site-nav { display: none; }
    /* Mobile menu toggle handled by JS in header.js */
}

/* ───── Brand mark (TIRIVASHE wordmark) — uses owner-supplied PNG ───── */

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}
.brand img { height: 36px; width: auto; display: block; }
.brand-lg img { height: 56px; }
.brand-xl img { height: 96px; }
.brand-sm img { height: 28px; }

/* ─── GeneratePress site header — tighten height, neat rhythm ─── */
.site-header,
header#masthead {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--rule);
}
.inside-header { padding: 0 !important; align-items: center; }
.site-branding { padding: 0 !important; margin: 0 !important; }
.site-logo,
.site-branding-container { padding: 0 !important; margin: 0 !important; }
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation .menu-toggle {
    padding: 0 !important;
    min-height: 0 !important;
}
.main-navigation .main-nav > ul > li > a {
    line-height: 44px !important;
    padding: 0 0.875rem !important;
    height: 44px !important;
}
.site-header .menu-bar-items > li > a { padding: 0 0.875rem !important; }

/* ─── CTA-styled menu item (e.g. "STAY UP" in primary nav) ───
 * Any menu item with class .cta-button is rendered as a filled accent button
 * — visually distinct from nav links, sits at the right edge of the menu.
 * The class is set in WP admin → Appearance → Menus → CSS Classes (or via
 * wp-cli when the item was added programmatically). */
.main-navigation .main-nav > ul > li.cta-button,
.menu-item.cta-button {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}
.main-navigation .main-nav > ul > li.cta-button > a,
.menu-item.cta-button > a {
    background: var(--accent);
    color: var(--paper) !important;
    font-family: var(--font-sans);
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 1rem !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 2px;
    transition: background var(--motion-fast, 150ms) ease, transform var(--motion-fast, 150ms) ease;
}
.main-navigation .main-nav > ul > li.cta-button > a:hover,
.menu-item.cta-button > a:hover {
    background: var(--accent-hover) !important;
    color: var(--paper) !important;
    transform: translateY(-1px);
}
/* Remove underline / hover effects that the regular nav-link styles would
 * otherwise apply to the CTA. */
.main-navigation .main-nav > ul > li.cta-button > a::before,
.main-navigation .main-nav > ul > li.cta-button > a::after,
.menu-item.cta-button > a::before,
.menu-item.cta-button > a::after { display: none !important; }

/* Custom logo sizing inside header */
.site-logo .custom-logo,
.site-branding .custom-logo,
.custom-logo-link .custom-logo {
    height: 32px !important;
    width: auto !important;
    max-height: 32px;
    max-width: 220px;
    display: block;
}
@media (min-width: 768px) {
    .site-logo .custom-logo,
    .site-branding .custom-logo,
    .custom-logo-link .custom-logo {
        height: 38px !important;
        max-height: 38px;
        max-width: 260px;
    }
}
/* Replace GP's site-title text with the logo image via background-image.
 * This is more reliable than filtering get_custom_logo() because GP uses its
 * own logo-vs-title logic that bypasses WP's standard custom-logo functions.
 * The .main-title <p> stays in the DOM (so the home-link is still keyboard
 * accessible) but its text is hidden and the logo image fills its box. */
.site-branding .main-title,
.site-branding > p.main-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 220px;
    height: 32px;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    overflow: hidden;
    text-indent: -9999px;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .site-branding .main-title,
    .site-branding > p.main-title {
        width: 260px;
        height: 38px;
    }
}
.site-branding .main-title a {
    display: block;
    width: 100%;
    height: 100%;
    color: transparent !important;
    line-height: 1 !important;
}
.site-branding p.site-description,
.site-description { display: none !important; }

/* Edge-to-edge wrapper — used on full-width pages so component sections
 * (hero, feature-block, pillar-grid) actually go to the viewport edges
 * instead of being inset by the GP container padding. Targets BOTH the
 * page-template path (via .entry-content) and the archive/single-post
 * path (via .site-content / .site-main directly). */
body.is-full-width-content .inside-article,
body.is-full-width-content .entry-content,
body.is-full-width-content .site-content,
body.is-full-width-content .site-main,
body.is-full-width-content #content,
body.is-full-width-content #primary,
body.is-full-width-content article {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Break out of GP's full container hierarchy on full-width pages. GP wraps
 * content in nested .site > .site-content > .content-area > .site-main
 * with flex layouts that constrain width even with no sidebar. Reset every
 * level. The `display: block` is critical — GP uses `display: flex` on
 * .site and .content-area to position sidebars.
 *
 * IMPORTANT: this excludes `.inside-header` and `.inside-footer` which also
 * carry the .grid-container class but need to remain flex-aligned.
 */
body.is-full-width-content .site,
body.is-full-width-content #page,
body.is-full-width-content .site-content,
body.is-full-width-content #content,
body.is-full-width-content .content-area,
body.is-full-width-content #primary,
body.is-full-width-content .site-main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex: none !important;
}

/* Reset .grid-container / .grid-parent ONLY when they're not part of the
 * site header / footer (those need their original flex behaviour). */
body.is-full-width-content .grid-container:not(.inside-header):not(.inside-footer):not(.inside-navigation):not(.inside-site-info),
body.is-full-width-content .grid-parent:not(.inside-header):not(.inside-footer):not(.inside-navigation):not(.inside-site-info) {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex: none !important;
}

/* Reset margin on direct full-width SECTION children (so component blocks
 * butt up against each other), but PRESERVE semantic margins on text
 * elements so paragraphs in the post editor still breathe. The earlier
 * blanket `> *` rule was wiping out paragraph spacing. */
body.is-full-width-content .entry-content > section,
body.is-full-width-content .entry-content > article,
body.is-full-width-content .entry-content > aside,
body.is-full-width-content .entry-content > header,
body.is-full-width-content .entry-content > footer,
body.is-full-width-content .entry-content > .cl-banner,
body.is-full-width-content .entry-content > .cl-section-label { margin: 0; }

/* Force every direct child to span the full viewport — same rule applied to
 * archive and entry-content children. */
body.is-full-width-content .entry-content > section,
body.is-full-width-content .entry-content > div,
body.is-full-width-content .entry-content > .cl-banner,
body.is-full-width-content .entry-content > .cl-section-label,
body.is-full-width-content .entry-content > footer,
body.is-full-width-content .entry-content > header,
body.is-full-width-content .entry-content > article,
body.is-full-width-content .site-content > section,
body.is-full-width-content .site-content > article,
body.is-full-width-content .site-content > .pillar-header,
body.is-full-width-content .site-content > .archive-header,
body.is-full-width-content .site-content > .archive-list,
body.is-full-width-content .site-content > .archive-filter,
body.is-full-width-content .site-main > section,
body.is-full-width-content .site-main > article {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* On full-width pages, hide GP's auto-generated footer widgets + site-info
 * — we render our own .site-footer component instead. Prevents the empty
 * dark band + white gap stacking artifact at the page bottom. */
body.is-full-width-content .footer-widgets,
body.is-full-width-content .footer-widgets-container,
body.is-full-width-content .site-footer .site-info {
    display: none !important;
}
/* If our custom .site-footer is already in the page content, suppress GP's
 * outer .site-footer wrapper entirely so we don't double-stack. */
body.is-full-width-content .site-info {
    padding: 0 !important;
    background: transparent !important;
}

/* CSS-rendered fallback (used when owner hasn't supplied logo file) */
.brand-text {
    border: 2.5px solid var(--accent);
    padding: 0.375rem 0.75rem 0.4375rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-transform: uppercase;
    border-radius: 2px;
}

/* ───── 2. Hero ───── */

.hero {
    background: var(--paper);
    background-image: radial-gradient(ellipse at 80% 20%, var(--accent-faint), transparent 55%);
    padding: var(--space-16) var(--gutter) var(--space-12);
    border-bottom: 1px solid var(--rule);
}
.hero-inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); margin-bottom: var(--space-3); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-dek { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: var(--space-4); max-width: 36em; font-weight: 400; }
.hero-book { display: flex; align-items: center; justify-content: center; }
.hero-book img {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(var(--shadow-photo));
}
@media (max-width: 900px) {
    .hero-book img { max-width: 420px; margin: 0 auto; }
}

/* ───── 2b. Portrait-feature block (used as the About-preview section) ─────
 *   Photo on the left in a circular frame with a brand-tinted blob and a
 *   thin accent arc behind it (Ali Abdaal-style image placement, translated
 *   into the existing palette). Copy on the right.
 *
 *   Designed to sit mid-page inside an existing `.section.alt` wrapper —
 *   that wrapper supplies the section vertical padding and alt-paper
 *   background, so this block only handles the inner two-col layout
 *   and the photo treatment.
 */
.portrait-feature-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 900px) {
    .portrait-feature-inner { grid-template-columns: 1fr; gap: var(--space-6); text-align: center; }
}

.portrait-feature-photo {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    margin: 0 auto;
}
.portrait-feature-photo::before {
    /* Soft brand-orange disc behind the photo, offset down-left so it peeks
     * out from the circular frame. Pseudo-element, no extra image asset. */
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.18;
    transform: translate(-6%, 8%) scale(1.05);
    filter: blur(2px);
    z-index: 0;
}
.portrait-feature-photo-arc {
    /* Thin accent arc wrapping ~70% of the circumference, top-right. */
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-15deg);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}
.portrait-feature-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-photo);
    background: var(--paper-soft);
}

.portrait-feature-copy .eyebrow {
    color: var(--accent);
    margin-bottom: var(--space-2);
    display: inline-block;
}
.portrait-feature-copy h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 var(--space-2);
    text-wrap: balance;
}
.portrait-feature-copy h2 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 800;
}
.portrait-feature-copy p {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 var(--space-3);
    max-width: 38em;
}
@media (max-width: 900px) {
    .portrait-feature-copy p { margin-left: auto; margin-right: auto; }
}

/* ───── 2c. Newsletter strip (homepage closing element) ─────
 *   Replaces the heavy dark "closing capture" card. Editorial register:
 *   light paper, hairline rules above and below, eyebrow + serif heading +
 *   small dek on the left, inline form on the right. Reads as a sentence,
 *   not a second footer.
 */
.newsletter-strip {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
    background: var(--paper);
}
.newsletter-strip-inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 800px) {
    .newsletter-strip-inner { grid-template-columns: 1fr; gap: var(--space-4); }
}
.newsletter-strip-copy .eyebrow {
    color: var(--accent);
    margin-bottom: var(--space-2);
    display: inline-block;
}
.newsletter-strip-copy h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.625rem, 3.2vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 var(--space-2);
    max-width: 18ch;
    text-wrap: balance;
}
.newsletter-strip-copy h3 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 800;
}
.newsletter-strip-copy p {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    max-width: 36em;
}
.newsletter-strip-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.5rem;
}
.newsletter-strip-form input {
    flex: 1 1 240px;
    border: 0;
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    padding: 0.625rem 0;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.newsletter-strip-form input::placeholder { color: var(--ink-faded); }
.newsletter-strip-submit {
    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;
}
.newsletter-strip-submit:hover { background: var(--accent-hover); }
.newsletter-strip-fineprint {
    flex: 1 1 100%;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ink-faded);
    margin: 0.5rem 0 0;
    letter-spacing: 0.01em;
    text-align: left;
}

/* Capture form */

.capture-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 520px;
    background: var(--paper);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
    padding: 0.375rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.capture-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.capture-form input {
    flex: 1;
    font-size: var(--type-ui-size);
    padding: 0.625rem 0.875rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: none;
}
.capture-form input::placeholder { color: var(--ink-faded); }
@media (max-width: 480px) {
    .capture-form { flex-direction: column; padding: 0.5rem; }
    .capture-form .btn { width: 100%; justify-content: center; }
}
.capture-fineprint { font-size: 0.8125rem; color: var(--ink-faded); }

/* ───── 3. Pillar cards ───── */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
@media (max-width: 720px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card {
    background: var(--paper);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-4);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    position: relative;
    transition: background var(--motion-base) ease;
}
.pillar-card::after {
    content: "→";
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 1.25rem;
    color: var(--ink-faded);
    transition: transform var(--motion-base) cubic-bezier(0.34,1.3,0.64,1), color var(--motion-fast) ease;
}
.pillar-card:hover { background: var(--paper-soft); }
.pillar-card:hover::after { color: var(--accent); transform: translateX(4px); }
.pillar-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.pillar-card h4 { margin: 0; color: var(--ink); padding-right: 2rem; }
.pillar-card p { color: var(--ink-soft); font-size: var(--type-body-sm-size); line-height: 1.55; margin: 0; }

/* ───── 4. Article cards ───── */

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--motion-base) cubic-bezier(0.2,0.8,0.2,1), box-shadow var(--motion-base) ease, border-color var(--motion-base) ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.article-card-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #FFEDD5 0%, #FFC998 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-3);
}
.article-card-image.cool { background: linear-gradient(135deg, #DBEAFE 0%, #93C5FD 100%); }
.article-card-image.dark { background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }

.tag {
    display: inline-block;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--rule-strong);
}
.article-card-image.dark .tag { background: rgba(255,255,255,0.95); }
.article-card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.article-card-body h4 { margin: 0; }
.article-card-dek { color: var(--ink-soft); font-size: var(--type-body-sm-size); line-height: 1.55; margin: 0; flex: 1; }
.article-card-meta { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--ink-faded); display: flex; gap: 0.5rem; }
.article-card-meta .dot { color: var(--ink-faded); }

/* ───── 5. Inline newsletter capture (in long-form posts) ───── */

.inline-capture {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    font-family: var(--font-sans);
}
.inline-capture h4 { color: #fff; margin-bottom: 0.25rem; }
.inline-capture .lead { color: rgba(255,255,255,0.7); margin-bottom: var(--space-3); font-size: var(--type-body-sm-size); line-height: 1.55; }
.inline-capture .capture-form { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.inline-capture .capture-form input { color: #fff; }
.inline-capture .capture-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ───── 6. Pillar page header ───── */

.pillar-header {
    background: var(--paper-soft);
    padding: var(--space-12) var(--gutter);
    border-bottom: 1px solid var(--rule);
}
.pillar-header-inner { max-width: var(--content-width); margin: 0 auto; }
.toc {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-4);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}
.toc-label {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.toc ol { margin: 0; padding-left: 1.25rem; color: var(--ink-soft); }
.toc li { margin-bottom: 0.25rem; }
.toc li::marker { color: var(--accent); font-weight: 700; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--accent); }

/* ───── 7. Footer ───── */

.site-footer { background: var(--ink); color: #fff; padding: var(--space-12) var(--gutter) var(--space-4); }
.site-footer-inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-6);
}
@media (max-width: 720px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--accent); font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; font-family: var(--font-sans); font-size: var(--type-body-sm-size); }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.65); margin: 0; line-height: 1.55; font-size: var(--type-body-sm-size); max-width: 28ch; }
.site-footer-bottom {
    max-width: var(--content-width-wide);
    margin: var(--space-6) auto 0;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ───── Trust strip (logo bar) ───── */

.trust-strip {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-4) var(--gutter);
}
.trust-strip-inner {
    max-width: var(--content-width-wide);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-6);
    justify-content: center;
}
.trust-strip .label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faded);
}

/* ───── Long-form prose (serif body inside reading column) ───── */

.prose { font-family: var(--font-serif); font-size: var(--type-prose-size); line-height: var(--type-prose-leading); color: var(--ink); }
.prose p { margin: 0 0 1.25rem; }
.prose h2, .prose h3 { font-family: var(--font-display); margin-top: 2.5rem; }
.prose h3 { font-size: 1.625rem; }
.prose a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size var(--motion-base) cubic-bezier(0.2,0.8,0.2,1);
}
.prose a:hover { background-size: 100% 1px; }
.prose blockquote { border-left: 4px solid var(--accent); padding-left: var(--space-3); font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; line-height: 1.4; font-style: normal; color: var(--ink); margin: var(--space-4) 0; letter-spacing: -0.01em; }

.pullquote {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    border-left: 4px solid var(--accent);
    padding-left: var(--space-3);
    margin: var(--space-4) 0;
    letter-spacing: -0.01em;
}

/* ───── Forms (contact page + general) ─────
 * Avoids relying on inline style=""; KSES sometimes strips those.
 * Use semantic .form classes that survive any content filter.
 */
.form-field { display: grid; gap: 0.5rem; margin-bottom: var(--space-3); font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; }
.form-field label { color: var(--ink); }
.form-field input,
.form-field textarea,
.form-field select {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-grid { display: grid; gap: var(--space-3); max-width: 560px; margin: 0 auto; }
.form-fineprint { font-size: 0.8125rem; color: var(--ink-faded); margin: 0; }

/* ───── Single-post template fixes — ensures .prose paragraphs stay clean
 * even when KSES strips our inline styles. */
.tirivashe-single .entry-content > .read-more,
.tirivashe-single .entry-content a.read-more,
.entry-content > .read-more { display: none !important; }

/* ───── Single post header — wider than reading column for visual weight ─── */
.tirivashe-post-header { padding-bottom: var(--space-6); }
.tirivashe-post-header .entry-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: var(--space-2) 0 var(--space-3);
    max-width: 22ch;
}
.tirivashe-post-header .post-dek {
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
    max-width: 60ch;
    font-weight: 400;
}

.tirivashe-author-bio {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--space-3);
    align-items: start;
    margin: var(--space-12) 0 var(--space-8);
    padding: var(--space-4);
    background: var(--paper-soft);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}
.tirivashe-author-bio.no-avatar { grid-template-columns: 1fr; }
.tirivashe-author-bio img,
.tirivashe-author-bio .avatar { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; }
@media (max-width: 540px) {
    .tirivashe-author-bio:not(.no-avatar) { grid-template-columns: 1fr; }
    .tirivashe-author-bio img { margin: 0 auto var(--space-2); }
}

/* ───── Stat row (NP-style by-the-numbers) ───── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    padding: var(--space-6) 0;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.stat .num em { color: var(--accent); font-style: normal; }
.stat .num small { font-size: 0.5em; font-weight: 700; color: var(--ink-soft); margin-left: 0.15em; }
.stat .label { font-family: var(--font-sans); font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.4; max-width: 24ch; }

/* ───── Scroll-fade animation hooks (paired with motion.js IntersectionObserver) ─────
 * Add data-animate to any element to fade-up on entry. Honors prefers-reduced-motion. */
[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-animate],
    [data-animate].is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ───── Hero flourish — animated subtle background pattern ───── */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-faint) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

/* ───── Card hover depth — applied to article-card, pillar-card, icon-card ───── */
.article-card,
.icon-card {
    position: relative;
}
.article-card::before,
.icon-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(242, 101, 34, 0);
    transition: box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.article-card:hover::before {
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* ───── Testimonial / pull quote callout ─────
 * Used on consulting page for client testimonials, also generally available. */
.testimonial {
    background: var(--paper-soft);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-4) 0;
    position: relative;
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: -8px;
    left: var(--space-3);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.testimonial blockquote,
.testimonial > p {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 var(--space-2);
    letter-spacing: -0.01em;
}
.testimonial cite {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    font-style: normal;
}
.testimonial cite small {
    display: block;
    font-weight: 400;
    color: var(--ink-faded);
    margin-top: 2px;
}

/* ───── Archive header (compact NP-style) ───── */
.archive-header {
    background: var(--paper-soft);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}
.archive-header .container {
    max-width: 800px;
    text-align: center;
}
.archive-header .eyebrow { display: inline-block; }
.archive-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: var(--space-2) 0;
}
.archive-header .heading-rule { margin-left: auto; margin-right: auto; }
.archive-header .archive-dek {
    color: var(--ink-soft);
    font-size: 1.125rem;
    line-height: 1.5;
    margin: var(--space-3) auto 0;
    max-width: 50ch;
}

/* ───── Featured post card (NP-style "FEATURED" ribbon hero) ───── */
.featured-post-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
    position: relative;
}
.featured-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--rule-strong);
}
.featured-post-card-image {
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, #FFEDD5 0%, #FFC998 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.featured-ribbon {
    position: absolute;
    top: 18px;
    right: -34px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.375rem 2.5rem;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}
.featured-post-card-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
}
.featured-post-card-body h2 {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    margin: var(--space-1) 0;
    line-height: 1.15;
}
.featured-post-card-body .card-excerpt {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 720px) {
    .featured-post-card { grid-template-columns: 1fr; }
    .featured-post-card-image { aspect-ratio: 16 / 9; }
    .featured-post-card-body { padding: var(--space-4); }
}

/* ───── NP-style 3-up card grid ───── */
.np-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: 0 0 var(--space-6);
}
@media (max-width: 1024px) { .np-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .np-card-grid { grid-template-columns: 1fr; } }

.np-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 220ms ease, border-color 220ms ease;
}
.np-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--rule-strong);
}
.np-card-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #FFEDD5 0%, #FFC998 100%);
    background-size: cover;
    background-position: center;
}
.np-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-3) 0;
    flex: 1;
}
.np-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}
.np-card .card-excerpt {
    font-family: var(--font-sans);
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 var(--space-2);
    flex: 1;
}
.np-card-footer {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: var(--space-3);
    border-top: 1px solid var(--rule);
    margin-top: auto;
}
.np-card-footer img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.np-card-author {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.np-card-author strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}
.np-card-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ink-faded);
    white-space: nowrap;
}

/* ───── Card meta-top row (category + reading time) — shared by featured + grid ───── */
.card-meta-top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.card-cat { color: var(--accent); }
.card-time {
    color: var(--ink-faded);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.card-time::before {
    content: "";
    display: inline-block;
    width: 12px; height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center / contain no-repeat;
}

/* ───── Featured-card author block (richer than grid card) ───── */
.featured-post-card .card-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--rule);
}
.featured-post-card .card-author img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.featured-post-card .card-author-info {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}
.featured-post-card .card-author-info strong {
    color: var(--ink);
    font-weight: 600;
}
.featured-post-card .card-date {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--ink-faded);
    white-space: nowrap;
}

/* ───── Pagination ───── */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
    font-family: var(--font-sans);
}
.archive-pagination .nav-links {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}
.archive-pagination .page-numbers {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--rule);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.archive-pagination .page-numbers:hover { background: var(--paper-soft); color: var(--ink); border-color: var(--rule-strong); }
.archive-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ───── Trust strip — owner-supplied logos / press mentions ───── */
.trust-strip-inner > .logo-pill {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink-faded);
    letter-spacing: -0.01em;
    opacity: 0.7;
    transition: opacity 160ms ease, color 160ms ease;
}
.trust-strip-inner > .logo-pill:hover { opacity: 1; color: var(--ink); }

/* ───── Section dividers — sometimes you just want a clean break ───── */
.divider-rule {
    width: 56px;
    height: 3px;
    background: var(--accent);
    margin: var(--space-6) auto;
    border: 0;
}
