/*
Theme Name: Siyi Theme
Author: siyi
Description: 好用的，一个就够了。
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: siyi-theme
*/

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
    --font-sans: "WenYuan Rounded SC VF", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
}

::selection {
    background: hsl(var(--foreground) / 0.12);
    color: hsl(var(--foreground));
}

::-moz-selection {
    background: hsl(var(--foreground) / 0.12);
    color: hsl(var(--foreground));
}

.dark ::selection {
    background: hsl(var(--foreground) / 0.28);
    color: hsl(var(--background));
}

.dark ::-moz-selection {
    background: hsl(var(--foreground) / 0.28);
    color: hsl(var(--background));
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: hsl(var(--primary) / 0.8);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.site-header {
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: hsl(var(--background) / 0.9);
    transition:
        border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled {
    border-bottom-color: hsl(var(--foreground) / 0.14);
    box-shadow: 0 10px 26px -24px hsl(var(--foreground) / 0.5);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo:hover {
    color: hsl(var(--foreground));
}

.site-logo img {
    max-height: 2rem;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.site-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a i {
    font-size: 1rem;
    width: 1em;
    text-align: center;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.nav-menu li {
    position: relative;
}

.nav-menu .has-submenu > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
}

.nav-menu .has-submenu:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.nav-menu .has-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.sub-menu a:hover {
    background-color: hsl(var(--accent));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .site-nav.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .site-nav a {
        width: 100%;
    }

    .nav-menu .has-submenu > a::after {
        margin-left: auto;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 1rem;
        display: none;
    }

    .nav-menu .has-submenu.open > .sub-menu {
        display: block;
    }
}

.site-main {
    min-height: calc(100vh - 8rem);
}

.site-footer {
    border-top: 1px solid hsl(var(--border));
    padding: 2rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .site-nav .nav-menu > li {
        opacity: 0;
        transform: translateY(8px);
        transition:
            opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--nav-item-delay, 0ms);
    }

    .site-nav.active .nav-menu > li {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copyright {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.footer-icp {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.footer-icp a {
    color: hsl(var(--muted-foreground));
    transition: color 0.15s ease;
}

.footer-icp a:hover {
    color: hsl(var(--foreground));
}

.hero {
    background-color: hsl(var(--background));
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark .hero {
    background-color: #1a1a2e;
}

#hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#hero-canvas-container canvas {
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title,
.archive-title,
.article-title,
.entry-title,
.post-card-title,
.category-v2-title,
.category-v2-featured-title {
    text-wrap: balance;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-search {
    margin-top: 2rem;
    position: relative;
    padding-top: 75px;
}

.cat-search-wrapper {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.cat-sleep-symbol {
    position: absolute;
    left: calc(50% - 55px);
    top: -5px;
    font-weight: 700;
    font-size: 16px;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.cat-sleep-symbol span {
    position: relative;
    display: inline-block;
    opacity: 1;
    transform: scale(1);
    animation: catSleep 4s ease-in-out infinite;
}

.cat-sleep-symbol span:nth-child(1) {
    animation-delay: 0s;
}

.cat-sleep-symbol span:nth-child(2) {
    animation-delay: 1s;
    margin-left: -4px;
}

.cat-sleep-symbol span:nth-child(3) {
    animation-delay: 2s;
    margin-left: -4px;
}

@keyframes catSleep {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-2px, -15px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.4);
    }
}

.cat-container {
    position: relative;
}

.cat-svg {
    color: hsl(var(--foreground));
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    width: 130px;
    height: 100px;
}

.cat-eyelid-left,
.cat-eyelid-right {
    transition: opacity 0.3s ease;
}

.cat-eyes-open {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-search-input:focus ~ .cat-search-wrapper .cat-eyelid-left,
.hero-search-input:focus ~ .cat-search-wrapper .cat-eyelid-right,
.hero-search.awake .cat-eyelid-left,
.hero-search.awake .cat-eyelid-right {
    opacity: 0;
}

.hero-search-input:focus ~ .cat-search-wrapper .cat-eyes-open,
.hero-search.awake .cat-eyes-open {
    opacity: 1;
}

.hero-search-input:focus ~ .cat-search-wrapper .cat-sleep-symbol,
.hero-search.awake .cat-sleep-symbol {
    opacity: 0;
}

.hero-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 4px 12px -1px rgb(0 0 0 / 0.15);
    transition: all 0.2s ease;
}

.hero-search-form:focus-within {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    outline: none;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.hero-search-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.hero-search-btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.hero-btn {
    padding: 0.75rem 2rem;
    height: auto;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 1.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }
}

.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
    color: hsl(var(--primary-foreground));
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
    background-color: hsl(var(--destructive) / 0.9);
}

.input {
    display: flex;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.badge-muted {
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.posts-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    transition: all 0.15s ease;
    height: 100%;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover .post-card {
    border-color: hsl(var(--border) / 0.5);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.post-card-thumbnail {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    overflow: hidden;
    margin: -1.5rem -1.5rem 0 -1.5rem;
}

.post-card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.post-card-excerpt {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.entry-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
}

.article-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }
}

.article-content {
    min-width: 0;
}

.article-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
}

.article-header {
    position: relative;
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header-info {
    padding: 2rem;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.category-tag:hover {
    background: hsl(var(--primary) / 0.2);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: hsl(var(--foreground));
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.025em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.meta-item svg {
    opacity: 0.7;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.meta-item a:hover {
    color: hsl(var(--foreground));
}

.article-body {
    padding: 0 2rem 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
    max-width: 74ch;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(var(--foreground));
}

.article-body h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.article-body h3 {
    font-size: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.article-body ul {
    counter-reset: ul-item;
}

.article-body ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-body ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: hsl(var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
    transition: all 0.2s ease;
}

.article-body ul > li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
}

.article-body ul ul,
.article-body ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.article-body ul ul > li::before {
    width: 5px;
    height: 5px;
    background: transparent;
    border: 2px solid hsl(var(--primary));
    box-shadow: none;
}

.article-body ul ul ul > li::before {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.article-body ul ul ul > li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 2px;
    background: hsl(var(--muted-foreground));
    border-radius: 1px;
}

.article-body ol {
    counter-reset: ol-item;
}

.article-body ol > li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    counter-increment: ol-item;
}

.article-body ol > li::before {
    content: counter(ol-item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s ease;
}

.article-body ol > li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.article-body ol ol {
    counter-reset: ol-item-nested;
}

.article-body ol ol > li {
    counter-increment: ol-item-nested;
    padding-left: 2.75rem;
}

.article-body ol ol > li::before {
    content: counter(ol-item) '.' counter(ol-item-nested);
    font-size: 0.625rem;
    width: 1.75rem;
}

.article-body li {
    line-height: 1.7;
}

.article-body li > ul,
.article-body li > ol {
    margin-top: 0.5rem;
}

.article-body a {
    color: hsl(var(--primary));
    text-decoration: none;
    position: relative;
    background: linear-gradient(90deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    padding: 0.125rem 0.375rem;
    margin: 0 -0.375rem;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.2s ease;
    border-bottom: 1px solid hsl(var(--primary) / 0.3);
}

.article-body a:hover {
    background: hsl(var(--primary) / 0.15);
    border-bottom-color: hsl(var(--primary));
}

.article-body a:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.article-body a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: 0.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.dark .article-body a[target="_blank"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.article-body a[target="_blank"]:hover::after {
    opacity: 1;
}

.article-body img {
    border-radius: calc(var(--radius) * 1.5);
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    cursor: zoom-in;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-body img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-body figure {
    margin: 2rem 0;
}

.article-body figure img {
    margin: 0;
}

.article-body figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    font-style: italic;
}

.article-body code {
    background: hsl(var(--muted));
    padding: 0.125rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-body pre {
    position: relative;
    background: hsl(var(--muted) / 0.8);
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid hsl(var(--border));
}

.article-body pre > span:first-child {
    display: none !important;
}

.article-body pre span[style*="FF5F56"],
.article-body pre span[style*="background-color:#2e3440"],
.article-body pre span[style*="background-color: #2e3440"] {
    display: none !important;
}

.article-body pre::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    background: hsl(var(--muted-foreground) / 0.3);
    border-radius: 50%;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--muted) / 0.5) 0%, hsl(var(--muted) / 0.3) 100%);
    border-radius: 0 calc(var(--radius) * 1.5) calc(var(--radius) * 1.5) 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    position: relative;
    overflow: hidden;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: hsl(var(--primary) / 0.15);
    line-height: 1;
    font-style: normal;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: hsl(var(--muted-foreground) / 0.8);
}

.article-body blockquote cite::before {
    content: '— ';
}

.article-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, hsl(var(--border)) 20%, hsl(var(--border)) 80%, transparent 100%);
    margin: 3rem 0;
    position: relative;
}

.article-body hr::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
}

.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-body thead {
    background: linear-gradient(180deg, hsl(var(--muted) / 0.8) 0%, hsl(var(--muted) / 0.5) 100%);
}

.article-body th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: hsl(var(--foreground));
    border-bottom: 2px solid hsl(var(--border));
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body th:not(:last-child) {
    border-right: 1px solid hsl(var(--border));
}

.article-body td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    transition: background-color 0.15s ease;
}

.article-body td:not(:last-child) {
    border-right: 1px solid hsl(var(--border));
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

.article-body tbody tr:hover td {
    background: hsl(var(--muted) / 0.3);
}

.article-body tbody tr:nth-child(even) {
    background: hsl(var(--muted) / 0.15);
}

.article-body tbody tr:nth-child(even):hover {
    background: hsl(var(--muted) / 0.35);
}

.article-body kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    line-height: 1;
    color: hsl(var(--foreground));
    background: linear-gradient(180deg, hsl(var(--muted)) 0%, hsl(var(--muted) / 0.8) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 hsl(var(--background) / 0.5);
    white-space: nowrap;
}

.article-body mark {
    background: linear-gradient(135deg, hsl(50 100% 80%) 0%, hsl(50 100% 70%) 100%);
    color: hsl(50 100% 20%);
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 500;
}

.dark .article-body mark {
    background: linear-gradient(135deg, hsl(50 80% 40%) 0%, hsl(50 80% 30%) 100%);
    color: hsl(50 100% 90%);
}

.article-body abbr[title] {
    text-decoration: underline dotted hsl(var(--muted-foreground));
    cursor: help;
}

.article-body del {
    text-decoration: line-through;
    color: hsl(var(--muted-foreground));
    opacity: 0.7;
}

.article-body ins {
    text-decoration: none;
    background: linear-gradient(135deg, hsl(142 76% 90%) 0%, hsl(142 76% 80%) 100%);
    color: hsl(142 76% 25%);
    padding: 0.125rem 0.25rem;
    border-radius: calc(var(--radius) - 4px);
}

.dark .article-body ins {
    background: linear-gradient(135deg, hsl(142 50% 30%) 0%, hsl(142 50% 20%) 100%);
    color: hsl(142 76% 85%);
}

.article-body sub,
.article-body sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-body sup {
    top: -0.5em;
}

.article-body sub {
    bottom: -0.25em;
}

.article-body details {
    margin: 1.5rem 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
}

.article-body summary {
    padding: 1rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease;
    list-style: none;
}

.article-body summary::-webkit-details-marker {
    display: none;
}

.article-body summary::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid hsl(var(--muted-foreground));
    border-bottom: 2px solid hsl(var(--muted-foreground));
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.article-body details[open] summary::after {
    transform: rotate(45deg);
}

.article-body summary:hover {
    background: hsl(var(--muted) / 0.5);
}

.article-body details > *:not(summary) {
    padding: 0 1.5rem 1.5rem;
}

.article-body .wp-caption {
    max-width: 100%;
    margin: 2rem 0;
}

.article-body .wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    font-style: italic;
}

.article-body .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.article-body .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-body .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-body .gallery-item {
    margin: 0;
}

.article-body .gallery-item img {
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 2rem;
}

.tags-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: var(--radius);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tag-item:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.article-navigation {
    flex-direction: row;
    gap: 1.5rem;
    padding: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.article-navigation .nav-previous {
    margin-right: auto;
}

.article-navigation .nav-next {
    margin-left: auto;
}

.article-navigation .nav-previous a,
.article-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-navigation .nav-next a {
    align-items: flex-end;
    text-align: right;
}

.article-navigation .nav-previous a:hover,
.article-navigation .nav-next a:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nav-direction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-article {
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.article-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
    max-height: calc(100vh - 6rem);
    overflow: hidden;
}

.article-sidebar .widget {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow: hidden;
    box-sizing: border-box;
}

.article-sidebar .widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
    flex-shrink: 0;
}

.toc-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: sticky;
    top: 5rem;
}

.toc-nav {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: calc(50vh - 60px);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc-nav::-webkit-scrollbar {
    display: none;
}

.toc-nav.no-smooth {
    scroll-behavior: auto !important;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    padding: 0;
    border: none;
    margin: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
    position: relative;
}

.toc-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--border));
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.5);
}

.toc-link:hover::before {
    background: hsl(var(--muted-foreground));
}

.toc-link.active {
    color: hsl(var(--foreground));
    font-weight: 500;
    background: hsl(var(--muted));
}

.toc-link.active::before {
    background: hsl(var(--primary));
}

.toc-item.is-expanded > .toc-link {
    color: hsl(var(--foreground));
}

.toc-item.is-expanded > .toc-link::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 5px;
    border-right: 1.5px solid hsl(var(--muted-foreground));
    border-bottom: 1.5px solid hsl(var(--muted-foreground));
    transition: transform 0.25s ease;
}

.toc-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
}

.toc-sublist.is-open {
    max-height: 1000px;
    opacity: 1;
}

.toc-sublist .toc-link {
    padding-left: 1.75rem;
    font-size: 0.75rem;
}

.toc-sublist .toc-sublist .toc-link {
    padding-left: 2.5rem;
}

.toc-item.is-active > .toc-link {
    animation: toc-highlight 0.3s ease;
}

@keyframes toc-highlight {
    50% {
        background: hsl(var(--primary) / 0.1);
    }
}

.floating-buttons {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-btn:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-buttons {
        right: 1rem;
        bottom: 1.5rem;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1024px) {
    .article-sidebar {
        display: none;
    }

    .article-header-info {
        padding: 1.5rem;
    }

    .article-body {
        padding: 0 1.5rem 1.5rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-tags {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-navigation {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .article-navigation .nav-previous,
    .article-navigation .nav-next {
        max-width: 100%;
        margin-left: 0;
    }

    .article-navigation .nav-next a {
        align-items: flex-start;
    }
}

.entry-content {
    max-width: 65ch;
    color: hsl(var(--foreground));
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.entry-content code {
    background-color: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.entry-content pre {
    background-color: hsl(var(--muted));
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content pre code {
    background-color: transparent;
    padding: 0;
}

.entry-content blockquote {
    border-left: 4px solid hsl(var(--border));
    padding-left: 1rem;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid hsl(var(--border));
    padding: 0.75rem;
    text-align: left;
}

.entry-content th {
    background-color: hsl(var(--muted));
    font-weight: 600;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.entry-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.entry-navigation a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    max-width: 45%;
    transition: all 0.15s ease;
}

.entry-navigation a:hover {
    background-color: hsl(var(--accent));
}

.entry-navigation .nav-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-navigation .nav-title {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.layout-with-sidebar {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr 300px;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget li a {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    display: block;
}

.widget li a:hover {
    color: hsl(var(--foreground));
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination a {
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.pagination a:hover {
    background-color: hsl(var(--accent));
}

.pagination .current {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.comments-area {
    margin-top: 3rem;
}

.comments-header {
    margin-bottom: 2rem;
    text-align: center;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.comments-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-list .children {
    margin-top: 1rem;
    margin-left: 3rem;
    padding-left: 1.5rem;
    border-left: 2px solid hsl(var(--border));
    list-style: none;
}

.comment-list > li {
    margin: 0;
}

.comment-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    transition: all 0.2s ease;
}

.comment-card:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-card:focus-within {
    border-color: hsl(var(--foreground) / 0.22);
    box-shadow: 0 10px 26px -18px hsl(var(--foreground) / 0.45);
}

.comment-card.comment-anchor-highlight {
    animation: comment-anchor-pulse 1.6s var(--motion-ease) 1;
}

@keyframes comment-anchor-pulse {
    0% {
        border-color: hsl(var(--foreground) / 0.26);
        box-shadow: 0 0 0 0 hsl(var(--foreground) / 0.16);
    }
    35% {
        border-color: hsl(var(--foreground) / 0.42);
        box-shadow: 0 0 0 6px hsl(var(--foreground) / 0.1);
    }
    100% {
        border-color: hsl(var(--border));
        box-shadow: 0 0 0 0 hsl(var(--foreground) / 0);
    }
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsl(var(--border));
    transition: all 0.2s ease;
}

.comment-card:hover .avatar-img {
    border-color: hsl(var(--primary));
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
}

.comment-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.comment-author-name a:hover {
    color: hsl(var(--primary));
}

.comment-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.comment-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
}

.comment-edit-link:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.comment-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.comment-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--foreground));
}

.comment-text p {
    margin: 0 0 0.75rem 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-text a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-text a:hover {
    opacity: 0.8;
}

.comment-text code {
    background: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.comment-text blockquote {
    margin: 0.75rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 3px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    min-height: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--secondary));
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
}

.comment-actions a:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    border-color: hsl(var(--foreground) / 0.14);
}

.comment-actions a:active {
    transform: translateY(0) scale(0.99);
}

.comment-actions a,
.comment-children-toggle,
.btn-submit {
    touch-action: manipulation;
}

.comment-children-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-right: 0.5rem;
    min-height: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.comment-children-toggle:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    border-color: hsl(var(--foreground) / 0.2);
}

.comment-children-toggle:active {
    transform: translateY(0) scale(0.99);
}

.comment-children-toggle::before {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform var(--motion-fast) var(--motion-ease);
}

.comment-children-toggle[aria-expanded="true"]::before {
    transform: rotate(-135deg) translateY(-1px);
}

.comment-list > li.has-children.is-collapsed > .children {
    display: none;
}

.comments-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.comments-pagination a,
.comments-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
}

.comments-pagination a {
    color: hsl(var(--foreground));
}

.comments-pagination a:hover {
    background: hsl(var(--accent));
}

.comments-pagination .current {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.comments-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    text-align: center;
}

.comment-respond {
    margin-top: 3rem;
}

.comments-area > .comment-respond {
    margin-top: 0;
    margin-bottom: 2rem;
}

.comment-content-wrapper > .comment-respond {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px dashed hsl(var(--border));
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 1.5rem 0;
}

.comment-form {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    display: block;
    margin-bottom: 0.5rem;
}

.form-field label .required {
    color: hsl(var(--destructive));
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.15s ease;
    display: block;
    margin-top: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}

.input:hover,
.hero-search-input:hover,
.form-field input:hover,
.form-field textarea:hover,
.form-group input:hover {
    border-color: hsl(var(--foreground) / 0.24);
    background: hsl(var(--background) / 0.98);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.comment-human-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    height: auto;
    font-size: 0.875rem;
    font-weight: 500;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-submit:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.3);
}

.btn-submit svg {
    width: 16px;
    height: 16px;
}

#cancel-comment-reply-link {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--border));
    transition: color 0.15s ease, border-color 0.15s ease;
}

#cancel-comment-reply-link:hover {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--foreground) / 0.35);
}

.comment-list > li {
    opacity: 0;
    transform: translateY(8px);
    animation: comment-item-in 0.45s var(--motion-ease) forwards;
}

.comment-list > li:nth-child(1) { animation-delay: 0.02s; }
.comment-list > li:nth-child(2) { animation-delay: 0.05s; }
.comment-list > li:nth-child(3) { animation-delay: 0.08s; }
.comment-list > li:nth-child(4) { animation-delay: 0.11s; }
.comment-list > li:nth-child(5) { animation-delay: 0.14s; }
.comment-list > li:nth-child(n+6) { animation-delay: 0.17s; }

@keyframes comment-item-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 1.5rem;
        padding-left: 1rem;
    }

    .avatar-img {
        width: 40px;
        height: 40px;
    }

    .comment-card {
        padding: 1rem;
    }

    .comment-actions {
        gap: 0.375rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-form {
        padding: 1.5rem;
    }
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .input {
    flex: 1;
}

.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
}

.archive-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, hsl(var(--primary) / 0.5), hsl(var(--primary) / 0.1));
    border-radius: 1px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: hsl(var(--foreground));
    position: relative;
    padding-left: 2.5rem;
}

