@font-face {
    font-family: "HarmonyOS Sans";
    font-style: normal;
    font-weight: 100 900;
    src: local("HarmonyOS Sans"), url("fonts/HarmonyOS_Sans_Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    src: local("Noto Color Emoji"), url("fonts/NotoColorEmoji-Regular.ttf") format("truetype");
    font-display: swap;
}

/* Register theme colors as animatable properties */
@property --theme-bg {
    syntax: '<color>';
    initial-value: #f6f4ef;
    inherits: true;
}

@property --theme-paper {
    syntax: '<color>';
    initial-value: #fffdf8;
    inherits: true;
}

@property --theme-ink {
    syntax: '<color>';
    initial-value: #262522;
    inherits: true;
}

@property --theme-muted {
    syntax: '<color>';
    initial-value: #767069;
    inherits: true;
}

@property --theme-line {
    syntax: '<color>';
    initial-value: #ded8cf;
    inherits: true;
}

@property --theme-accent {
    syntax: '<color>';
    initial-value: #8f4f36;
    inherits: true;
}

@property --theme-accent-soft {
    syntax: '<color>';
    initial-value: #ead7cc;
    inherits: true;
}

:root {
    --theme-bg: #f6f4ef;
    --theme-paper: #fffdf8;
    --theme-ink: #262522;
    --theme-muted: #767069;
    --theme-line: #ded8cf;
    --theme-accent: #8f4f36;
    --theme-accent-soft: #ead7cc;
    --bg: var(--theme-bg);
    --paper: var(--theme-paper);
    --ink: var(--theme-ink);
    --muted: var(--theme-muted);
    --line: var(--theme-line);
    --accent: var(--theme-accent);
    --accent-soft: var(--theme-accent-soft);
    --rail: rgba(255, 253, 248, 0.64);
    --light-core: rgba(255, 244, 219, 0.82);
    --light-halo: rgba(217, 157, 126, 0.32);
    --light-edge: rgba(255, 255, 255, 0.72);
    --light-shadow: rgba(112, 74, 48, 0.18);
    --shadow: 0 24px 80px rgba(72, 58, 44, 0.10);
    --font-main: "HarmonyOS Sans", "Noto Color Emoji", system-ui, sans-serif;
    --font-serif: Charter, "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    --font-mono: "SFMono-Regular", Consolas, monospace;
}

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

/* Transition only applies when .theme-transitioning class is active (set by JS on toggle) */
html.theme-transitioning {
    transition: --theme-bg 0.5s ease, --theme-paper 0.5s ease, --theme-ink 0.5s ease,
                --theme-muted 0.5s ease, --theme-line 0.5s ease, --theme-accent 0.5s ease,
                --theme-accent-soft 0.5s ease,
                --rail 0.5s ease, --light-core 0.5s ease, --light-halo 0.5s ease,
                --light-edge 0.5s ease, --light-shadow 0.5s ease, --shadow 0.5s ease,
                background-color 0.5s ease, color 0.5s ease;
}

html[data-theme="light"] {
    color-scheme: light;
}

html:not([data-theme]) {
    color-scheme: light dark;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --theme-bg: #191917;
    --theme-paper: #20201d;
    --theme-ink: #eee9df;
    --theme-muted: #aaa297;
    --theme-line: #393630;
    --theme-accent: #d99d7e;
    --theme-accent-soft: #3a2b24;
    --rail: rgba(32, 32, 29, 0.62);
    --light-core: rgba(255, 207, 155, 0.22);
    --light-halo: rgba(217, 157, 126, 0.22);
    --light-edge: rgba(255, 238, 213, 0.18);
    --light-shadow: rgba(0, 0, 0, 0.44);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --theme-bg: #191917;
        --theme-paper: #20201d;
        --theme-ink: #eee9df;
        --theme-muted: #aaa297;
        --theme-line: #393630;
        --theme-accent: #d99d7e;
        --theme-accent-soft: #3a2b24;
        --rail: rgba(32, 32, 29, 0.62);
        --light-core: rgba(255, 207, 155, 0.22);
        --light-halo: rgba(217, 157, 126, 0.22);
        --light-edge: rgba(255, 238, 213, 0.18);
        --light-shadow: rgba(0, 0, 0, 0.44);
        --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
    height: 100%;
}

body {
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.72;
    transition: background-color 0.5s ease, color 0.5s ease;
    animation: page-fade-in 0.6s ease-out both;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

/* Reading progress bar */
.reading-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.1s linear;
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(38, 37, 34, 0.14) 0 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
}

body::after {
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    content: "";
    background: radial-gradient(circle at 82% 18%, var(--accent-soft), transparent 30rem);
    filter: blur(18px);
}

.site-shell {
    display: grid;
    grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 42rem) minmax(14rem, 0.9fr);
    gap: clamp(2rem, 4vw, 5rem);
    width: min(1440px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 3rem);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.page-margin {
    grid-column: 3;
    position: sticky;
    top: clamp(1rem, 3vw, 3rem);
    align-self: start;
}

.site-rail {
    grid-column: 1;
    position: fixed;
    top: 50%;
    left: max(clamp(1rem, 3vw, 3rem), calc((100vw - 1440px) / 2 + clamp(1rem, 3vw, 3rem)));
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    transform: translateY(-50%);
}

.brand-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    min-height: 2.75rem;
    padding: 0.55rem 1rem 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--rail);
    box-shadow: var(--shadow);
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.brand-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
}

