/*
 * Fuwari for Emlog — official fidelity layer
 * Visual baseline: saicaca/fuwari commit 9af6cf956a0ad5fa2354f6af8185eacfdd502882
 * (2024-08-02, the revision used by the original showcase screenshot).
 * Footer placement and back-to-top offset track the later official implementation
 * introduced in f0754cae and retained by 6d39b0de.
 */

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --radius-large: 1rem;
    --page-width: 75rem;
    --header-height: 4.5rem;
    --banner-height-home: 65vh;
    --banner-height: 35vh;
    --banner-home-height: var(--banner-height-home);
    --banner-inner-height: var(--banner-height);
    --banner-overlap: 56px;
    --content-delay: 150ms;

    --primary: oklch(0.70 0.14 var(--hue));
    --page-bg: oklch(0.95 0.01 var(--hue));
    --card-bg: white;
    --card-solid: white;
    --float-panel-bg: white;
    --float-bg: white;
    --btn-content: oklch(0.55 0.12 var(--hue));
    --btn-regular-bg: oklch(0.95 0.025 var(--hue));
    --btn-regular-bg-hover: oklch(0.9 0.05 var(--hue));
    --btn-regular-bg-active: oklch(0.85 0.08 var(--hue));
    --btn-plain-bg-hover: oklch(0.95 0.025 var(--hue));
    --btn-plain-bg-active: oklch(0.98 0.01 var(--hue));
    --btn-card-bg-hover: oklch(0.98 0.005 var(--hue));
    --btn-card-bg-active: oklch(0.9 0.03 var(--hue));
    --enter-btn-bg: var(--btn-regular-bg);
    --enter-btn-bg-hover: var(--btn-regular-bg-hover);
    --enter-btn-bg-active: var(--btn-regular-bg-active);
    --deep-text: oklch(0.25 0.02 var(--hue));
    --title-active: oklch(0.6 0.1 var(--hue));
    --line-divider: rgba(0, 0, 0, 0.08);
    --line-color: rgba(0, 0, 0, 0.10);
    --meta-divider: rgba(0, 0, 0, 0.20);
    --inline-code-bg: var(--btn-regular-bg);
    --inline-code-color: var(--btn-content);
    --selection-bg: oklch(0.90 0.05 var(--hue));
    --codeblock-selection: oklch(0.40 0.08 var(--hue));
    --codeblock-bg: oklch(0.2 0.015 var(--hue));
    --license-block-bg: rgba(0, 0, 0, 0.03);
    --link-underline: oklch(0.93 0.04 var(--hue));
    --link-hover: oklch(0.95 0.025 var(--hue));
    --link-active: oklch(0.90 0.05 var(--hue));
    --color-selection-bar: linear-gradient(to right,
        oklch(0.80 0.10 0), oklch(0.80 0.10 30), oklch(0.80 0.10 60),
        oklch(0.80 0.10 90), oklch(0.80 0.10 120), oklch(0.80 0.10 150),
        oklch(0.80 0.10 180), oklch(0.80 0.10 210), oklch(0.80 0.10 240),
        oklch(0.80 0.10 270), oklch(0.80 0.10 300), oklch(0.80 0.10 330),
        oklch(0.80 0.10 360));
    --admonitions-color-tip: oklch(0.7 0.14 180);
    --admonitions-color-note: oklch(0.7 0.14 250);
    --admonitions-color-important: oklch(0.7 0.14 310);
    --admonitions-color-warning: oklch(0.7 0.14 60);
    --admonitions-color-caution: oklch(0.6 0.2 25);

    --text: rgba(0, 0, 0, 0.90);
    --text-90: rgba(0, 0, 0, 0.90);
    --text-75: rgba(0, 0, 0, 0.75);
    --text-50: rgba(0, 0, 0, 0.50);
    --text-30: rgba(0, 0, 0, 0.30);
    --line: var(--line-color);
    --line-dashed: var(--line-color);
    --button-bg: var(--btn-regular-bg);
    --button-hover: var(--btn-regular-bg-hover);
    --primary-strong: var(--primary);
    --primary-soft: var(--btn-regular-bg);
    --radius: var(--radius-large);
    --radius-sm: 0.5rem;
    --shadow: none;
    --shadow-hover: none;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --primary: oklch(0.75 0.14 var(--hue));
    --page-bg: oklch(0.16 0.014 var(--hue));
    --card-bg: oklch(0.23 0.015 var(--hue));
    --card-solid: var(--card-bg);
    --float-panel-bg: oklch(0.19 0.015 var(--hue));
    --float-bg: var(--float-panel-bg);
    --btn-content: oklch(0.75 0.1 var(--hue));
    --btn-regular-bg: oklch(0.33 0.035 var(--hue));
    --btn-regular-bg-hover: oklch(0.38 0.04 var(--hue));
    --btn-regular-bg-active: oklch(0.43 0.045 var(--hue));
    --btn-plain-bg-hover: oklch(0.30 0.035 var(--hue));
    --btn-plain-bg-active: oklch(0.27 0.025 var(--hue));
    --btn-card-bg-hover: oklch(0.3 0.03 var(--hue));
    --btn-card-bg-active: oklch(0.35 0.035 var(--hue));
    --title-active: oklch(0.6 0.1 var(--hue));
    --line-divider: rgba(255, 255, 255, 0.08);
    --line-color: rgba(255, 255, 255, 0.10);
    --meta-divider: rgba(255, 255, 255, 0.20);
    --selection-bg: oklch(0.40 0.08 var(--hue));
    --codeblock-bg: oklch(0.17 0.015 var(--hue));
    --license-block-bg: var(--codeblock-bg);
    --link-underline: oklch(0.40 0.08 var(--hue));
    --link-hover: oklch(0.40 0.08 var(--hue));
    --link-active: oklch(0.35 0.07 var(--hue));
    --color-selection-bar: linear-gradient(to right,
        oklch(0.70 0.10 0), oklch(0.70 0.10 30), oklch(0.70 0.10 60),
        oklch(0.70 0.10 90), oklch(0.70 0.10 120), oklch(0.70 0.10 150),
        oklch(0.70 0.10 180), oklch(0.70 0.10 210), oklch(0.70 0.10 240),
        oklch(0.70 0.10 270), oklch(0.70 0.10 300), oklch(0.70 0.10 330),
        oklch(0.70 0.10 360));
    --admonitions-color-tip: oklch(0.75 0.14 180);
    --admonitions-color-note: oklch(0.75 0.14 250);
    --admonitions-color-important: oklch(0.75 0.14 310);
    --admonitions-color-warning: oklch(0.75 0.14 60);
    --admonitions-color-caution: oklch(0.65 0.2 25);
    --text: rgba(255, 255, 255, 0.90);
    --text-90: rgba(255, 255, 255, 0.90);
    --text-75: rgba(255, 255, 255, 0.75);
    --text-50: rgba(255, 255, 255, 0.50);
    --text-30: rgba(255, 255, 255, 0.30);
}

