/* ==========================================================================
   Nuvox AI Ghost Theme — screen.css
   ========================================================================== */

/* ---------- Reset & Custom Properties ---------- */

:root {
    --color-bg: #0A0A0A;
    --color-surface: #141419;
    --color-primary: #00B4FF;
    --color-accent: #7B2FFF;
    --color-text: #E0E0E0;
    --color-text-body: #D0D0D0;
    --color-muted: #888888;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(0, 180, 255, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --max-width: 1200px;
    --nav-height: 64px;
    --progress: 0%;
}

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ---------- Utility ---------- */

.nv-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.nv-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    text-decoration: none;
}

.nv-btn:hover {
    filter: brightness(1.15);
}

.nv-btn--primary {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

/* ---------- Reading Progress Bar ---------- */

.nv-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: var(--progress);
    background: var(--color-primary);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ---------- Navigation ---------- */

.nv-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nv-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nv-nav__logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.nv-nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nv-nav__link {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
    position: relative;
}

.nv-nav__link:hover,
.nv-nav__link--active {
    color: var(--color-primary);
}

.nv-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.nv-nav__subscribe {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.nv-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
}

.nv-nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nv-nav.is-open .nv-nav__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nv-nav.is-open .nv-nav__hamburger span:nth-child(2) {
    opacity: 0;
}

.nv-nav.is-open .nv-nav__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Main content offset for fixed nav ---------- */

.nv-main {
    padding-top: var(--nav-height);
}

/* ---------- Hero Section ---------- */

.nv-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.nv-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.nv-hero__desc {
    font-size: 1.25rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.nv-hero__cta {
    font-size: 1rem;
}

/* ---------- Featured Post ---------- */

.nv-featured {
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.nv-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.nv-featured__card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.nv-featured__img-wrap {
    overflow: hidden;
}

.nv-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.nv-featured__card:hover .nv-featured__img {
    transform: scale(1.05);
}

.nv-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.5rem 2.5rem 0;
}

.nv-featured__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.nv-featured__title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.nv-featured__excerpt {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.nv-featured__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ---------- Tag Badge ---------- */

.nv-tag-badge {
    display: inline-block;
    background: rgba(0, 180, 255, 0.15);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.nv-tag-badge:hover {
    background: rgba(0, 180, 255, 0.25);
}

/* ---------- Post Grid ---------- */

.nv-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.nv-post-grid--related {
    margin-bottom: 0;
}

/* ---------- Post Card ---------- */

.nv-card {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s, border-color 0.3s;
}

.nv-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
}

.nv-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.nv-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.nv-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.nv-card:hover .nv-card__img {
    transform: scale(1.05);
}

.nv-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nv-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.nv-card:hover .nv-card__title {
    color: var(--color-primary);
}

.nv-card__excerpt {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ---------- Pagination ---------- */

.nv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0 3rem;
}

.nv-pagination__link {
    background: var(--color-surface);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: color 0.2s, border-color 0.2s;
}

.nv-pagination__link:hover {
    color: var(--color-primary);
    border-color: var(--color-border-hover);
}

.nv-pagination__current {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* ---------- Single Post ---------- */

.nv-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.nv-post__header {
    margin-bottom: 2rem;
}

.nv-post__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.nv-post__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.nv-post__meta-sep {
    color: rgba(255, 255, 255, 0.2);
}

.nv-post__feature-img {
    margin-bottom: 2rem;
}

.nv-post__feature-img img {
    width: 100%;
    border-radius: 12px;
}

/* ---------- Table of Contents ---------- */

.nv-post__toc {
    margin-bottom: 2rem;
}

.nv-post__toc:empty {
    display: none;
}

.nv-toc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.nv-toc__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.nv-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nv-toc__list li {
    margin-bottom: 0.4rem;
}

.nv-toc__list a {
    color: var(--color-text-body);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 0.2rem 0;
}

.nv-toc__list a:hover {
    color: var(--color-primary);
}

.nv-toc__list .nv-toc--h3 {
    padding-left: 1.25rem;
}

/* ---------- Post Content (gh-content) ---------- */

.gh-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-body);
}

.gh-content h2 {
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.3;
}

.gh-content h3 {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.gh-content h4 {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.gh-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-body);
}

.gh-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: filter 0.2s;
}

.gh-content a:hover {
    filter: brightness(1.2);
}

.gh-content strong {
    color: #ffffff;
    font-weight: 600;
}

.gh-content em {
    font-style: italic;
}

.gh-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1.5rem;
    color: var(--color-muted);
    font-style: italic;
    margin: 2rem 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.gh-content blockquote p {
    color: var(--color-muted);
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: revert;
}

.gh-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.gh-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.gh-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.gh-content figure {
    margin: 2rem 0;
}

.gh-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

/* Code blocks */

.gh-content pre {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gh-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.gh-content code {
    background: rgba(0, 180, 255, 0.1);
    color: var(--color-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* Override Prism bg for consistency */

.gh-content pre[class*="language-"] {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Tables */

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.gh-content th {
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid var(--color-primary);
}

.gh-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-body);
}

.gh-content tr:hover td {
    background: rgba(0, 180, 255, 0.03);
}

/* YouTube / Embeds */

.gh-content .kg-embed-card {
    position: relative;
    padding-bottom: 56.25%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface);
}

.gh-content .kg-embed-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ghost gallery cards */

.gh-content .kg-gallery-card {
    margin: 2rem 0;
}

.gh-content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gh-content .kg-gallery-row {
    display: flex;
    gap: 0.75rem;
}

.gh-content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Ghost bookmark card */

.gh-content .kg-bookmark-card {
    margin: 2rem 0;
}

.gh-content .kg-bookmark-container {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
    text-decoration: none;
    transition: border-color 0.2s;
}

.gh-content .kg-bookmark-container:hover {
    border-color: var(--color-border-hover);
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gh-content .kg-bookmark-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.gh-content .kg-bookmark-description {
    font-size: 0.85rem;
    color: var(--color-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.gh-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.gh-content .kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

/* ---------- Post Tags ---------- */

.nv-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.nv-post__tag {
    background: rgba(0, 180, 255, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.nv-post__tag:hover {
    background: rgba(0, 180, 255, 0.25);
}

/* ---------- Author Box ---------- */

.nv-author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid var(--color-border);
    align-items: center;
}

.nv-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nv-author-box__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
}

.nv-author-box__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nv-author-box__name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nv-author-box__name:hover {
    color: var(--color-primary);
}

.nv-author-box__bio {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---------- Related Posts ---------- */

.nv-related {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.nv-related__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* ---------- Tag Archive ---------- */

.nv-tag-archive {
    padding: 3rem 0 4rem;
}

.nv-tag-archive__header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.nv-tag-archive__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.nv-tag-archive__desc {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Static Page ---------- */

.nv-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.nv-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* ---------- Error Page ---------- */

.nv-error {
    text-align: center;
    padding: 8rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nv-error__code {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.nv-error__message {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

/* ---------- Newsletter ---------- */

.nv-newsletter {
    padding: 4rem 2rem;
    text-align: center;
}

.nv-newsletter__inner {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.nv-newsletter__inner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 17px;
    z-index: -1;
}

.nv-newsletter__heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.nv-newsletter__text {
    color: var(--color-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.nv-newsletter__form {
    width: 100%;
}

.nv-newsletter__input-group {
    display: flex;
    gap: 0.75rem;
}

.nv-newsletter__input {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.nv-newsletter__input::placeholder {
    color: var(--color-muted);
}

.nv-newsletter__input:focus {
    border-color: var(--color-primary);
}

.nv-newsletter__btn {
    flex-shrink: 0;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

.nv-newsletter__message {
    display: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.nv-newsletter__message--success {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.nv-newsletter__message--error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

form[data-members-form].success .nv-newsletter__message--success {
    display: block;
}

form[data-members-form].error .nv-newsletter__message--error {
    display: block;
}

/* ---------- Footer ---------- */

.nv-footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.nv-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.nv-footer__heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nv-footer__text {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.nv-footer__links {
    list-style: none;
    padding: 0;
}

.nv-footer__links li {
    margin-bottom: 0.5rem;
}

.nv-footer__links a {
    color: var(--color-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nv-footer__links a:hover {
    color: var(--color-primary);
}

.nv-footer__bottom {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.nv-footer__bottom p {
    margin-bottom: 0.25rem;
}

/* ---------- Animations ---------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nv-card {
    animation: fadeInUp 0.5s ease both;
}

.nv-card:nth-child(1) { animation-delay: 0s; }
.nv-card:nth-child(2) { animation-delay: 0.05s; }
.nv-card:nth-child(3) { animation-delay: 0.1s; }
.nv-card:nth-child(4) { animation-delay: 0.15s; }
.nv-card:nth-child(5) { animation-delay: 0.2s; }
.nv-card:nth-child(6) { animation-delay: 0.25s; }
.nv-card:nth-child(7) { animation-delay: 0.3s; }
.nv-card:nth-child(8) { animation-delay: 0.35s; }
.nv-card:nth-child(9) { animation-delay: 0.4s; }
.nv-card:nth-child(10) { animation-delay: 0.45s; }
.nv-card:nth-child(11) { animation-delay: 0.5s; }
.nv-card:nth-child(12) { animation-delay: 0.55s; }

/* ---------- Responsive: 1200px ---------- */

@media (max-width: 1200px) {
    .nv-container {
        padding: 0 1.5rem;
    }

    .nv-nav__inner {
        padding: 0 1.5rem;
    }

    .nv-featured {
        padding: 0 1.5rem;
    }
}

/* ---------- Responsive: 900px ---------- */

@media (max-width: 900px) {
    .nv-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nv-hero__title {
        font-size: 2.5rem;
    }

    .nv-hero__desc {
        font-size: 1.1rem;
    }

    .nv-featured__card {
        grid-template-columns: 1fr;
    }

    .nv-featured__content {
        padding: 1.5rem;
    }

    .nv-featured__title {
        font-size: 1.5rem;
    }

    .nv-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nv-related .nv-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Responsive: 600px ---------- */

@media (max-width: 600px) {
    .nv-post-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .nv-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .nv-hero__title {
        font-size: 2rem;
    }

    .nv-hero__desc {
        font-size: 1rem;
    }

    .nv-post__title {
        font-size: 2rem;
    }

    .nv-post {
        padding: 2rem 1.5rem 3rem;
    }

    .nv-page {
        padding: 2rem 1.5rem 3rem;
    }

    .nv-page__title {
        font-size: 2rem;
    }

    .nv-tag-archive__title {
        font-size: 2rem;
    }

    /* Mobile navigation */
    .nv-nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--color-border);
        z-index: 999;
    }

    .nv-nav.is-open .nv-nav__links {
        right: 0;
    }

    .nv-nav__link {
        font-size: 1.1rem;
    }

    .nv-nav__subscribe {
        display: none;
    }

    .nv-nav__hamburger {
        display: flex;
    }

    /* Newsletter stack */
    .nv-newsletter__input-group {
        flex-direction: column;
    }

    .nv-newsletter__inner {
        padding: 2rem 1.5rem;
    }

    /* Footer stack */
    .nv-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Author box stack */
    .nv-author-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* Related posts */
    .nv-related .nv-post-grid {
        grid-template-columns: 1fr;
    }

    /* Featured */
    .nv-featured__title {
        font-size: 1.25rem;
    }

    .nv-error__code {
        font-size: 5rem;
    }

    .gh-content h2 {
        font-size: 1.5rem;
    }

    .gh-content h3 {
        font-size: 1.2rem;
    }

    .gh-content .kg-bookmark-container {
        flex-direction: column;
    }

    .gh-content .kg-bookmark-thumbnail {
        width: 100%;
        height: 200px;
    }
}
