/* ==========================================================================
   KoraSafe Ghost Theme - screen.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Reset
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */

:root {
    --color-bg: #080E21;
    --color-bg-secondary: #0B1838;
    --color-surface: rgba(14, 24, 49, 0.76);
    --color-surface-border: rgba(148, 163, 184, 0.22);
    --color-surface-border-hover: rgba(148, 163, 184, 0.34);
    --color-text: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-text-dim: #64748B;
    --color-accent: #6366F1;
    --color-accent-light: #818CF8;
    --color-accent-lighter: #A5B4FC;
    --color-link: #818CF8;
    --color-link-hover: #A5B4FC;
    --color-code-bg: #0F172A;
    --color-code-border: rgba(148, 163, 184, 0.15);

    --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-body: 1.7;

    --glass-bg: rgba(14, 24, 49, 0.76);
    --glass-blur: blur(18px) saturate(130%);
    --glass-border: 1px solid rgba(148, 163, 184, 0.22);
    --glass-shadow: 0 8px 34px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --glass-radius: 16px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s var(--ease-out);

    --width-content: 720px;
    --width-wide: 1200px;
}

/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.35);
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Ambient Background Orbs
   -------------------------------------------------------------------------- */

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.ambient-orb--indigo {
    width: 600px;
    height: 600px;
    background: #6366F1;
    top: -200px;
    right: -100px;
    animation: drift-a 25s ease-in-out infinite alternate;
}

.ambient-orb--violet {
    width: 500px;
    height: 500px;
    background: #818CF8;
    bottom: -150px;
    left: -150px;
    animation: drift-b 30s ease-in-out infinite alternate;
}

.ambient-orb--blue {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: 40%;
    left: 50%;
    animation: drift-c 20s ease-in-out infinite alternate;
}

@keyframes drift-a {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, 40px); }
}

@keyframes drift-b {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -30px); }
}

@keyframes drift-c {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -50px); }
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 33, 0.82);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: 8px;
    transition: color var(--transition-base), background var(--transition-base);
}

.site-nav li a:hover {
    color: var(--color-text);
    background: rgba(148, 163, 184, 0.08);
}

.site-nav__back {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-light);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    margin-left: 8px;
    transition: all var(--transition-base);
}

.site-nav__back:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.55);
    color: var(--color-accent-lighter);
}

.site-header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.site-header__menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-muted);
    border-radius: 1px;
    transition: all var(--transition-base);
}

.site-header__menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.site-header__menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-header__menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 80px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: 32px 24px;
}

.site-footer__copy {
    font-size: 14px;
    color: var(--color-text-dim);
}

.site-footer__nav {
    display: flex;
    gap: 24px;
}

.site-footer__nav a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.site-footer__nav a:hover {
    color: var(--color-link);
}

/* --------------------------------------------------------------------------
   Site Main
   -------------------------------------------------------------------------- */

.site-main {
    position: relative;
    z-index: 1;
    min-height: 60vh;
}

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

.hero {
    padding: 80px 24px 48px;
    text-align: center;
}

.hero__inner {
    max-width: var(--width-content);
    margin: 0 auto;
}

.hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    margin-bottom: 12px;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 2px solid rgba(148, 163, 184, 0.22);
}

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

.post-feed-section {
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

.post-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--glass-radius);
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-surface-border-hover);
    box-shadow: 0 12px 44px rgba(2, 6, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.post-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.post-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.post-card:hover .post-card__image {
    transform: scale(1.04);
}

.post-card__image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0B1838 0%, #1E1B4B 50%, #0B1838 100%);
}

.post-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.post-card__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    background: rgba(99, 102, 241, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.post-card__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 10px;
}

.post-card__excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.post-card__date {
    font-size: 13px;
    color: var(--color-text-dim);
}

.post-card__read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-light);
    transition: color var(--transition-base);
}

.post-card:hover .post-card__read-more {
    color: var(--color-accent-lighter);
}

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

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.pagination__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-light);
    padding: 8px 18px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.pagination__link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.pagination__info {
    font-size: 14px;
    color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   Post Full (Single Post / Page)
   -------------------------------------------------------------------------- */

.post-full {
    max-width: var(--width-content);
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.post-full__back {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    transition: color var(--transition-base);
}

.post-full__back:hover {
    color: var(--color-link);
}

.post-full__feature-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.post-full__feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-full__meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.post-full__tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    background: rgba(99, 102, 241, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    transition: background var(--transition-base);
}

.post-full__tag:hover {
    background: rgba(99, 102, 241, 0.2);
}

.post-full__date {
    font-size: 14px;
    color: var(--color-text-dim);
}

.post-full__author-name {
    font-size: 14px;
    color: var(--color-text-muted);
}

.post-full__title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Article Content / Ghost Content Styles
   -------------------------------------------------------------------------- */

.gh-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.gh-content > * + * {
    margin-top: 1.5em;
}

.gh-content h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.2;
    margin-top: 2em;
}

.gh-content h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.25;
    margin-top: 2em;
}