.timeline-year::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.3);
}

.timeline-month {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
    margin-left: 2rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.timeline-item {
    position: relative;
    padding-left: 0;
    margin-bottom: 1rem;
}

.timeline-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 1.25rem;
    border-radius: calc(var(--radius) * 1.5);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    position: relative;
}

.timeline-link:hover {
    transform: translateX(0.5rem);
    border-color: hsl(var(--primary));
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
}

.timeline-date {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    min-width: 4.5rem;
    font-weight: 500;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-year {
        font-size: 1.25rem;
        padding-left: 1.5rem;
    }

    .timeline-year::before {
        width: 1rem;
        height: 1rem;
        left: 0.25rem;
    }

    .timeline-month {
        margin-left: 1rem;
    }

    .timeline-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
}

.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.15s; }
.link-card:nth-child(3) { animation-delay: 0.2s; }
.link-card:nth-child(4) { animation-delay: 0.25s; }
.link-card:nth-child(5) { animation-delay: 0.3s; }
.link-card:nth-child(6) { animation-delay: 0.35s; }
.link-card:nth-child(n+7) { animation-delay: 0.4s; }

.link-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.link-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: hsl(var(--muted));
}

.link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 1.25rem;
    font-weight: 600;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-name {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.link-apply-section {
    margin-top: 3rem;
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.link-apply-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.link-site-info {
    flex: 1;
}

.site-info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.site-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.site-info-item:hover {
    background: hsl(var(--muted) / 0.5);
}

.site-info-item .copy-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-info-item:hover .copy-icon {
    opacity: 0.5;
}

.site-info-item.copied {
    background: hsl(var(--primary) / 0.1);
}

.site-info-item.copied .copy-icon {
    opacity: 1;
    color: hsl(var(--primary));
}

.site-info-item.copied::after {
    content: '\5DF2\590D\5236';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: hsl(var(--primary));
    font-weight: 500;
}

.site-info-item.copied .copy-icon {
    display: none;
}

.site-info-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.site-info-value {
    color: hsl(var(--foreground));
    font-weight: 500;
    word-break: break-all;
    padding-right: 1.5rem;
}

.link-apply-divider {
    width: 1px;
    background: hsl(var(--border));
    margin: 0.5rem 0;
}

.link-apply-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.link-apply-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.link-apply-desc {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.link-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-apply-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.link-apply-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.link-apply-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.link-apply-modal-content {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.link-apply-modal.is-open .link-apply-modal-content {
    transform: scale(1) translateY(0);
}

.link-apply-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.link-apply-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.link-apply-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-apply-modal-close:hover {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.link-apply-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }

    .link-apply-container {
        flex-direction: column;
    }

    .link-apply-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }

    .link-apply-action {
        padding: 1.5rem 0;
    }

    .site-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-info-item {
        align-items: center;
    }
}

.link-apply-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-group label .required {
    color: hsl(var(--destructive));
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-group input::placeholder {
    color: hsl(var(--muted-foreground));
}

.link-apply-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    display: none;
}

.link-apply-message.success {
    display: block;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.3);
}

.link-apply-message.error {
    display: block;
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
    border: 1px solid hsl(var(--destructive) / 0.3);
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.error-404 p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.theme-toggle:hover {
    background-color: hsl(var(--accent));
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.theme-toggle .moon-icon {
    display: none;
}

.dark .theme-toggle .sun-icon {
    display: none;
}

.dark .theme-toggle .moon-icon {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.grid { display: grid; }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.image-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active .image-lightbox-content {
    transform: scale(1);
}

.image-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-lightbox-close:hover {
    background: hsl(var(--destructive));
    border-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    transform: rotate(90deg);
}

.image-lightbox-close svg {
    width: 20px;
    height: 20px;
}

.image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-lightbox-nav:hover {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: translateY(-50%) scale(1.1);
}

.image-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.image-lightbox-nav:disabled:hover {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
    transform: translateY(-50%);
}

.image-lightbox-prev {
    left: 1.5rem;
}

.image-lightbox-next {
    right: 1.5rem;
}

.image-lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.image-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    z-index: 10;
}

.image-lightbox-caption {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--card) / 0.9);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.image-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.image-lightbox-zoom-hint {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: hsl(var(--card) / 0.9);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    z-index: 10;
}

.image-lightbox-zoom-hint svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .image-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .image-lightbox-prev {
        left: 0.75rem;
    }

    .image-lightbox-next {
        right: 0.75rem;
    }

    .image-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }

    .image-lightbox-counter {
        bottom: 0.75rem;
        font-size: 0.75rem;
    }

    .image-lightbox-caption {
        bottom: 3rem;
        max-width: 90%;
        font-size: 0.75rem;
    }
}

