/* styles.css */

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

    /* Palette: graphite + sage teal + muted amber */
    --bg: #0f1115;
    --bg-deep: #0b0d10;
    --surface: #161920;
    --surface-raised: #1c2029;
    --surface-code: #12151b;
    --surface-hover: #222733;

    --border: #2a2f3a;
    --border-strong: #3b4252;

    --text-main: #f2f4f7;
    --text-body: #dde1e8;
    --text-muted: #a4acb9;

    --accent: #6dbfb2;
    --accent-strong: #8fd6ca;
    --accent-soft: #19282600;
    --accent-tint: #1a2a28;

    --accent-2: #d9b07a;
    --accent-2-tint: #2a2318;

    --link-visited: #c9a673;
    --focus: #b7f0e4;
    --mark-bg: #3a3118;
    --mark-text: #f3dfae;

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

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    /* Borders */
    --border-w: 1px;

    /* Typography */
    --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;
    --fs-body-serif: 1.0625rem;
    --fs-h1: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --fs-h2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-h3: 1.125rem;

    --lh-body: 1.7;
    --lh-heading: 1.3;

    /* Layout */
    --container: 1160px;
    --article-max: 68ch;
    --sidebar-w: 280px;
    --touch: 44px;

    --ease: 180ms ease;
}

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

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

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;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
    word-break: normal;
}

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

img {
    border-radius: var(--radius-md);
}

::selection {
    background: var(--accent);
    color: var(--bg-deep);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg-deep);
}

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

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

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

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

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

/* ==========================================================================
   3. Base typography and links
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4,
h5,
h6 {
    font-size: var(--fs-base);
}

p {
    margin-bottom: var(--space-5);
}

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

em,
i {
    font-style: italic;
}

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

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(109, 191, 178, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color var(--ease), text-decoration-color var(--ease);
}

a:hover {
    color: var(--accent-strong);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: var(--space-7) 0;
}

mark {
    background: var(--mark-bg);
    color: var(--mark-text);
    padding: 0 var(--space-1);
    border-radius: var(--radius-sm);
}

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

/* Lists */
ul,
ol {
    padding-left: var(--space-5);
    margin-bottom: var(--space-5);
}

li {
    margin-bottom: var(--space-2);
}

li::marker {
    color: var(--accent);
}

ul ul,
ol ul,
ul ol,
ol ol {
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
    padding-left: var(--space-5);
}

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

code {
    font-size: 0.875em;
    background: var(--surface-raised);
    color: var(--accent-strong);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    overflow-wrap: anywhere;
}

pre {
    background: var(--surface-code);
    color: var(--text-body);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
    overflow-x: auto;
    max-width: 100%;
    white-space: pre;
    line-height: 1.6;
    font-size: 0.875rem;
    -webkit-overflow-scrolling: touch;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    overflow-wrap: normal;
}

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

thead,
tbody,
tfoot {
    display: table;
    width: 100%;
}

th,
td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border-w) solid var(--border);
    vertical-align: top;
    min-width: 120px;
}

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

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

tbody tr {
    transition: background var(--ease);
}

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

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

caption {
    caption-side: bottom;
    padding-top: var(--space-2);
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

/* Forms */
input,
textarea,
select,
button {
    font: inherit;
    color: var(--text-body);
    background: var(--surface);
    border: var(--border-w) solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    min-height: var(--touch);
    color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
    color: #7d8594;
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

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

select option {
    background: var(--surface);
    color: var(--text-body);
}

button {
    cursor: pointer;
    background: var(--surface-raised);
    color: var(--text-main);
    font-weight: 600;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}

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

button:active {
    background: var(--accent-tint);
}

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

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

figure img {
    border-radius: var(--radius-md);
    filter: brightness(0.94);
}

figcaption {
    margin-top: var(--space-2);
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.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);
    min-height: var(--touch);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-decoration: none;
}

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

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

.main-nav {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-small);
    font-weight: 500;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--space-4) * -1);
    padding: 0 var(--space-3);
    border-top: var(--border-w) solid var(--border);
    scrollbar-width: none;
}

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: var(--touch);
    padding: 0 var(--space-3);
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--ease), border-color var(--ease);
}

