/* styles.css — skarga.org.ua
   Editorial-tech, light paper theme: ivory paper, ink-green accent, terracotta secondary.
   Mobile-first. */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    /* Surfaces */
    --paper: #f6f3ea;
    --paper-2: #efeadc;
    --surface: #fdfcf8;
    --surface-strong: #fffefb;
    --code-bg: #ebe6d6;

    /* Lines */
    --line: #dcd5c2;
    --line-soft: #e7e1d1;

    /* Text */
    --ink: #1c1f1a;
    --ink-body: #2a2d27;
    --ink-muted: #5b5f55;

    /* Accents */
    --accent: #2d5a46;
    --accent-hover: #1f4433;
    --accent-soft: #e2ebe3;
    --accent-line: rgba(45, 90, 70, 0.35);
    --secondary: #9a4f2e;
    --secondary-soft: #f4e6d9;

    /* Shadows (soft, light) */
    --shadow-xs: 0 1px 2px rgba(48, 42, 22, 0.05);
    --shadow-sm: 0 2px 8px -4px rgba(48, 42, 22, 0.10);
    --shadow-md: 0 10px 24px -14px rgba(48, 42, 22, 0.20);

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

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

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

    --fs-small: 0.8125rem;
    --fs-xs: 0.75rem;
    --lh-body: 1.7;
    --lh-heading: 1.3;

    /* Layout */
    --container: 1120px;
    --measure: 68ch;
    --gutter: 16px;
    --header-h: 64px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
    --dur: 0.18s;
}

/* ==========================================================================
   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;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background-color: var(--paper);
    color: var(--ink-body);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: var(--lh-body);
    overflow-x: hidden;
    overflow-wrap: break-word;
}

img,
picture,
video,
canvas,
svg,
iframe,
embed,
object {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

iframe {
    width: 100%;
    border: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

ul,
ol {
    list-style-position: outside;
}

/* ==========================================================================
   3. Base typography and links
   ========================================================================== */
a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--accent-line);
    transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

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

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

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: var(--lh-heading);
    overflow-wrap: anywhere;
}

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

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

/* ==========================================================================
   4. Layout shell
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 252, 248, 0.92);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

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

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

/* ==========================================================================
   5. Header: logo, nav, language switcher
   ========================================================================== */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    min-height: 44px;
}

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

.logo-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

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

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

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

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

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

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

.lang-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    padding: 4px 10px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    border-radius: var(--radius-xs);
}

.lang-switcher a:hover {
    color: var(--ink);
}

.lang-switcher a.active {
    background: var(--surface-strong);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   6. Hero / article head
   ========================================================================== */
.hero {
    max-width: var(--measure);
    margin: 0 auto var(--space-10);
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
}

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

.article-title {
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 0.9rem + 1.1vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: var(--space-4);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-muted);
    font-weight: 400;
    margin-bottom: var(--space-6);
}

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

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

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

.meta-item .value {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

.content-body p {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-body);
    margin-bottom: var(--space-5);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.content-body h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: var(--space-12) 0 var(--space-4);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line-soft);
}

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

.content-body h3 {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    margin: var(--space-8) 0 var(--space-3);
}

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

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

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

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

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

.content-body blockquote {
    position: relative;
    margin: var(--space-8) 0;
    padding: var(--space-5) var(--space-6);
    background: var(--paper-2);
    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.125rem;
    line-height: 1.6;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.content-body blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--ink);
}

.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;
    letter-spacing: 0.01em;
    color: var(--ink-muted);
}

.content-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.1em 0.35em;
    background: var(--code-bg);
    color: var(--ink);
    border-radius: var(--radius-xs);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.content-body pre {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: var(--code-bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre;
}

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

.content-body img,
.content-body video,
.content-body iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-6) auto;
}

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

.content-body figcaption {
    margin-top: var(--space-2);
    font-size: var(--fs-small);
    color: var(--ink-muted);
}

.content-body hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: var(--space-10) 0;
}

/* Tables: scroll horizontally on small screens */
.content-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: var(--space-6) 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

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

