/* Describelo stylesheet v3 – marketing + blog readability + monetización */
/* Generated: 2025-09-24 */

/* ================================================
    1. Design Tokens (Light + Dark)
    ================================================ */
@charset "UTF-8";

:root {
    /* Typography Families */
    --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-head: "DM Sans", "Inter", "Segoe UI", sans-serif;
    /* Type Scale */
    --fs-90: .78rem;
    /* meta */
    --fs-100: .88rem;
    /* micro */
    --fs-200: 1rem;
    /* base 16 */
    --fs-300: 1.125rem;
    /* body alt */
    --fs-400: 1.25rem;
    /* long paragraph */
    --fs-500: clamp(1.35rem, 1.1rem + .9vw, 1.7rem);
    /* section minor */
    --fs-600: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem);
    /* h3 */
    --fs-700: clamp(2.1rem, 1.5rem + 1.9vw, 2.9rem);
    /* h2 */
    --fs-800: clamp(2.7rem, 1.9rem + 2.5vw, 3.4rem);

    /* hero h1 */
    --fs-900: clamp(3.2rem, 2.2rem + 3.2vw, 4.2rem);
    /* splash */
    --lh-tight: 1.18;
    --lh-snug: 1.32;
    --lh-normal: 1.55;
    --lh-loose: 1.75;
    /* Spacing (8pt-ish with micro) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-xs: 2px;
    --space-sm: 6px;
    /* Layout widths */
    --w-narrow: 60ch;
    --w-reading: 72ch;
    --w-wide: 1240px;
    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    /* Palette Light */
    --c-bg: #ffffff;
    --c-bg-alt: #f5f8fb;
    --c-surface: #ffffff;
    --c-surface-alt: #f0f3f8;
    --c-border: #d9e2ec;
    --c-border-strong: #c3ced9;
    --c-text: #1d2430;
    --c-text-soft: #5a6b7f;
    --c-text-faint: #8da0b4;
    --c-primary: #1d70f5;
    --c-primary-rgb: 29,
        112,
        245;
    --c-primary-ink: #0f4fb4;
    --c-secondary: #6c3ff2;
    --c-accent: #ffb400;
    --c-success: #22b37c;
    --c-warning: #e59f17;
    --c-danger: #dc3e3e;
    --g-primary: linear-gradient(135deg, #1d70f5 0%, #6c3ff2 70%);
    --g-hero: radial-gradient(circle at 30% 30%, rgba(109, 164, 255, .35) 0%, rgba(255, 255, 255, 0) 60%);
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .07),
        0 0 0 1px rgba(0, 0, 0, .04);
    --shadow-md: 0 6px 18px -4px rgba(20, 40, 60, .18),
        0 2px 4px rgba(20, 40, 60, .08);
    --shadow-lg: 0 18px 42px -8px rgba(20, 40, 60, .28),
        0 4px 10px rgba(20, 40, 60, .12);
    /* Legacy aliases (compat) */
    --fs-100-legacy: var(--fs-200);
    --fs-200-legacy: var(--fs-300);
    --fs-300-legacy: var(--fs-400);
    --fs-400-legacy: var(--fs-400);
    --c-surface: var(--c-surface);
    --c-surface-alt: var(--c-surface-alt);
    --c-border-legacy: var(--c-border);
    color-scheme: light dark;
}

/* Dark theme (opt-in: add .theme-dark to <html> or <body>) */
.theme-dark {
    --c-bg: #0d1117;
    --c-bg-alt: #161c24;
    --c-surface: #1d2631;
    --c-surface-alt: #253140;
    --c-border: #2f3a47;
    --c-border-strong: #415163;
    --c-text: #e6ebf1;
    --c-text-soft: #b2c0cf;
    --c-text-faint: #7c8a97;
    --c-primary: #4d8dff;
    --c-primary-ink: #1d6ae4;
    --c-secondary: #9777ff;
    --c-accent: #ffcf57;
    --g-hero: radial-gradient(circle at 30% 30%, rgba(77, 141, 255, .22) 0%, rgba(13, 17, 23, 0) 60%);
}

/* Base Reset */
* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.6;
    background: var(--c-bg);
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
}

/* Generic page wrapper limiting horizontal width */
.wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

img,
picture {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color .18s, background .18s, box-shadow .18s;
}

a:hover,
a:focus {
    color: var(--c-primary-ink);
    text-decoration: underline;
}