.immersive-light {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--light-edge), transparent 18%);
    --glow-x: 50%;
    --glow-y: 18%;
    background: linear-gradient(150deg, color-mix(in srgb, var(--rail), white 12%), var(--rail));
    background-attachment: local;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--light-edge), transparent 24%),
        inset 8px 0 22px rgba(255, 255, 255, 0.06),
        inset -12px -18px 34px rgba(255, 255, 255, 0.04),
        0 18px 54px color-mix(in srgb, var(--light-shadow), transparent 18%);
    backdrop-filter: blur(29px) saturate(1.42) contrast(1.06);
}

.immersive-light::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.82), transparent 2.9rem);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.immersive-light[data-glowing="true"]::before {
    opacity: 0.84;
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 4.1rem;
    padding: 0.52rem 0.36rem;
    border-radius: 999px;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.rail-nav a,
.nav-theme-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    min-height: 3.25rem;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 0.64rem;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rail-nav i,
.nav-theme-toggle i {
    color: currentColor;
    font-size: 0.86rem;
}

.rail-nav a:hover,
.nav-theme-toggle:hover {
    color: var(--ink);
    background: transparent;
    transform: translateY(-1px);
}

.nav-theme-toggle:active i {
    transform: rotate(180deg);
    transition: transform 0.4s ease;
}

.rail-nav a.active {
    color: var(--ink);
    font-weight: 600;
}

.nav-theme-toggle:active,
.rail-nav a:active {
    transform: translateY(1px);
}

.page-main {
    grid-column: 2;
    min-width: 0;
}

.essay {
    max-width: 42rem;
    padding: clamp(2rem, 5vw, 5rem) 0;
}

.essay-header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.title {
    margin: 0 0 0.8rem;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.95;
    transition: color 0.5s ease;
}

.meta,
.post-date {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.lead {
    max-width: 30rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.content {
    font-family: var(--font-serif);
}

.content > *:first-child {
    margin-top: 0;
}

p,
ul,
ol,
blockquote,
pre,
table {
    margin: 0 0 1.45rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-main);
    font-size: 0.88rem;
    line-height: 1.6;
}

thead {
    background: color-mix(in srgb, var(--paper), var(--ink) 3%);
}

th,
td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--ink);
    font-weight: 600;
}

td {
    color: var(--muted);
}