html {
    background: var(--page-bg);
    font-size: 14px;
}

body {
    min-width: 320px;
    background: var(--page-bg);
    color: var(--text-90);
    font-family: Roboto, sans-serif, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    line-height: 1.5;
}

::selection {
    background-color: var(--selection-bg);
}

h1, h2, h3, h4, h5, h6, p, a, span, li, ul, ol, blockquote, code, pre, table, th, td, strong,
button, input, textarea {
    transition-duration: 150ms;
    transition-property: color, background-color, border-color, opacity, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.card-base,
.side-card {
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--card-bg);
    box-shadow: none;
    backdrop-filter: none;
}

.icon-button,
.brand-button,
.nav-item > a {
    border: 0;
    background: transparent;
    color: var(--text-75);
    box-shadow: none;
}

.icon-button:hover,
.brand-button:hover,
.nav-item > a:hover,
.nav-item > a[aria-current="page"] {
    background: var(--btn-plain-bg-hover);
    color: var(--text-75);
}

.icon-button:active,
.brand-button:active,
.nav-item > a:active {
    background: var(--btn-plain-bg-active);
}

.icon-button svg,
.brand-button svg,
.nav-card svg,
.post-card svg,
.article-card svg,
.back-to-top svg,
.banner-credit svg {
    fill: currentColor;
    stroke: none;
}

/* Navbar */
.site-header {
    position: relative;
    z-index: 100;
    width: min(100%, var(--page-width));
    margin: 0 auto;
}

.nav-card {
    position: relative;
    display: flex;
    width: 100%;
    height: var(--header-height);
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    overflow: visible;
    border: 0;
    border-radius: 0 0 var(--radius-large) var(--radius-large);
    background: var(--card-bg);
    box-shadow: none;
    backdrop-filter: none;
    animation: fuwari-load 300ms both;
}

.brand-button {
    display: inline-flex;
    min-width: 0;
    height: 3.25rem;
    min-height: 3.25rem;
    align-items: center;
    gap: 0;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0;
}

.brand-button .brand-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-self: auto;
}

.nav-list {
    gap: 0;
}

.nav-item > a {
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    color: var(--text-75);
    font-size: 1rem;
    font-weight: 700;
}

.nav-item > a .nav-external {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0.25rem;
    color: var(--text-30);
    transform: translateY(-1px);
}

.has-children > a::after {
    display: none;
}

.nav-submenu {
    top: 3.25rem;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--float-panel-bg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
    backdrop-filter: none;
}

.nav-actions {
    gap: 0;
}

