/* ── TOKENS (same palette as original) ── */
:root {
    --paper: #f7f2ea;
    --paper-warm: #efe6d6;
    --ink: #1a1410;
    --ink-2: #3a2f28;
    --muted: #7a6a5e;
    --border: #e3d8c6;
    --accent: #b8331f;
    --accent-soft: #8f2614;
    --card: #fffaf2;
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 0px !important;
}

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

img {
    display: block;
    max-width: 100%;
}

/* ── HELPERS ── */
.serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.accent {
    color: var(--accent);
}

.muted {
    color: var(--muted);
}

em.brand {
    font-style: italic;
    color: var(--accent);
    font-family: 'Instrument Serif', serif;
}

/* ── ANIMATIONS ── */
@keyframes pulse {
    50% {
        opacity: .35;
    }
}

@keyframes tick {
    to {
        transform: translateX(-50%);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .55s ease both;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

.delay-4 {
    animation-delay: .45s;
}

/* ════════════════════════════════════════
       NAV
    ════════════════════════════════════════ */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0px;
    background: rgba(247, 242, 234, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
	max-width:1280px;
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    letter-spacing: -.01em;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    color: var(--muted);
}

.navlinks a:hover {
    color: var(--ink);
}

.btn {
    background: var(--accent);
    color: #fff;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: background .15s;
    display: inline-block;
}

.btn:hover {
    background: var(--accent-soft);
}

/* mobile nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .2s;
}

@media(max-width:760px) {
    .navlinks a:not(.btn) {
        display: none;
    }
}

/* ════════════════════════════════════════
       SECTION WRAPPER
    ════════════════════════════════════════ */
section {
    padding: 60px 0px;
    border-bottom: 1px solid var(--border);
    max-width: 1280px;
    margin: 0 auto;
}



header,
footer,
#masthead,
#colophon {
    display: none !important;
}

.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-top: 0px !important;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-head {
    margin-bottom: 36px;
}

.section-head h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -.015em;
}

.row-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
}

.row-head .section-label {
    margin-bottom: 0;
}

.row-head a {
    font-size: 12px;
    color: var(--muted);
}

.row-head a:hover {
    color: var(--accent);
}

/* ════════════════════════════════════════
       HERO
    ════════════════════════════════════════ */
.hero {
    padding: 80px 40px 72px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 72px;
    align-items: center;
}

@media(max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.kicker::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
}

h1.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(46px, 7vw, 86px);
    line-height: 1.02;
    letter-spacing: -.028em;
    font-weight: 400;
}

.hero p.lead {
    margin-top: 26px;
    max-width: 520px;
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.7;
}

.hero-ctas {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-lg {
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: .15s;
    display: inline-block;
}

.btn-lg:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: .15s;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.meta-row {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 12.5px;
    color: var(--muted);
}

:root :where(.is-layout-flow)> :last-child {
    padding: 0 !important;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-right: 7px;
    animation: pulse 2s infinite;
}

.vsep {
    width: 1px;
    height: 13px;
    background: var(--border);
}

/* hero visual — SERP card */
.hero-visual {
    position: relative;
}

.serp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 32px 64px -28px rgba(26, 20, 16, .26), 0 1px 0 rgba(255, 255, 255, .65) inset;
    transform: rotate(-1.2deg);
    position: relative;
}

.serp-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(184, 51, 31, .15), transparent 60%);
    pointer-events: none;
}

.serp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.serp-head .live {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.serp-rows {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.serp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(247, 242, 234, .5);
}

.serp-row .kw {
    font-family: 'Instrument Serif', serif;
    font-size: 15px;
}

.serp-row .delta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.up {
    background: rgba(34, 128, 62, .12);
    color: #226a3a;
}

.down {
    background: rgba(184, 51, 31, .14);
    color: var(--accent);
}

.stamp {
    position: absolute;
    right: -12px;
    top: -12px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: .2em;
    padding: 7px 12px;
    border-radius: 3px;
    transform: rotate(6deg);
}

/* ════════════════════════════════════════
       TICKER
    ════════════════════════════════════════ */
.ticker-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    background: var(--paper-warm);
}

.ticker {
    display: inline-flex;
    animation: tick 55s linear infinite;
}

.ticker span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 32px;
}

.ticker .bullet {
    color: var(--accent);
    margin-right: 8px;
}

