/* styles.css — matiyash.com.ua
   Dark editorial / tech theme. Mobile-first.
   Palette: graphite + muted teal, amber secondary.
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    color-scheme: dark;

    /* surfaces */
    --bg: #0f1115;
    --surface: #161921;
    --surface-raised: #1d212b;
    --code-bg: #0b0d11;

    /* borders */
    --border: #2a2f3b;
    --border-strong: #3a4150;

    /* text */
    --text-heading: #eceef2;
    --text-body: #d6dae1;
    --text-main: #e3e6eb;
    --text-muted: #9ba3b1;

    /* accents */
    --accent: #6fbfae;
    --accent-strong: #8fd3c4;
    --accent-soft: rgba(111, 191, 174, 0.12);
    --accent-line: rgba(111, 191, 174, 0.45);
    --accent-2: #d6a86a;
    --accent-2-soft: rgba(214, 168, 106, 0.14);
    --link-visited: #a996c9;
    --focus: #9fe0d2;

    /* radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* type */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Lora', Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --fs-base: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;
    --lh-body: 1.7;
    --lh-heading: 1.3;

    /* layout */
    --container: 1160px;
    --article-max: 68ch;
    --sidebar-w: 300px;
    --header-h: 60px;

    --border-w: 1px;
    --transition: 0.2s ease;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-color: var(--border-strong) var(--bg);
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: hidden;
}

::selection {
    background: rgba(111, 191, 174, 0.3);
    color: var(--text-heading);
}

::-moz-selection {
    background: rgba(111, 191, 174, 0.3);
    color: var(--text-heading);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5263;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    filter: brightness(0.94);
}

figure {
    margin: var(--space-6) 0;
}

hr {
    width: 100%;
    height: 0;
    border: 0;
    border-top: var(--border-w) solid var(--border);
    margin: var(--space-7) 0;
}

/* ==========================================================================
   3. Base typography & links
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

p {
    overflow-wrap: break-word;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

strong,
b {
    font-weight: 700;
    color: var(--text-heading);
}

em,
i {
    font-style: italic;
}

small {
    font-size: 0.875em;
    color: var(--text-muted);
}

mark {
    background: var(--accent-2-soft);
    color: var(--text-heading);
    padding: 0 var(--space-1);
    border-radius: var(--radius-xs);
}

kbd {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85em;
    line-height: 1;
    color: var(--text-heading);
    background: var(--surface-raised);
    border: var(--border-w) solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: var(--radius-xs);
    padding: 3px 6px;
    white-space: nowrap;
}

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
}

/* ==========================================================================
   4. Focus & global interactive states
   ========================================================================== */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

button,
input,
textarea,
select {
    font: inherit;
    color: var(--text-main);
    color-scheme: dark;
}

button {
    cursor: pointer;
    background: var(--surface-raised);
    border: var(--border-w) solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-4);
    min-height: 44px;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

button:hover {
    background: #252a36;
    border-color: #4a5263;
}

button:active {
    background: var(--surface);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input,
textarea,
select {
    width: 100%;
    background: var(--surface);
    border: var(--border-w) solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    transition: border-color var(--transition), background-color var(--transition);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #4a5263;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-color: var(--accent);
    background: var(--surface-raised);
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--text-main);
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    caret-color: var(--text-main);
}

/* ==========================================================================
   5. Header & navigation (mobile-first)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: var(--border-w) solid var(--border);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    min-height: 44px;
}

.logo:hover {
    color: var(--text-heading);
    text-decoration: none;
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.main-nav {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    font-size: var(--fs-small);
    font-weight: 500;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    text-decoration: none;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.lang-switcher {
    display: inline-flex;
    gap: var(--space-1);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    padding: 3px;
    border-radius: var(--radius-sm);
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 38px;
    padding: 0 var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-xs);
}

.lang-switcher a:hover {
    color: var(--text-heading);
    background: var(--surface-raised);
    text-decoration: none;
}

.lang-switcher a.active {
    background: var(--surface-raised);
    color: var(--accent);
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* ==========================================================================
   6. Main layout
   ========================================================================== */
main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-5) var(--space-4) var(--space-8);
}

.hero {
    max-width: var(--article-max);
    margin: 0 auto var(--space-7);
}

.hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
    border: var(--border-w) solid var(--accent-line);
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
}

.reading-time {
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-weight: 500;
}

.article-title {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    margin-bottom: var(--space-4);
    hyphens: auto;
    -webkit-hyphens: auto;
}

.lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-5);
}

.meta-panel {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-6);
    padding: var(--space-4) 0;
    border-top: var(--border-w) solid var(--border);
    border-bottom: var(--border-w) solid var(--border);
    margin-bottom: var(--space-6);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.meta-item .label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.meta-item .value {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-heading);
}

.hero-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: var(--border-w) solid var(--border);
    background: var(--surface);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(0.9) saturate(0.9);
}

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    align-items: start;
}

.content-body {
    min-width: 0;
    width: 100%;
    max-width: var(--article-max);
}

.sidebar {
    order: 2;
    min-width: 0;
    width: 100%;
}

/* ==========================================================================
   7. Article typography
   ========================================================================== */
.content-body > * + * {
    margin-top: 0;
}

.content-body p {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: var(--space-5);
}

.content-body h2 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    margin: var(--space-7) 0 var(--space-4);
    padding-top: var(--space-2);
}

.content-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: var(--space-6) 0 var(--space-3);
}