.nav-search {
    display: none;
    grid-template-columns: 2rem 1fr;
    width: auto;
    height: 2.75rem;
    margin-right: 0.5rem;
    padding: 0;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: none;
}

.nav-search:hover,
.nav-search:focus-within {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

html[data-theme="dark"] .nav-search {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .nav-search:hover,
html[data-theme="dark"] .nav-search:focus-within {
    background: rgba(255, 255, 255, 0.10);
}

.nav-search > svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.75rem;
    color: var(--text-30);
}

.nav-search input {
    width: 10rem;
    height: 100%;
    padding: 0 0.75rem 0 0.5rem;
    color: var(--text-50);
    font-size: 0.875rem;
    transition: width 150ms;
}

.nav-search input:active,
.nav-search input:focus {
    width: 15rem;
}

.icon-button {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
}

.icon-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-search-button {
    display: inline-flex;
}

.menu-button {
    display: inline-flex;
}

.theme-switch-wrap {
    position: relative;
    z-index: 50;
}

.theme-button {
    position: relative;
}

.theme-mode-icon {
    position: absolute;
    opacity: 0;
}

html[data-theme-mode="light"] .theme-icon-light,
html[data-theme-mode="dark"] .theme-icon-dark,
html[data-theme-mode="auto"] .theme-icon-auto {
    opacity: 1;
}

.theme-mode-panel {
    position: absolute;
    top: 2.75rem;
    right: -0.5rem;
    display: none;
    padding-top: 1.25rem;
}

.theme-mode-panel > div {
    width: max-content;
    padding: 0.5rem;
    border-radius: var(--radius-large);
    background: var(--float-panel-bg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
}

.theme-mode-panel button {
    display: flex;
    width: 100%;
    height: 2.25rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-75);
    font-weight: 500;
    white-space: nowrap;
}

.theme-mode-panel button + button {
    margin-top: 0.125rem;
}

.theme-mode-panel button:hover,
.theme-mode-panel button.current-theme-btn {
    background: var(--btn-plain-bg-hover);
    color: var(--primary);
}

.theme-mode-panel button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

.palette-panel {
    position: absolute;
    z-index: 60;
    top: 5.25rem;
    right: 1rem;
    width: 20rem;
    padding: 1rem;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--float-panel-bg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
    backdrop-filter: none;
}

.palette-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.palette-panel-head strong {
    position: relative;
    margin-left: 0.75rem;
    color: var(--text-90);
    font-size: 1.125rem;
}

.palette-panel-head strong::before {
    position: absolute;
    top: 0.33rem;
    left: -0.75rem;
    width: 0.25rem;
    height: 1rem;
    border-radius: 0.375rem;
    background: var(--primary);
    content: "";
}

.palette-reset {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: auto;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
}

.palette-reset.is-hidden {
    pointer-events: none;
    opacity: 0;
}

.palette-reset svg {
    width: 0.875rem;
    height: 0.875rem;
    margin: auto;
}

.palette-panel output {
    display: flex;
    width: 2.5rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
    font-size: 0.875rem;
    font-weight: 700;
}

.color-slider-wrap {
    width: 100%;
    height: 1.5rem;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    background: oklch(0.80 0.10 0);
    user-select: none;
}

#color-slider {
    width: 100%;
    height: 1.5rem;
    margin: 0;
    background: var(--color-selection-bar);
    appearance: none;
}

#color-slider::-webkit-slider-thumb {
    width: 0.5rem;
    height: 1rem;
    border: 0;
    border-radius: 0.125rem;
    background: rgba(255, 255, 255, 0.70);
    appearance: none;
}

#color-slider::-moz-range-thumb {
    width: 0.5rem;
    height: 1rem;
    border: 0;
    border-radius: 0.125rem;
    background: rgba(255, 255, 255, 0.70);
}

.mobile-nav {
    position: fixed;
    z-index: 70;
    top: 5.25rem;
    right: 1rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--float-panel-bg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
    backdrop-filter: none;
}

.mobile-nav-list .nav-item > a {
    min-width: 11rem;
    justify-content: space-between;
    padding: 0 0.75rem;
}

/* Search panel */
.search-layer {
    position: fixed;
    z-index: 95;
    inset: auto 1rem auto auto;
    top: 5rem;
    display: block;
    width: min(30rem, calc(100vw - 2rem));
    padding: 0;
}

.search-card {
    width: 100%;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--float-panel-bg);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    animation: none;
    backdrop-filter: none;
}

.search-form {
    display: grid;
    height: 2.75rem;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: none;
}

.search-form:focus-within {
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

.search-form svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.75rem;
    color: var(--text-30);
    fill: currentColor;
    stroke: none;
}

.search-form input {
    height: 100%;
    padding: 0 0.75rem 0 0.5rem;
    color: var(--text-50);
    font-size: 0.875rem;
}