.article-body .wp-block-image {
    margin: 2rem 0;
}

.article-body .wp-block-image img {
    margin: 0;
}

.article-body .wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    font-style: italic;
}

.article-body .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-body .wp-block-gallery .blocks-gallery-item {
    margin: 0;
}

.article-body .wp-block-gallery .blocks-gallery-item img {
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: zoom-in;
}

.article-body .wp-block-columns {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.article-body .wp-block-column {
    min-width: 0;
}

.article-body .wp-block-columns.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
}

.article-body .wp-block-columns.is-layout-flex .wp-block-column {
    flex: 1;
}

.article-body .wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, hsl(var(--border)) 20%, hsl(var(--border)) 80%, transparent 100%);
    margin: 3rem 0;
}

.article-body .wp-block-separator.is-style-wide {
    background: hsl(var(--border));
}

.article-body .wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
}

.article-body .wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: 1.5rem;
    letter-spacing: 1rem;
    color: hsl(var(--muted-foreground));
}

.article-body .wp-block-pullquote {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, hsl(var(--muted) / 0.5) 0%, hsl(var(--muted) / 0.3) 100%);
    border-radius: calc(var(--radius) * 1.5);
    border-left: 4px solid hsl(var(--primary));
    text-align: center;
}

.article-body .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-style: normal;
}