.content-body h4,
.content-body h5,
.content-body h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
    margin: var(--space-5) 0 var(--space-2);
}

.content-body strong {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-heading);
}

.content-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.content-body a:visited {
    color: var(--link-visited);
    text-decoration-color: rgba(169, 150, 201, 0.45);
}

.content-body a:hover {
    color: var(--accent-strong);
    text-decoration-color: var(--accent-strong);
}

/* lists */
.content-body ul,
.content-body ol {
    margin: 0 0 var(--space-5);
    padding-left: var(--space-5);
    font-family: var(--font-serif);
    color: var(--text-body);
}

.content-body ul {
    list-style: none;
}

.content-body ul > li {
    position: relative;
    padding-left: var(--space-1);
}

.content-body ul > li::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--space-4));
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
}

.content-body ol {
    list-style: none;
    counter-reset: item;
}

.content-body ol > li {
    position: relative;
    counter-increment: item;
    padding-left: var(--space-1);
}

.content-body ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: calc(-1 * var(--space-5));
    top: 0;
    width: calc(var(--space-5) - var(--space-1));
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.content-body li + li {
    margin-top: var(--space-2);
}

.content-body li > ul,
.content-body li > ol {
    margin: var(--space-2) 0 0;
    padding-left: var(--space-5);
}

.content-body li > ul > li::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-2);
    top: 0.7em;
}

/* blockquote */
.content-body blockquote {
    position: relative;
    margin: var(--space-6) 0;
    padding: var(--space-5) var(--space-5) var(--space-5) var(--space-5);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.content-body blockquote p {
    color: var(--text-body);
    margin-bottom: var(--space-3);
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

.content-body blockquote cite {
    display: block;
    margin-top: var(--space-3);
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
}

/* inline code */
.content-body code,
code {
    font-size: 0.875em;
    color: var(--accent-2);
    background: var(--surface-raised);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.1em 0.4em;
    overflow-wrap: anywhere;
}

/* code blocks */
pre {
    position: relative;
    max-width: 100%;
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    background: var(--code-bg);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-body);
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    tab-size: 4;
}

pre code {
    display: block;
    min-width: max-content;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
    overflow-wrap: normal;
    word-break: normal;
}

/* tables */
table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-6) 0;
    font-size: var(--fs-small);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-md);
}

thead,
tbody,
tfoot {
    display: table-row-group;
}

tr {
    display: table-row;
}

th,
td {
    display: table-cell;
    text-align: left;
    vertical-align: top;
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border-w) solid var(--border);
    min-width: 8rem;
    overflow-wrap: anywhere;
}

th {
    background: var(--surface-raised);
    color: var(--text-heading);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.012);
}

tbody tr:hover td {
    background: rgba(111, 191, 174, 0.05);
}

tbody tr:last-child td {
    border-bottom: 0;
}

/* info-box */
.info-box {
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin: var(--space-6) 0;
}

.info-box-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    margin-bottom: var(--space-3);
}

.info-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

.info-box li {
    position: relative;
    padding-left: var(--space-5);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
}

.info-box li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent-2);
}

/* figures */
figcaption {
    margin-top: var(--space-3);
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ==========================================================================
   8. Sidebar
   ========================================================================== */
.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: static;
}

.author-card,
.toc-card {
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.author-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--border-w) solid var(--border-strong);
    filter: none;
    flex-shrink: 0;
}

.author-badge {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.author-bio {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.author-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    border: var(--border-w) solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
}

.author-socials a:hover {
    background: var(--accent-soft);
    border-color: var(--accent-line);
    color: var(--accent);
    text-decoration: none;
}

.toc-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: var(--border-w) solid var(--border);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toc-list li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-xs);
}

.toc-list li a span {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent);
    min-width: 2ch;
}

.toc-list li a:hover {
    color: var(--accent-strong);
    text-decoration: none;
}

/* ==========================================================================
   9. Related section & cards
   ========================================================================== */
.related-section {
    margin-top: var(--space-8);
    padding-top: var(--space-7);
    border-top: var(--border-w) solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border);
}

.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min
-height: 100%;
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover {
    border-color: var(--border-strong);
    background: var(--surface-raised);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: var(--border-w) solid var(--accent-line);
    border-radius: var(--radius-xs);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-heading);
    margin: 0 0 var(--space-2);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card-excerpt {
    font-size: var(--fs-small);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--accent);
}

.card-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.card:hover .card-read-more svg {
    transform: translateX(3px);
}

/* ==========================================================================
   10. Pagination
   ========================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-7) 0 var(--space-6);
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pagination a:hover {
    color: var(--accent-strong);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.pagination .is-current {
    color: var(--text-heading);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pagination .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
    margin-top: var(--space-8);
    padding: var(--space-6) 0 var(--space-7);
    border-top: var(--border-w) solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--fs-small);
}

.footer-inner {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent-strong);
}

.footer-copy {
    margin: 0;
    font-size: var(--fs-xs);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   12. Utilities
   ========================================================================== */
.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;
}

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

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sidebar-sticky {
        position: sticky;
        top: var(--space-6);
    }

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

@media (max-width: 480px) {
    .author-socials a {
        width: 40px;
        height: 40px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   14. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card:hover {
        transform: none;
    }
}

/* ==========================================================================
   15. Print
   ========================================================================== */
@media print {
    .site-footer,
    .sidebar-sticky,
    .pagination,
    .related-section {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
===end file===
===end file===
===end file===
===end file===
===end file===
===end file===