/* Banner and top overlap */
.site-banner {
    height: var(--banner-height);
    background: var(--page-bg);
}

.is-home-page .site-banner {
    height: var(--banner-height-home);
}

.site-banner-shade {
    background: transparent;
}

.banner-credit {
    position: absolute;
    z-index: 10;
    top: calc(var(--banner-height) - 6.75rem);
    right: max(1rem, calc((100vw - var(--page-width)) / 2 + 1rem));
    display: flex;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.60);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    backdrop-filter: none;
}

.is-home-page .banner-credit {
    top: calc(var(--banner-height-home) - 6.75rem);
}

.banner-credit > svg:first-child {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.25rem;
}

.banner-credit.has-link:hover {
    padding-right: 2.25rem;
    background: rgba(0, 0, 0, 0.70);
}

.banner-credit .credit-external {
    position: absolute;
    right: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    color: oklch(0.75 0.14 var(--hue));
    opacity: 0;
}

.banner-credit:hover .credit-external {
    opacity: 1;
}

/* Main grid */
.page-shell,
.article-shell {
    position: relative;
    z-index: 1;
    width: min(100%, var(--page-width));
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

.has-site-banner.is-home-page .page-shell {
    margin-top: calc(var(--banner-height-home) - var(--header-height) - 3.5rem);
}

.has-site-banner.is-inner-page .page-shell {
    margin-top: calc(var(--banner-height) - var(--header-height) - 3.5rem);
}

.no-site-banner .page-shell {
    margin-top: 1rem;
}

.site-grid {
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.content-column {
    overflow: hidden;
}

.list-context {
    margin-bottom: 1rem;
    padding: 1.5rem 2rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-large);
}

.content-column > .archive-page {
    margin-bottom: 1rem;
}

.post-card,
.post-card.has-cover {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column-reverse;
    margin: 0;
    border-radius: var(--radius-large);
    animation: fuwari-load 300ms both;
    box-shadow: none;
    transform: none;
}

.post-card:nth-child(1) { animation-delay: 150ms; }
.post-card:nth-child(2) { animation-delay: 200ms; }
.post-card:nth-child(3) { animation-delay: 250ms; }
.post-card:nth-child(4) { animation-delay: 300ms; }

.post-card:hover {
    box-shadow: none;
    transform: none;
}

.post-card-content,
.post-card.has-cover .post-card-content {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: none;
    padding: 1.5rem 1.5rem 1.5rem;
}

.post-title-row {
    position: relative;
    display: block;
}

.title-accent {
    display: none;
}

.post-title-row h2 {
    margin: 0 0 0.75rem;
    padding: 0;
    color: var(--text-90);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 2.25rem;
}

.post-title-row h2 a {
    position: relative;
    display: block;
}

.post-title-row h2 a:hover {
    color: var(--primary);
}

.title-chevron {
    position: absolute;
    display: inline;
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    transform: translateY(0.125rem);
}

.top-badge {
    position: absolute;
    top: 0.25rem;
    right: 0;
    min-height: 1.5rem;
    margin: 0;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0 0 1rem;
    color: var(--text-50);
    font-size: 0.875rem;
}

.post-meta > span,
.post-meta > a,
.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--text-50);
    font-size: 0.875rem;
    font-weight: 500;
}

.meta-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    border-radius: 0.375rem;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
}

.meta-icon svg,
.post-meta .meta-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    stroke: none;
}

.meta-link,
.meta-tag {
    margin: -0.375rem;
    padding: 0.375rem;
    border-radius: 0.375rem;
    color: var(--text-50);
    font-size: 0.875rem;
    font-weight: 500;
}

.meta-link:hover,
.meta-tag:hover {
    background: var(--btn-plain-bg-hover);
    color: var(--primary);
}

.meta-tag + .meta-tag::before {
    margin-right: 0.75rem;
    margin-left: 0.375rem;
    color: var(--meta-divider);
    content: "/";
}

.post-excerpt {
    display: block;
    margin: 0 0 0.875rem;
    padding-right: 1rem;
    overflow: visible;
    color: var(--text-75);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-line-clamp: unset;
}

.post-card-footer {
    display: flex;
    gap: 1rem;
    color: var(--text-30);
    font-size: 0.875rem;
}

.post-cover {
    position: relative;
    width: auto;
    max-height: 20vh;
    flex: none;
    margin: 1rem 1rem -0.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--btn-regular-bg);
}

.post-cover::after {
    display: none;
}

.post-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-cover:hover img {
    transform: none;
}

.post-cover::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: transparent;
    content: "";
}

.post-cover:hover::before {
    background: rgba(0, 0, 0, 0.30);
}

.cover-arrow {
    width: 3rem;
    height: 3rem;
    font-size: inherit;
    transform: translate(-50%, -50%) scale(0.5);
}