::selection {
    background: rgba(var(--c-primary-rgb), .18);
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
    2. Typography (Unified Scale)
    ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.18;
    margin: 4rem 0 1.2rem;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -.4px;
}

h2 {
    font-size: 2.1rem;
    letter-spacing: -.2px;
}

h3 {
    font-size: 1.9rem;
}

h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.25;
}

p,
ul,
ol,
blockquote,
figure,
table {
    margin: 1.6rem 0;
}


.article-body p {
    font-size: 1.6rem;
    line-height: 1.6;
}

/* First element trim */
.article-body>h1:first-child,
.article-body>h2:first-child {
    margin-top: 0;
}

small,
.meta {
    font-size: var(--fs-90);
    color: var(--c-text-faint);
    letter-spacing: .03em;
    text-transform: uppercase;
    font-weight: 600;
}

blockquote {
    background: var(--c-surface-alt);
    padding: 1.6rem 2rem;
    border-left: 4px solid var(--c-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    margin: 2.4rem 0;
}

code {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 87%;
    background: var(--c-surface-alt);
    padding: 2px 6px;
    border-radius: 6px;
}

pre {
    margin: var(--space-6) 0;
    padding: var(--space-6);
    background: #111;
    color: #f5f5f5;
    border-radius: var(--radius);
    overflow: auto;
    font-size: 1.3rem;
    line-height: 1.5;
}

table {
    border-collapse: collapse;
    font-size: 90%;
    overflow: auto;
    display: block;
    max-width: 100%;
}

th,
td {
    border: 1px solid var(--c-border);
    padding: 6px 10px;
    text-align: left;
}

/* Gradient Text */
.gradient-text {
    background: var(--g-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ================================================
        2.1 Layout Container
        ================================================ */
.site-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.wide-breakout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* for hero/full bleed if needed */

/* Header adjustments */
.header-wr {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-lnk img+img {
    display: none;
}

/* remove duplicate logo visually */

/* ================================================
    3. Layout Wrappers
    ================================================ */
.page-shell {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.max-reading {
    max-width: var(--w-reading);
    margin: 0 auto;
}

header.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .25);
}

.header-wr {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0 24px;
}

.logo-lnk {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    font-size: 1.8rem;
    color: inherit;
}

.logo-lnk img {
    height: 42px;
    width: auto;
}

main {
    display: block;
    padding-bottom: var(--space-9);
}

@media (min-width:1100px) {
    .layout-rail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: var(--space-7);
    }

    .rail-sticky {
        position: sticky;
        top: 80px;
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
    }
}

/* Sections */
.section {
    padding: var(--space-8) 0;
    position: relative;
}

.section.alt {
    background: var(--c-bg-alt);
}

.section-gradient {
    background: var(--g-hero);
}

.section-narrow .section-inner {
    max-width: var(--w-narrow);
    margin: 0 auto;
}

/* Grid Utility */
.grid {
    --min: 220px;
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
}

.grid.tight {
    gap: var(--space-4);
}

/* ================================================
        9. Home / Listing Page
        ================================================ */
.home-main {
    padding-bottom: var(--space-7);
}

.home-hero {
    padding: var(--space-7) 0 var(--space-6);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
    margin-bottom: var(--space-7);
}

.home-hero__inner {
    display: grid;
    gap: var(--space-4);
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    justify-items: center;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(var(--c-primary-rgb), .08);
    color: var(--c-primary-ink);
    font: 700 var(--fs-90)/1 var(--font-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-hero__title {
    margin: 0;
    font-size: var(--fs-900);
    letter-spacing: -.4px;
    line-height: 1.15;
    max-width: 24ch;
}

.home-hero__lead {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--c-text-soft);
    max-width: 64ch;
}

.home-hero__search {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-4) 0 var(--space-3);
    width: min(100%, 640px);
    justify-items: center;
}

.home-hero__search-field {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 18px 24px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    background: var(--c-bg-alt);
    box-shadow: 0 12px 30px -16px rgba(29, 112, 245, .4);
    transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
    width: 100%;
}

.home-hero__search-field:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), .18), 0 14px 32px -14px rgba(29, 112, 245, .45);
    transform: translateY(-1px);
}

.home-hero__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-faint);
    font-size: 1.6rem;
}

.home-hero__search-field input {
    flex: 1;
    border: none;
    background: transparent;
    font: 500 1.6rem/1.4 var(--font-sans);
    color: var(--c-text);
    padding: 2px 0;
}

.home-hero__search-field input::placeholder {
    color: var(--c-text-faint);
}