.article-body .wp-block-pullquote p {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: hsl(var(--foreground));
}

.article-body .wp-block-pullquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-style: normal;
}

.article-body .wp-block-quote.is-style-large {
    padding: 2rem 3rem;
    font-size: 1.125rem;
}

.article-body .wp-block-verse {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: hsl(var(--muted) / 0.5);
    padding: 1.5rem;
    border-radius: var(--radius);
    white-space: pre-wrap;
    margin: 2rem 0;
}

.article-body .wp-block-code {
    background: hsl(var(--muted) / 0.8);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    margin: 1.5rem 0;
    overflow-x: auto;
}

.article-body .wp-block-code code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

.article-body .wp-block-preformatted {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap;
    background: hsl(var(--muted) / 0.5);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.article-body .has-drop-cap:not(:focus)::first-letter {
    float: left;
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.8;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: hsl(var(--primary));
}

.article-body .wp-block-button {
    margin: 1.5rem 0;
}

.article-body .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-body .wp-block-button.is-style-fill .wp-block-button__link {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.article-body .wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.article-body .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.article-body .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
}

.article-body .wp-block-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.article-body .wp-block-alert.is-style-info {
    background: hsl(200 100% 97%);
    border-color: hsl(200 100% 40%);
}

.dark .article-body .wp-block-alert.is-style-info {
    background: hsl(200 50% 15%);
}

.article-body .wp-block-alert.is-style-success {
    background: hsl(142 76% 97%);
    border-color: hsl(142 76% 36%);
}

.dark .article-body .wp-block-alert.is-style-success {
    background: hsl(142 50% 12%);
}

.article-body .wp-block-alert.is-style-warning {
    background: hsl(50 100% 95%);
    border-color: hsl(50 100% 45%);
}

.dark .article-body .wp-block-alert.is-style-warning {
    background: hsl(50 50% 15%);
}

.article-body .wp-block-alert.is-style-error {
    background: hsl(0 84% 97%);
    border-color: hsl(0 84% 60%);
}

.dark .article-body .wp-block-alert.is-style-error {
    background: hsl(0 50% 15%);
}

.article-license {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted) / 0.3) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    position: relative;
    overflow: hidden;
}

