/* styles.css */

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

    /* Palette: graphite + sage teal, amber as secondary */
    --bg: #0f1115;
    --bg-deep: #0b0d11;
    --surface: #161a21;
    --raised: #1d222b;
    --hover: #232934;

    --line: rgba(226, 230, 236, 0.08);
    --line-strong: rgba(226, 230, 236, 0.15);

    --text: #e3e6eb;
    --text-2: #c4cad3;
    --muted: #9ba3af;

    --accent: #7fb3a0;
    --accent-soft: rgba(127, 179, 160, 0.12);
    --accent-line: rgba(127, 179, 160, 0.38);
    --accent-visited: #a9c7bc;
    --accent-ink: #0f1115;

    --accent2: #d1a86f;
    --accent2-soft: rgba(209, 168, 111, 0.12);
    --accent2-line: rgba(209, 168, 111, 0.34);

    --focus: #f1d9a8;
    --warn: #e0a07a;

    /* Typography */
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    --fs-body: 1rem;
    --fs-text: 1.0625rem;
    --lh-body: 1.7;
    --lh-text: 1.75;
    --lh-heading: 1.3;

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

    /* Gutters */
    --gutter: 20px;
    --container: 1200px;
    --read: 70ch;

    /* Shape */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-pill: 999px;
    --border: 1px solid var(--line);

    --ease: 0.2s ease;
}

@media (min-width: 480px) {
    :root {
        --gutter: 24px;
    }
}

@media (min-width: 1024px) {
    :root {
        --fs-body: 1.0625rem;
        --fs-text: 1.125rem;
    }
}

/* =============================================
   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: #2a303b 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: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    font-style: italic;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #363e4c;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--ease), text-decoration-color var(--ease);
    overflow-wrap: anywhere;
}

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

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: var(--lh-heading);
    font-weight: 700;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
}

h2 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
}

h3 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
}

h4 {
    font-size: 1.05rem;
}

p {
    overflow-wrap: anywhere;
}

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

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

em,
i {
    font-style: italic;
}

mark {
    background: var(--accent2-soft);
    color: var(--accent2);
    padding: 0 var(--s-1);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px var(--accent2-line);
}

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

kbd {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text);
    background: var(--raised);
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    padding: 1px var(--s-2);
    white-space: nowrap;
}

/* Forms & buttons: never fall back to light defaults */
button,
input,
select,
textarea {
    font: inherit;
    color: var(--text);
    background: var(--raised);
    border: var(--border);
    border-radius: var(--radius-sm);
    color-scheme: dark;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: var(--s-3) var(--s-4);
    transition: border-color var(--ease), background var(--ease);
}

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

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

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

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    min-height: 44px;
    padding: var(--s-2) var(--s-5);
    width: auto;
    cursor: pointer;
    font-weight: 500;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background: var(--hover);
    border-color: var(--line-strong);
}

button:active,
input[type="submit"]:active {
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

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

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

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

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

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

.logo-name::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: var(--s-3);
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-5);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

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

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

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
    color: var(--accent);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--s-3);
    color: var(--muted);
    text-decoration: none;
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.lang-switcher a:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.lang-switcher a.active {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

@media (max-width: 767px) {
    .header-inner {
        justify-content: space-between;
    }

    .main-nav {
        order: 3;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--s-1) var(--s-5);
        padding-bottom: var(--s-1);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

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

    .main-nav a {
        white-space: nowrap;
    }
}

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

/* =============================================
   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;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    border: var(--border);
    background: var(--surface);
    animation: riseIn 0.6s ease both;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    transition: transform 0.6s ease;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding: 0;
    animation: riseIn 0.6s ease 0.08s both;
}

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

.article-title {
    font-family: var(--font-head);
    font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem);
    font-weight: 700;
    line-height: 1.28;
    color: var(--text);
    text-wrap: balance;
}

.lead {
    font-size: 1.0625rem;
    line-height: var(--lh-text);
    color: var(--text-2);
    max-width: var(--read);
}

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

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

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

.meta-item .value {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text);
}

.meta-divider {
    width: 1px;
    height: var(--s-6);
    background: var(--line-strong);
}

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

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

    .hero-content {
        padding: var(--s-4) 0;
    }
}

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

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

/* =============================================
   7. ARTICLE CONTENT
   ============================================= */
.content-body {
    max-width: var(--read);
    min-width: 0;
    animation: riseIn 0.6s ease 0.16s both;
}

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

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

.content-body h2 {
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    padding-top: var(--s-5);
    border-top: var(--border);
    color: var(--text);
}

.content-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.content-body h3 {
    margin-top: var(--s-6);
    margin-bottom: var(--s-3);
    color: var(--text);
}

.content-body h4 {
    margin-top: var(--s-5);
    margin-bottom: var(--s-2);
    color: var(--text-2);
}

.content-body blockquote {
    position: relative;
    margin: var(--s-6) 0;
    padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + var(--s-2));
    background: var(--surface);
    border: var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-2);
}

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