.home-hero__search-field input:focus {
    outline: none;
}

.home-hero__search-button {
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--g-primary);
    color: #fff;
    font: 600 var(--fs-200)/1 var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    box-shadow: 0 14px 32px -12px rgba(var(--c-primary-rgb), .45);
    transition: transform .18s ease, filter .18s ease;
}

.home-hero__search-button:hover {
    filter: brightness(.95);
}

.home-hero__search-button:active {
    transform: translateY(1px);
}

.home-hero__meta {
    margin: 0;
    font-size: var(--fs-200);
    color: var(--c-text-faint);
}

.home-latest {
    padding-bottom: var(--space-6);
}

.home-latest__header {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.home-latest__title {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: -.3px;
}

.home-latest__subtitle {
    margin: 0;
    font-size: 1.5rem;
    color: var(--c-text-soft);
    max-width: 60ch;
}

.home-latest__grid {
    display: grid;
    gap: var(--space-6);
    align-items: stretch;
    grid-auto-rows: minmax(auto, 1fr);
}

.home-post {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(var(--c-primary-rgb), .06) 0%, rgba(255, 255, 255, .95) 60%);
    box-shadow: var(--shadow-sm);
    transition: border-color .18s, box-shadow .18s, transform .18s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-post .meta {
    margin-bottom: 0;
    font-size: var(--fs-90);
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--c-text-faint);
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.home-post .meta span:last-child {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(var(--c-primary-rgb), .12);
    color: var(--c-primary-ink);
    font-weight: 600;
    letter-spacing: .04em;
}

.home-post .meta span:first-child:not(:last-child)::after {
    content: "·";
    margin-left: var(--space-2);
}

.home-post h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 1.7rem + 1.4vw, 2.8rem);
    line-height: 1.25;
    letter-spacing: -.3px;
}

.home-post h2 a {
    color: inherit;
    text-decoration: none;
}

.home-post h2 a:hover {
    color: var(--c-primary);
}

.home-post p {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--c-text-soft);
}

.home-post .read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(var(--c-primary-rgb), .12);
    color: var(--c-primary-ink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-post .read-more:hover {
    background: rgba(var(--c-primary-rgb), .18);
    text-decoration: none;
}

.home-post:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.home-ad {
    grid-column: 1 / -1;
    margin: var(--space-4) 0;
    padding: var(--space-4) 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(var(--c-primary-rgb), .06) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: var(--radius-lg);
}

.home-ad__inner {
    width: min(100%, 640px);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.home-ad .ad-slot {
    width: 100%;
}

.front-ad {
    margin: var(--space-5) 0;
    padding: var(--space-4);
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-lg);
    background: rgba(var(--c-primary-rgb), .05);
    display: flex;
    justify-content: center;
}

.front-ad__inner {
    width: min(100%, 620px);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.front-ad .ad-slot {
    width: 100%;
}

.home-author {
    padding: var(--space-8) 0 var(--space-9);
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
}

.home-author .author-note {
    margin: 0 auto;
    max-width: var(--w-reading);
    padding: var(--space-6);
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border-strong);
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.7;
}

.home-author .author-note strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--c-primary-ink);
    margin-bottom: var(--space-2);
}

@media (min-width: 720px) {
    .home-hero__inner {
        gap: var(--space-5);
    }

    .home-hero__search {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .home-hero__search-button {
        justify-self: stretch;
        height: 100%;
    }

    .home-latest__header {
        gap: var(--space-3);
    }

    .home-latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .home-hero__inner {
        max-width: 860px;
    }

    .home-latest__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.author-note {
    margin: var(--space-7) 0 0;
    padding: var(--space-5) var(--space-5) var(--space-5);
    border: 1px solid var(--c-border);
    background: var(--c-surface-alt);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: var(--c-text-soft);
}

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.pagination-links {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.pagination .page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-3);
    font-size: var(--fs-100);
    color: var(--c-text-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s;
}

.pagination .page:hover {
    border-color: var(--c-border-strong);
    color: var(--c-text);
}

.pagination .page.is-current {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
}

.pagination .page.gap {
    border: none;
    min-width: auto;
    padding: 0;
    color: var(--c-text-faint);
}

.pagination-next {
    font-size: var(--fs-100);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--c-primary);
}

.pagination-next:hover {
    color: var(--c-primary-ink);
}

.pagination-prev {
    font-size: var(--fs-100);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--c-primary);
}

.pagination-prev:hover {
    color: var(--c-primary-ink);
}