.article-license::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.6) 50%, hsl(var(--primary)) 100%);
}

.license-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.license-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.license-icons a:hover {
    transform: scale(1.05);
}

.license-icon {
    width: 32px;
    height: 32px;
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.license-icons a:hover .license-icon {
    color: hsl(var(--primary));
}

.license-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    letter-spacing: 0.05em;
}

.license-content {
    text-align: center;
}

.license-content > p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.license-content a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.license-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.license-rules {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.license-rules .rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.5;
}

.license-rules .rule svg {
    flex-shrink: 0;
}

.license-rules .rule.allowed {
    background: hsl(142 76% 97%);
    color: hsl(142 76% 25%);
}

.dark .license-rules .rule.allowed {
    background: hsl(142 50% 12%);
    color: hsl(142 70% 70%);
}

.license-rules .rule.forbidden {
    background: hsl(0 84% 97%);
    color: hsl(0 84% 30%);
}

.dark .license-rules .rule.forbidden {
    background: hsl(0 50% 12%);
    color: hsl(0 70% 70%);
}

.license-rules .rule strong {
    font-weight: 600;
}

.license-author {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed hsl(var(--border));
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    word-break: break-all;
}

.license-author a {
    color: hsl(var(--foreground));
    font-weight: 500;
}

@media (max-width: 640px) {
    .article-license {
        padding: 1.25rem;
    }

    .license-icon {
        width: 28px;
        height: 28px;
    }

    .license-rules .rule {
        flex-direction: column;
        text-align: center;
        gap: 0.375rem;
        padding: 0.75rem;
    }

    .license-author {
        font-size: 0.75rem;
    }
}

/* ---------- Apple-inspired Minimal Polish ---------- */
:root {
    --ui-radius-xl: calc(var(--radius) * 1.6);
    --ui-radius-lg: calc(var(--radius) * 1.25);
    --ui-line-soft: hsl(var(--foreground) / 0.08);
    --ui-shadow-soft: 0 14px 30px -24px hsl(var(--foreground) / 0.28);
    --ui-shadow-hover: 0 18px 36px -24px hsl(var(--foreground) / 0.35);
    --ui-ease: cubic-bezier(0.22, 0.68, 0.2, 1);
}

.dark {
    --ui-line-soft: hsl(var(--foreground) / 0.14);
}

.site-header {
    border-bottom-color: var(--ui-line-soft);
    backdrop-filter: saturate(130%) blur(10px);
}

.site-nav a {
    border: 1px solid transparent;
    border-radius: calc(var(--radius) * 0.95);
    transition:
        color 0.22s var(--ui-ease),
        background-color 0.22s var(--ui-ease),
        border-color 0.22s var(--ui-ease),
        transform 0.2s var(--ui-ease);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
    border-color: var(--ui-line-soft);
    transform: translateY(-1px);
}

.hero {
    padding-top: clamp(5.2rem, 9vw, 7.3rem);
    padding-bottom: clamp(4.4rem, 8vw, 6.2rem);
}

.hero-content {
    max-width: 760px;
}

.hero-title {
    font-size: clamp(2.2rem, 5.8vw, 3.7rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

.hero-description {
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-form {
    border-width: 1px;
    border-color: var(--ui-line-soft);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-soft);
    transition:
        border-color 0.22s var(--ui-ease),
        box-shadow 0.24s var(--ui-ease),
        transform 0.2s var(--ui-ease);
}

.hero-search-form:focus-within {
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.14), var(--ui-shadow-soft);
}

.hero-search-btn {
    transition:
        background-color 0.2s var(--ui-ease),
        transform 0.18s var(--ui-ease);
}

.hero-search-btn:hover {
    transform: translateY(-1px);
}

.posts-grid {
    gap: clamp(1rem, 2.1vw, 1.35rem);
}

.post-card,
.article-card,
.widget,
.card {
    border: 1px solid var(--ui-line-soft);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-soft);
    transition:
        transform 0.24s var(--ui-ease),
        box-shadow 0.28s var(--ui-ease),
        border-color 0.24s var(--ui-ease);
}

.post-card-link:hover .post-card,
.article-navigation .nav-previous a:hover,
.article-navigation .nav-next a:hover,
.widget:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--border));
    box-shadow: var(--ui-shadow-hover);
}

.post-card-thumbnail {
    border-top-left-radius: var(--ui-radius-lg);
    border-top-right-radius: var(--ui-radius-lg);
}

.post-card-thumbnail img {
    transition: transform 0.34s var(--ui-ease);
}

.post-card-link:hover .post-card-thumbnail img {
    transform: scale(1.02);
}

.post-card-title,
.article-title,
.entry-title {
    text-wrap: balance;
    letter-spacing: -0.015em;
}

.post-card-excerpt,
.hero-description,
.article-meta,
.widget li a {
    color: hsl(var(--muted-foreground) / 0.95);
}

.pagination a,
.pagination span {
    border: 1px solid var(--ui-line-soft);
    border-radius: calc(var(--radius) * 0.95);
}

.pagination a:hover {
    transform: translateY(-1px);
    border-color: hsl(var(--border));
}

.article-body {
    line-height: 1.84;
}

.article-body a {
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--foreground) / 0.24);
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    transition: border-color 0.2s var(--ui-ease), color 0.2s var(--ui-ease);
}

.article-body a:hover {
    border-bottom-color: hsl(var(--foreground) / 0.52);
}

