/* =========================================================
   Tecnoiglesia Ghost Theme — screen.css
   Estética: dark #0d0d0d, acento #ff5001
   Layout moderno magazine + bento featured + cards minimal
   ========================================================= */

:root {
    --color-primary: #ff5001;
    --color-primary-hover: #ff8a4d;
    --color-primary-soft: rgba(255, 80, 1, 0.12);
    --color-bg: #0d0d0d;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.65);
    --color-text-dim: rgba(255, 255, 255, 0.45);
    --radius-sm: .5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --max-w: 1240px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 1. Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    font-feature-settings: 'ss01', 'cv11';
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.022em;
}

p { margin: 0 0 1em; }

::selection { background: rgba(255, 80, 1, 0.3); color: #fff; }

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

/* ---------- 2. Background atmosphere ---------- */

.site-bg {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.halftone-overlay {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.5;
}
.ambient-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(140px);
    opacity: 0.35;
}
.ambient-glow-1 {
    width: 700px; height: 700px;
    background: rgba(255, 80, 1, 0.12);
    top: -250px; left: -250px;
}
.ambient-glow-2 {
    width: 500px; height: 500px;
    background: rgba(139, 92, 246, 0.08);
    bottom: -200px; right: -150px;
}

/* ---------- 3. Containers & utilities ---------- */

.site-main { position: relative; z-index: 1; min-height: calc(100vh - 200px); }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Eyebrow heading style */
.section-eyebrow {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.section-eyebrow-row { justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.eyebrow-text {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-text-muted);
    margin: 0;
}
.eyebrow-bar {
    display: inline-block;
    width: 28px; height: 2px;
    background: var(--color-primary);
    border-radius: 9999px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--color-primary-hover);
    font-size: .875rem;
    font-weight: 600;
    transition: gap .25s var(--ease);
}
.text-link:hover { gap: .55rem; color: var(--color-primary); }

/* Pulse dot */
.dot-pulse {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(255,80,1,0.8);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.25); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 9999px;
    background: var(--color-primary-soft);
    border: 1px solid rgba(255, 80, 1, 0.25);
    font-size: .8rem;
    color: #ff9466;
    font-weight: 500;
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: all .2s var(--ease);
    white-space: nowrap;
}
.chip-orange {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    border: 1px solid rgba(255, 80, 1, 0.3);
}
.chip-orange:hover {
    background: rgba(255, 80, 1, 0.2);
    border-color: rgba(255, 80, 1, 0.5);
}
.chip-outline {
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.chip-outline:hover {
    color: var(--color-primary-hover);
    border-color: rgba(255, 80, 1, 0.4);
    background: var(--color-primary-soft);
}

/* Post meta */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    color: var(--color-text-dim);
    font-size: .825rem;
}
.post-meta-sm { font-size: .75rem; }
.meta-avatar {
    width: 24px; height: 24px;
    border-radius: 9999px;
    object-fit: cover;
    margin-right: .15rem;
}
.meta-name { color: var(--color-text-muted); font-weight: 500; }
.meta-sep { color: var(--color-text-dim); opacity: .6; }

/* ---------- 4. Gradient text ---------- */