.pagination-arrows {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-next:hover {
    color: var(--c-primary-ink);
    text-decoration: underline;
}

.footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: var(--space-6) 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 1.3rem;
    color: var(--c-text-soft);
}

@media (min-width:1000px) {
    .home-featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-6);
        margin: var(--space-8) 0 var(--space-2);
    }

    .home-featured-grid .feat {
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        padding: var(--space-5) var(--space-5) var(--space-6);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xs);
        transition: box-shadow .2s, border-color .2s;
    }

    .home-featured-grid .feat:hover {
        box-shadow: var(--shadow-sm);
        border-color: var(--c-border-strong);
    }

    .home-featured-grid .feat h3 {
        margin: 0 0 .8rem;
        font-size: 1.8rem;
        letter-spacing: -.25px;
    }

    .home-featured-grid .feat p {
        margin: 0;
        font-size: 1.4rem;
        line-height: 1.5;
        color: var(--c-text-soft);
    }
}

/* Buttons */
.btn {
    --btn-bg: var(--c-surface-alt);
    --btn-color: var(--c-text);
    --btn-border: var(--c-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 var(--fs-200)/1 var(--font-sans);
    padding: 12px 22px;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-color);
    cursor: pointer;
    transition: background .18s, box-shadow .18s, color .18s, border-color .18s;
    text-decoration: none;
    position: relative;
}

.btn:hover {
    background: var(--c-surface-alt);
}

.btn:active {
    transform: translateY(1px);
}

.btn.primary {
    --btn-bg: var(--c-primary);
    --btn-color: #fff;
    --btn-border: var(--c-primary);
    box-shadow: 0 2px 6px rgba(var(--c-primary-rgb), .4);
}

.btn.primary:hover {
    background: var(--c-primary-ink);
}

.btn.secondary {
    --btn-bg: var(--c-secondary);
    --btn-border: var(--c-secondary);
    --btn-color: #fff;
}

.btn.ghost {
    --btn-bg: transparent;
    --btn-border: rgba(var(--c-primary-rgb), .35);
    --btn-color: var(--c-primary);
}

.btn.ghost:hover {
    background: rgba(var(--c-primary-rgb), .07);
}

.btn.gradient {
    --btn-bg: var(--g-primary);
    --btn-border: transparent;
    color: #fff;
    box-shadow: 0 4px 14px -2px rgba(var(--c-primary-rgb), .5);
}

.btn.gradient:hover {
    filter: brightness(.95);
}

.btn.small {
    padding: 8px 16px;
    font-size: var(--fs-100);
}

.btn.large {
    padding: 16px 30px;
    font-size: var(--fs-300);
}

/* Badges */
.badge {
    display: inline-block;
    font: 600 var(--fs-90)/1 var(--font-sans);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--c-surface-alt);
    color: var(--c-text-soft);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.badge.accent {
    background: var(--c-accent);
    color: #222;
}

.badge.outline {
    background: transparent;
    border: 1px solid var(--c-border-strong);
}

/* Cards */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-xs);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card.headline {
    padding: var(--space-7) var(--space-6);
}

.card-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(var(--c-primary-rgb), .15), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.card-metric {
    align-items: flex-start;
}

.card-metric h3 {
    margin: 0;
    font-size: var(--fs-600);
}

.metric-value {
    font-size: var(--fs-800);
    line-height: 1;
    font-weight: 700;
    background: var(--g-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pricing (basic scaffold) */
.pricing-table {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-6) var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    position: relative;
    box-shadow: var(--shadow-xs);
}

.plan.popular {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(var(--c-primary-rgb), .2), var(--shadow-sm);
}

.plan-header h3 {
    margin: 0;
    font-size: var(--fs-500);
}

.plan-price {
    font-size: var(--fs-700);
    line-height: 1;
    font-weight: 700;
}

/* Testimonials */
.testimonial {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-xs);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 4px var(--c-border);
}

.testimonial-quote {
    font-size: var(--fs-300);
    font-style: italic;
}

/* Callouts */
.callout {
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface-alt);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.callout.info {
    border-color: var(--c-primary);
}

.callout.success {
    border-color: var(--c-success);
}

.callout.warning {
    border-color: var(--c-warning);
}

.callout.danger {
    border-color: var(--c-danger);
}

/* Lists */
.check-list {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0;
    display: grid;
    gap: var(--space-2);
}

.article-list {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0;
    display: grid;
    gap: var(--space-3);
}

