/* styles.css — midnight graphite + steel sky (dark editorial/tech) */

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

    /* Surfaces */
    --bg: #0e1116;
    --surface: #141a22;
    --raised: #1a212b;
    --border: #232b37;
    --border-strong: #334052;

    /* Text */
    --text: #d6dce5;
    --heading: #eef2f7;
    --muted: #9ba5b3;
    --subtle: #7d8795;

    /* Accent (primary) */
    --accent: #7fb8cc;
    --accent-strong: #a3d3e3;
    --accent-ink: #0e1116;
    --accent-tint: rgba(127, 184, 204, 0.10);
    --accent-line: rgba(127, 184, 204, 0.42);

    /* Accent (secondary, sparingly) */
    --accent2: #d2b07a;
    --accent2-tint: rgba(210, 176, 122, 0.10);
    --accent2-line: rgba(210, 176, 122, 0.32);

    /* Status */
    --warn: #d98a5f;
    --warn-tint: rgba(217, 138, 95, 0.10);

    /* Code */
    --code-bg: #0b0e13;
    --code-inline-bg: #1d2531;
    --code-text: #c9d4e2;

    /* Shape */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-pill: 999px;
    --border-w: 1px;

    /* Type */
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-micro: 0.75rem;
    --lh-body: 1.7;
    --lh-tight: 1.3;

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

    --gutter: var(--s-4);
    --container: 1120px;
    --measure: 68ch;
    --sticky-top: 88px;
    --hit: 44px;
    --transition: 180ms ease;
}

@media (min-width: 480px) {
    :root {
        --gutter: var(--s-5);
    }
}

@media (min-width: 1024px) {
    :root {
        --fs-body: 1.125rem;
        --sticky-top: 104px;
    }
}

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

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

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

::selection {
    background: var(--accent-line);
    color: var(--heading);
}

::-moz-selection {
    background: var(--accent-line);
    color: var(--heading);
}

/* Dark scrollbars (WebKit / Blink) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--subtle);
}

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

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

img,
video {
    border-radius: var(--radius-sm);
    filter: brightness(0.94);
}

ul,
ol {
    list-style: none;
}

hr {
    border: 0;
    height: var(--border-w);
    background: var(--border);
    margin: var(--s-7) 0;
}

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

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

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

:focus {
    outline: none;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--heading);
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
    hyphens: auto;
}

p {
    overflow-wrap: break-word;
}

button,
input,
select,
textarea {
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: var(--border-w) solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: var(--s-2) var(--s-3);
    min-height: var(--hit);
    color-scheme: dark;
    transition: border-color var(--transition), background-color var(--transition);
}

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

input:hover,
select:hover,
textarea:hover {
    border-color: var(--subtle);
}

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

textarea {
    min-height: calc(var(--hit) * 2);
    resize: vertical;
}

button {
    cursor: pointer;
    background: var(--raised);
    font-weight: 500;
}

button:hover {
    background: var(--border);
    border-color: var(--border-strong);
}

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

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

::-moz-focus-inner {
    border: 0;
}

/* =============================================
   3. HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 17, 22, 0.94);
    border-bottom: var(--border-w) solid var(--border);
}

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

.logo-name {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--heading);
    min-height: var(--hit);
    display: inline-flex;
    align-items: center;
}

.logo-name:hover {
    color: var(--accent-strong);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-overflow-scrolling: touch;
}

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

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--hit);
    padding: 0 var(--s-3);
    color: var(--muted);
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: var(--s-3);
    right: var(--s-3);
    bottom: 8px;
    height: var(--border-w);
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.main-nav a:hover {
    color: var(--heading);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hit);
    min-height: var(--hit);
    padding: 0 var(--s-2);
    color: var(--muted);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

@media (min-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .main-nav {
        width: auto;
        overflow: visible;
        gap: var(--s-2);
    }
}

/* =============================================
   4. LAYOUT
   ============================================= */
main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--gutter) var(--s-7);
}