.text-gradient-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 35%, #ff9466 75%, #ff5001 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.text-gradient-animated {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover), var(--color-primary), var(--color-primary-hover));
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- 5. Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all .25s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(145deg, #ff6a1a 0%, #ff5001 50%, #e84800 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 80, 1, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 80, 1, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
    background: var(--color-surface);
    color: #fff;
    border-color: var(--color-border-hover);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-block { width: 100%; }

/* ---------- 6. Header ---------- */

.site-header {
    position: sticky; top: 0;
    z-index: 50;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(13, 13, 13, 0.85);
    border-bottom-color: var(--color-border);
}

.site-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.site-logo img { height: 32px; width: auto; }
.site-logo-text {
    background: linear-gradient(90deg, #fff, var(--color-primary-hover));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.site-nav a {
    font-size: .9rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    position: relative;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--color-primary-hover); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-actions { display: flex; align-items: center; gap: .5rem; }
.site-actions .btn { padding: .55rem 1.05rem; font-size: .82rem; font-weight: 500; }
.site-actions .btn-primary { font-weight: 600; }

.mobile-toggle { display: none; flex-direction: column; gap: 4px; padding: .5rem; }
.mobile-toggle span {
    width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.mobile-nav { display: none; padding: 1rem 1.5rem 2rem; background: rgba(13, 13, 13, 0.95); border-bottom: 1px solid var(--color-border); }
.mobile-nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--color-border); color: #fff; font-size: 1rem; font-weight: 500; }
.mobile-actions { display: flex; flex-direction: column; gap: .5rem; }

@media (max-width: 900px) {
    .site-nav, .site-actions { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-nav { display: block; }
    .mobile-nav[hidden] { display: none; }
}

/* Header centered variant */
.site-header-centered .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.site-header-centered .site-logo { grid-column: 2; justify-self: center; }
.site-header-centered .site-nav { order: -1; justify-content: flex-start; }
.site-header-centered .site-actions { justify-self: end; }
@media (max-width: 900px) {
    .site-header-centered .site-header-inner { grid-template-columns: auto 1fr auto; }
    .site-header-centered .site-logo { grid-column: 1; justify-self: start; }
}

/* ---------- 7. Hero ---------- */

.hero {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    overflow: hidden;
}
.hero.has-cover { padding-top: 8rem; padding-bottom: 6rem; }

.hero-cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.18;
    z-index: 0;
}
.hero-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.92) 70%, var(--color-bg) 100%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(140px);
    pointer-events: none;
}
.hero-glow-a {
    width: 600px; height: 600px;
    background: rgba(255, 80, 1, 0.25);
    top: -150px; right: -150px;
}
.hero-glow-b {
    width: 500px; height: 500px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -100px; left: -100px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border-hover);
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 1.75rem;
    max-width: 14ch;
}

.hero-description {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 580px;
    line-height: 1.55;
    margin-bottom: 2.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-width: 720px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.05rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    font-size: .85rem;
    color: rgba(255,255,255,0.85);
    transition: all .25s var(--ease);
    backdrop-filter: blur(8px);
}
.hero-tag small {
    font-size: .7rem;
    color: var(--color-text-dim);
    background: var(--color-bg);
    border-radius: 9999px;
    padding: .15rem .45rem;
    line-height: 1;
}
.hero-tag:hover {
    background: var(--color-primary-soft);
    border-color: rgba(255, 80, 1, 0.4);
    color: var(--color-primary-hover);
    transform: translateY(-1px);
}
.hero-tag:hover small { color: var(--color-primary-hover); }

/* ---------- 8. Bento featured ---------- */

.bento-section { padding: 3rem 0 5rem; position: relative; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.25rem;
}
@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 1.5rem;
        min-height: 540px;
    }
    .bento-hero { grid-row: span 2; }
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 31, 38, 0.5) 0%, rgba(20, 20, 24, 0.5) 100%);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .4s var(--ease), border-color .25s var(--ease), box-shadow .4s var(--ease);
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 80, 1, 0.35);
    box-shadow: 0 30px 60px -25px rgba(255, 80, 1, 0.25);
}

/* Bento hero (big card) */
.bento-hero {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}
@media (min-width: 900px) {
    .bento-hero { display: grid; grid-template-rows: 1fr auto; }
}

.bento-hero-image {
    display: block;
    position: relative;
    flex: 1;
    min-height: 240px;
    overflow: hidden;
}
.bento-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.bento-hero:hover .bento-hero-image img { transform: scale(1.04); }
.bento-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13,13,13,0.7) 100%);
}

.bento-hero-content {
    padding: 1.75rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.bento-hero-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.025em;
}
.bento-hero-title a { color: #fff; }
.bento-hero:hover .bento-hero-title a { color: var(--color-primary-hover); }
.bento-hero-excerpt {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bento side (small cards) */
.bento-side {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 0;
}
@media (max-width: 600px) {
    .bento-side { grid-template-columns: 100px 1fr; }
}
.bento-side-image {
    display: block;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 140px;
}
.bento-side-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.bento-side:hover .bento-side-image img { transform: scale(1.06); }

.bento-side-content {
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .55rem;
}
.bento-side-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bento-side-title a { color: #fff; }
.bento-side:hover .bento-side-title a { color: var(--color-primary-hover); }

/* ---------- 9. Posts grid ---------- */

.posts-section { padding: 4rem 0; position: relative; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}

.post-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31,31,38,0.4) 0%, rgba(20,20,24,0.4) 100%);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .4s var(--ease), border-color .25s var(--ease), box-shadow .4s var(--ease);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 80, 1, 0.3);
    box-shadow: 0 20px 50px -20px rgba(255, 80, 1, 0.2);
}