.article-list li {
    position: relative;
    padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 36px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(var(--c-primary-rgb), .06) 0%, rgba(255, 255, 255, .96) 80%);
    box-shadow: var(--shadow-xs);
    color: var(--c-text-soft);
}

.article-list li::before {
    content: "✓";
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(var(--c-primary-rgb), .16);
    color: var(--c-primary-ink);
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(var(--c-primary-rgb), .18);
}

.article-list li strong,
.article-list li b {
    color: var(--c-primary-ink);
}

.article-list li+li {
    margin-top: 0;
}

.article-list li>.article-list,
.article-list li>ul,
.article-list li>ol {
    margin-top: var(--space-3);
}

.article-list.article-list--ordered {
    counter-reset: article-list-counter;
}

.article-list.article-list--ordered li {
    counter-increment: article-list-counter;
}

.article-list.article-list--ordered li::before {
    content: counter(article-list-counter);
    font-size: 1.3rem;
}

.article-list.article-list--compact {
    gap: var(--space-2);
}

.post-list>* {
    padding-bottom: var(--space-7);
    border-bottom: 1px solid var(--c-border);
}

.post-list>*:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-success);
    font-size: 1.1em;
    line-height: 1;
}

/* Forms */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-5);
}

.input {
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    font: 400 var(--fs-200)/1.4 var(--font-sans);
    color: var(--c-text);
    transition: border-color .18s, box-shadow .18s;
}

.input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), .25);
}

.input.error {
    border-color: var(--c-danger);
}

.help-text {
    font-size: var(--fs-90);
    color: var(--c-text-faint);
}

/* Meta blocks (blog) */
.post-tag-box {
    margin: var(--space-8) 0 var(--space-6);
    padding: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--c-surface-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.post-tag-box a {
    background: var(--c-surface);
    padding: 4px 12px;
    border: 1px solid var(--c-border);
    border-radius: 24px;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 500;
    color: var(--c-text-soft);
    text-transform: capitalize;
    transition: color .18s, border-color .18s;
}

.post-tag-box a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.author-bio {
    margin: var(--space-8) 0 0;
    padding: var(--space-6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface-alt);
    font-size: var(--fs-300);
}

.author-bio h3 {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-400);
}

/* ================================================
    5. Ads (preserving behavior)
    ================================================ */
.ad-slot {
    display: block;
    max-width: 100%;
    margin: 3.2rem auto;
    min-height: 90px;
    text-align: center;
}

.ad-slot[data-label] {
    position: relative;
    padding-top: var(--space-4);
}

.ad-slot[data-label]::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10px;
    letter-spacing: .05em;
    font-weight: 600;
    color: var(--c-text-faint);
    text-transform: uppercase;
}

.ad-top {
    margin: 2.4rem 0 3.2rem;
}

.ad-inline {
    margin: 3.2rem 0;
}

.ad-end {
    margin: 4.8rem 0 0;
}

.ad-fluid {
    min-height: 200px;
}

.ad-rail {
    width: 100%;
    min-height: 250px;
}

.ad-slot.frame {
    border: 1px dashed var(--c-border);
    padding: var(--space-3);
}

.ad-slot.slim {
    margin: var(--space-5) 0;
}

.ad-sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    z-index: 50;
}

@media (min-width:680px) {
    .ad-sticky-mobile {
        display: none;
    }
}

.ad-slot .adsbygoogle {
    display: block;
    min-height: inherit;
}

/* ================================================
    6. Utilities
    ================================================ */
.flow>*+* {
    margin-top: 2.4rem;
}

.stack-2>*+* {
    margin-top: var(--space-2);
}

.stack-3>*+* {
    margin-top: var(--space-3);
}

.stack-4>*+* {
    margin-top: var(--space-4);
}

