/* =========================================================
   yes/init — тема для Ghost
   Светлая технологичная тема в палитре Habr:
   сайдбар с навигацией и тегами, вступительная плашка,
   лента постов
   ========================================================= */

:root {
    --bg: #ffffff;
    --bg-sidebar: #fafbfc;
    --surface: #f6f8fa;
    --surface-2: #f0f2f4;
    --border: #e7eaed;
    --border-2: #eef0f2;
    --border-strong: #d8dce0;
    --text: #33383d;
    --text-strong: #1b1b1d;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;
    --text-dim: #4b5563;
    --accent: #3e7c99;
    --accent-contrast: #ffffff;
    --radius-l: 16px;
    --radius-m: 10px;
    --radius-s: 7px;
    --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --sidebar-w: 280px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ---------- layout shell ---------- */

.shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ---------- sidebar ---------- */

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
}

.sidebar-scroll {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px 24px;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    padding: 0 8px;
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-strong);
    display: inline-flex;
    align-items: center;
}

.brand-caret {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent);
    margin-left: 3px;
}

.brand-logo {
    max-height: 32px;
    width: auto;
}

.side-nav {
    margin-bottom: 28px;
}

.side-nav .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav .nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid transparent;
}

.side-nav .nav li a:hover {
    color: var(--text-strong);
    background: var(--surface-2);
}

.side-nav .nav li.nav-current a {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-left-color: var(--accent);
    color: var(--text-strong);
    font-weight: 500;
}

.side-section {
    margin-bottom: 28px;
}

.side-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 12px;
    margin-bottom: 12px;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.tag-row:hover,
.tag-row.is-current {
    background: var(--surface-2);
    color: var(--text);
}

.tag-row-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-row-count {
    font-size: 12px;
    color: var(--text-dim);
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.side-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.side-subscribe {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-s);
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 22px;
}

.side-socials {
    display: flex;
    gap: 16px;
    padding: 0 4px;
}

.side-socials a {
    color: var(--text-faint);
}

.side-socials a:hover {
    color: var(--accent);
}

/* sidebar mobile toggle */

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- main column ---------- */

.main {
    flex: 1;
    min-width: 0;
    position: relative;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 56px 0;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    font-size: 13.5px;
    width: 320px;
    max-width: 100%;
}

.search-btn:hover {
    border-color: var(--accent);
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.link-muted {
    font-size: 14px;
    color: var(--text-muted);
}

.link-muted:hover {
    color: var(--text-strong);
}

.btn-accent {
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.btn-accent:hover {
    opacity: 0.9;
}

.main-content {
    padding: 40px 56px 20px;
    position: relative;
    z-index: 2;
}

/* ---------- footer ---------- */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px 56px 44px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--text-dim);
}

.site-footer a {
    color: var(--text-dim);
}

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

.site-footer-copy a {
    color: var(--text-muted);
}

.site-footer-nav .nav {
    display: flex;
    gap: 16px;
}

.gh-badge {
    color: var(--text-dim);
}

/* ---------- intro banner (главная страница) ---------- */

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 16px;
}

.intro-banner {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 44px;
}

.intro-content {
    flex: 1.3;
    min-width: 0;
}

.intro-title {
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
    max-width: 520px;
    margin: 0 0 14px;
}

.intro-text {
    font-size: 15.5px;
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.intro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 14px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.intro-media {
    width: 260px;
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--bg));
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-media svg {
    position: absolute;
    inset: 0;
}

/* ---------- post feed / cards ---------- */

.post-feed {
    display: flex;
    flex-direction: column;
}

.post-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.post-card-media {
    width: 150px;
    height: 100px;
    border-radius: var(--radius-m);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-media-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        var(--surface);
}

.post-card-body {
    flex: 1;
    min-width: 0;
}

.post-card-link {
    display: block;
}

.tag-pill {
    display: inline-block;
    font-size: 12px;
    color: var(--text-dim);
    background: var(--surface-2);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.post-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0 0 6px;
    line-height: 1.4;
}

.post-card-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    font-size: 12px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    color: var(--text-dim);
}

/* first post on homepage: bigger, featured treatment */

.post-card-featured {
    align-items: stretch;
    padding-bottom: 32px;
    margin-bottom: 8px;
}

.post-card-featured .post-card-media {
    width: 280px;
    height: 180px;
}

.post-card-featured .post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-featured .post-card-title {
    font-family: var(--font-head);
    font-size: 23px;
}

.post-card-featured .post-card-excerpt {
    font-size: 14.5px;
    -webkit-line-clamp: 3;
}

/* compact list variant used on tag pages / related posts */

.post-feed-list .post-card {
    padding: 20px 0;
}

.post-feed-list .post-card-media {
    width: 130px;
    height: 88px;
}

/* ---------- pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 8px;
}

.pagination .page-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 13.5px;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- tag header / pills ---------- */

.crumbs {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.crumbs a {
    color: var(--text-dim);
}

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

.crumbs span {
    margin: 0 8px;
    color: var(--border-strong);
}

.crumb-current {
    color: var(--text-muted);
}

.tag-header {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.tag-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

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

.tag-title-row h1 {
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.tag-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0;
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 13px;
}

.pill:hover {
    border-color: var(--accent);
    color: var(--text-strong);
}

/* ---------- blog index (страница "Блог") ---------- */

.blog-index-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.blog-index-head h1 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.blog-index-count {
    font-size: 13px;
    color: var(--text-faint);
    white-space: nowrap;
}

.blog-index-sub {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 0 36px;
}

.blog-index-empty {
    font-size: 14.5px;
    color: var(--text-muted);
}

.blog-index-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.blog-by-tag {
    flex: 1;
    min-width: 0;
}

.tag-group {
    margin-bottom: 34px;
}

.tag-group:last-child {
    margin-bottom: 0;
}

.tag-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.tag-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
}

.tag-group-count {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-faint);
    background: var(--surface-2);
    padding: 2px 9px;
    border-radius: 10px;
}