/* ════════════════════════════════════════
       STATS
    ════════════════════════════════════════ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:760px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat {
    background: var(--card);
    padding: 28px 26px;
}

.stat .n {
    font-family: 'Instrument Serif', serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -.025em;
}

.stat .n em {
    font-style: italic;
    color: var(--accent);
}

.stat .l {
    margin-top: 10px;
    font-size: 10.5px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ════════════════════════════════════════
       FEATURED
    ════════════════════════════════════════ */
.grid-feat {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:860px) {
    .grid-feat {
        grid-template-columns: 1fr;
    }
}

.feat-main {
    background: var(--card);
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feat-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 51, 31, .09), transparent 70%);
    pointer-events: none;
}

.feat-main h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    line-height: 1.25;
    margin: 16px 0 14px;
    position: relative;
}

.feat-main p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    position: relative;
    margin-bottom: 10px;
}

.feat-main .more {
    margin-top: 20px;
    color: var(--accent);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feat-main .more:hover {
    gap: 10px;
}

.side-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
}

.side-card {
    background: var(--card);
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .15s;
}

.side-card:hover {
    background: var(--paper-warm);
}

.tag-mini {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.side-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.side-card .meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 14px;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    background: rgba(184, 51, 31, .13);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 3px;
    width: fit-content;
    position: relative;
}

/* ════════════════════════════════════════
       ARTICLE CARDS (3-col)
    ════════════════════════════════════════ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:860px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 100% !important;
        margin-top: 0px !important;
        padding: 20px 20px !important;
    }

}

.card {
    background: var(--card);
    padding: 26px;
    transition: background .15s;
    display: block;
}

.card:hover {
    background: var(--paper-warm);
}

.card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 19px;
    line-height: 1.3;
    margin: 12px 0;
    font-weight: 400;
}

.card .excerpt {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
}

.card .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

/* ════════════════════════════════════════
       TOPIC CHIPS
    ════════════════════════════════════════ */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: .15s;
    font-family: 'DM Sans', sans-serif;
}

.chip:hover,
.chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(184, 51, 31, .08);
}

/* ════════════════════════════════════════
       SIX PILLARS
    ════════════════════════════════════════ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:860px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
}

.cat {
    background: var(--card);
    padding: 30px;
    transition: background .15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat:hover {
    background: var(--paper-warm);
}

.cat .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--accent);
}

.cat h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 400;
}

.cat p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.cat .link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 6px;
}

/* ════════════════════════════════════════
       TIMELINE
    ════════════════════════════════════════ */
.timeline-section {
    background: rgba(239, 230, 214, .45);
}

.tl-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

@media(max-width:760px) {
    .tl-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.tl-grid h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 12px;
}

.tl-row {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.tl-row:last-child {
    border: 0;
}

.tl-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.tl-title {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.45;
}

.tl-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: rgba(184, 51, 31, .13);
    color: var(--accent);
    padding: 5px 9px;
    border-radius: 3px;
    white-space: nowrap;
}

/* ════════════════════════════════════════
       TESTIMONIALS / QUOTES
    ════════════════════════════════════════ */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:860px) {
    .quotes {
        grid-template-columns: 1fr;
    }
}

.quote {
    background: var(--card);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quote-mark {
    font-family: 'Instrument Serif', serif;
    font-size: 48px;
    color: var(--accent);
    line-height: .8;
}

.quote p {
    font-family: 'Instrument Serif', serif;
    font-size: 17.5px;
    line-height: 1.5;
    color: var(--ink-2);
    flex: 1;
}

.quote .who {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e08066);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Instrument Serif', serif;
    font-size: 14px;
    flex-shrink: 0;
}

.who .name {
    font-size: 13px;
    color: var(--ink);
}

.who .role {
    font-size: 11px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .05em;
}

/* ════════════════════════════════════════
       ★ NEW: FREE TOOLS SECTION
    ════════════════════════════════════════ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:860px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: var(--card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background .15s;
}

.tool-card:hover {
    background: var(--paper-warm);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(184, 51, 31, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tool-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    font-weight: 400;
}

.tool-card p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.tool-card .tool-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ════════════════════════════════════════
       ★ ABOUT / AUTHOR BAND
    ════════════════════════════════════════ */
.about-band {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: center;
}