.post-card-image-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.post-card-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.post-card:hover .post-card-image { transform: scale(1.05); }

.post-card-tag-overlay {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: .35rem .75rem;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-hover);
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
}

.post-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(255,80,1,0.08), rgba(139,92,246,0.06));
    color: rgba(255, 80, 1, 0.4);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    border-bottom: 1px solid var(--color-border);
    transition: color .3s var(--ease);
}
.post-card:hover .post-card-no-image { color: rgba(255, 80, 1, 0.7); }
.post-card-no-image-mark { transform: translateY(-.1em); }

.post-card-content {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    flex: 1;
}

.post-card-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-title a { color: #fff; }
.post-card:hover .post-card-title a { color: var(--color-primary-hover); }

.post-card-excerpt {
    color: var(--color-text-muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 10. Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    color: var(--color-text-muted);
    font-size: .9rem;
}
.pagination a {
    padding: .65rem 1.25rem;
    border: 1px solid var(--color-border-hover);
    border-radius: 9999px;
    background: var(--color-surface);
    transition: all .25s var(--ease);
}
.pagination a:hover {
    border-color: rgba(255, 80, 1, 0.5);
    color: var(--color-primary-hover);
    background: var(--color-primary-soft);
}

/* ---------- 11. Newsletter section ---------- */

.newsletter-section {
    padding: 4rem 1.5rem 6rem;
    max-width: var(--max-w);
    margin: 0 auto;
}
.newsletter-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 80, 1, 0.25);
    background: linear-gradient(135deg, rgba(255,80,1,0.08) 0%, rgba(139,92,246,0.05) 100%);
}
.newsletter-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(255,80,1,0.18), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(139,92,246,0.1), transparent 60%);
    pointer-events: none;
}
.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto;
}
.newsletter-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin: 1.25rem 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.newsletter-description {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Subscribe form */
.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-width: 480px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}
.subscribe-form input {
    flex: 1 1 240px;
    padding: .9rem 1.2rem;
    font-size: .95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-hover);
    border-radius: 9999px;
    color: #fff;
    backdrop-filter: blur(8px);
    transition: all .2s var(--ease);
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form input:focus {
    outline: none;
    border-color: rgba(255, 80, 1, 0.5);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(255, 80, 1, 0.1);
}
.subscribe-form .btn { padding: .9rem 1.6rem; }