.main-nav a:hover {
    color: var(--text-main);
    border-bottom-color: var(--accent);
}

.main-nav a.active {
    color: var(--accent);
    border-bottom-color: 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: 40px;
    min-height: 36px;
    padding: 0 var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: background var(--ease), color var(--ease);
}

.lang-switcher a:hover {
    color: var(--text-main);
    background: var(--surface-hover);
}

.lang-switcher a.active {
    background: var(--accent-tint);
    color: var(--accent-strong);
}

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

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

.hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    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-tint);
    border: var(--border-w) solid rgba(109, 191, 178, 0.25);
    padding: 4px var(--space-3);
    border-radius: var(--radius-pill);
}

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

.article-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.lead {
    font-size: 1.0625rem;
    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-3) var(--space-5);
    padding: var(--space-3) 0;
    border-top: var(--border-w) solid var(--border);
    border-bottom: var(--border-w) solid var(--border);
    margin-bottom: var(--space-5);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

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

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

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

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

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

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

.content-body p {
    font-family: var(--font-serif);
    font-size: var(--fs-body-serif);
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-5);
}

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

.content-body h3 {
    font-family: var(--font-sans);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--text-main);
    margin: var(--space-6) 0 var(--space-3);
}

.content-body h2 + p,
.content-body h3 + p {
    margin-top: 0;
}

.content-body ul,
.content-body ol {
    font-family: var(--font-serif);
    font-size: var(--fs-body-serif);
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: var(--space-5);
}

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

.content-body blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    background: var(--surface);
    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.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.content-body blockquote p {
    font-family: inherit;
    font-style: inherit;
    font-size: inherit;
    line-height: inherit;
    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);
}

.content-body blockquote cite::before {
    content: "— ";
}

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

.info-box-title {
    font-size: var(--fs-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-strong);
    margin-bottom: var(--space-3);
}

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

.info-box li {
    position: relative;
    padding-left: var(--space-5);
    font-size: var(--fs-small);
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 0;
}

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

/* Sidebar */
.sidebar {
    order: 2;
    min-width: 0;
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.author-card,
.toc-card {
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-md);
    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;
    flex-shrink: 0;
    border: var(--border-w) solid var(--border-strong);
    filter: brightness(0.94);
}

.author-badge {
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

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

.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: var(--touch);
    height: var(--touch);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    border: var(--border-w) solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.author-socials a:hover {
    background: var(--accent-tint);
    border-color: var(--accent);
    color: var(--accent-strong);
}

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

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

.toc-list li {
    margin-bottom: 0;
    border-top: var(--border-w) solid var(--border);
}

.toc-list li:first-child {
    border-top: 0;
}

.toc-list li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--ease);
}

.toc-list li a span {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 20px;
}

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

/* ==========================================================================
   7. Related section and 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: var(--fs-h2);
    font-weight: 800;
    color: var(--text-main);
    white-space: normal;
    margin: 0;
}

.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 {
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    min-width: 0;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

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

.card:focus-within {
    border-color: var(--accent);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 3px var(--space-2);
    border-radius: 4px;
}

.tag.warning {
    color: var(--accent-2);
    background: var(--accent-2-tint);
}

.card-meta .date {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.card p {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    min-height: var(--touch);
}

.read-more {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.read-more:hover {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-deep);
    border-top: var(--border-w) solid var(--border);
    margin-top: var(--space-8);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-7) var(--space-4) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
}

.brand-desc {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    font-size: var(--fs-small);
    font-weight: 500;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: var(--text-muted);
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-5);
    border-top: var(--border-w) solid var(--border);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
}

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

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

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================================
   10. Utilities and accessibility
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    z-index: 1000;
    padding: var(--space-2) var(--space-4);
    background: var(--accent);
    color: var(--surface);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-4);
}

@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===