@media(max-width:860px) {
    .about-band {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.about-visual {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    text-align: center;
}

/* Profile photo ring */
.about-photo-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
}

.about-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0%, #e08066 40%, var(--paper-warm) 60%, var(--accent) 100%);
    z-index: 0;
}

.about-photo-wrap::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: var(--card);
    z-index: 1;
    margin: 3px;
}

.about-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Fallback if no image — show initials */
.about-photo-fallback {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e08066);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 38px;
    color: #fff;
}

.about-visual .name {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    line-height: 1.2;
}

.about-visual .role {
    font-size: 10.5px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Social links row */
.about-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.about-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
    color: var(--muted);
    text-decoration: none;
}

.about-social-link:hover {
    border-color: var(--accent);
    background: rgba(184, 51, 31, .08);
    color: var(--accent);
}

.about-social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.about-copy h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(26px, 3.5vw, 40px);
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 18px;
}

.about-copy p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 12px;
}

.credential-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.credential {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: rgba(184, 51, 31, .1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 3px;
}

/* ════════════════════════════════════════
       ★ NEW: POPULAR THIS WEEK (horizontal scroll on mobile)
    ════════════════════════════════════════ */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

@media(max-width:900px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:500px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
}

.trend-card {
    background: var(--card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .15s;
}

.trend-card:hover {
    background: var(--paper-warm);
}

.trend-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 500;
    color: rgba(184, 51, 31, .18);
    line-height: 1;
}

.trend-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 400;
    flex: 1;
}

.trend-card .meta {
    font-size: 11px;
    color: var(--muted);
}

/* ════════════════════════════════════════
       ★ NEW: QUICK SEARCH BAR
    ════════════════════════════════════════ */
.search-band {
    background: var(--paper-warm);
    padding: 32px 40px !important;
}

.search-inner {
    max-width: 640px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 2px 12px rgba(26, 20, 16, .06);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 15px 20px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.search-bar input::placeholder {
    color: #b8a896;
}

.search-bar button {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 15px 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background .15s;
}

.search-bar button:hover {
    background: var(--accent-soft);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.search-tag {
    font-size: 11.5px;
    color: var(--muted);
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .08em;
}

.search-tag::before {
    content: '↗ ';
    color: var(--accent);
}

.search-tag:hover {
    color: var(--accent);
}

/* ════════════════════════════════════════
       NEWSLETTER
    ════════════════════════════════════════ */
.nl-section {
    background: linear-gradient(135deg, var(--paper-warm), var(--paper));
    text-align: center;
}

.nl-inner {
    max-width: 560px;
    margin: 0 auto;
}

.nl-inner h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 400;
    margin: 14px 0 12px;
}

.nl-inner p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.65;
}

.nl-perks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.nl-perk {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nl-perk::before {
    content: '✓';
    color: var(--accent);
}

.nl-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
}

.nl-form input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    font-family: inherit;
}

.nl-form input::placeholder {
    color: #b8a896;
}

.nl-form button {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.nl-form button:hover {
    background: var(--accent-soft);
}

.nl-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 12px;
}

/* ════════════════════════════════════════
       FOOTER
    ════════════════════════════════════════ */
.footermain {
    padding: 36px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
}

.footermain .logo {
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
}

.footermain p,
.footermain .links a {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .03em;
}

.links {
    display: flex;
    gap: 20px;
}

.links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--muted);
    transition: .15s;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ════════════════════════════════════════
       BACK TO TOP
    ════════════════════════════════════════ */
#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 40;
    width: 38px;
    height: 38px;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity .25s;
}

#btt.show {
    opacity: 1;
}

#btt:hover {
    background: var(--accent);
}



@media (max-width: 768px) {

    .has-global-padding {
        padding: 0px !important;
    }

    .tl-row {
        grid-template-columns: unset;
    }

    .stats-wrap {
        padding: 0 !important;
    }
}


/* ════════════════════════════════════════
       FOOTER
    ════════════════════════════════════════ */
.links {
    align-items: center;
}

.footermain {
    padding: 20px 40px;
    display: flex;
    background: linear-gradient(135deg, var(--paper-warm), var(--paper));
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
    margin-top: 35px !important;
}

:root :where(.is-layout-flow)> :last-child {
    padding: 0px !important;
}

.footermain .logo {
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
}

.footermain p,
.footermain .links a {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .03em;
    margin: 0 !important;
    text-decoration: none;
}