.content-body blockquote cite {
    display: block;
    margin-top: var(--s-3);
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.content-body ul,
.content-body ol {
    margin: 0 0 var(--s-5);
    padding-left: 0;
    color: var(--text-2);
    font-size: var(--fs-text);
    line-height: var(--lh-text);
}

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

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

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

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

.content-body ol > li {
    counter-increment: item;
}

.content-body ol > li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

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

.content-body ul ul > li::before {
    width: 4px;
    height: 4px;
    background: var(--muted);
    top: 0.75em;
}

.content-body figure {
    margin: var(--s-6) 0;
}

.content-body figcaption {
    margin-top: var(--s-3);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.content-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: var(--s-6) 0;
    font-size: 0.9375rem;
    border: var(--border);
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch;
}

.content-body th,
.content-body td {
    padding: var(--s-3) var(--s-4);
    text-align: left;
    vertical-align: top;
    border-bottom: var(--border);
    min-width: 8ch;
}

.content-body thead th {
    background: var(--raised);
    color: var(--text);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.content-body tbody tr:nth-child(even) {
    background: rgba(226, 230, 236, 0.02);
}

.content-body tbody tr:hover {
    background: var(--hover);
}

.content-body tbody tr:last-child th,
.content-body tbody tr:last-child td {
    border-bottom: 0;
}

.content-body pre {
    margin: var(--s-6) 0;
    padding: var(--s-4) var(--s-5);
    background: var(--bg-deep);
    border: var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-2);
    tab-size: 4;
    -webkit-overflow-scrolling: touch;
}

.content-body pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
    overflow-wrap: normal;
}

.content-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--accent2);
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1px var(--s-2);
    overflow-wrap: anywhere;
}

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

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

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

.info-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 1px;
    background: var(--accent2);
}

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

/* =============================================
   8. AUTHOR SIDEBAR
   ============================================= */
.author-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    order: -1;
}

.author-card {
    overflow: hidden;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
}

.author-avatar {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--raised);
    border-bottom: var(--border);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
}

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

.author-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

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

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

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

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

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

/* TOC Card */
.toc-card {
    padding: var(--s-5);
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
}

.toc-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: var(--border);
}

.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: 0.9375rem;
    color: var(--muted);
}

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

.toc-list li a {
    display: block;
    flex: 1;
    min-height: 44px;
    padding: var(--s-2) 0;
    line-height: 1.4;
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--ease);
}

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

@media (min-width: 1024px) {
    .author-sidebar {
        position: sticky;
        top: var(--s-8);
        order: 0;
    }
}

/* =============================================
   9. RELATED SECTION & CARDS
   ============================================= */
.related-section {
    margin-top: var(--s-7);
    padding-top: var(--s-7);
    border-top: 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.05rem + 0.8vw, 1.5rem);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5);
    min-width: 0;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
}

.card:hover {
    background: var(--raised);
    border-color: var(--line-strong);
}

.card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px var(--s-3);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
}

.badge.warning {
    color: var(--warn);
    background: rgba(224, 160, 122, 0.12);
    border-color: rgba(224, 160, 122, 0.36);
}

.card h4 {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.card p {
    flex-grow: 1;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--muted);
}

.card-status {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: auto;
    padding-top: var(--s-3);
    border-top: var(--border);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}

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

/* =============================================
   10. FOOTER
   ============================================= */
footer {
    margin-top: var(--s-7);
    background: var(--surface);
    border-top: var(--border);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-5);
}

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

.footer-left .brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text);
}

.footer-left .copy {
    font-size: 0.8125rem;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

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

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

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

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

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-4) var(--gutter) var(--s-6);
    border-top: var(--border);
    display: flex;
    flex-direction: column
;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: 0.75rem;
    color: var(--muted);
}

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

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
===end file===
===end file===
===end file===
===end file===
===end file===
===end file===