.content-body th {
    font-weight: 700;
    color: var(--ink);
    background: var(--paper-2);
    white-space: nowrap;
}

.content-body tbody tr:nth-child(even) td {
    background: rgba(239, 234, 220, 0.45);
}

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

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

/* ==========================================================================
   8. Info box
   ========================================================================== */
.info-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-xs);
}

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

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

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

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

/* ==========================================================================
   9. Sidebar
   ========================================================================== */
.sidebar {
    min-width: 0;
    width: 100%;
}

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

.author-card,
.toc-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface-strong);
    box-shadow: 0 0 0 1px var(--line);
}

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

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
}

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

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

.author-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    color: var(--ink-muted);
    text-decoration: none;
}

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

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

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

.toc-list li a {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-2);
    margin: 0 calc(var(--space-2) * -1);
    font-size: var(--fs-small);
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink-muted);
    text-decoration: none;
    border-radius: var(--radius-xs);
}

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

.toc-list li a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ==========================================================================
   10. Related section + cards
   ========================================================================== */
.related-section {
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid var(--line);
}

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

.section-header h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

a.card:hover {
    color: inherit;
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

a.card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

.tag.warning {
    color: var(--secondary);
    background: var(--secondary-soft);
}

.card-meta .date {
    font-size: var(--fs-xs);
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

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

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

.card p {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: var(--space-4);
    flex-grow: 1;
    overflow-wrap: anywhere;
}

.card-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
}

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

.card:hover .read-more {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
    margin-top: var(--space-16);
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
}

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

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

.brand-title {
    font-weight: 800;
    font-size: 1.0625rem;
    color: var(--ink);
}

.brand-desc {
    font-size: var(--fs-small);
    color: var(--ink-muted);
    max-width: 60ch;
}

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

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

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

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line-soft);
}

.footer-copy p {
    font-size: var(--fs-xs);
    line-height: 1.55;
    color: var(--ink-muted);
    overflow-wrap: anywhere;
}

/* ==========================================================================
   12. Generic utilities for unknown-but-common elements
   ========================================================================== */
blockquote {
    max-width: 100%;
}

:where(p, li, td, th, h1, h2, h3, h4, span, a, dd, dt, figcaption) {
    overflow-wrap: anywhere;
}

/* ==========================================================================
   13. Breakpoints: 480px
   ========================================================================== */
@media (min-width: 480px) {
    :root {
        --gutter: 20px;
    }

    .main-nav {
        width: auto;
        order: 0;
        overflow: visible;
    }

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

    .meta-panel {
display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
        padding: var(--space-5);
        background: var(--surface);
        border: 1px solid var(--line-soft);
        border-radius: var(--radius-md);
    }

    .meta-panel dt {
        font-size: var(--fs-xs);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

    .meta-panel dd {
        margin: 0;
        font-size: var(--fs-small);
        color: var(--ink);
    }
}

/* ==========================================================================
   14. Breakpoints: 768px
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --gutter: 28px;
    }

    .site-header .header-inner {
        padding-block: var(--space-4);
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        align-items: start;
    }

    .article-aside {
        position: sticky;
        top: var(--space-8);
    }

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

    .card {
        padding: var(--space-6);
    }

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

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

    .section-header h2 {
        font-size: clamp(1.5rem, 1.25rem + 0.5vw, 1.875rem);
    }
}

/* ==========================================================================
   15. Breakpoints: 1024px
   ========================================================================== */
@media (min-width: 1024px) {
    :root {
        --gutter: 40px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
    }

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

    .card h3 {
        font-size: 1.125rem;
    }

    .card:hover {
        transform: translateY(-3px);
    }
}

/* ==========================================================================
   16. Reduced motion
   ========================================================================== */
@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;
    }

    a.card:hover {
        transform: none;
    }
}

/* ==========================================================================
   17. Print
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .related-section,
    .article-aside,
    .main-nav,
    .read-more {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .article-layout {
        display: block;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        word-break: break-all;
    }

    img,
    figure,
    blockquote,
    pre {
        break-inside: avoid;
    }
}
===end file===
===end file===
===end file===
===end file===
===end file===
===end file===