tr:nth-child(even) td {
    background: color-mix(in srgb, var(--paper), var(--ink) 1.5%);
}

th,
td {
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4 {
    position: relative;
    margin: 2.7rem 0 1rem;
    color: var(--ink);
    font-family: var(--font-main);
    line-height: 1.16;
    scroll-margin-top: 6rem;
    transition: color 0.5s ease;
}

h2 {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.08rem;
}

.heading-anchor {
    position: relative;
    top: -6rem;
    display: block;
    visibility: hidden;
}

a {
    color: var(--accent);
    text-decoration-color: color-mix(in srgb, var(--accent), transparent 70%);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-color: currentColor;
}

img {
    display: block;
    width: min(100%, 48rem);
    height: auto;
    margin: 2rem auto;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

blockquote {
    margin-left: -1.2rem;
    padding-left: 1.2rem;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-size: 1rem;
    transition: border-color 0.5s ease, color 0.5s ease;
}

code,
pre,
.typst-block,
.math-block {
    font-family: var(--font-mono);
}

code {
    padding: 0.1rem 0.32rem;
    border-radius: 0.4rem;
    background: var(--accent-soft);
    font-size: 0.86em;
}

pre,
.typst-block,
.math-block {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--paper), var(--ink) 4%);
    font-size: 0.84rem;
    line-height: 1.55;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

pre code,
.typst-block code {
    padding: 0;
    background: transparent;
}

.typst-block::before,
.math-block::before {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.typst-block::before {
    content: "TYPST";
}

.math-block::before {
    content: "MATH";
}

.sidenote {
    float: right;
    clear: right;
    width: 15rem;
    margin-right: -19rem;
    margin-bottom: 1rem;
    padding: 0.9rem 0 0.9rem 1rem;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-main);
    font-size: 0.74rem;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: border-color 0.5s ease, color 0.5s ease;
}

.sidenote p {
    margin: 0 0 0.65rem;
}

.sidenote p:last-child {
    margin-bottom: 0;
}

.sidenote ul,
.sidenote ol {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.sidenote li {
    margin: 0.3rem 0;
}

.sidenote ul {
    list-style-type: disc;
}

.sidenote ol {
    list-style-type: decimal;
}

.sidenote a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.sidenote a:hover {
    text-decoration: underline;
}

.sidenote img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 0.65rem;
    border-radius: 0.8rem;
}

.sidenote strong {
    color: var(--ink);
    font-weight: 600;
}

.sidenote-marker {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    vertical-align: super;
    margin-left: 0.15rem;
    margin-right: 0.1rem;
    font-family: var(--font-mono);
}

.sidenote-num {
    float: left;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.35rem;
    line-height: 1.5;
    font-family: var(--font-mono);
}

.toc-card,
.margin-note {
    max-width: 14rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.toc-card {
    margin-top: clamp(2rem, 5vw, 5rem);
    padding: 0.78rem 0.86rem;
    border-radius: 1.1rem;
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.margin-note {
    padding-top: clamp(2rem, 5vw, 5rem);
}

.toc-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.toc-card summary::-webkit-details-marker {
    display: none;
}

.toc-card summary::after {
    content: "+";
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
}

.toc-card[open] summary::after {
    content: "−";
}

.toc-links {
    margin-top: 0.62rem;
}

.toc-card a {
    display: block;
    margin: 0.55rem 0;
    color: var(--muted);
    text-decoration: none;
}

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

.toc-card a.active {
    color: var(--accent);
    font-weight: 600;
}

.toc-level-3 {
    padding-left: 1rem;
    font-size: 0.78rem;
}

.breadcrumb {
    padding-top: clamp(2rem, 5vw, 5rem);
    font-size: 0.86rem;
    transition: color 0.5s ease;
}

.breadcrumb a {
    text-decoration: none;
}

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

.post-item {
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
    transition: border-color 0.5s ease;
}

.post-item h2 {
    margin: 0.2rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    font-weight: 500;
}

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

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

.empty-state {
    color: var(--muted);
}

.fa-solid,
.fa-regular,
.fa-brands {
    color: var(--accent);
}

@media (max-width: 1080px) {
    .site-shell {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1rem 1rem 6rem;
    }

    .site-rail {
        grid-column: 1;
        position: fixed;
        top: auto;
        right: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        left: 50%;
        z-index: 10;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: max-content;
        max-width: calc(100vw - 1.5rem);
        pointer-events: none;
        transform: translateX(-50%);
    }

    .rail-nav {
        flex-direction: row;
        width: fit-content;
        max-width: 100%;
        padding: 0.45rem;
        border-radius: 999px;
        pointer-events: auto;
    }

    .rail-nav a,
    .nav-theme-toggle {
        min-width: clamp(3.5rem, 18vw, 4.4rem);
        min-height: 3.65rem;
    }

    .page-main {
        grid-column: 1;
    }

    .essay,
    .blog-index {
        max-width: 100%;
        padding-top: 2rem;
    }

    .page-margin {
        display: none;
    }

    .sidenote {
        float: none;
        display: block;
        width: auto;
        margin: 1rem 0;
        padding: 0.8rem 1rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: var(--rail);
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .brand-pill {
        min-height: 2.4rem;
        box-shadow: none;
    }

    .rail-nav {
        width: fit-content;
        max-width: calc(100vw - 1.5rem);
        justify-content: center;
    }

    .rail-nav a,
    .nav-theme-toggle {
        min-width: 3.25rem;
        flex: 0 0 auto;
        font-size: 0.68rem;
    }

    .title {
        font-size: clamp(1.6rem, 10vw, 2.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* KaTeX adaptation */
.math-inline .katex {
    color: var(--ink);
}
.math-block .katex-display {
    margin: 0;
    padding: 0.5rem 0;
}
.katex {
    color: var(--ink);
}

/* Lightbox adaptation */
.lb-data .lb-caption {
    color: #fff;
}
.lb-data .lb-number {
    color: #fff;
}
.lb-close {
    filter: invert(100%);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--rail);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    color: var(--muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, color 0.2s ease, background-color 0.5s ease;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--ink);
}

.back-to-top i {
    font-size: 1.2rem;
    color: var(--accent);
}

@media (max-width: 1080px) {
    .back-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Code block copy button */
pre {
    position: relative;
}

pre .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--rail);
    backdrop-filter: blur(8px);
    color: var(--muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: grid;
    place-items: center;
}

pre:hover .copy-button {
    opacity: 1;
}

pre .copy-button:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

pre .copy-button:active {
    transform: translateY(0);
}

pre .copy-button.copied {
    color: #10b981;
    border-color: #10b981;
}

pre .copy-button i {
    font-size: 0.9rem;
}

/* Blog page in-page search */
.blog-search {
    margin-bottom: 2rem;
}

/* View Transition page enter/exit animation */
::view-transition-old(root) {
    animation: fade-out 0.3s ease-in-out both;
}

::view-transition-new(root) {
    animation: fade-in 0.3s ease-in-out both;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

.blog-search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.blog-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
}

#blogSearchInput {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#blogSearchInput:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 85%);
}

#blogSearchInput::placeholder {
    color: var(--muted);
}

.blog-search-results {
    display: none;
}

.blog-search-results.active {
    display: grid;
    gap: 0.75rem;
}

.blog-search-result-item {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    background: var(--paper);
    text-decoration: none;
    display: block;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.blog-search-result-item:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--paper), var(--accent-soft) 30%);
}

.blog-search-result-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.blog-search-result-date {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.blog-search-result-preview {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-search-empty {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px dashed var(--line);
}

/* In-page search hides original list when searching */
.blog-search-results.active + #originalPostList {
    display: none;
}
