:root {
    color-scheme: light;
    --page: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f0f3f7;
    --text: #18212f;
    --text-soft: #5b6677;
    --line: #dce1e8;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: #eaf1ff;
    --action: #2563eb;
    --action-hover: #1d4ed8;
    --focus: #f59e0b;
    --shadow: 0 12px 34px rgb(30 41 59 / 8%);
    --radius: 16px;
    --content-width: 1180px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #0d1117;
    --surface: #151b23;
    --surface-soft: #1c2430;
    --text: #e6edf3;
    --text-soft: #9da9b8;
    --line: #303946;
    --accent: #79a7ff;
    --accent-strong: #a7c4ff;
    --accent-soft: #1b3157;
    --action: #3569bd;
    --action-hover: #4077ce;
    --focus: #fbbf24;
    --shadow: 0 16px 36px rgb(0 0 0 / 24%);
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-wrap: anywhere;
    background: var(--page);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

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

button,
select {
    cursor: pointer;
}

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

a {
    color: var(--accent);
    text-underline-offset: .18em;
}

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

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: .55rem .85rem;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    background: var(--brand-color, #2563eb);
    color: #fff;
}

.site-header-sticky {
    position: sticky;
    top: 0;
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    width: min(calc(100% - 2rem), var(--content-width));
    min-height: 68px;
    margin: 0 auto;
}

.site-brand {
    min-width: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 760;
    letter-spacing: -.02em;
    text-decoration: none;
}

.site-brand span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand:hover,
.site-brand:focus-visible,
.site-navigation a:hover,
.site-navigation a:focus-visible {
    color: #fff;
}

.site-navigation ul {
    display: flex;
    justify-content: flex-end;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a {
    display: block;
    padding: .42rem .72rem;
    border-radius: 8px;
    color: rgb(255 255 255 / 84%);
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
    background: rgb(255 255 255 / 14%);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    min-height: 40px;
    padding: .4rem .65rem;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: .9rem;
    font-weight: 650;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.menu-toggle-lines {
    position: relative;
    transition: background-color .16s ease;
}

.menu-toggle-lines::before {
    position: absolute;
    top: -5px;
    transition: top .16s ease, transform .16s ease;
}

.menu-toggle-lines::after {
    position: absolute;
    top: 5px;
    transition: top .16s ease, transform .16s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.theme-menu {
    position: relative;
}

.theme-menu summary {
    list-style: none;
}

.theme-menu summary::-webkit-details-marker {
    display: none;
}

.theme-menu-trigger {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 10px;
    background-color: rgb(0 0 0 / 12%);
    color: #fff;
    cursor: pointer;
}

.theme-menu[open] .theme-menu-trigger,
.theme-menu-trigger:hover {
    background-color: rgb(255 255 255 / 16%);
}

.theme-mode-icon,
.theme-option-icon {
    width: 19px;
    height: 19px;
}

.theme-mode-icon {
    display: none;
}

:root[data-theme-preference="auto"] .theme-mode-auto,
:root[data-theme-preference="light"] .theme-mode-light,
:root[data-theme-preference="dark"] .theme-mode-dark {
    display: block;
}

.theme-mode-icon svg,
.theme-option-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.theme-menu-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 10px);
    right: 0;
    width: 184px;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.theme-menu-panel button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: 42px;
    padding: .45rem .6rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    text-align: left;
}

.theme-menu-panel button:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.theme-menu-panel button[aria-pressed="true"] {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.theme-option-check {
    opacity: 0;
}

.theme-menu-panel button[aria-pressed="true"] .theme-option-check {
    opacity: 1;
}

html.theme-changing *,
html.theme-changing *::before,
html.theme-changing *::after {
    transition-duration: 180ms;
    transition-property: background-color, border-color, color, box-shadow, fill, stroke;
    transition-timing-function: ease-out;
}

.site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 2rem;
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 2.5rem auto 4rem;
}

.content-column {
    min-width: 0;
}

.content-column-wide {
    grid-column: 1 / -1;
}

.page-heading {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(5.5rem, 11vw, 7.5rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.page-heading-icon {
    position: absolute;
    top: 50%;
    right: clamp(1.35rem, 3vw, 2rem);
    width: clamp(3.25rem, 7vw, 4.75rem);
    color: var(--accent);
    opacity: .22;
    transform: translateY(-50%);
}

.page-heading-icon svg {
    width: 100%;
}

.page-heading h1 {
    margin: .15rem 0 .35rem;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.page-heading p {
    max-width: 68ch;
    margin: 0;
    color: var(--text-soft);
}

.eyebrow {
    color: var(--accent) !important;
    font-size: .78rem;
    font-weight: 760;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.post-list {
    display: grid;
    gap: 1.25rem;
}

.post-card,
.article-detail,
.comment-shell,
.widget,
.search-form,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.post-card {
    display: grid;
    grid-template-columns: minmax(190px, 30%) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.post-card:not(.post-card-with-image) {
    grid-template-columns: 1fr;
}

.post-card-media {
    min-height: 210px;
    overflow: hidden;
    background: var(--surface-soft);
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.post-card:hover .post-card-media img {
    transform: scale(1.025);
}

.post-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
}

.post-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: var(--text-soft);
    font-size: .85rem;
}

.category-link {
    font-weight: 700;
    text-decoration: none;
}

.post-card-pinned {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .25rem;
    padding: .08rem .38rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.post-card-pinned-icon {
    width: .82rem;
    height: .82rem;
}

.post-card h2 {
    margin: .55rem 0 .5rem;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    line-height: 1.3;
    letter-spacing: -.025em;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--accent);
}

.post-digest {
    color: var(--text-soft);
}

.post-digest > :first-child {
    margin-top: 0;
}

.post-digest > :last-child {
    margin-bottom: 0;
}

.post-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1.1rem;
    font-size: .9rem;
}

.read-more {
    font-weight: 700;
    text-decoration: none;
}

.comment-link {
    color: var(--text-soft);
}

.sidebar {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.widget {
    padding: 1rem;
    box-shadow: none;
}

.widget-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .7rem;
}

.widget-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    font-size: 1rem;
}

.widget-title-icon {
    width: 1.1rem;
    color: var(--accent);
}

.widget-heading > a {
    flex: none;
    font-size: .8rem;
}

.widget-list {
    display: grid;
    gap: .2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-list a {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .4rem .25rem;
    border-radius: 6px;
    color: var(--text-soft);
    font-size: .9rem;
    text-decoration: none;
}

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

.tag-list,
.article-tags,
.tag-cloud-page {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.tag-list a,
.article-tags a,
.tag-cloud-page a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .32rem .62rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: .83rem;
    text-decoration: none;
}

.tag-list a:hover,
.article-tags a:hover,
.tag-cloud-page a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-form {
    display: flex;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
}

.search-form input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .6rem .8rem;
    border: 0;
    background: transparent;
    outline: 0;
}

.search-form input:focus-visible {
    box-shadow: none;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}

.search-form button {
    flex: none;
    min-height: 44px;
    padding: .55rem .8rem;
    border: 0;
    background: var(--action);
    color: #fff;
    font-weight: 700;
}

.search-form button:hover {
    background: var(--action-hover);
}

.search-form-main {
    width: min(100%, 520px);
    margin: 1.25rem auto;
}

.pager {
    margin-top: 1.5rem;
}

.pager ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager a {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-soft);
    text-decoration: none;
}

.pager a:hover,
.pager-current {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.pager-current {
    background: var(--accent-soft) !important;
    font-weight: 750;
}

.article-detail {
    padding: clamp(1.25rem, 4vw, 2.75rem);
}

.article-header {
    max-width: 72ch;
    margin: 0 auto 2rem;
}

.article-header h1 {
    margin: .55rem 0 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -.045em;
}

.article-content {
    max-width: 72ch;
    margin: 0 auto;
    color: var(--text);
    font-size: clamp(1rem, 1.5vw, 1.06rem);
}

.article-content pre,
.article-content table {
    max-width: 100%;
    overflow-x: auto;
}

.article-content img {
    height: auto;
    border-radius: 10px;
}

.markdown-body {
    color: inherit;
    background: transparent;
}

.markdown-body a {
    text-decoration: underline;
}

:root[data-theme="dark"] .markdown-body {
    color: var(--text);
}

:root[data-theme="dark"] .markdown-body h1,
:root[data-theme="dark"] .markdown-body h2,
:root[data-theme="dark"] .markdown-body h3,
:root[data-theme="dark"] .markdown-body h4,
:root[data-theme="dark"] .markdown-body strong {
    color: var(--text);
}

:root[data-theme="dark"] .markdown-body blockquote {
    color: var(--text-soft);
    border-left-color: var(--line);
}

:root[data-theme="dark"] .markdown-body table tr,
:root[data-theme="dark"] .markdown-body table th,
:root[data-theme="dark"] .markdown-body table td {
    border-color: var(--line);
    background: transparent;
}

:root[data-theme="dark"] .markdown-body code {
    background: var(--surface-soft);
}

.article-toc {
    max-width: 72ch;
    margin: 0 auto 2rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}

.article-toc summary {
    font-weight: 750;
    cursor: pointer;
}

.article-toc ul {
    margin-bottom: 0;
}

.article-tags {
    max-width: 72ch;
    margin: 2rem auto 0;
}

.reprint-note {
    max-width: 72ch;
    margin: 2rem auto 0;
    padding: 1rem;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: .88rem;
}

.reprint-note p {
    margin: 0;
}

.article-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    max-width: 72ch;
    margin: 2rem auto 0;
}

.article-neighbors a {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
}

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

.article-neighbors span {
    color: var(--text-soft);
    font-size: .78rem;
}

.comment-shell {
    margin-top: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.comment-shell:not(:has(*)) {
    display: none;
}

.detail-ad {
    max-width: 72ch;
    margin: 2rem auto 0;
}

.empty-state {
    padding: clamp(2.5rem, 7vw, 5rem) 1.25rem;
    text-align: center;
}

.empty-state h1,
.empty-state h2 {
    margin: .25rem 0;
    line-height: 1.25;
}

.empty-state p {
    margin: .5rem auto;
    color: var(--text-soft);
}

.empty-state-mark {
    color: var(--accent) !important;
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 780;
    line-height: 1;
}

.compact-empty {
    box-shadow: none;
}

.button-link,
.text-link {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 700;
}

.button-link {
    padding: .55rem .9rem;
    border-radius: 9px;
    background: var(--action);
    color: #fff;
    text-decoration: none;
}

.button-link:hover {
    background: var(--action-hover);
    color: #fff;
}

.link-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.link-card,
.category-card {
    display: flex;
    min-width: 0;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.link-card:hover,
.category-card:hover {
    border-color: var(--accent);
    color: var(--text);
    box-shadow: var(--shadow);
}

.link-card-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}

.link-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.external-link-icon {
    flex: none;
    width: 1rem;
}

.link-card-icon .external-link-icon {
    width: 1.15rem;
}

.link-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.link-card-copy strong,
.link-card-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card-copy span {
    color: var(--text-soft);
    font-size: .88rem;
}

.category-card {
    flex-direction: column;
    gap: .55rem;
}

.collection-card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.collection-card-heading > span {
    flex: none;
    color: var(--text-soft);
    font-size: .8rem;
}

.collection-description {
    color: var(--text-soft);
    font-size: .9rem;
}

.tag-cloud-page {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tag-cloud-page a {
    padding: .55rem .8rem;
    font-size: .92rem;
}

.tag-cloud-page a span:last-child {
    color: var(--text-soft);
    font-size: .76rem;
}

.archive-groups {
    display: grid;
    gap: 1rem;
}

.archive-year {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.archive-year h2 {
    margin: .15rem 0 0;
    color: var(--accent);
    font-size: 1.35rem;
}

.archive-months {
    display: grid;
    gap: .35rem;
}

.archive-months a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.archive-months a:hover {
    background: var(--surface-soft);
    color: var(--accent);
}

.archive-months a span:last-child {
    color: var(--text-soft);
    font-size: .85rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-soft);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.5rem;
    width: min(calc(100% - 2rem), var(--content-width));
    min-height: 88px;
    margin: 0 auto;
    padding: 1rem 0;
    font-size: .85rem;
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    margin: 0;
}

@media (max-width: 860px) {
    .site-header-inner {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: .65rem;
    }

    .menu-toggle {
        display: inline-flex;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .theme-menu-trigger {
        width: 44px;
        height: 44px;
    }

    .site-navigation {
        position: absolute;
        top: calc(100% + .5rem);
        right: 0;
        display: block;
        width: min(260px, 100%);
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
        padding: .45rem;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px) scale(.98);
        transform-origin: top right;
        visibility: hidden;
        transition: opacity .16s ease, transform .16s ease, visibility .16s;
    }

    .site-navigation[data-open="true"] {
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
    }

    .site-navigation ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: .2rem;
    }

    .site-navigation a,
    .site-navigation a:hover,
    .site-navigation a:focus-visible {
        color: var(--text);
    }

    .site-navigation a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: .55rem .8rem;
        text-align: left;
    }

    .site-navigation a:hover,
    .site-navigation a[aria-current="page"] {
        background: var(--surface-soft);
    }

    .site-navigation a[aria-current="page"] {
        color: var(--accent);
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .site-layout {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 1.5rem;
    }

    .sidebar {
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .site-header-inner,
    .site-layout,
    .site-footer-inner {
        width: min(calc(100% - 1.25rem), var(--content-width));
    }

    .site-header-inner {
        min-height: 60px;
    }

    .menu-toggle > span:last-child {
        display: none;
    }

    .post-card,
    .link-grid,
    .category-grid,
    .article-neighbors {
        grid-template-columns: 1fr;
    }

    .post-card-media {
        min-height: 180px;
        max-height: 240px;
    }

    .archive-year {
        grid-template-columns: 1fr;
        gap: .45rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .comment-shell,
    .article-neighbors,
    .article-tags {
        display: none !important;
    }

    body,
    .article-detail {
        background: #fff;
        color: #000;
    }

    .site-layout {
        display: block;
        width: 100%;
        margin: 0;
    }

    .article-detail {
        border: 0;
        box-shadow: none;
    }
}