@media (max-width: 768px) {
    .site-nav {
        border: 1px solid var(--ui-line-soft);
        border-radius: var(--ui-radius-lg);
        box-shadow: var(--ui-shadow-soft);
    }

    .hero {
        padding-top: 4.2rem;
        padding-bottom: 3.8rem;
    }

    .post-card {
        padding: 1.1rem;
    }

    .post-card-thumbnail {
        margin: -1.1rem -1.1rem 0 -1.1rem;
    }

    .post-card-thumbnail img {
        height: 184px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav a,
    .hero-search-form,
    .hero-search-btn,
    .post-card,
    .post-card-thumbnail img,
    .widget,
    .pagination a,
    .post-card-link:hover .post-card,
    .post-card-link:hover .post-card-thumbnail img,
    .widget:hover {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Article Detail Refinement ---------- */
.single .article-header-info {
    padding-bottom: 1.2rem;
}

.single .article-title,
.single .entry-title {
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-wrap: balance;
}

.article-body {
    font-size: 1.01rem;
    line-height: 1.86;
}

.article-body p {
    margin-bottom: 1.28rem;
}

.article-body ul,
.article-body ol {
    margin: 1.1rem 0 1.4rem;
    padding-left: 0;
}

.article-body ul > li,
.article-body ol > li {
    margin-bottom: 0.64rem;
    line-height: 1.78;
}

.article-body ul > li {
    padding-left: 1.32rem;
}

.article-body ul > li::before {
    top: 0.64rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: hsl(var(--foreground) / 0.58);
    box-shadow: none;
    transform: none;
}

.article-body ul > li:hover::before {
    box-shadow: none;
    transform: none;
}

.article-body ul ul,
.article-body ol ul {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

.article-body ul ul > li {
    padding-left: 1.2rem;
}

.article-body ul ul > li::before {
    top: 0.66rem;
    width: 4px;
    height: 4px;
    background: hsl(var(--foreground) / 0.42);
    border: none;
}

.article-body ul ul ul > li::before {
    width: 3px;
    height: 3px;
    background: hsl(var(--foreground) / 0.3);
    border: none;
}

.article-body ul ul ul > li::after {
    content: none;
}

.article-body ol {
    counter-reset: ol-item;
}

.article-body ol > li {
    padding-left: 2.05rem;
}

.article-body ol > li::before {
    width: 1.28rem;
    height: 1.28rem;
    top: 0.14rem;
    border: 1px solid hsl(var(--foreground) / 0.16);
    border-radius: 999px;
    background: hsl(var(--foreground) / 0.04);
    color: hsl(var(--foreground) / 0.82);
    font-size: 0.69rem;
    font-weight: 600;
    box-shadow: none;
    transform: none;
}

.article-body ol > li:hover::before {
    box-shadow: none;
    transform: none;
}

.article-body ol ol > li {
    padding-left: 2.28rem;
}

.article-body ol ol > li::before {
    width: 1.52rem;
    font-size: 0.62rem;
}

.article-body h2 {
    margin-top: 2.35rem;
    margin-bottom: 0.82rem;
    border-bottom-color: hsl(var(--foreground) / 0.12);
}

.article-body h3 {
    margin-top: 1.85rem;
    margin-bottom: 0.68rem;
}

.article-body figcaption {
    color: hsl(var(--muted-foreground) / 0.9);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.article-body :not(pre) > code {
    background: hsl(var(--foreground) / 0.05);
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 0.75);
    padding: 0.08rem 0.42rem;
    font-size: 0.84em;
}

.article-body pre,
.article-body .wp-block-code {
    border-radius: calc(var(--radius) * 1.15);
    border-color: hsl(var(--foreground) / 0.12);
    background: linear-gradient(
        180deg,
        hsl(var(--foreground) / 0.04) 0%,
        hsl(var(--muted) / 0.78) 100%
    );
    box-shadow: 0 10px 24px -20px hsl(var(--foreground) / 0.3);
}

.article-body pre::before {
    width: 0.68rem;
    height: 0.68rem;
    background: hsl(var(--foreground) / 0.18);
}

.article-body blockquote {
    border-left: 2px solid hsl(var(--foreground) / 0.22);
    border-radius: calc(var(--radius) * 1.05);
    background: hsl(var(--foreground) / 0.03);
    color: hsl(var(--foreground) / 0.86);
    font-style: normal;
    padding: 1.15rem 1.28rem 1.15rem 1.18rem;
}

.article-body blockquote::before {
    top: -0.42rem;
    left: 0.62rem;
    font-size: 3rem;
    color: hsl(var(--foreground) / 0.12);
}

.article-body blockquote cite {
    color: hsl(var(--muted-foreground) / 0.88);
    margin-top: 0.82rem;
}

.article-body hr {
    margin: 2.3rem 0;
    background: linear-gradient(
        90deg,
        hsl(var(--foreground) / 0) 0%,
        hsl(var(--foreground) / 0.16) 50%,
        hsl(var(--foreground) / 0) 100%
    );
}

.article-body hr::before {
    width: 6px;
    height: 6px;
    border-width: 1px;
    border-color: hsl(var(--foreground) / 0.2);
}

.article-body table {
    border-color: hsl(var(--foreground) / 0.12);
    border-radius: calc(var(--radius) * 1.1);
    box-shadow: 0 12px 28px -24px hsl(var(--foreground) / 0.32);
}

.article-body thead {
    background: hsl(var(--foreground) / 0.04);
}

.article-body th {
    border-bottom-color: hsl(var(--foreground) / 0.14);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.82rem;
}

.article-body td,
.article-body th:not(:last-child),
.article-body td:not(:last-child) {
    border-color: hsl(var(--foreground) / 0.1);
}

.article-body tbody tr:nth-child(even) {
    background: hsl(var(--foreground) / 0.02);
}

.article-body tbody tr:hover td {
    background: hsl(var(--foreground) / 0.045);
}

@media (max-width: 768px) {
    .article-body {
        font-size: 0.98rem;
    }

    .article-body ul > li {
        padding-left: 1.18rem;
    }

    .article-body ol > li {
        padding-left: 1.92rem;
    }

    .article-body h2 {
        font-size: 1.38rem;
        margin-top: 2rem;
    }

    .article-body h3 {
        font-size: 1.16rem;
        margin-top: 1.5rem;
    }

    .article-body pre,
    .article-body .wp-block-code {
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        border-radius: calc(var(--radius) * 0.95);
    }

    .article-body blockquote {
        padding: 1rem 1rem 1rem 0.92rem;
    }
}

/* ---------- Detail Polish Pass B ---------- */
.post-card-meta {
    gap: 0.4rem;
    font-size: 0.73rem;
    line-height: 1.42;
}

.post-card-meta .badge {
    transform: translateY(-0.5px);
}

.post-card-footer {
    font-size: 0.73rem;
    border-top-style: dashed;
    border-top-color: hsl(var(--foreground) / 0.12);
}

.pagination .current {
    border: 1px solid hsl(var(--border));
    box-shadow: inset 0 1px 0 hsl(var(--background) / 0.4);
}

.pagination a,
.comments-pagination a,
.btn,
.btn-submit,
.hero-search-btn,
.site-nav a,
.post-card-link {
    -webkit-tap-highlight-color: transparent;
}

.post-card-link:focus-visible .post-card,
.site-nav a:focus-visible,
.pagination a:focus-visible,
.comments-pagination a:focus-visible,
.btn:focus-visible,
.btn-submit:focus-visible,
.hero-search-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.2);
}

.article-body pre,
.article-body table,
.article-body .wp-block-table {
    max-width: 100%;
}

.article-body .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .post-card-meta {
        font-size: 0.71rem;
    }

    .post-card-footer {
        font-size: 0.71rem;
    }

    .pagination {
        gap: 0.3rem;
    }
}

/* ---------- Archives Redesign ---------- */
.archive-header-redesign {
    margin-bottom: 1.7rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--foreground) / 0.1);
}