.form-msg {
    width: 100%;
    margin-top: .75rem;
    font-size: .85rem;
    display: none;
}
.form-msg-success { color: #4ade80; }
.form-msg-error { color: #f87171; }
.success .form-msg-success,
.error .form-msg-error { display: block; }

/* ---------- 12. Post full ---------- */

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    z-index: 100;
    transition: width .05s linear;
    box-shadow: 0 0 12px rgba(255, 80, 1, 0.6);
}

.post-full { position: relative; }

.post-full-header {
    padding: 5rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}
.post-full-header::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(255, 80, 1, 0.2), transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.post-full-header-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.post-full-tag {
    display: inline-block;
    padding: .4rem .95rem;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-radius: 9999px;
    border: 1px solid rgba(255, 80, 1, 0.3);
    margin-bottom: 1.75rem;
}

.post-full-title {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    color: #fff;
}

.post-full-excerpt {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.post-full-meta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.post-full-author {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-align: left;
}
.post-full-author-avatar {
    width: 48px; height: 48px;
    border-radius: 9999px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    border: 2px solid var(--color-border-hover);
}
.post-full-author-name {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}
.post-full-meta-info {
    margin: 0;
    font-size: .8rem;
    color: var(--color-text-dim);
    display: flex;
    gap: .4rem;
    align-items: center;
}

.post-full-feature-image {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.post-full-feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.post-full-feature-image figcaption {
    text-align: center;
    color: var(--color-text-dim);
    font-size: .85rem;
    margin-top: .75rem;
}

.post-full-content {
    padding: 0 1.5rem 4rem;
}
.post-content {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,0.88);
    font-size: 1.075rem;
    line-height: 1.78;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #fff;
    margin: 2.5em 0 .6em;
    line-height: 1.25;
    letter-spacing: -0.022em;
}
.post-content h2 { font-size: 1.95rem; }
.post-content h3 { font-size: 1.55rem; }
.post-content h4 { font-size: 1.225rem; }

.post-content p { margin: 0 0 1.5em; }
.post-content a {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-decoration-color: rgba(255,138,77,0.4);
    text-underline-offset: 3px;
    transition: color .2s var(--ease);
}
.post-content a:hover { color: var(--color-primary); }
.post-content strong { color: #fff; font-weight: 700; }
.post-content em { color: rgba(255,255,255,0.95); }

.post-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: .5em 0 .5em 1.5em;
    margin: 2em 0;
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 1.18rem;
    background: linear-gradient(90deg, rgba(255,80,1,0.05), transparent);
    border-radius: 0 .5rem .5rem 0;
}

.post-content code {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: .875em;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    padding: .15em .45em;
    border-radius: .35em;
    border: 1px solid rgba(255, 80, 1, 0.15);
}
.post-content pre {
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--color-border);
    padding: 1.25em 1.5em;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2em 0;
    font-size: .875rem;
    line-height: 1.6;
}
.post-content pre code {
    background: none; color: rgba(255,255,255,0.9);
    border: none; padding: 0;
}

.post-content ul,
.post-content ol { padding-left: 1.5em; margin: 0 0 1.5em; }
.post-content li { margin-bottom: .5em; }
.post-content li::marker { color: var(--color-primary); }

.post-content img,
.post-content figure { max-width: 100%; margin: 2em auto; border-radius: var(--radius); }
.post-content hr {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
    margin: 3em 0;
}
.post-content figcaption {
    text-align: center;
    font-size: .85rem;
    color: var(--color-text-dim);
    margin-top: .5rem;
}

/* Author bio */
.author-bio {
    max-width: 720px;
    margin: 3rem auto 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(31,31,38,0.5) 0%, rgba(20,20,24,0.5) 100%);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
@media (max-width: 600px) {
    .author-bio { flex-direction: column; align-items: center; text-align: center; }
}
.author-bio-avatar {
    width: 72px; height: 72px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    border: 2px solid var(--color-border-hover);
}
.author-bio-content h4 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    color: #fff;
}
.author-bio-content .author-role {
    font-size: .825rem;
    color: var(--color-text-dim);
    margin: 0 0 .75rem;
}
.author-bio-content p {
    color: var(--color-text-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- 13. Ghost Koenig cards ---------- */

.kg-bookmark-card,
.kg-bookmark-container {
    background: linear-gradient(135deg, rgba(31,31,38,0.55) 0%, rgba(20,20,24,0.55) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s var(--ease);
}
.kg-bookmark-container:hover { border-color: rgba(255, 80, 1, 0.35); }
.kg-bookmark-title { color: #fff !important; }
.kg-bookmark-description { color: var(--color-text-muted) !important; }
.kg-bookmark-metadata { color: var(--color-text-dim) !important; }

.kg-callout-card {
    background: var(--color-primary-soft);
    border: 1px solid rgba(255, 80, 1, 0.25);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
}

.post-content .kg-width-wide,
.post-content figure.kg-width-wide {
    width: 100vw;
    max-width: 1100px;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius);
}
.post-content .kg-width-wide img {
    width: 100%;
    border-radius: var(--radius);
}

.post-content .kg-width-full,
.post-content figure.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}
.post-content .kg-width-full img {
    width: 100%;
    border-radius: 0;
}

.post-content .kg-image-card.kg-width-wide,
.post-content .kg-image-card.kg-width-full { margin-top: 2.5em; margin-bottom: 2.5em; }

.post-content .kg-gallery-container { display: flex; flex-direction: column; gap: .75rem; margin: 2em 0; }
.post-content .kg-gallery-row { display: flex; flex-direction: row; gap: .75rem; }
.post-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: .75em; }

.post-content .kg-embed-card { margin: 2em 0; display: flex; flex-direction: column; align-items: center; }
.post-content .kg-embed-card iframe { max-width: 100%; }

.post-content .kg-toggle-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5em 0;
}
.post-content .kg-toggle-card .kg-toggle-heading-text { color: #fff; }

.post-content .kg-header-card {
    padding: 3em 1.5em;
    text-align: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,80,1,0.12), rgba(139,92,246,0.08));
    border: 1px solid rgba(255, 80, 1, 0.25);
    margin: 2em 0;
}