@media (min-width: 768px) {
    main {
        padding-top: var(--s-7);
    }
}

/* =============================================
   5. HERO
   ============================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    align-items: center;
    margin-bottom: var(--s-7);
}

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    border: var(--border-w) solid var(--border);
    background: var(--raised);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    filter: brightness(0.9) saturate(0.9);
    transition: transform 600ms ease;
}

.hero-visual:hover img {
    transform: scale(1.02);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    min-width: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: var(--s-1) var(--s-3);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
    background: var(--accent2-tint);
    border: var(--border-w) solid var(--accent2-line);
    border-radius: var(--radius-pill);
}

.article-title {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 1.05rem + 1vw, 2rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--heading);
    text-wrap: balance;
}

.lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--muted);
    font-weight: 400;
    max-width: var(--measure);
}

.meta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3) var(--s-5);
    padding-top: var(--s-4);
    border-top: var(--border-w) solid var(--border);
}

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

.meta-item .label {
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--subtle);
}

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

.meta-divider {
    width: var(--border-w);
    height: var(--s-6);
    background: var(--border-strong);
}

@media (min-width: 480px) {
    .hero-visual {
        aspect-ratio: 16 / 10;
    }
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-7);
    }

    .hero-visual {
        aspect-ratio: 4 / 5;
    }
}

/* =============================================
   6. CONTENT + SIDEBAR
   ============================================= */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-7);
    align-items: start;
    margin-bottom: var(--s-8);
}

.author-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    order: -1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .content-wrapper {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: var(--s-8);
    }

    .author-sidebar {
        order: 0;
        position: sticky;
        top: var(--sticky-top);
    }
}

/* Article body */
.content-body {
    min-width: 0;
    max-width: var(--measure);
    width: 100%;
    margin-inline: auto;
    font-size: var(--fs-body);
    color: var(--text);
}

.content-body > *:first-child {
    margin-top: 0;
}

.content-body p {
    margin-bottom: var(--s-5);
    color: var(--text);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
}

.content-body h2 {
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-2);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
    color: var(--heading);
    border-bottom: var(--border-w) solid var(--border);
}

.content-body h3 {
    margin-top: var(--s-6);
    margin-bottom: var(--s-3);
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
    color: var(--heading);
}

.content-body h4 {
    margin-top: var(--s-5);
    margin-bottom: var(--s-2);
    font-size: 1rem;
    color: var(--heading);
}

.content-body strong {
    color: var(--heading);
    font-weight: 600;
}

.content-body em {
    color: var(--text);
}

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

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

.content-body a:visited {
    color: var(--muted);
    text-decoration-color: var(--border-strong);
}

.content-body ul,
.content-body ol {
    margin-bottom: var(--s-5);
    padding-left: var(--s-5);
    list-style: revert;
}

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

.content-body ul > li {
    position: relative;
    padding-left: var(--s-4);
    margin-bottom: var(--s-2);
}

.content-body ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.content-body ol {
    list-style: decimal;
    padding-left: var(--s-5);
}

.content-body ol > li {
    padding-left: var(--s-2);
    margin-bottom: var(--s-2);
}

.content-body ol > li::marker {
    color: var(--accent);
    font-weight: 600;
}

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

.content-body li > ul > li::before {
    background: transparent;
    border: var(--border-w) solid var(--accent);
    width: 5px;
    height: 5px;
}

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

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

.content-body blockquote cite {
    display: block;
    margin-top: var(--s-3);
    font-style: normal;
    font-size: var(--fs-small);
    letter-spacing: 0.02em;
    color: var(--subtle);
}

.content-body blockquote cite::before {
    content: "— ";
    color: var(--accent2);
}