.archive-header-redesign .archive-title {
    font-size: clamp(1.9rem, 4.2vw, 2.35rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.48rem;
}

.archive-header-redesign .archive-description {
    font-size: 0.92rem;
    color: hsl(var(--muted-foreground) / 0.95);
    margin-bottom: 1rem;
}

.archive-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.archive-kpi {
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 1.15);
    padding: 0.72rem 0.84rem;
    background: hsl(var(--foreground) / 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.archive-kpi-label {
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
}

.archive-kpi-value {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.archive-years {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-year-card {
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 1.2);
    padding: 1rem 1rem 0.9rem;
    background: hsl(var(--card));
}

.archive-year-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed hsl(var(--foreground) / 0.12);
}

.archive-year-title {
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.archive-year-count {
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
}

.archive-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.archive-month-group {
    min-width: 0;
}

.archive-month-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.archive-post-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}

.archive-post-item {
    list-style: none;
}

.archive-post-link {
    display: grid;
    grid-template-columns: 3.3rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.34rem 0.44rem;
    border-radius: calc(var(--radius) * 0.82);
    border: 1px solid transparent;
    color: inherit;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.18s ease;
}

.archive-post-link:hover {
    background: hsl(var(--foreground) / 0.03);
    border-color: hsl(var(--foreground) / 0.1);
    transform: translateX(1px);
}

.archive-post-date {
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.archive-post-title {
    font-size: 0.9rem;
    line-height: 1.45;
    color: hsl(var(--foreground));
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .archive-kpis {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .archive-months {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .archive-header-redesign {
        margin-bottom: 1.2rem;
        padding-bottom: 1.1rem;
    }

    .archive-year-card {
        padding: 0.84rem 0.82rem 0.75rem;
    }

    .archive-year-title {
        font-size: 1.16rem;
    }

    .archive-post-link {
        grid-template-columns: 3rem 1fr;
        padding: 0.32rem 0.38rem;
    }

    .archive-post-title {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .archive-post-link,
    .archive-post-link:hover {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Category Redesign V2 ---------- */
.category-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    margin-bottom: 1.45rem;
}

.category-v2-hero-main {
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 1.2);
    background: hsl(var(--card));
    padding: 1rem 1.05rem;
}

.category-v2-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.category-v2-title {
    font-size: clamp(1.95rem, 4.2vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.category-v2-description {
    color: hsl(var(--muted-foreground) / 0.95);
    font-size: 0.93rem;
    line-height: 1.72;
}

.category-v2-stats {
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 1.2);
    background: hsl(var(--foreground) / 0.02);
    padding: 0.78rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.category-v2-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
    padding-bottom: 0.48rem;
    border-bottom: 1px dashed hsl(var(--foreground) / 0.12);
}

.category-v2-stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.category-v2-stat-label {
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
}

.category-v2-stat-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.category-v2-stream {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0.92rem;
}

.category-v2-featured {
    margin: 0;
}

.category-v2-featured-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 1.25);
    overflow: hidden;
    background: hsl(var(--card));
    color: inherit;
    transition:
        transform 0.22s ease,
        box-shadow 0.24s ease,
        border-color 0.22s ease;
}

.category-v2-featured-link:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--foreground) / 0.16);
    box-shadow: 0 14px 30px -24px hsl(var(--foreground) / 0.35);
}

.category-v2-featured-thumb {
    overflow: hidden;
}

.category-v2-featured-thumb img {
    width: 100%;
    height: 228px;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.category-v2-featured-link:hover .category-v2-featured-thumb img {
    transform: scale(1.02);
}

.category-v2-featured-body {
    padding: 0.94rem 1rem 0.98rem;
}

.category-v2-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
    font-size: 0.73rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.46rem;
}

.category-v2-featured-title {
    font-size: 1.14rem;
    line-height: 1.35;
    margin-bottom: 0.56rem;
    letter-spacing: -0.01em;
}

.category-v2-featured-excerpt {
    font-size: 0.86rem;
    line-height: 1.68;
    color: hsl(var(--muted-foreground) / 0.94);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-v2-list {
    display: flex;
    flex-direction: column;
    gap: 0.68rem;
}

.category-v2-item {
    margin: 0;
}

.category-v2-item-link {
    display: block;
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: calc(var(--radius) * 1.05);
    background: hsl(var(--card));
    padding: 0.74rem 0.82rem;
    color: inherit;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.18s ease;
}

.category-v2-item-link:hover {
    background: hsl(var(--foreground) / 0.02);
    border-color: hsl(var(--foreground) / 0.15);
    transform: translateX(1px);
}

.category-v2-item-head {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.45rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.category-v2-item-date {
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.category-v2-item-title {
    font-size: 0.92rem;
    line-height: 1.45;
    letter-spacing: -0.005em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-v2-item-excerpt {
    font-size: 0.81rem;
    line-height: 1.62;
    color: hsl(var(--muted-foreground) / 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .category-v2-hero {
        grid-template-columns: 1fr;
    }

    .category-v2-stream {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-v2-hero-main {
        padding: 0.84rem 0.86rem;
    }

    .category-v2-title {
        font-size: 1.74rem;
    }

    .category-v2-featured-thumb img {
        height: 196px;
    }

    .category-v2-featured-body {
        padding: 0.8rem 0.84rem 0.86rem;
    }

    .category-v2-item-link {
        padding: 0.66rem 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-v2-featured-link,
    .category-v2-featured-link:hover,
    .category-v2-featured-thumb img,
    .category-v2-featured-link:hover .category-v2-featured-thumb img,
    .category-v2-item-link,
    .category-v2-item-link:hover {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Motion Optimization ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .cat-sleep-symbol span,
    .link-card,
    .link-apply-section,
    .tech-carousel-item,
    .about-avatar-ring,
    .lightbox-loading {
        animation: none !important;
    }

    .hero-search-form,
    .hero-search-btn,
    .post-card,
    .post-card-thumbnail img,
    .link-card,
    .site-nav a,
    .btn,
    .btn-submit,
    .pagination a,
    .comments-pagination a,
    .toc-link,
    .widget,
    .category-v2-featured-link,
    .category-v2-item-link,
    .archive-post-link,
    .archive-post-link:hover {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Global Motion Baseline ---------- */
:root {
    --motion-fast: 0.18s;
    --motion-base: 0.26s;
    --motion-slow: 0.42s;
    --motion-ultra: 0.58s;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.micro-reveal {
    opacity: 0;
    transform: translateY(var(--reveal-y, 14px)) scale(var(--reveal-scale, 0.996));
    filter: blur(var(--reveal-blur, 1.2px));
    transition:
        opacity var(--motion-slow) var(--motion-ease),
        transform var(--motion-slow) var(--motion-ease),
        filter var(--motion-slow) var(--motion-ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.micro-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.motion-pressable {
    transition:
        transform var(--motion-fast) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        background-color var(--motion-base) var(--motion-ease),
        color var(--motion-fast) var(--motion-ease);
}

.motion-pressable.is-pressing {
    transform: translateY(1px) scale(0.995);
}

.site-nav a {
    position: relative;
    overflow: hidden;
}

.site-nav a::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.28rem;
    height: 1.5px;
    background: hsl(var(--foreground) / 0.34);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--motion-base) var(--motion-ease);
}

.site-nav a:hover::before,
.site-nav .current-menu-item > a::before,
.site-nav .current_page_item > a::before {
    transform: scaleX(1);
}

.post-card,
.link-card,
.archive-post-link,
.category-v2-featured-link,
.category-v2-item-link,
.comment-card,
.widget,
.site-info-item {
    transform-origin: center top;
}

.post-card-link:hover .post-card,
.link-card:hover,
.archive-post-link:hover,
.category-v2-featured-link:hover,
.category-v2-item-link:hover,
.comment-card:hover,
.widget:hover,
.site-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -30px hsl(var(--foreground) / 0.45);
}

.post-card-link:hover .post-card-thumbnail img,
.category-v2-featured-link:hover .category-v2-featured-thumb img {
    transform: scale(1.018);
}

.btn:hover,
.btn-submit:hover,
.theme-toggle:hover,
.menu-toggle:hover,
.hero-search-btn:hover,
.pagination a:hover,
.comments-pagination a:hover,
.floating-btn:hover {
    transform: translateY(-1px);
}

.btn:active,
.btn-submit:active,
.theme-toggle:active,
.menu-toggle:active,
.hero-search-btn:active,
.pagination a:active,
.comments-pagination a:active,
.floating-btn:active {
    transform: translateY(0) scale(0.995);
}

.link-apply-modal-overlay {
    transition: opacity var(--motion-slow) var(--motion-ease), backdrop-filter var(--motion-base) var(--motion-ease);
}

.link-apply-modal-content {
    transition:
        transform var(--motion-slow) var(--motion-ease),
        opacity var(--motion-base) var(--motion-ease);
}

.link-apply-modal.is-open .link-apply-modal-content {
    animation: modal-soft-rise var(--motion-ultra) var(--motion-ease);
}

@keyframes modal-soft-rise {
    0% {
        transform: translateY(16px) scale(0.985);
        opacity: 0.02;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

button,
.btn,
.btn-submit,
.hero-search-btn,
.site-nav a,
.theme-toggle,
.menu-toggle,
.pagination a,
.comments-pagination a,
.post-card,
.link-card,
.archive-post-link,
.category-v2-featured-link,
.category-v2-item-link,
.floating-btn,
input,
textarea,
select {
    transition:
        transform var(--motion-fast) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        background-color var(--motion-base) var(--motion-ease),
        color var(--motion-fast) var(--motion-ease);
}

button:focus-visible,
.btn:focus-visible,
.btn-submit:focus-visible,
.hero-search-btn:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.pagination a:focus-visible,
.comments-pagination a:focus-visible,
.site-nav a:focus-visible,
.post-card-link:focus-visible .post-card,
.link-card:focus-visible,
.archive-post-link:focus-visible,
.category-v2-featured-link:focus-visible,
.category-v2-item-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px hsl(var(--background)),
        0 0 0 4px hsl(var(--foreground) / 0.14);
}

.article-body ul > li,
.article-body ol > li,
.entry-content ul > li,
.entry-content ol > li {
    transition:
        transform var(--motion-fast) var(--motion-ease),
        color var(--motion-fast) var(--motion-ease);
}

.article-body ul > li:hover,
.article-body ol > li:hover,
.entry-content ul > li:hover,
.entry-content ol > li:hover {
    transform: translateX(2px);
}

.comment-card,
.widget,
.archive-year-card,
.category-v2-featured-link,
.category-v2-item-link,
.site-info-item {
    transition:
        border-color var(--motion-base) var(--motion-ease),
        background-color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        transform var(--motion-fast) var(--motion-ease);
}

.comment-card:hover,
.widget:hover {
    border-color: hsl(var(--foreground) / 0.14);
}


/* ---------- Fine Tune Pass C: Card Rhythm Unify ---------- */
.post-card,
.archive-year-card,
.category-v2-featured-link,
.category-v2-item-link,
.link-card {
    border-color: hsl(var(--foreground) / 0.1);
    box-shadow: 0 1px 0 hsl(var(--background) / 0.6);
}

.post-card-title,
.archive-post-title,
.category-v2-featured-title,
.category-v2-item-title {
    line-height: 1.42;
    letter-spacing: -0.008em;
}

.post-card-excerpt,
.category-v2-featured-excerpt,
.category-v2-item-excerpt {
    line-height: 1.68;
}

.archive-year-card:hover {
    border-color: hsl(var(--foreground) / 0.16);
    box-shadow: 0 14px 30px -28px hsl(var(--foreground) / 0.35);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .post-card {
        padding: 1.2rem;
    }

    .post-card-thumbnail {
        margin: -1.2rem -1.2rem 0 -1.2rem;
    }

    .archive-year-card {
        border-radius: calc(var(--radius) * 1.05);
    }

    .category-v2-item-link {
        padding: 0.7rem 0.76rem;
    }

    .comment-actions a,
    .comment-children-toggle,
    .btn-submit {
        min-height: 2.25rem;
    }

    .article-body {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .micro-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .motion-pressable,
    .motion-pressable.is-pressing,
    button,
    .btn,
    .btn-submit,
    .hero-search-btn,
    .site-nav a,
    .theme-toggle,
    .menu-toggle,
    .pagination a,
    .comments-pagination a,
    .post-card,
    .link-card,
    .archive-post-link,
    .category-v2-featured-link,
    .category-v2-item-link,
    .floating-btn,
    input,
    textarea,
    select,
    .article-body ul > li,
    .article-body ol > li,
    .entry-content ul > li,
    .entry-content ol > li,
    .comment-card,
    .widget,
    .archive-year-card,
    .site-info-item,
    .site-nav .nav-menu > li {
        transition: none !important;
        transform: none !important;
    }

    .site-nav a::before {
        transition: none !important;
        transform: none !important;
    }

    .link-apply-modal.is-open .link-apply-modal-content {
        animation: none !important;
    }

    .comment-list > li {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .comment-card.comment-anchor-highlight {
        animation: none !important;
    }
}