.post-content .kg-button-card { text-align: center; margin: 2em 0; }
.post-content .kg-button-card a {
    display: inline-flex;
    align-items: center;
    padding: .8rem 1.5rem;
    background: linear-gradient(145deg, #ff6a1a 0%, #ff5001 50%, #e84800 100%);
    color: #fff !important;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(255, 80, 1, 0.35);
}

/* ---------- 14. Tags footer (post) ---------- */

.post-full-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.post-full-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.post-tag {
    padding: .4rem .85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-hover);
    border-radius: 9999px;
    font-size: .8rem;
    color: var(--color-text-muted);
    transition: all .2s var(--ease);
}
.post-tag:hover {
    border-color: rgba(255, 80, 1, 0.5);
    color: var(--color-primary-hover);
    background: var(--color-primary-soft);
}

/* ---------- 15. CTA banner (post) ---------- */

.cta-banner {
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    max-width: 1100px;
}
.cta-banner-inner {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,80,1,0.12), rgba(139,92,246,0.08));
    border: 1px solid rgba(255, 80, 1, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cta-banner-inner::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 50% 0%, rgba(255,80,1,0.18), transparent 60%);
    pointer-events: none;
}
.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: .5rem;
    color: #fff;
    position: relative;
}
.cta-banner p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    position: relative;
}
.cta-banner .btn { position: relative; }

/* ---------- 16. Related ---------- */

.related-section { padding: 3rem 0 5rem; }

/* ---------- 17. Footer ---------- */

.site-footer {
    position: relative;
    z-index: 1;
    background: #000;
    padding: 5rem 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}
.site-footer-inner { max-width: var(--max-w); margin: 0 auto; }

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 720px) { .site-footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.site-footer-logo { height: 44px; width: auto; margin-bottom: 1rem; }
.site-footer-brand-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 .75rem; }
.site-footer-description {
    color: var(--color-text-muted);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 380px;
}
.site-footer-social { display: flex; gap: .5rem; }
.site-footer-social a {
    width: 40px; height: 40px;
    border-radius: 9999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: all .25s var(--ease);
}
.site-footer-social a:hover {
    background: var(--color-primary-soft);
    border-color: rgba(255, 80, 1, 0.4);
    color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.site-footer-col h3 {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
    margin-bottom: 1.25rem;
}
.site-footer-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer-col li { margin-bottom: .65rem; }
.site-footer-col a { color: var(--color-text-muted); font-size: .9rem; }
.site-footer-col a:hover { color: var(--color-primary-hover); }
.site-footer-col p { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 1.25rem; }

.site-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-dim);
    font-size: .8rem;
}
.site-footer-bottom p { margin: 0; }

/* ---------- 18. Error page ---------- */

.error-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
}
.error-inner { text-align: center; max-width: 540px; }
.error-code {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-hover);
    letter-spacing: .2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.error-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.error-message {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ---------- 19. Page (default) ---------- */

.post-full.page .post-full-header { padding-top: 4rem; }

/* ---------- 20. Responsive tweaks ---------- */

@media (max-width: 600px) {
    .hero { padding: 4rem 1rem 3rem; }
    .bento-section, .posts-section, .related-section { padding: 2.5rem 0; }
    .newsletter-section { padding: 3rem 1rem 4rem; }
    .newsletter-card { padding: 2.5rem 1.25rem; }
    .post-full-header { padding: 3rem 1rem 2rem; }
    .post-full-feature-image { padding: 0 1rem; margin-bottom: 2rem; }
    .post-content { font-size: 1rem; }
    .post-grid { gap: 1rem; }
    .subscribe-form input { flex: 1 1 100%; }
    .bento-side { grid-template-columns: 100px 1fr; }
    .bento-side-title { font-size: 1rem; }
    .bento-hero-content { padding: 1.25rem 1.25rem 1.5rem; }
}