.cover-arrow svg {
    width: 3rem;
    height: 3rem;
}

.post-cover:hover .cover-arrow {
    transform: translate(-50%, -50%) scale(1);
}

.post-enter {
    display: none;
}

/* Sidebar widgets */
.sidebar {
    min-width: 0;
    animation: fuwari-load 300ms 100ms both;
}

.sidebar > .profile-card {
    margin-bottom: 1rem;
}

.sidebar-sticky {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.side-card {
    border-radius: var(--radius-large);
}

.profile-card {
    padding: 0.75rem;
}

.profile-avatar {
    display: block;
    max-width: 240px;
    margin: 0.25rem auto 0.75rem;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: auto;
}

.profile-avatar::after {
    display: none;
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.profile-avatar-hover {
    z-index: 2;
    background: transparent;
}

.profile-avatar:hover .profile-avatar-hover {
    background: rgba(0, 0, 0, 0.30);
}

.profile-avatar-hover svg {
    width: 3rem;
    height: 3rem;
    color: white;
    fill: currentColor;
    stroke: none;
}

.profile-card h2 {
    margin: 0 0 0.25rem;
    color: rgb(0 0 0);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.75rem;
    text-align: center;
}

.profile-accent {
    display: block;
    width: 1.25rem;
    height: 0.25rem;
    margin: 0 auto 0.5rem;
    border-radius: 9999px;
    background: var(--primary);
}

.profile-card p {
    margin: 0 0 0.625rem;
    color: rgb(163 163 163);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
}

.social-links a {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
    box-shadow: none;
}

.social-links a:hover {
    background: var(--btn-regular-bg-hover);
    color: var(--btn-content);
    transform: none;
}

.social-links.has-single-link a {
    width: auto;
    gap: 0.5rem;
    padding: 0 0.75rem;
    font-weight: 700;
}

.social-links.has-single-link a span {
    display: inline;
}

.social-links svg {
    width: 1.5rem;
    height: 1.5rem;
}

.compact-card {
    padding: 0 0 1rem;
}

.compact-card h2 {
    position: relative;
    margin: 1rem 0 0.5rem 2rem;
    color: rgb(23 23 23);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.75rem;
}

.compact-card h2::before {
    position: absolute;
    top: 0.34375rem;
    left: -1rem;
    width: 0.25rem;
    height: 1rem;
    border-radius: 0.375rem;
    background: var(--primary);
    content: "";
}

.side-icon {
    display: none;
}

.category-list,
.archive-card ul,
.plain-widget-list,
.tag-cloud,
.widget-content {
    margin: 0;
    padding-right: 1rem;
    padding-left: 1rem;
}

.category-list a,
.archive-card a {
    display: flex;
    height: 2.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    color: rgb(64 64 64);
    font-size: 1rem;
}

.category-list a:hover,
.archive-card a:hover {
    padding-left: 0.75rem;
    background: var(--btn-plain-bg-hover);
    color: var(--primary);
}

.category-list em,
.archive-card em {
    display: flex;
    min-width: 2rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.5rem;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
    font-size: 0.875rem;
    font-weight: 700;
    font-style: normal;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-flex;
    height: 2rem;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
    font-size: 0.875rem;
    font-weight: 400;
}

.tag-cloud a:hover {
    background: var(--btn-regular-bg-hover);
    color: var(--btn-content);
}

.tag-cloud small {
    display: none;
}

html[data-theme="dark"] .profile-card h2 {
    color: rgb(250 250 250);
}

html[data-theme="dark"] .compact-card h2 {
    color: rgb(245 245 245);
}

html[data-theme="dark"] .category-list a,
html[data-theme="dark"] .archive-card a {
    color: rgb(212 212 212);
}

html[data-theme="dark"] .category-list em,
html[data-theme="dark"] .archive-card em {
    background: var(--primary);
    color: var(--deep-text);
}

html[data-theme="dark"] .tag-cloud a,
html[data-theme="dark"] .tag-cloud a:hover,
html[data-theme="dark"] .social-links a,
html[data-theme="dark"] .social-links a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.widget-collapse {
    overflow: hidden;
}

.widget-collapse.is-collapsed {
    height: 7.5rem;
}

.widget-expand {
    padding: 0 1rem;
    margin-bottom: -0.5rem;
}

.widget-expand[hidden] {
    display: none;
}

.widget-expand button {
    display: flex;
    width: 100%;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--primary);
}

.widget-expand button:hover {
    background: var(--btn-plain-bg-hover);
}

.widget-expand-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateX(-0.5rem);
}

.widget-expand svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
    stroke: none;
}