.tag-group-link {
    font-size: 13px;
    color: var(--accent);
    white-space: nowrap;
}

.tag-group-link:hover {
    color: var(--text-strong);
}

.tag-group-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tag-group-post a {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.tag-group-post a:hover {
    color: var(--accent);
}

.tag-group-meta {
    font-size: 12px;
    color: var(--text-faint);
}

.blog-timeline {
    width: 340px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 26px 24px;
    position: sticky;
    top: 24px;
}

.blog-timeline .side-label {
    margin-bottom: 20px;
}

.timeline-month {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    margin: 22px 0 12px;
}

.timeline-month:first-child {
    margin-top: 0;
}

.timeline-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    padding-left: 18px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-date {
    display: block;
    font-size: 11.5px;
    color: var(--text-faint);
    margin-bottom: 2px;
}

.timeline-item a {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.4;
}

.timeline-item a:hover {
    color: var(--accent);
}

/* ---------- single post / page ---------- */

.post-view-header {
    margin-bottom: 32px;
}

.post-view-header h1 {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
    margin: 0 0 16px;
    max-width: 820px;
}

.post-view-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text-faint);
}

.post-view-image {
    margin: 0 0 36px;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--surface);
}

.post-view-image img {
    width: 100%;
}

.post-view-image figcaption {
    padding: 10px 4px 0;
    font-size: 12.5px;
    color: var(--text-dim);
    text-align: center;
}

.page-view .post-view-header h1 {
    margin-bottom: 0;
}

/* post body typography (rendered post content) */

.post-content {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}

.post-content > * + * {
    margin-top: 1.4em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-head);
    color: var(--text-strong);
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.post-content h2 {
    font-size: 26px;
}

.post-content h3 {
    font-size: 21px;
}

.post-content p {
    margin: 0;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content strong {
    color: var(--text-strong);
}

.post-content ul,
.post-content ol {
    padding-left: 1.4em;
    list-style: disc;
}

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

.post-content li + li {
    margin-top: 0.4em;
}

.post-content blockquote,
.post-content .kg-blockquote-alt {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    color: var(--text-muted);
    font-style: italic;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 18px 20px;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img,
.post-content .kg-image {
    border-radius: var(--radius-m);
}

/* Koenig editor width classes: wide breaks out of the text column,
   full breaks out to the edge of the main content area */
.post-content .kg-width-wide {
    max-width: 900px;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.post-content .kg-width-full {
    max-width: none;
    width: 100%;
    margin-left: 0;
    transform: none;
}

.post-content .kg-width-full img {
    border-radius: 0;
}

.post-content figcaption,
.post-content .kg-image-card figcaption {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 10px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.post-content .kg-callout-card {
    display: flex;
    gap: 12px;
    padding: 18px 20px;
    background: var(--surface);
    border-radius: var(--radius-m);
    border: 1px solid var(--border);
}

.post-content .kg-bookmark-card a,
.post-content .kg-bookmark-container {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--surface);
}

.post-content .kg-bookmark-content {
    padding: 16px 18px;
}

.post-content .kg-bookmark-title {
    color: var(--text-strong);
    font-weight: 600;
}

.post-content .kg-bookmark-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.post-content .kg-button-card {
    text-align: center;
}

.post-content .kg-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

/* ---------- share ---------- */

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    max-width: 760px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 13px;
}

.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.share-btn.is-copied {
    border-color: var(--accent);
    color: var(--accent);
}

.share-x,
.share-tg {
    padding: 9px;
}

/* ---------- post CTA / related ---------- */

.post-cta {
    margin-top: 48px;
    padding: 32px;
    border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    max-width: 760px;
}

.post-cta h3 {
    font-family: var(--font-head);
    color: var(--text-strong);
    margin: 0 0 8px;
    font-size: 20px;
}

.post-cta p {
    color: var(--text-muted);
    margin: 0 0 18px;
    font-size: 14.5px;
}

.more-posts {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    max-width: 900px;
}

.more-posts .side-label {
    padding: 0;
    margin-bottom: 18px;
}

/* ---------- error page ---------- */

.error-view {
    padding: 90px 0;
    text-align: center;
}

.error-code {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 12px;
}

.error-message {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--text-strong);
    margin: 0 0 12px;
}

.error-sub {
    color: var(--text-muted);
    margin: 0 0 28px;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
    .topbar,
    .main-content,
    .site-footer {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 959px) {
    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.4);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .topbar {
        padding-top: 84px;
        flex-wrap: wrap;
    }

    .search-btn {
        width: 100%;
    }

    .blog-index-layout {
        flex-direction: column;
    }

    .blog-timeline {
        width: 100%;
        position: static;
    }
}

@media (max-width: 640px) {
    .topbar,
    .main-content,
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .intro-banner {
        flex-direction: column;
        padding: 28px;
    }

    .intro-media {
        width: 100%;
        height: 160px;
    }

    .intro-title {
        font-size: 26px;
        max-width: none;
    }

    .intro-text {
        max-width: none;
    }

    .post-view-header h1 {
        font-size: 28px;
    }

    .post-card,
    .post-card-featured {
        flex-direction: column;
        align-items: stretch;
    }

    .post-card-media,
    .post-card-featured .post-card-media {
        width: 100%;
        height: 160px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
