/* styles.css */

:root {
    /* Palette: graphite + amber */
    --bg: #0f1115;
    --bg-elev: #13161c;
    --surface: #171b22;
    --surface-raised: #1e232c;
    --surface-sunk: #0a0c10;

    --border: #272d38;
    --border-strong: #363e4d;

    --text-heading: #f3f5f8;
    --text-main: #e4e7ec;
    --text-muted: #9aa3b2;
    --text-faint: #7d8696;

    --accent: #d4a255;
    --accent-hover: #e2b56e;
    --accent-soft: rgba(212, 162, 85, 0.14);
    --accent-line: rgba(212, 162, 85, 0.45);
    --accent-ink: #15110a;

    --link-visited: #b8a5d1;
    --code-text: #f0d199;
    --mark-bg: rgba(212, 162, 85, 0.25);

    /* 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;

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

    /* Borders */
    --border-width: 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;
    --lh-body: 1.7;
    --lh-heading: 1.3;

    /* Layout */
    --container: 1160px;
    --article-max: 46rem;
    --header-h: 64px;
    --touch-min: 44px;

    --transition: 0.2s ease;
    color-scheme: dark;
}

/* Reset */

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

html {
    color-scheme: dark;
    background-color: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-color: var(--border-strong) var(--surface-sunk);
    scrollbar-width: thin;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-body);
    min-height: 100vh;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

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

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

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

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

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

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

/* Links */

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

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

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

/* Media */

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

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

/* Form controls: dark defaults */

input,
textarea,
select,
button {
    font: inherit;
    color: var(--text-main);
    background-color: var(--surface-raised);
    border: var(--border-width) solid var(--border-strong);
    border-radius: var(--radius-sm);
    color-scheme: dark;
}

input,
select,
button {
    min-height: var(--touch-min);
    padding: var(--space-2) var(--space-4);
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-3) var(--space-4);
    resize: vertical;
}

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

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

button {
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

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

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

/* Typography */

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

h1 {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.0625rem;
}

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

p {
    overflow-wrap: anywhere;
}

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

em,
i {
    font-style: italic;
}

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

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

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

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

/* Code */

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

code {
    font-size: 0.9em;
    color: var(--code-text);
    background: var(--surface-raised);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-xs);
    overflow-wrap: anywhere;
}

pre {
    background: var(--surface-sunk);
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
    font-size: var(--fs-small);
    color: var(--text-main);
    margin: var(--space-5) 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

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

/* Lists */

ul,
ol {
    padding-left: 1.25em;
}

li {
    overflow-wrap: anywhere;
}

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

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

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

/* Tables */

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

thead {
    background: var(--surface-raised);
}

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

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

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

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

tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

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

/* Quotes and figures */

blockquote {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-4) var(--space-5);
    color: var(--text-muted);
    margin: var(--space-6) 0;
}

blockquote p + p {
    margin-top: var(--space-3);
}

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

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

/* Layout shell */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-elev);
    border-bottom: var(--border-width) solid var(--border);
}

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

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

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

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

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-small);
    font-weight: 500;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0 var(--space-3);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

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

.main-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

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

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

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

.lang-switcher a.active {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-line);
}

main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-6) var(--space-4) var(--space-8);
    min-width: 0;
}

/* Hero */

.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-2) 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-width) solid var(--accent-line);
    padding: var(--space-1) 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-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
    hyphens: auto;
    -webkit-hyphens: auto;
}

.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-4) var(--space-6);
    padding: var(--space-4) 0;
    border-top: var(--border-width) solid var(--border);
    border-bottom: var(--border-width) solid var(--border);
    margin-bottom: var(--space-6);
}

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

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

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

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

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

/* Content 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);
    width: 100%;
    margin: 0 auto;
    min-width: 0;
}

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

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

.content-body h2 {
    font-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 800;
    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.125rem;
    font-weight: 700;
    margin: var(--space-6) 0 var(--space-3);
}

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

.content-body ul,
.content-body ol {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-main);
    padding-left: 1.25em;
    margin-bottom: var(--space-5);
}

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

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

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

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

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

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

.content-body ul ul,
.content-body ol ol,
.content-body ul ol,
.content-body ol ul {
    margin-top: var(--space-2);
    margin-bottom: 0;
    margin-left: 0;
}

.content-body blockquote {
    margin: var(--space-6) 0;
    padding: 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 {
    color: var(--text-muted);
    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 code {
    font-size: 0.875em;
}

.content-body pre {
    margin: var(--space-6) 0;
}

.content-body table {
    font-family: var(--font-sans);
}

/* Info box */

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

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

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

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

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

/* Sidebar */

.sidebar {
    min-width: 0;
}

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

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

.author-badge {
    display: block;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.author-name {
    display: block;
    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: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    border: var(--border-width) solid var(--border);
    color: var(--text-muted);
}

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

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

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

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

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

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

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

/* Related */

.related-section {
    margin-top: var(--space-8);
    padding-top: var(--space-7);
    border-top: var(--border-width) 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.25rem;
    font-weight: 800;
    color: var(--text-heading);
    white-space: nowrap;
}

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

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

.card {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
    cursor: pointer;
}

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

.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: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px var(--space-2);
    border-radius: var(--radius-xs);
}

.tag.warning {
    color: var(--text-heading);
    background: transparent;
    border: var(--border-width) solid var(--accent-line);
}

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

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

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

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent);
}

.card-link::after {
    content: "→";
    transition: transform var(--transition);
}

.card:hover .card-link::after {
    transform: translateX(3px);
}

/* Footer */

.site-footer {
    margin-top: var(--space-9);
    padding: var(--space-7) 0;
    border-top: var(--border-width) solid var(--border);
    background: var(--surface);
}

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

.footer-brand {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-heading);
}

.footer-text {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 48ch;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
}

.footer-nav a {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

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

.footer-bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: var(--border-width) solid var(--border);
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

/* 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-center {
    text-align: center;
}

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

/* Focus */

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

/* Responsive */

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

    .footer-grid {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

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

    .sidebar-sticky {
        position: sticky;
        top: var(--space-6);
    }

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

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