/* Article */
.article-shell,
.article-shell.has-sidebar.has-toc,
.article-shell.has-sidebar:not(.has-toc) {
    display: grid;
    grid-template-areas: "sidebar article";
    grid-template-columns: 17.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    width: min(100%, var(--page-width));
}

.article-shell:not(.has-sidebar) {
    grid-template-areas: "article";
    grid-template-columns: minmax(0, 1fr);
}

.article-main {
    grid-area: article;
    min-width: 0;
}

.article-shell > .sidebar {
    grid-area: sidebar;
}

.toc-panel {
    display: none;
}

.article-card {
    position: relative;
    width: 100%;
    padding: 1.5rem 1.5rem 1rem;
    border-radius: var(--radius-large);
}

.article-header {
    padding: 0;
}

.article-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-30);
    font-size: 0.875rem;
}

.article-stats > span {
    display: flex;
    align-items: center;
}

.article-stats i {
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-50);
    font-style: normal;
}

html[data-theme="dark"] .article-stats i {
    background: rgba(255, 255, 255, 0.10);
}

.article-stats svg {
    width: 1rem;
    height: 1rem;
}

.article-header h1 {
    position: relative;
    width: 100%;
    margin: 0 0 0.75rem;
    color: var(--text-90);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 2.25rem;
}

.article-header h1::before {
    position: absolute;
    top: 0.75rem;
    left: -1.125rem;
    width: 0.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    background: var(--primary);
    content: "";
}

.article-header .top-badge {
    position: static;
    margin-right: 0.5rem;
    vertical-align: 0.2em;
}

.article-meta {
    margin: 0 0 1.25rem;
}

.article-card:not(:has(.article-cover)) .article-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--line-divider);
}

.article-edit {
    background: var(--btn-regular-bg);
    color: var(--btn-content);
}

.article-cover {
    margin: 0 0 2rem;
    border-radius: 0.75rem;
}

.article-cover img {
    width: 100%;
    max-height: none;
}

.markdown-body {
    padding: 0;
    color: var(--text-75);
    font-size: 1rem;
    line-height: 1.75;
}

.markdown-body a {
    border-radius: 0.375rem;
    background: linear-gradient(var(--link-underline), var(--link-underline)) no-repeat bottom / 100% 0.35em;
    color: var(--primary);
    text-decoration: none;
}

.markdown-body a:hover {
    background-color: var(--link-hover);
}

.markdown-body code {
    background: var(--inline-code-bg);
    color: var(--inline-code-color);
}

.license-box {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem;
    overflow: hidden;
    border: 0;
    border-radius: 0.75rem;
    background: var(--license-block-bg);
}

.article-card:not(.page-card) .markdown-body {
    margin-bottom: 1.5rem;
}

.license-box .license-title {
    position: relative;
    z-index: 1;
    color: var(--text-75);
    font-weight: 700;
}