.stack-5>*+* {
    margin-top: var(--space-5);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center {
    text-align: center;
}

.text-soft {
    color: var(--c-text-soft);
}

.text-faint {
    color: var(--c-text-faint);
}

.surface {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.muted {
    color: var(--c-text-soft);
}

.shadow-xs {
    box-shadow: var(--shadow-xs);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gradient-bg {
    background: var(--g-primary);
    color: #fff;
}

/* Separators */
.sep {
    height: 1px;
    background: var(--c-border);
    margin: 4.8rem 0;
}

/* prettier light variant for subtle separation */
.sep.soft {
    background: linear-gradient(90deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .08), rgba(0, 0, 0, .04));
}

/* ================================================
    6.1 Table of Contents
    ================================================ */
.toc {
    background: linear-gradient(180deg, rgba(0, 0, 0, .025), rgba(0, 0, 0, .04));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: var(--space-6);
    margin: var(--space-7) 0 var(--space-8);
    max-width: 640px;
    box-shadow: var(--shadow-xs);
}

.toc h2,
.toc h3 {
    margin-top: 0;
    font-size: var(--fs-300);
    letter-spacing: .02em;
}

.toc nav {
    margin: var(--space-4) 0 0;
}

.toc ol,
.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.4rem;
}

.toc li {
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.toc li::before {
    content: "›";
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--c-text-faint);
    font-weight: 600;
}

.toc a {
    color: var(--c-text-soft);
}

.toc a:hover {
    color: var(--c-primary);
}

.toc small {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--fs-90);
    color: var(--c-text-faint);
}

/* ================================================
    6.2 Search Field
    ================================================ */
.site-search {
    position: relative;
    max-width: 420px;
    margin: var(--space-6) 0 var(--space-5);
}

.site-search input[type="search"],
.site-search input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    font: 400 1.4rem/1.2 var(--font-sans);
    color: var(--c-text);
    box-shadow: 0 0 0 0 rgba(var(--c-primary-rgb), 0);
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.site-search input::placeholder {
    color: var(--c-text-faint);
}

.site-search input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), .25);
    outline: 0;
}

.site-search .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: .5;
    pointer-events: none;
}

/* ================================================
    6.3 Header cleanup
    ================================================ */
.header-wr img+img {
    display: none;
}

/* evita doble logo */
/* (Handled above with .header-wr img+img {display:none;} ) */

/* ================================================
        8. Post Template (New)
        ================================================ */
.post-article {
    max-width: var(--w-reading);
    margin: 0 auto;
    padding: var(--space-7) 0;
}

.post-article .post-header {
    margin-bottom: var(--space-7);
}

.post-article .post-title {
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 0 0 var(--space-4);
}

.post-article .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: var(--fs-90);
    text-transform: uppercase;
    color: var(--c-text-faint);
    letter-spacing: .05em;
    font-weight: 600;
}

.post-article .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-article .post-excerpt {
    font-size: 1.9rem;
    line-height: 1.45;
    color: var(--c-text-soft);
    margin: 0 0 var(--space-6);
}

.post-article .post-body {
    font-size: 1.6rem;
    line-height: 1.62;
}

.post-article .post-body h2 {
    margin-top: 4.8rem;
    font-size: 2.4rem;
    letter-spacing: -.25px;
}

.post-article .post-body h3 {
    margin-top: 4rem;
    font-size: 1.9rem;
}

.post-article .post-body h4 {
    margin-top: 3.2rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.post-article figure {
    margin: 3.2rem 0;
}

.post-article figure img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
}

.post-article blockquote {
    margin: 3.2rem 0;
    padding: 2rem 2.4rem;
    background: var(--c-surface-alt);
    border-left: 4px solid var(--c-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.post-article .post-tags {
    margin: var(--space-7) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--fs-100);
}

.post-article .post-tags a {
    background: var(--c-surface-alt);
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--c-text-soft);
    border: 1px solid var(--c-border);
}

.post-article .post-tags a:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.post-article .share-bar {
    margin: var(--space-7) 0 var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-article .share-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-90);
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    color: var(--c-text-soft);
}

.post-article .share-bar a:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

/* Refined TOC inside post */
.post-article .toc {
    margin: var(--space-7) auto var(--space-8);
    background: linear-gradient(180deg, rgba(0, 0, 0, .015), rgba(0, 0, 0, .04));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: var(--space-6) var(--space-6) var(--space-5);
}

.post-article .toc h2 {
    font-size: 1.5rem;
    margin: 0 0 var(--space-5);
    letter-spacing: .02em;
}

.post-article .toc ol,
.post-article .toc ul {
    gap: 8px;
    font-size: 1.4rem;
}

.post-article .toc li {
    padding-left: 18px;
}

.post-article .toc li::before {
    left: 0;
}

@media (min-width:860px) {
    .post-layout {
        display: grid;
        grid-template-columns: 1fr minmax(auto, 240px);
        gap: var(--space-8);
        align-items: start;
    }

    .post-layout .sidebar {
        position: sticky;
        top: 90px;
        align-self: start;
    }

    .post-article {
        padding-top: var(--space-8);
    }

    .post-article .post-title {
        font-size: clamp(3.2rem, 2.4rem + 1vw, 3.8rem);
    }
}