/* Inline code / code blocks */
.content-body code,
code,
kbd,
samp {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

:not(pre) > code {
    padding: 0.1em 0.4em;
    background: var(--code-inline-bg);
    color: var(--accent-strong);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    overflow-wrap: anywhere;
}

pre {
    margin: var(--s-5) 0;
    padding: var(--s-4);
    background: var(--code-bg);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    line-height: 1.6;
    color: var(--code-text);
    white-space: pre;
    tab-size: 4;
}

pre code {
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 0.875rem;
    overflow-wrap: normal;
}

kbd {
    display: inline-block;
    padding: 0 var(--s-2);
    min-width: 1.6em;
    text-align: center;
    background: var(--raised);
    color: var(--heading);
    border: var(--border-w) solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

mark {
    padding: 0 var(--s-1);
    background: var(--accent2-tint);
    color: var(--accent2);
    border-radius: var(--radius-sm);
}

small,
.small {
    font-size: var(--fs-small);
    color: var(--muted);
}

/* Figures */
figure {
    margin: var(--s-6) 0;
}

figure img {
    width: 100%;
    border: var(--border-w) solid var(--border);
}

figcaption {
    margin-top: var(--s-3);
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--subtle);
}

/* Tables */
.content-body table,
table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: var(--s-5) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: separate;
    border-spacing: 0;
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    font-size: var(--fs-small);
    line-height: 1.5;
}

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

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

tbody tr:nth-child(even) td {
    background: rgba(26, 33, 43, 0.45);
}

tbody tr:hover td {
    background: var(--raised);
}

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

/* Info box */
.info-box {
    margin: var(--s-5) 0 var(--s-6);
    padding: var(--s-5);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
}

.info-box ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: 0;
}

.info-box ul li {
    position: relative;
    padding-left: var(--s-5);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
}

.info-box ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent2);
    font-weight: 500;
}

.info-box ul li strong {
    color: var(--heading);
    font-weight: 600;
}

/* =============================================
   7. SIDEBAR CARDS
   ============================================= */
.author-card,
.toc-card {
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.author-avatar {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--raised);
    border-bottom: var(--border-w) solid var(--border);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    filter: brightness(0.92) saturate(0.9);
}

.author-info {
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.author-label {
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
}

.author-name {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--heading);
}

.author-bio {
    font-size: var(--fs-small);
    line-height: 1.65;
    color: var(--muted);
}

.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-2);
    padding-top: var(--s-4);
    border-top: var(--border-w) solid var(--border);
}

.author-socials a,
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--hit);
    height: var(--hit);
    color: var(--muted);
    background: var(--raised);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.author-socials a:hover,
.footer-socials a:hover {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

.toc-card {
    padding: var(--s-5);
}

.toc-title {
    margin-bottom: var(--s-4);
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--subtle);
}

.toc-list {
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.toc-list li {
    counter-increment: toc-counter;
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    font-size: var(--fs-small);
    color: var(--muted);
}

.toc-list li::before {
    content: counter(toc-counter, decimal-leading-zero);
    min-width: 22px;
    font-size: var(--fs-micro);
    font-weight: 500;
    color: var(--accent2);
    font-variant-numeric: tabular-nums;
}

.toc-list li a {
    display: inline-flex;
    align-items: center;
    min-height: var(--hit);
    color: var(--text);
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.toc-list li a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
}

/* =============================================
   8. RELATED / CARDS
   ============================================= */
.related-section {
    margin-top: var(--s-7);
    padding-top: var(--s-7);
    border-top: var(--border-w) solid var(--border);
}

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

.section-header h3 {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
}

.decoder-line {
    flex-grow: 1;
    height: var(--border-w);
    background: linear-gradient(90deg, var(--border-strong), transparent);
    min-width: var(--s-4);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
}

@media (min-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--s-5);
    }
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--
radius);
    transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.card-meta {
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--subtle);
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading);
}

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

.card-title a:hover {
    color: var(--accent-strong);
}

.card-excerpt {
    font-size: var(--fs-small);
    line-height: 1.6;
    color: var(--muted);
}

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

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.footer-copy {
    font-size: var(--fs-micro);
    color: var(--subtle);
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =============================================
   10. 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(--muted);
}

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

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

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

===end file===
===end file===
===end file===
===end file===
===end file===
===end file===