.gh-content h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
    line-height: 1.3;
    margin-top: 1.8em;
}

.gh-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin-top: 1.6em;
}

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

.gh-content a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.3);
    text-underline-offset: 2px;
    transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.gh-content a:hover {
    color: var(--color-link-hover);
    text-decoration-color: var(--color-link-hover);
}

.gh-content strong {
    font-weight: 600;
    color: var(--color-text);
}

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

.gh-content ul,
.gh-content ol {
    padding-left: 1.6em;
}

.gh-content ul {
    list-style: disc;
}

.gh-content ol {
    list-style: decimal;
}

.gh-content li {
    margin-top: 0.5em;
    color: var(--color-text);
}

.gh-content li::marker {
    color: var(--color-text-dim);
}

.gh-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 4px 0 4px 24px;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--color-text-muted);
}

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

.gh-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.88em;
    background: var(--color-code-bg);
    color: var(--color-text);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-code-border);
}

.gh-content pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-code-border);
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    margin-top: 1.5em;
}

.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.gh-content hr {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin: 2.5em 0;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1.5em;
}

.gh-content figure {
    margin-top: 1.5em;
}

.gh-content figcaption {
    font-size: 13px;
    color: var(--color-text-dim);
    text-align: center;
    margin-top: 8px;
}

.gh-content table {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5em;
}

.gh-content th,
.gh-content td {
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
}

.gh-content th {
    background: rgba(14, 24, 49, 0.6);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.gh-content td {
    font-size: 15px;
    color: var(--color-text);
}

.gh-content tbody tr:nth-child(even) {
    background: rgba(14, 24, 49, 0.3);
}

/* Ghost Editor Cards (kg-*) */

.gh-content .kg-image-card,
.gh-content .kg-gallery-card {
    margin-top: 2em;
}

.gh-content .kg-image-card img {
    margin-top: 0;
}

.gh-content .kg-width-wide {
    max-width: 1040px;
    margin-left: calc(50% - 520px);
    margin-right: calc(50% - 520px);
}

.gh-content .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gh-content .kg-bookmark-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

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

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 20px;
}

.gh-content .kg-bookmark-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

.gh-content .kg-bookmark-description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-text-dim);
}

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

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

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

.gh-content .kg-callout-card {
    padding: 20px 24px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.gh-content .kg-toggle-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 10px;
    padding: 20px 24px;
}

/* --------------------------------------------------------------------------
   Share Buttons
   -------------------------------------------------------------------------- */

.post-full__share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.post-full__share-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
    margin-bottom: 14px;
}

.post-full__share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 10px;
    transition: all var(--transition-base);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.share-btn:hover {
    color: var(--color-text);
    border-color: var(--color-surface-border-hover);
    transform: translateY(-1px);
}

.share-btn--linkedin:hover {
    color: #0A66C2;
}

.share-btn--x:hover {
    color: var(--color-text);
}

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

.post-full__author-box {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--glass-radius);
}

.post-full__author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-full__author-box-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.post-full__author-bio {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.post-full__cta {
    text-align: center;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.post-full__cta-link {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366F1, #818CF8);
    border-radius: 10px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.post-full__cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

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

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 48px 24px;
}

.error-page__code {
    display: block;
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: rgba(99, 102, 241, 0.25);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.error-page__description {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.error-page__link {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-light);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    transition: all var(--transition-base);
}

.error-page__link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .post-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .hero__title {
        font-size: 40px;
    }

    .post-full__title {
        font-size: 34px;
    }

    .gh-content .kg-width-wide {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .site-header__menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        background: rgba(8, 14, 33, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        z-index: 99;
    }

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

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }

    .site-nav__back {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
        padding: 12px 18px;
    }

    .post-feed {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        padding: 56px 20px 36px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .post-full {
        padding: 32px 20px 48px;
    }

    .post-full__title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .gh-content {
        font-size: 16px;
    }

    .gh-content h1 {
        font-size: 28px;
    }

    .gh-content h2 {
        font-size: 24px;
    }

    .gh-content h3 {
        font-size: 20px;
    }

    .gh-content pre {
        padding: 16px;
        border-radius: 8px;
    }

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

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

    .post-full__share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .post-full__author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pagination {
        flex-direction: column;
        gap: 14px;
    }

    .error-page__code {
        font-size: 64px;
    }
}