.license-box .license-url {
    position: relative;
    z-index: 1;
    display: inline-block;
    max-width: 100%;
    margin: -0.25rem;
    padding: 0.25rem;
    overflow: hidden;
    border-radius: 0.375rem;
    color: var(--primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-box .license-url:hover,
.license-meta a:hover {
    background: var(--btn-plain-bg-hover);
}

.license-meta {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.license-box .license-meta span {
    display: block;
    color: var(--text-30);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
}

.license-box .license-meta strong {
    display: block;
    margin: 0;
    color: var(--text-75);
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
}

.license-meta a {
    margin: -0.25rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    color: var(--primary);
}

.license-watermark {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    width: 15rem;
    height: 15rem;
    color: rgba(0, 0, 0, 0.05);
    fill: currentColor;
    pointer-events: none;
    transform: translateY(-50%);
}

html[data-theme="dark"] .license-watermark {
    color: rgba(255, 255, 255, 0.05);
}

.page-card {
    min-height: 8rem;
    padding: 1.5rem 2.25rem;
}

.page-card .markdown-body {
    margin-top: 0.5rem;
}

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

.neighbor-nav > a {
    display: flex;
    width: 100%;
    height: 3.75rem;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: var(--card-bg);
    color: var(--text-75);
    box-shadow: none;
}

.neighbor-nav > a:hover {
    background: var(--btn-card-bg-hover);
    color: var(--text-75);
    transform: none;
}

.neighbor-nav strong {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neighbor-next {
    justify-content: flex-end;
    text-align: right;
}

.neighbor-icon {
    flex: 0 0 2rem;
    color: var(--primary);
}

.neighbor-icon svg {
    width: 2rem;
    height: 2rem;
}

.neighbor-icon-left {
    transform: rotate(180deg);
}

/* Archive panel */
.archive-page {
    padding: 1.5rem 2rem;
}

.archive-timeline {
    padding: 0;
}

.archive-year {
    display: block;
}

.archive-year + .archive-year {
    margin-top: 0;
}

.archive-year-head {
    display: flex;
    width: 100%;
    height: 3.75rem;
    align-items: center;
}

.archive-year-head h2 {
    position: static;
    width: 10%;
    margin: 0;
    color: var(--text-75);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    text-align: right;
}

.archive-year-mark {
    width: 10%;
}

.archive-year-mark::after {
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    margin: auto;
    border-radius: 9999px;
    outline: 3px solid var(--primary);
    outline-offset: -2px;
    content: "";
}

.archive-year-head p {
    width: 80%;
    margin: 0;
    color: var(--text-50);
    text-align: left;
}

.archive-year ol {
    margin: 0;
    padding: 0;
    border: 0;
}

.archive-year li {
    position: relative;
    display: flex;
    width: 100%;
    height: 2.5rem;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 0.5rem;
}

.archive-year li::before {
    display: none;
}

.archive-year li:hover {
    background: var(--btn-plain-bg-hover);
}

.archive-year time {
    width: 10%;
    color: var(--text-50);
    font-size: 0.875rem;
    text-align: right;
}

.archive-line {
    position: relative;
    display: flex;
    width: 10%;
    height: 100%;
    align-items: center;
}

.archive-line::before {
    position: absolute;
    top: -50%;
    left: calc(50% - 1px);
    width: 10%;
    height: 100%;
    border-left: 2px dashed var(--line-color);
    content: "";
}

.archive-line i {
    z-index: 1;
    width: 0.25rem;
    height: 0.25rem;
    margin: auto;
    border-radius: 0.25rem;
    background: oklch(0.5 0.05 var(--hue));
    outline: 4px solid var(--card-bg);
}

.archive-year li:hover .archive-line i {
    height: 1.25rem;
    background: var(--primary);
    outline-color: var(--btn-plain-bg-hover);
}

.archive-post-title {
    width: 65%;
    padding-right: 2rem;
    overflow: hidden;
    color: var(--text-75);
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-year li:hover .archive-post-title {
    color: var(--primary);
    transform: translateX(0.25rem);
}

.archive-post-tags {
    width: 15%;
    overflow: hidden;
    color: var(--text-30);
    font-size: 0.875rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-tag {
    color: inherit;
}

/* Footer */
.site-footer {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    color: var(--text-50);
    text-align: center;
    animation: fuwari-load 300ms 250ms both;
}

.footer-divider {
    height: 0;
    margin: 2.5rem 8rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.10);
}

html[data-theme="dark"] .footer-divider {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 0 0 3rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    color: var(--text-50);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    margin: -0.25rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    color: var(--primary);
    font-weight: 500;
}

.footer-inner a:hover {
    background: var(--btn-plain-bg-hover);
    color: var(--primary);
}

.footer-custom {
    margin: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: calc(max(0px, (100vw - var(--page-width)) / 2) - 5rem);
    bottom: 10rem;
    display: none;
    width: 3.75rem;
    height: 3.75rem;
    border: 0;
    border-radius: 1rem;
    background: var(--card-bg);
    color: var(--primary);
    font-size: 2.25rem;
    box-shadow: none;
    backdrop-filter: none;
}

.back-to-top:hover {
    background: var(--btn-card-bg-hover);
}

.back-to-top svg {
    width: 2.25rem;
    height: 2.25rem;
}

/* Official pagination: 44px arrows and a joined page-number card. */
.pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
}

.pagination .pagination-arrow,
.pagination .pagination-page,
.pagination .pagination-more {
    display: inline-flex;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 0.5rem;
    box-shadow: none;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
}

.pagination .pagination-arrow {
    overflow: hidden;
    background: var(--card-bg);
    color: var(--primary);
}

.pagination .pagination-arrow:hover,
.pagination .pagination-page:hover {
    background: var(--btn-card-bg-hover);
    color: var(--primary);
}

.pagination .pagination-page:is(a):active {
    transform: scale(0.85);
}

.pagination .pagination-arrow.is-disabled {
    pointer-events: none;
    color: rgba(0, 0, 0, 0.10);
}

html[data-theme="dark"] .pagination .pagination-arrow.is-disabled {
    color: rgba(255, 255, 255, 0.10);
}

.pagination .pagination-pages {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    border-radius: 0.5rem;
    background: var(--card-bg);
    box-shadow: none;
    color: var(--text-75);
    font-weight: 700;
}

.pagination .pagination-page {
    background: transparent;
    color: var(--text-75);
}

.pagination .pagination-page:is(span) {
    background: var(--primary);
    color: white;
}

html[data-theme="dark"] .pagination .pagination-page:is(span) {
    color: rgba(0, 0, 0, 0.70);
}

.pagination .pagination-more {
    width: auto;
    min-width: 1.5rem;
    color: var(--text-75);
}

.pagination-more svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.pagination-chevron {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
}

.pagination-chevron.is-left {
    transform: rotate(180deg);
}

@keyframes fuwari-load {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .site-header,
    .page-shell,
    .article-shell {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .desktop-nav {
        display: flex;
    }

    .menu-button {
        display: none;
    }

    .post-card-content,
    .post-card.has-cover .post-card-content {
        width: calc(100% - 4rem);
        padding: 1.75rem 0.5rem 1.5rem 2.25rem;
    }

    .post-card,
    .post-card.has-cover {
        flex-direction: column;
    }

    .post-card.has-cover .post-card-content {
        width: calc(100% - 28% - 0.75rem);
    }

    .post-title-row::before {
        position: absolute;
        top: 0.4375rem;
        left: -1.125rem;
        width: 0.25rem;
        height: 1.25rem;
        border-radius: 0.375rem;
        background: var(--primary);
        content: "";
    }

    .title-chevron {
        opacity: 0;
        transform: translate(-0.25rem, 0.125rem);
    }

    .post-title-row h2 a:hover .title-chevron {
        opacity: 1;
        transform: translate(0, 0.125rem);
    }

    .post-cover {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: 28%;
        max-height: none;
        margin: 0;
    }

    .post-enter {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        display: flex;
        width: 3.25rem;
        align-items: center;
        justify-content: center;
        border-radius: 0.75rem;
        background: var(--enter-btn-bg);
        color: var(--primary);
    }

    .post-enter:hover {
        background: var(--enter-btn-bg-hover);
    }

    .post-enter svg {
        width: 2.25rem;
        height: 2.25rem;
    }

    .article-card {
        padding-right: 2.25rem;
        padding-left: 2.25rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }

    .archive-year-head h2,
    .archive-year time {
        width: 10%;
    }
}

@media (min-width: 1024px) {
    .back-to-top {
        display: inline-flex;
    }

    .nav-search {
        display: grid;
    }

    .mobile-search-button {
        display: none;
    }

    .theme-mode-panel {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-0.25rem);
    }

    .theme-switch-wrap:hover .theme-mode-panel,
    .theme-switch-wrap:focus-within .theme-mode-panel {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .profile-avatar {
        max-width: none;
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 1023px) {
    .site-grid,
    .article-shell,
    .article-shell.has-sidebar.has-toc,
    .article-shell.has-sidebar:not(.has-toc) {
        grid-template-areas: "article" "sidebar";
        grid-template-columns: minmax(0, 1fr);
    }

    .site-grid .content-column {
        grid-area: article;
    }

    .site-grid > .sidebar,
    .article-shell > .sidebar {
        display: block;
        grid-area: sidebar;
        margin-top: 0;
    }

    .site-grid > .sidebar > .profile-card {
        margin-bottom: 1rem;
    }

    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 767px) {
    :root {
        --banner-height-home: 35vh;
        --banner-home-height: var(--banner-height-home);
    }

    .site-header,
    .page-shell,
    .article-shell {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .nav-card {
        height: 4.5rem;
        min-height: 4.5rem;
        padding: 0 1rem;
    }

    .brand-button {
        max-width: calc(100vw - 12rem);
        min-height: 3.25rem;
        padding: 0 0.75rem;
    }

    .brand-button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .desktop-nav {
        display: none;
    }

    #palette-toggle {
        display: inline-flex;
    }

    .has-site-banner.is-home-page .page-shell,
    .has-site-banner.is-inner-page .page-shell {
        margin-top: calc(35vh - var(--header-height) - 3.5rem);
    }

    .banner-credit,
    .is-home-page .banner-credit {
        top: calc(35vh - 6.75rem);
        right: 1rem;
    }

    .post-list {
        gap: 0;
        padding: 0.25rem 0;
        overflow: hidden;
        background: var(--card-bg);
    }

    .post-card {
        overflow: visible;
        border-radius: 0;
        background: transparent;
    }

    .post-card:not(:first-child)::before {
        position: absolute;
        top: 0;
        right: 1.5rem;
        left: 1.5rem;
        border-top: 1px dashed var(--line-color);
        content: "";
    }

    .post-title-row h2 {
        padding-right: 1.5rem;
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .post-meta .meta-tags {
        display: none;
    }

    .profile-avatar {
        max-width: 240px;
    }

    .article-card {
        border-radius: var(--radius-large);
    }

    .article-header h1::before {
        display: none;
    }

    .archive-page {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .archive-year-head h2,
    .archive-year time {
        width: 15%;
    }

    .archive-year-mark,
    .archive-line {
        width: 15%;
    }

    .archive-year-head p,
    .archive-post-title {
        width: 70%;
    }

    .archive-post-tags {
        display: none;
    }

    .neighbor-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-card,
    .sidebar,
    .post-card,
    .site-footer {
        animation: none;
    }
}