.links {
    display: flex;
    gap: 20px;
}

.links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--muted);
    transition: .15s;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ════════════════════════════════════════
       BACK TO TOP
    ════════════════════════════════════════ */
#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 40;
    width: 38px;
    height: 38px;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity .25s;
}

#btt.show {
    opacity: 1;
}

#btt:hover {
    background: var(--accent);
}

.logo img {
    max-width: 280px;
    position: relative;
    top: 10px;
    width: 100%;
    height: 100%;
}


@media (max-width: 768px) {

    .has-global-padding {
        padding: 0px !important;
    }

    .footermain {
        justify-content: center;
    }

    .tl-row {
        grid-template-columns: unset;
    }

    .links {
        display: flex;
        gap: 7px;
    }

    .stats-wrap {
        padding: 0 !important;
    }
}


/* ════════════════════════════════════════
   SEARCH ICON BUTTON IN NAV
════════════════════════════════════════ */
.nav-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    line-height: 1;
    flex-shrink: 0;
}

.nav-search-btn:hover {
    color: var(--ink);
    background: var(--paper-warm);
}

/* ════════════════════════════════════════
   MOBILE HAMBURGER (from home.html)
════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .2s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--paper);
    border-left: 1px solid var(--border);
    z-index: 100;
    padding: 28px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-navlinks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.mobile-navlinks li a {
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    display: block;
}

.mobile-navlinks li a:hover {
    color: var(--ink);
}

.mobile-navlinks .btn {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    nav .navlinks a:not(.btn) {
        display: none;
    }

    nav .navlinks .nav-search-btn {
        display: none;
    }

    nav .navlinks .btn {
        display: inline-block;
    }
}

/* ════════════════════════════════════════
   SEARCH OVERLAY BACKDROP
════════════════════════════════════════ */
.search-overlay-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, .5);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    transition: opacity .2s ease;
}

.search-overlay-backdrop.open {
    opacity: 1;
}

/* ════════════════════════════════════════
   SEARCH OVERLAY PANEL
════════════════════════════════════════ */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: min(780px, 96vw);
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    z-index: 201;
    padding: 28px 32px 32px;
    box-shadow: 0 20px 60px rgba(26, 20, 16, .18);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.search-overlay.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.search-overlay-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.search-overlay-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.search-overlay-close:hover {
    color: var(--ink);
}

.search-overlay-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 16px;
    background: var(--paper);
    transition: border-color .15s;
}

.search-overlay-bar:focus-within {
    border-color: var(--accent);
}

.search-overlay-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
    outline: none;
}

.search-overlay-bar input::placeholder {
    color: var(--muted);
}

.search-overlay-clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 17px;
    padding: 0 4px;
    line-height: 1;
}

.search-overlay-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.search-overlay-tag {
    font-size: 11.5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    font-family: 'DM Sans', sans-serif;
}

.search-overlay-tag:hover,
.search-overlay-tag.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(184, 51, 31, .06);
}

.search-overlay-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 20px 0 12px;
}

.search-overlay-results-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-height: 55vh;
    overflow-y: auto;
}

.search-overlay-result-item {
    background: var(--card);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}

.search-overlay-result-item:hover {
    background: var(--paper-warm);
}

.search-overlay-result-title {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
}

.search-overlay-result-excerpt {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-overlay-result-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

.search-overlay-none {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    margin-top: 16px;
}

/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */
#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, background .15s;
    z-index: 99;
}

#btt.show {
    opacity: 1;
    pointer-events: auto;
}

#btt:hover {
    background: var(--accent);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footermain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    border-top: 1px solid var(--border);
    background: var(--paper-warm);
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.footermain .logo img {
    max-width: 140px;
    top: 0;
}

.footermain .links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footermain .links a {
    color: var(--muted);
    transition: color .15s;
}

.footermain .links a:hover {
    color: var(--ink);
}

@media (max-width: 768px) {
    .footermain {
        justify-content: center;
        text-align: center;
    }

    .footermain .links {
        display: flex;
        gap: 7px;
    }
}

/* Fix WP block editor padding */
.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-top: 0px !important;
}

@media (max-width: 600px) {

   .hero, .content-wrap {
        padding-left: 20px ! IMPORTANT;
        padding-right: 20px ! IMPORTANT;
    }
}


